A PHP Error was encountered
Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 551
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)
Filename: view/raw.php
Line Number: 2
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/raw.php
Line: 2
Function: header
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 558
Function: view
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
.
//
/////////////////////////////////////////////////////////////////////////
//
// Website : http://php-pastebin.com/
// Contact : contact@php-pastebin.com
//
/////////////////////////////////////////////////////////////////////////
//
// Dev : Atmoner
// Website : http://atmoner.com
// Contact : contact@atmoner.com
// Twitter : @atmon3r
//
/////////////////////////////////////////////////////////////////////////
error_reporting(0);
define("IN_PASTE",true);
$path = dirname(__FILE__);
require($path.'/libs/startup.php');
require($path.'/libs/lang/lang_'.$_SESSION['strLangue'].'.php');
$userId = $startUp->isLogged();
$smarty->assign("Name",$conf['title']);
$smarty->assign("getConfigs",$conf);
$smarty->assign("getUserdata",$startUp->getUserdata());
$smarty->assign("footer",$startUp->addFooter());
$smarty->assign("userId",$userId);
$smarty->assign("userName",$startUp->session_username);
$smarty->assign("Admin",$startUp->checkAdmin());
// Stats
$today = time() - (1 * 24 * 60 * 60);
$smarty->assign("getTotalpaste",$startUp->getTotalpaste());
$smarty->assign("getTotalpastetoday",$startUp->getTotalpaste($today));
$smarty->assign("getTotalusers",$startUp->getTotalusers());
$smarty->assign("lang",$lang);
$hook->add_side_block('defaultSearchbox','','',1);
$hook->add_side_block('defaultSidebar','','', 3);
// Javascript hook
$hook->addJs('Jquery','http://code.jquery.com/jquery-latest.min.js','','1');
// Css hook
$hook->addCss('Style','style.css','themes/'.$conf['theme'].'/style/','1');
// Main menu hook
$hook->addMenu('addPaste',$lang["newPaste"], 'add.html', 'newpost.png', '3');
$hook->addMenu('viewAllpastes',$lang["viewPastes"], 'last-pastes.html', 'dashboard.png', '4');
// Lang menu hook
$hook->addMenuLang('en',$lang["english"], '?strLangue=en', 'en.png', '3');
$hook->addMenuLang('fr',$lang["french"], '?strLangue=fr', 'fr.png', '4');
$hook->addMenuLang('ru',$lang["russe"], '?strLangue=ru', 'ru.png', '5');
// Usermenu hook
if (!$userId) {
$hook->addUserMenu('gestcp','','','', '4');
} else {
if ($startUp->checkAdmin()) {
$hook->addUserMenu('admincp','','','', '4');
}
$hook->addUserMenu('usercp','','','', '8');
}
if ($hook->hook_exist('action'))
$hook->execute_hook('action');
switch (isset($_GET["page"])?$_GET["page"]:""){
case 'admincp':
# admin panel
include 'pages/admincp/admincp.index.php';
break;
case 'paste':
# paste
include 'pages/paste.php';
$smarty->display('paste.html');
break;
case 'last-pastes':
# laste paste
include 'pages/last-pastes.php';
$smarty->display('last-pastes.html');
break;
case 'zone-login':
# login
include 'pages/login.php';
$smarty->display('login.html');
break;
case 'registration':
# registration
include 'pages/registration.php';
$smarty->display('registration.html');
break;
case 'account':
# account
include 'pages/account.php';
$smarty->display('account.html');
break;
case 'edit-account':
# account
include 'pages/edit.account.php';
$smarty->display('edit.account.html');
break;
case 'premium':
# account
include 'pages/premium.php';
$smarty->display('premium.html');
break;
case 'user':
# account
include 'pages/user.php';
$smarty->display('user.html');
break;
case 'logout':
# logout
include 'pages/logout.php';
break;
case 'error':
# error
$smarty->display('error.html');
break;
case '':
case 'add':
case 'index':
# index
include 'pages/main.php';
$smarty->display('index.html');
break;
default:
if ($hook->hook_exist('new_page'))
$hook->execute_hook('new_page');
else
$startUp->redirect($conf['baseurl'].'/');
break;
}