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: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Untitled - Stikked
From Wet Hamerkop, 12 Years ago, written in PHP.
Embed
  1. <?php
  2. /////////////////////////////////////////////////////////////////////////
  3. //
  4. //    This file is part of index.php
  5. //
  6. //    Foobar is free software: you can redistribute it and/or modify
  7. //    it under the terms of the GNU General Public License as published by
  8. //    the Free Software Foundation, either version 3 of the License, or
  9. //    (at your option) any later version.
  10. //
  11. //    Foobar is distributed in the hope that it will be useful,
  12. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. //    GNU General Public License for more details.
  15. //
  16. //    You should have received a copy of the GNU General Public License
  17. //    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
  18. //
  19. /////////////////////////////////////////////////////////////////////////
  20. //
  21. // Website : http://php-pastebin.com/
  22. // Contact : contact@php-pastebin.com
  23. //
  24. /////////////////////////////////////////////////////////////////////////
  25. //
  26. // Dev     : Atmoner
  27. // Website : http://atmoner.com
  28. // Contact : contact@atmoner.com
  29. // Twitter : @atmon3r
  30. //
  31. /////////////////////////////////////////////////////////////////////////
  32.  
  33. define("IN_PASTE",true);
  34.  
  35.  
  36. $path = dirname(__FILE__);
  37.  
  38. require($path.'/libs/startup.php');
  39. require($path.'/libs/lang/lang_'.$_SESSION['strLangue'].'.php');
  40.  
  41.  
  42. $userId = $startUp->isLogged();
  43.  
  44. $smarty->assign("Name",$conf['title']);
  45. $smarty->assign("getConfigs",$conf);
  46. $smarty->assign("getUserdata",$startUp->getUserdata());
  47. $smarty->assign("footer",$startUp->addFooter());
  48. $smarty->assign("userId",$userId);
  49. $smarty->assign("userName",$startUp->session_username);
  50. $smarty->assign("Admin",$startUp->checkAdmin());
  51. // Stats
  52. $today = time() - (1 * 24 * 60 * 60);
  53. $smarty->assign("getTotalpaste",$startUp->getTotalpaste());
  54. $smarty->assign("getTotalpastetoday",$startUp->getTotalpaste($today));
  55. $smarty->assign("getTotalusers",$startUp->getTotalusers());
  56. $smarty->assign("lang",$lang);
  57.  
  58. $hook->add_side_block('defaultSearchbox','','',1);
  59. $hook->add_side_block('defaultSidebar','','', 3);
  60.  
  61.  
  62. // Javascript hook
  63. $hook->addJs('Jquery','http://code.jquery.com/jquery-latest.min.js','','1');
  64. // Css hook
  65. $hook->addCss('Style','style.css','themes/'.$conf['theme'].'/style/','1');
  66. // Main menu hook
  67. $hook->addMenu('addPaste',$lang["newPaste"], 'add.html', 'newpost.png', '3');
  68. $hook->addMenu('viewAllpastes',$lang["viewPastes"], 'last-pastes.html', 'dashboard.png', '4');
  69.  
  70.  
  71. // Lang menu hook
  72. $hook->addMenuLang('en',$lang["english"], '?strLangue=en', 'en.png', '3');
  73. $hook->addMenuLang('fr',$lang["french"], '?strLangue=fr', 'fr.png', '4');
  74. $hook->addMenuLang('ru',$lang["russe"], '?strLangue=ru', 'ru.png', '5');
  75.  
  76. // Usermenu hook
  77. if (!$userId) {
  78.         $hook->addUserMenu('gestcp','','','', '4');
  79. } else {
  80.         if ($startUp->checkAdmin()) {
  81.                 $hook->addUserMenu('admincp','','','', '4');
  82.         }              
  83.         $hook->addUserMenu('usercp','','','', '8');
  84. }
  85.  
  86.  
  87.  
  88. if ($hook->hook_exist('action'))  
  89.                 $hook->execute_hook('action');
  90.  
  91.  
  92. switch (isset($_GET["page"])?$_GET["page"]:""){
  93.  
  94.         case 'admincp':
  95.                 # admin panel
  96.                include 'pages/admincp/admincp.index.php';
  97.         break;
  98.  
  99.         case 'paste':
  100.                 # paste
  101.                include 'pages/paste.php';
  102.                 $smarty->display('paste.html');
  103.         break;    
  104.  
  105.         case 'last-pastes':
  106.                 # laste paste
  107.                include 'pages/last-pastes.php';
  108.                 $smarty->display('last-pastes.html');
  109.         break;
  110.  
  111.         case 'zone-login':
  112.                 # login
  113.                include 'pages/login.php';
  114.                 $smarty->display('login.html');
  115.         break;
  116.  
  117.         case 'registration':
  118.                 # registration
  119.                include 'pages/registration.php';
  120.                 $smarty->display('registration.html');
  121.         break;
  122.  
  123.         case 'account':
  124.                 # account
  125.                include 'pages/account.php';
  126.                 $smarty->display('account.html');
  127.         break;
  128.  
  129.         case 'edit-account':
  130.                 # account
  131.                include 'pages/edit.account.php';
  132.                 $smarty->display('edit.account.html');
  133.         break;        
  134.  
  135.         case 'premium':
  136.                 # account
  137.                include 'pages/premium.php';
  138.                 $smarty->display('premium.html');
  139.         break;
  140.  
  141.         case 'user':
  142.                 # account
  143.                include 'pages/user.php';
  144.                 $smarty->display('user.html');
  145.         break;
  146.  
  147.         case 'logout':
  148.                 # logout
  149.                include 'pages/logout.php';
  150.         break;
  151.  
  152.         case 'error':
  153.                 # error
  154.                $smarty->display('error.html');
  155.         break;
  156.  
  157.         case '':  
  158.         case 'add':
  159.         case 'index':  
  160.                 # index
  161.                include 'pages/main.php';
  162.                 $smarty->display('index.html');
  163.         break;
  164.  
  165.         default:
  166.                 if ($hook->hook_exist('new_page'))  
  167.                                 $hook->execute_hook('new_page');
  168.                 else
  169.                         $startUp->redirect($conf['baseurl'].'/');
  170.         break;
  171. }  
  172.  
  173.