1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Documentation tweaks, remove functions supported in PHP5

This commit is contained in:
e107steved
2010-05-28 22:10:20 +00:00
parent 0bb6940c39
commit 6df2cbd7e9
5 changed files with 40 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
/** /**
* @package e107 * @package e107
* @subpackage e107_handler * @subpackage e107_handlers
* @version $Id$ * @version $Id$
* *
* Administration User Interface logic * Administration User Interface logic

View File

@@ -14,7 +14,7 @@
/** /**
* @package e107 * @package e107
* @subpackage e107_handler * @subpackage e107_handlers
* @version $Id$ * @version $Id$
* @author secretr * @author secretr
* *

View File

@@ -30,7 +30,7 @@ define('E_MESSAGE_DEBUG', 'debug');
* Handle system messages * Handle system messages
* *
* @package e107 * @package e107
* @category e107_handlers * @subpackage e107_handlers
* @version $Id$ * @version $Id$
* @author SecretR * @author SecretR
* @copyright Copyright (C) 2008-2010 e107 Inc (e107.org) * @copyright Copyright (C) 2008-2010 e107 Inc (e107.org)

View File

@@ -1,12 +1,33 @@
<?php <?php
/*
* e107 website system
*
* Copyright (C) 2008-2010 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* e107 requires PHP >= 5 - implement functions only supported in later versions
*
* $URL$
* $Id$
*
*/
if (!defined('e107_INIT')) if (!defined('e107_INIT'))
{ {
exit; exit;
} }
// e107 requires PHP > 4.3.0, all functions that are used in e107, introduced in newer /**
// versions than that should be recreated in here for compatabilty reasons.. * Handle system messages
*
* @package e107
* @subpackage e107_handlers
* @version $Id$
* @copyright Copyright (C) 2008-2010 e107 Inc (e107.org)
*/
/*
// file_put_contents - introduced in PHP5 // file_put_contents - introduced in PHP5
if (!function_exists('file_put_contents')) if (!function_exists('file_put_contents'))
{ {
@@ -15,7 +36,7 @@ if (!function_exists('file_put_contents'))
* @param string $filename * @param string $filename
* @param mixed $data * @param mixed $data
* @desc Write a string to a file * @desc Write a string to a file
*/ * /
define('FILE_APPEND', 1); define('FILE_APPEND', 1);
function file_put_contents($filename, $data, $flag = false) function file_put_contents($filename, $data, $flag = false)
{ {
@@ -34,7 +55,11 @@ if (!function_exists('file_put_contents'))
return $bytes; return $bytes;
} }
} }
*/
/*
// stripos - introduced in PHP5
if (!function_exists('stripos')) if (!function_exists('stripos'))
{ {
function stripos($str, $needle, $offset = 0) function stripos($str, $needle, $offset = 0)
@@ -42,7 +67,11 @@ if (!function_exists('stripos'))
return strpos(strtolower($str), strtolower($needle), $offset); return strpos(strtolower($str), strtolower($needle), $offset);
} }
} }
*/
/*
// simplexml_load_string - introduced in PHP5
if (!function_exists('simplexml_load_string')) if (!function_exists('simplexml_load_string'))
{ {
@@ -132,6 +161,9 @@ if (!function_exists('simplexml_load_string'))
} }
*/
/* /*
* This work of Lionel SAURON (http://sauron.lionel.free.fr:80) is licensed under the * This work of Lionel SAURON (http://sauron.lionel.free.fr:80) is licensed under the
* Creative Commons Attribution-Noncommercial-Share Alike 2.0 France License. * Creative Commons Attribution-Noncommercial-Share Alike 2.0 France License.
@@ -158,6 +190,7 @@ if (!function_exists('simplexml_load_string'))
* @param string $sFormat strftime format used to create the date * @param string $sFormat strftime format used to create the date
* @return array Returns an array with the <code>$str</code> parsed, or <code>false</code> on error. * @return array Returns an array with the <code>$str</code> parsed, or <code>false</code> on error.
*/ */
// strptime - PHP 5 >= 5.1.0
if (!function_exists('strptime')) if (!function_exists('strptime'))
{ {
define('STRPTIME_COMPAT', true); define('STRPTIME_COMPAT', true);

View File

@@ -14,7 +14,7 @@
/** /**
* @package e107 * @package e107
* @category user * @subpackage e107_handlers
* @version $Id$ * @version $Id$
* @author SecretR * @author SecretR
* *