summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-06-10 18:40:43 +0200
committerUrban Müller2024-06-10 18:40:43 +0200
commit8ecc962be8280dabe1d01fe1cc36ff746bd3bfa2 (patch)
tree6b58eab491f4f027c3db647c1111746271965cdc
parent5a51732fc8d845d4c0e308b6340d9f4e20aa6ff4 (diff)
downloaditools-8ecc962be8280dabe1d01fe1cc36ff746bd3bfa2.tar.gz
itools-8ecc962be8280dabe1d01fe1cc36ff746bd3bfa2.tar.bz2
itools-8ecc962be8280dabe1d01fe1cc36ff746bd3bfa2.zip
http: -> https:
-rw-r--r--README6
-rw-r--r--it_auto_prepend.php4
-rw-r--r--it_html.class2
-rw-r--r--it_mail.class2
-rw-r--r--it_url.class6
5 files changed, 10 insertions, 10 deletions
diff --git a/README b/README
index 134475a..44e32c1 100644
--- a/README
+++ b/README
@@ -11,7 +11,7 @@ tasks in PHP easier. It works in PHP 7.0 and up.
Our examples omit array() around function parameters and use dangling commas.
To get that, you can either use our just-in-time syntax converter or use
-our patch for PHP (see http://cschneid.com/php/ for info). To use the syntax
+our patch for PHP (see https://cschneid.com/php/ for info). To use the syntax
converter, see the chapter about it_auto_prepend.php below.
it_auto_prepend.php - ITools environment (optional)
@@ -45,7 +45,7 @@ Example:
head('title' => "welcome earth"),
body(
p('style' => "margin:1em",
- a('href' => U("http://google.com/search", 'q' => "Hello World"), "Hello World"),
+ a('href' => U("https://google.com/search", 'q' => "Hello World"), "Hello World"),
),
),
);
@@ -181,7 +181,7 @@ Helper functions dealing with URLs.
Example:
$filename = it_url::get_cache(
- 'url' => "http://static.php.net/www.php.net/images/php.gif",
+ 'url' => "https://static.php.net/www.php.net/images/php.gif",
'timeout' => 5,
'cachedir' => $_SERVER['DOCUMENT_ROOT'] . "/cache",
);
diff --git a/it_auto_prepend.php b/it_auto_prepend.php
index d65bc7b..b606e3f 100644
--- a/it_auto_prepend.php
+++ b/it_auto_prepend.php
@@ -70,14 +70,14 @@ function it_initialize()
# IT_HOME is recommended variable name for applications
$GLOBALS['IT_HOME'] = $GLOBALS['ULTRAHOME'] = it_untaint($GLOBALS['ULTRAHOME'], TC_ALL);
- try { $needsconvert = $GLOBALS['IT_SYNTAXCONVERTER_DIR'] !== false && !@eval("return is_array(42=>69,);"); } catch (Error $needsconvert) {} # Check if PHP is patched to support our syntax, see http://cschneid.com/php/
+ try { $needsconvert = $GLOBALS['IT_SYNTAXCONVERTER_DIR'] !== false && !@eval("return is_array(42=>69,);"); } catch (Error $needsconvert) {} # Check if PHP is patched to support our syntax, see https://cschneid.com/php/
if ($needsconvert && !$GLOBALS['IT_SYNTAXCONVERTER_DIR'])
{
$GLOBALS['IT_SYNTAXCONVERTER_DIR'] = $GLOBALS['ULTRAHOME'] . "/tmp";
if (!is_writeable($GLOBALS['IT_SYNTAXCONVERTER_DIR']) || !function_exists("posix_geteuid") || posix_geteuid() != fileowner($GLOBALS['IT_SYNTAXCONVERTER_DIR']))
- die(($webmode ? "<pre>" : "") . "Seems to be running in shared environment, manually set\n\$GLOBALS['IT_SYNTAXCONVERTER_DIR'] in $it_path/auto_prepend_local.php\nto either:\n a) FALSE (syntax conversion disabled) or\n b) the path to a writeable directory (NOTE: THIS IS UNSAFE!) or\n c) install the PHP patch from http://cschneid.com/php/\n" . ($webmode ? "</pre>" : ""));
+ die(($webmode ? "<pre>" : "") . "Seems to be running in shared environment, manually set\n\$GLOBALS['IT_SYNTAXCONVERTER_DIR'] in $it_path/auto_prepend_local.php\nto either:\n a) FALSE (syntax conversion disabled) or\n b) the path to a writeable directory (NOTE: THIS IS UNSAFE!) or\n c) install the PHP patch from https://cschneid.com/php/\n" . ($webmode ? "</pre>" : ""));
}
ini_set('include_path', ($GLOBALS['IT_SYNTAXCONVERTER_DIR'] ? $GLOBALS['IT_SYNTAXCONVERTER_DIR'] . "/it_syntaxconverter" . PATH_SEPARATOR : '') . $it_path . PATH_SEPARATOR . $include_path);
diff --git a/it_html.class b/it_html.class
index 9780d5d..7e7f190 100644
--- a/it_html.class
+++ b/it_html.class
@@ -252,7 +252,7 @@ function body($args)
$toggled_host = preg_replace("/\.$var(-[^.-]+)?/", "", $_SERVER['HTTP_HOST']);
else
$toggled_host = preg_replace('/^(\w+(-\w+)*)/', "\$1.$var", $_SERVER['HTTP_HOST']);
- $debug_links[] = a(array('href' => U('http://' . $toggled_host . $_SERVER['REQUEST_URI']), 'style' => 'font-weight:' . (EDC($var) ? 'bold' : 'normal') . ';'), $var);
+ $debug_links[] = a(array('href' => U('https://' . $toggled_host . $_SERVER['REQUEST_URI']), 'style' => 'font-weight:' . (EDC($var) ? 'bold' : 'normal') . ';'), $var);
}
$args[] = div(array('style' => 'position:fixed; bottom:0; z-index:9999; font-family:monospace; background:white'), "Debugvars: " . implode(" ", $debug_links));
}
diff --git a/it_mail.class b/it_mail.class
index 63bcc28..11a4252 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -38,7 +38,7 @@ define('IT_MAIL_CHECKEMAIL_OK', 10);
* <br>
* $mail = new it_mail(array('To' => $to&#44; 'From' => 'itools@gna.ch', 'Subject' => 'Example'));<br>
* $mail->add_body('Plain text message body');<br>
- * $mail->add_body('HTML message with &lt;a href="http://gna.ch/"&gt;link&lt;/a&gt;', IT_MAIL_HTML);<br>
+ * $mail->add_body('HTML message with &lt;a href="https://gna.ch/"&gt;link&lt;/a&gt;', IT_MAIL_HTML);<br>
* $mail->send();<br>
* </nobr></code>
*/
diff --git a/it_url.class b/it_url.class
index 01913e3..90aa4bd 100644
--- a/it_url.class
+++ b/it_url.class
@@ -22,7 +22,7 @@
class it_url
{
/* E.g. HTTP://falcon:joshua@www.Relog.CH.:80/default.asp */
- var $url; /* E.g. http://www.relog.ch/ */
+ var $url; /* E.g. https://www.relog.ch/ */
var $protocol; /* E.g. http */
var $hostname; /* E.g. relog.ch */
var $realhostname; /* E.g. www.relog.ch */
@@ -848,7 +848,7 @@ static function _atomicwrite($path, $data)
/**
* Make an URL absolute by using host and protocol from current Apache request (but not port number)
- * @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, http://host/bar.html ), default self
+ * @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, https://host/bar.html ), default self
* @param $proto_force Optional protocol to enforce, default protocol of current request or http if in script context
* @return absolute version of URL ( http[s]://host/bar.html )
*/
@@ -877,7 +877,7 @@ static function absolute($url = null, $proto_force = null, $prefix = '')
/**
* Craft a valid redirect URL, send Location: header and terminate execution
- * @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, http://host/bar.html ), default self
+ * @param $url Optional URL ( foo.html, /foo.html, //host/bar.html, https://host/bar.html ), default self
* @param $type Type of redirect, "temporary" or "permanent", default temporary
* @return This method never returns.
*/