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

Re: Re: Re: HAProxy configuration.txt - Stikked
From Ivory Shama, 5 Years ago, written in PHP.
This paste is a reply to Re: Re: HAProxy configuration.txt from Gruff Baboon - view diff
Embed
  1. <?php
  2. /**
  3.  * @package    Joomla.Site
  4.  *
  5.  * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
  6.  * @license    GNU General Public License version 2 or later; see LICENSE.txt
  7.  */
  8.  
  9. /**
  10.  * Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
  11.  */
  12. define('JOOMLA_MINIMUM_PHP', '5.3.10');
  13.  
  14. if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
  15. {
  16.         die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
  17. }
  18.  
  19. // Saves the start time and memory usage.
  20. $startTime = microtime(1);
  21. $startMem  = memory_get_usage();
  22.  
  23. /**
  24.  * Constant that is checked in included files to prevent direct access.
  25.  * define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
  26.  */
  27. define('_JEXEC', 1);
  28.  
  29. if (file_exists(__DIR__ . '/defines.php'))
  30. {
  31.         include_once __DIR__ . '/defines.php';
  32. }
  33.  
  34. if (!defined('_JDEFINES'))
  35. {
  36.         define('JPATH_BASE', __DIR__);
  37.         require_once JPATH_BASE . '/includes/defines.php';
  38. }
  39.  
  40. require_once JPATH_BASE . '/includes/framework.php';
  41.  
  42. // Set profiler start time and memory usage and mark afterLoad in the profiler.
  43. JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
  44.  
  45. // Instantiate the application.
  46. $app = JFactory::getApplication('site');
  47.  
  48. // Execute the application.
  49. $app->execute();
  50.