/** * cmsdAm is a powerful, simple, scalable, quick, secure, GPL released, PHP4 written from scratch * Content Management System framework. It is specially designed for people having some basic * PHP knowledge. You can create powerful professional sites in a while using cmsdAm, and you * don't have to rewrite each time php code for handle each section, users, search engine, ecc. * cmsdAm do all the work for you! You just have to configure it, and write HTML or PHP code * for your sections. You don't have to care about mails, HTTP headers, HTML strange tags, META * tags, HTTP cache mechanisms, ecc, just write HTML or PHP code for your sections. * * Enjoy!!! Dino Ciuffetti - dam2k@users.sourceforge.net * * * 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; version 2 of the License. * * 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 (COPYING); if not, go to http://www.fsf.org/ or write * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * */ // General Checks if ($step == "") { echo "Please go away."; exit(); } function alreadythere() { @include ("config.php"); if (isset($LOG_debug)) { // memcached stuff is already defined header ("Location: ?step=0"); exit (1); } return true; } // Check if ldap stuff is already defined in configuration file alreadythere(); // User requested default fields from previos screen $defaults = $_REQUEST['defaults']; $filecontainer_basedir = $_REQUEST['filecontainer_basedir']; $LOG_debug = $_REQUEST['LOG_debug']; $LOG_path = $_REQUEST['LOG_path']; $LOG_file = $_REQUEST['LOG_file']; $LOG_level = $_REQUEST['LOG_level']; $LOG_debuglevel = $_REQUEST['LOG_debuglevel']; $ERROR_reporting_cmsdAm = $_REQUEST['ERROR_reporting_cmsdAm']; $ERROR_reporting_sections = $_REQUEST['ERROR_reporting_sections']; $errflag = 0; if ($defaults == 1) { $errflag++; } // Parameters validation if ($LOG_debug == "") { $errflag++; } if ($LOG_path == "") { $errflag++; } if ($LOG_file == "") { $errflag++; } if ($LOG_level == "") { $errflag++; } if ($LOG_debuglevel == "") { $errflag++; } if ($ERROR_reporting_cmsdAm == "") { $errflag++; } if ($ERROR_reporting_sections == "") { $errflag++; } if ($errflag > 0) { // Errors with parameters if ($defaults == 1) { // Defaults fields requested header("Location: ?step=" . --$step); } else { $LOG_debug = urlencode($LOG_debug); $LOG_path = urlencode($LOG_path); $LOG_file = urlencode($LOG_file); $LOG_level = urlencode($LOG_level); $LOG_debuglevel = urlencode($LOG_debuglevel); $ERROR_reporting_cmsdAm = urlencode($ERROR_reporting_cmsdAm); $ERROR_reporting_sections = urlencode($ERROR_reporting_sections); header("Location: ?LOG_debug=$LOG_debug&LOG_path=$LOG_path&LOG_file=$LOG_file&LOG_level=$LOG_level&LOG_debuglevel=$LOG_debuglevel&ERROR_reporting_cmsdAm=$ERROR_reporting_cmsdAm&ERROR_reporting_sections?$ERROR_reporting_sections&errors=$errflag&step=" . --$step); } exit (); } ?>
Controllo Error
Attendere mentre il sistema viene controllato.
// Parameters validated. Checking ERROR include ("error_check.php"); if ($error_ok === false) { // cmsdAm error is NOK! echo "