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

js - Stikked
From boii, 5 Years ago, written in JavaScript.
Embed
  1.   <script>
  2.  
  3.   $(document).ready(function(){
  4.     function stream()
  5.     {
  6.       var post_code = $('#textEditor').val();
  7.       var post_id = $('#Streamid').val();
  8.       if (post_code != ''){
  9.         $.ajax({
  10.           url: "post-code.php",
  11.           method: "POST",
  12.           data: {postCode: post_code, postId: post_id},
  13.           dataType: "text",
  14.           success: function(data){
  15.             if(data != ''){
  16.               $('#Streamid').val(data);
  17.             }
  18.             $('#autoStream').text("Code is streaming");
  19.               setInterval(function(){
  20.                 $('#autoStream').text('');
  21.               }, 5000);
  22.           }
  23.         });
  24.       }
  25.     }
  26.  
  27.       setInterval(function(){
  28.         stream();
  29.       }, 7000);
  30. });
  31.  
  32.     </script>
  33.