@@ -22,9 +22,9 @@ |
||
| 22 | 22 | header("Pragma: public"); |
| 23 | 23 | header("Cache-Control: maxage=".$expires); |
| 24 | 24 | header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT'); |
| 25 | - $bookId = getURLParam ("id", NULL); |
|
| 25 | + $bookId = getURLParam ("id", null); |
|
| 26 | 26 | $type = getURLParam ("type", "jpg"); |
| 27 | - $idData = getURLParam ("data", NULL); |
|
| 27 | + $idData = getURLParam ("data", null); |
|
| 28 | 28 | if (is_null ($bookId)) |
| 29 | 29 | { |
| 30 | 30 | $book = Book::getBookByDataId($idData); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | empty ($config['cops_mail_configuration']["address.from"])) { |
| 12 | 12 | return "NOK. bad configuration."; |
| 13 | 13 | } |
| 14 | - return False; |
|
| 14 | + return false; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | function checkRequest ($idData, $emailDest) { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | if (empty ($emailDest)) { |
| 22 | 22 | return 'No email sent.'; |
| 23 | 23 | } |
| 24 | - return False; |
|
| 24 | + return false; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if (php_sapi_name() === 'cli') { return; } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @return |
| 26 | 26 | * Transliterated text. |
| 27 | 27 | */ |
| 28 | -function _transliteration_process($string, $unknown = '?', $source_langcode = NULL) { |
|
| 28 | +function _transliteration_process($string, $unknown = '?', $source_langcode = null) { |
|
| 29 | 29 | // ASCII is always valid NFC! If we're only ever given plain ASCII, we can |
| 30 | 30 | // avoid the overhead of initializing the decomposition tables by skipping |
| 31 | 31 | // out early. |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @return |
| 176 | 176 | * ASCII replacement character. |
| 177 | 177 | */ |
| 178 | -function _transliteration_replace($ord, $unknown = '?', $langcode = NULL) { |
|
| 178 | +function _transliteration_replace($ord, $unknown = '?', $langcode = null) { |
|
| 179 | 179 | static $map = array(); |
| 180 | 180 | |
| 181 | 181 | //GL: set language later |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | header ("Content-Type: text/html;charset=utf-8"); |
| 15 | 15 | |
| 16 | -$idData = getURLParam ("data", NULL); |
|
| 16 | +$idData = getURLParam ("data", null); |
|
| 17 | 17 | $add = "data=$idData&"; |
| 18 | 18 | if (!is_null (GetUrlParam (DB))) $add .= DB . "=" . GetUrlParam (DB) . "&"; |
| 19 | 19 | $myBook = Book::getBookByDataId($idData); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | } |
| 51 | 51 | $headcontent = file_get_contents('templates/' . getCurrentTemplate () . '/file.html'); |
| 52 | 52 | $template = new doT (); |
| 53 | - $dot = $template->template ($headcontent, NULL); |
|
| 53 | + $dot = $template->template ($headcontent, null); |
|
| 54 | 54 | echo ($dot ($data)); |
| 55 | 55 | ?><body> |
| 56 | 56 | <?php |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * "address.from" => "[email protected]" |
| 211 | 211 | * ); |
| 212 | 212 | */ |
| 213 | - $config['cops_mail_configuration'] = NULL; |
|
| 213 | + $config['cops_mail_configuration'] = null; |
|
| 214 | 214 | |
| 215 | 215 | /* |
| 216 | 216 | * Use filter in HTML catalog |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection |
| 283 | 283 | * NULL : Disable PHP password protection (You can still use htpasswd) |
| 284 | 284 | */ |
| 285 | - $config['cops_basic_authentication'] = NULL; |
|
| 285 | + $config['cops_basic_authentication'] = null; |
|
| 286 | 286 | |
| 287 | 287 | /* |
| 288 | 288 | * Which template is used by default : |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | $err = getURLParam ("err", -1); |
| 18 | 18 | $full = getURLParam ("full"); |
| 19 | - $error = NULL; |
|
| 19 | + $error = null; |
|
| 20 | 20 | switch ($err) { |
| 21 | 21 | case 1 : |
| 22 | 22 | $error = "Database error"; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | header ("Content-Type: text/html;charset=utf-8"); |
| 15 | 15 | |
| 16 | -$idData = getURLParam ("data", NULL); |
|
| 16 | +$idData = getURLParam ("data", null); |
|
| 17 | 17 | $add = "data=$idData&"; |
| 18 | 18 | if (!is_null (GetUrlParam (DB))) $add .= DB . "=" . GetUrlParam (DB) . "&"; |
| 19 | 19 | $myBook = Book::getBookByDataId($idData); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | if ($post = $result->fetchObject ()) { |
| 45 | 45 | return new Language ($post->id, Language::getLanguageString ($post->lang_code)); |
| 46 | 46 | } |
| 47 | - return NULL; |
|
| 47 | + return null; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | |