/** * @version $Id: common.php 85 2005-09-15 23:12:03Z eddieajau $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ error_reporting( E_ALL ); header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 /** * Utility function to return a value from a named array or a specified default */ define( "_MOS_NOTRIM", 0x0001 ); define( "_MOS_ALLOWHTML", 0x0002 ); function mosGetParam( &$arr, $name, $def=null, $mask=0 ) { $return = null; if (isset( $arr[$name] )) { if (is_string( $arr[$name] )) { if (!($mask&_MOS_NOTRIM)) { $arr[$name] = trim( $arr[$name] ); } if (!($mask&_MOS_ALLOWHTML)) { $arr[$name] = strip_tags( $arr[$name] ); } if (!get_magic_quotes_gpc()) { $arr[$name] = addslashes( $arr[$name] ); } } return $arr[$name]; } else { return $def; } } function get_php_setting($val) { $r = (ini_get($val) == '1' ? 1 : 0); return $r ? 'ON' : 'OFF'; } echo ""; ?> Pre-installation check If any of these items are highlighted in red then please take actions to correct them. Failure to do so could lead to your Joomla installation not functioning correctly.