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 Sloppy Peccary, 11 Years ago, written in JavaScript.
Embed
  1. var singleElimination = {
  2.   "teams": [              // Matchups
  3.     ["Team 1", "Team 2"], // First match
  4.     ["Team 3", "Team 4"]  // Second match
  5.   ],
  6.   "results": [            // List of brackets (single elimination, so only one bracket)
  7.     [                     // List of rounds in bracket
  8.       [                   // First round in this bracket
  9.         [1, 2],           // Team 1 vs Team 2
  10.         [3, 4]            // Team 3 vs Team 4
  11.       ],
  12.       [                   // Second (final) round in single elimination bracket
  13.         [5, 6],           // Match for first place
  14.         [7, 8]            // Match for 3rd place
  15.       ]
  16.     ]
  17.   ]
  18. }
  19.  
  20. var doubleElimination = {
  21.   "teams": [
  22.     ["Team 1", "Team 2"],
  23.     ["Team 3", "Team 4"]
  24.   ],
  25.   "results": [            // List of brackets (three since this is double elimination)
  26.     [                     // Winner bracket
  27.       [[1, 2], [3, 4]],   // First round and results
  28.       [[5, 6]]            // Second round
  29.     ],
  30.     [                     // Loser bracket
  31.       [[7, 8]],           // First round
  32.       [[9, 10]]           // Second round
  33.     ],
  34.     [                     // Final "bracket"
  35.       [                   // First round
  36.         [11, 12],         // Match to determine 1st and 2nd
  37.         [13, 14]          // Match to determine 3rd and 4th
  38.       ],
  39.       [                   // Second round
  40.         [15, 16]          // LB winner won first round (11-12) so need a final decisive round
  41.       ]
  42.     ]
  43.   ]
  44. }