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

BASE APP TLR - Stikked
From Wali Ahmed, 10 Years ago, written in PHP.
Embed
  1. <?php
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Create The Application
  6. |--------------------------------------------------------------------------
  7. |
  8. | The first thing we will do is create a new Laravel application instance
  9. | which serves as the "glue" for all the components of Laravel, and is
  10. | the IoC container for the system binding all of the various parts.
  11. |
  12. */
  13.  
  14. $app = new Illuminate\Foundation\Application;
  15.  
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Detect The Application Environment
  19. |--------------------------------------------------------------------------
  20. |
  21. | Laravel takes a dead simple approach to your application environments
  22. | so you can just specify a machine name or HTTP host that matches a
  23. | given environment, then we will automatically detect it for you.
  24. |
  25. */
  26.  
  27. $env = $app->detectEnvironment(array(
  28.  
  29.         'local' => array('your-machine-name'),
  30.  
  31. ));
  32.  
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Bind Paths
  36. |--------------------------------------------------------------------------
  37. |
  38. | Here we are binding the paths configured in paths.php to the app. You
  39. | should not be changing these here. If you need to change these you
  40. | may do so within the paths.php file and they will be bound here.
  41. |
  42. */
  43.  
  44. $app->bindInstallPaths(require __DIR__.'/paths.php');
  45.  
  46. /*
  47. |--------------------------------------------------------------------------
  48. | Load The Application
  49. |--------------------------------------------------------------------------
  50. |
  51. | Here we will load the Illuminate application. We'll keep this is in a
  52. | separate location so we can isolate the creation of an application
  53. | from the actual running of the application with a given request.
  54. |
  55. */
  56.  
  57. $framework = $app['path.base'].'/vendor/laravel/framework/src';
  58.  
  59. require $framework.'/Illuminate/Foundation/start.php';
  60.  
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Return The Application
  64. |--------------------------------------------------------------------------
  65. |
  66. | This script returns the application instance. The instance is given to
  67. | the calling script so we can separate the building of the instances
  68. | from the actual running of the application and sending responses.
  69. |
  70. */
  71.  
  72. return $app;