removeParam('back'); $url->removeParam('form_basket_send'); $url->removeParam('form_demand_send'); self::$thispage = base64_encode($url->get()); // this page $uri = $_SERVER[REQUEST_URI]; $uri = str_replace('&form_basket_send=1', '', $uri); $uri = str_replace('&form_demand_send=1', '', $uri); self::$thispage2 = base64_encode("http://" . $_SERVER[HTTP_HOST] . $uri); // error and exception handling set_exception_handler(array($this, 'exceptionHandler')); if (!defined('CKFINDER')) set_error_handler(array($this, 'errorHandler')); } /** call for get unique instance of this class * @return core_main */ public static function singleton() { return parent::getInstance(__CLASS__); } /** * Get Time in Microseconds * @return int * @static */ public static function getMicroTime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } /** * Send user to other page * @param string $location * @static */ public static function redirect($location) { $location = str_replace('&', '&', $location); if (!headers_sent()){ session_write_close(); header("Location: ".$location); } elseif (defined('DEBUG') && DEBUG) echo ' Click here'; exit; } public static function redirectToHome() { $o_url = new core_www_url(); $o_url->setPage(core_server::singleton()->homepageid); core_main::redirect($o_url->get()); } /** * Exception handling function * * @param Exception $e */ function exceptionHandler(Exception $e){ echo $e; exit(); } /** * Error handling function * * @param int $errno * @param string $errstr * @param string $errfile * @param int $errline * @param array $errcontext */ public function errorHandler($errno, $errstr, $errfile, $errline, $errcontext){ $actual_level = error_reporting(); if ($actual_level < $errno) return false; if (DEBUG) { $out = << [Text] {$errstr}
[File] {$errfile}
[Line] {$errline}
[Context] {$errcontext}

ERRORTXT; echo $out; } } } ?>
Fatal error: Class 'core_main' not found in /var/www/vhosts/gtdata.cz/httpdocs/mainfile.php on line 13