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 Scribby Bee, 12 Years ago, written in Python.
Embed
  1. from subprocess import Popen
  2. from ConfigParser import RawConfigParser as ConfParser
  3. from optparse import OptionParser
  4. from collections import deque
  5. import sys
  6. import os,time
  7. import subprocess
  8. import signal
  9. import imp
  10. import ConfigParser
  11. import datetime
  12. import codecs
  13. x = "bot.py"
  14.  
  15. try:
  16.    config = ConfigParser.RawConfigParser()
  17.    config.readfp(codecs.open("config.ini", "r", "utf8"))
  18. except IOError as config:
  19.    sys.exit()
  20.  
  21. pid = os.getpid() + 2
  22. if __name__ == "__main__":
  23.         if len(sys.argv) == 2:
  24.                 if 'start' == sys.argv[1]:
  25.                         print("Starting daemon... - Pid: %s" % pid)
  26.                         config.set('debug', 'debug', 'no')
  27.                         if os.fork()==0:
  28.                                 os.setsid()
  29.                                 sys.stdout=open("/dev/null", 'w')
  30.                                 sys.stdin=open("/dev/null", 'r')
  31.                                 ret = subprocess.call([sys.executable, x])
  32.                                 sys.exit(2)
  33.                 elif 'stop' == sys.argv[1]:
  34.                         os.system("killall -9 /usr/bin/python bot.py")
  35.                 elif 'debug' == sys.argv[1]:
  36.                         config.set('debug', 'debug', 'yes')
  37.                         print("Starting daemon... - Pid: %s" % pid)
  38.                         config.set('debug', 'debug', 'no')
  39.                         if os.fork()==0:
  40.                                 os.setsid()
  41.                                 sys.stdout=open("/dev/null", 'w')
  42.                                 sys.stdin=open("/dev/null", 'r')
  43.                                 ret = subprocess.call([sys.executable, x])
  44.                                 sys.exit(2)
  45.                 else:
  46.                         print "Unknown command"
  47.                         sys.exit(2)
  48.                 sys.exit(0)
  49.         else:
  50.                 print "usage: %s start|stop|debug" % sys.argv[0]
  51.                 sys.exit(2)