#BEGIN_LICENSE CMSMS #CMS - CMS Made Simple #(c)2004-2011 by Ted Kulp (wishy@users.sf.net) #(c)2011-2014 by The CMSMS Dev Team #Visit our homepage at: http://www.cmsmadesimple.org # #This program is free software; you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation; either version 2 of the License, or #(at your option) any later version. # #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. #You should have received a copy of the GNU General Public License #along with this program; if not, write to the Free Software #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #END_LICENSE #$Id: index.php 10333 2015-12-08 16:37:18Z calguy1000 $ $starttime = microtime(); $orig_memory = (function_exists('memory_get_usage')?memory_get_usage():0); /** * Entry point for all non-admin pages * * @package CMS */ clearstatcache(); define('CONFIG_FILE_LOCATION',__DIR__.'/config.php'); if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; } if (!file_exists(CONFIG_FILE_LOCATION) || filesize(CONFIG_FILE_LOCATION) < 100) { die ('FATAL ERROR: config.php file not found or invalid'); } require_once(__DIR__.'/lib/include.php'); if (file_exists(TMP_CACHE_LOCATION.'/SITEDOWN')) { echo "
Site down for maintenance.
"; exit; } if (!is_writable(TMP_TEMPLATES_C_LOCATION) || !is_writable(TMP_CACHE_LOCATION)) { echo 'The following directories must be writable by the web server:
';
echo 'tmp/cache
';
echo 'tmp/templates_c
Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c
or the equivalent for your platform before continuing.