public function getChildController($action, $params = array()) { self::$_childContent = ''; $returnContent = ''; if ($this->_opencartVersion < 200) { $returnContent = $this->getChild($action, $params); } else { $returnContent = $this->load->controller($action, $params); } if ($returnContent && !self::$_childContent) { self::$_childContent = $returnContent; } $tmp = self::$_childContent; self::$_childContent = ''; return $tmp; }
<?php require_once "../prepend.php"; require_once "SimpleController.php"; SimpleController::processActions(); //function HandleDefault() { // include("templates/index.html"); //} function getUsual($str) { if (!isset($_SESSION["testQueue"]) && !isset($_SESSION["specialQueue"])) { return "<b>" . $str . "</b>"; } return $str; } function getTest($str) { if (isset($_SESSION["testQueue"])) { return "<b>" . $str . "</b>"; } return $str; } function getSpec($str) { if (isset($_SESSION["specialQueue"])) { return "<b>" . $str . "</b>"; } return $str; } function HandleDefault() {
function __construct($class_prefix, $path) { parent::__construct(); $this->set_class_prefix($class_prefix); $this->set_path($path); }
function HandleDelCounter() { define("CMD_DEL_COUNTER", <<<SQL \t\tDELETE FROM counters WHERE id = ? SQL ); global $db; $res = $db->query(CMD_DEL_COUNTER, array($_REQUEST["id"])); if (PEAR::isError($res)) { SimpleController::printError($res); } }