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 Trivial Meerkat, 12 Years ago, written in PHP.
Embed
  1. <?php
  2.  
  3. /*
  4. |---------------------------------------------------------------
  5. | PHP ERROR REPORTING LEVEL
  6. |---------------------------------------------------------------
  7. |
  8. | By default CI runs with error reporting set to ALL.  For security
  9. | reasons you are encouraged to change this when your site goes live.
  10. | For more info visit:  http://www.php.net/error_reporting
  11. |
  12. */
  13.         error_reporting(E_ERROR);
  14.  
  15. /*
  16. |---------------------------------------------------------------
  17. | SYSTEM FOLDER NAME
  18. |---------------------------------------------------------------
  19. |
  20. | This variable must contain the name of your "system" folder.
  21. | Include the path if the folder is not in the same  directory
  22. | as this file.
  23. |
  24. | NO TRAILING SLASH!
  25. |
  26. */
  27.         $system_folder = "system";
  28.  
  29. /*
  30. |---------------------------------------------------------------
  31. | APPLICATION FOLDER NAME
  32. |---------------------------------------------------------------
  33. |
  34. | If you want this front controller to use a different "application"
  35. | folder then the default one you can set its name here. The folder
  36. | can also be renamed or relocated anywhere on your server.
  37. | For more info please see the user guide:
  38. | http://www.codeigniter.com/user_guide/general/managing_apps.html
  39. |
  40. |
  41. | NO TRAILING SLASH!
  42. |
  43. */
  44.         $application_folder = "application";
  45.  
  46.  
  47. /*
  48. |===============================================================
  49. | END OF USER CONFIGURABLE SETTINGS
  50. |===============================================================
  51. */
  52.  
  53.  
  54. /*
  55. |---------------------------------------------------------------
  56. | SET THE SERVER PATH
  57. |---------------------------------------------------------------
  58. |
  59. | Let's attempt to determine the full-server path to the "system"
  60. | folder in order to reduce the possibility of path problems.
  61. | Note: We only attempt this if the user hasn't specified a
  62. | full server path.
  63. |
  64. */
  65. if (strpos($system_folder, '/') === FALSE)
  66. {
  67.         if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
  68.         {
  69.                 $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
  70.         }
  71. }
  72. else
  73. {
  74.         // Swap directory separators to Unix style for consistency
  75.         $system_folder = str_replace("\\", "/", $system_folder);
  76. }
  77.  
  78. /*
  79. |---------------------------------------------------------------
  80. | DEFINE APPLICATION CONSTANTS
  81. |---------------------------------------------------------------
  82. |
  83. | EXT           - The file extension.  Typically ".php"
  84. | FCPATH        - The full server path to THIS file
  85. | SELF          - The name of THIS file (typically "index.php)
  86. | BASEPATH      - The full server path to the "system" folder
  87. | APPPATH       - The full server path to the "application" folder
  88. |
  89. */
  90. define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
  91. define('FCPATH', __FILE__);
  92. define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
  93. define('BASEPATH', $system_folder.'/');
  94.  
  95. if (is_dir($application_folder))
  96. {
  97.         define('APPPATH', $application_folder.'/');
  98. }
  99. else
  100. {
  101.         if ($application_folder == '')
  102.         {
  103.                 $application_folder = 'application';
  104.         }
  105.  
  106.         define('APPPATH', BASEPATH.$application_folder.'/');
  107. }
  108.  
  109. /*