Source for file path_functions.php
Documentation is available at path_functions.php
* An open source application development framework for PHP 4.3.2 or newer
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
// ------------------------------------------------------------------------
* CodeIgniter Path Helpers
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/helpers/xml_helper.html
// ------------------------------------------------------------------------
* @param bool checks to see if the path exists
// Security check to make sure the path is NOT a URL. No remote file inclusion!
if (preg_match("#^(http:\/\/|https:\/\/|www\.|ftp|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})#i", $path))
show_error('The path you submitted must be a local server path, not a URL');
// Make sure the path exists
if ($check_existance ==
TRUE)
show_error('Not a valid path: '.
$path);
Documentation generated on Tue, 22 Nov 2011 13:28:58 -0200 by phpDocumentor 1.4.3