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

jquery test - Stikked
From Sole Elephant, 13 Years ago, written in jQuery 1.3.
Embed
  1. jQuery(document).ready(function() {
  2.  
  3.         function prepareNavigation() {
  4.                 jQuery('.menuMain .l1 a').click(function () {
  5.  
  6.                         // catch clicks outside of the navigation to collaps the flyout navigation
  7.                         jQuery(document).click(function() {
  8.                                 jQuery('.menuMain .l1 ul').hide();
  9.                                 jQuery('.menuMain .open').removeClass('open');
  10.                                 jQuery('.menuMain .current').removeClass('current');
  11.                         });
  12.  
  13.                         // hide the visible navigation
  14.                         jQuery('.menuMain .l1 ul').hide();
  15.  
  16.                         // remove the hightlighting of a single level-1 entry on each
  17.                         // click so that the new level-1 element is the only one hightlighted
  18.                         jQuery('.menuMain .current').removeClass('current');
  19.                         jQuery(this).parent().children('a').addClass('current');
  20.  
  21.                         // now show the level-2 incl. all sub-levels
  22.                         jQuery(this).parent().find('ul').show();
  23.                         jQuery(this).parent().find('.l2 ul').show();
  24.  
  25.                         // mark the whole navigation as open by adding a class
  26.                         jQuery(this).parent().parent().addClass('open');
  27.  
  28.                         // prevent the real click to be executed if we are on level-1
  29.                         if (jQuery(this).parent().hasClass('l1')) {
  30.                                 return false;
  31.                         } else {
  32.                                 return true;
  33.                         }
  34.                 });
  35.         }
  36.  
  37.  
  38.         if(jQuery('#menuMain ul').children().length == 0) {
  39.                 jQuery('#menuMain').load('http://namics987.nezzoalpha.ch/ #menuMain>ul', prepareNavigation);
  40.         } else {
  41.                 prepareNavigation();
  42.         }
  43.  
  44.  
  45.         if(jQuery('#menuFooter ul').children().length == 0) {
  46.                 jQuery('#menuFooter').load('http://namics987.nezzoalpha.ch/ #menuFooter>ul');
  47.         }
  48.  
  49.  
  50.         // replace the first entry of the meta navigation with pure text (unlink it) since it would
  51.         // lead to the first sub-page and not to the page mentioned as link text in every case
  52.         jQuery('.statusRow a:first').replaceWith(function() {
  53.                 return jQuery(this).contents();
  54.         });
  55. });
  56.