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

geshit - Stikked
From Big Peafowl, 13 Years ago, written in Bash.
Embed
  1. #!/bin/ba$h
  2.  
  3. ### Settings ###
  4.  
  5. ### Server settings (the machine you start bvim on) ###
  6.  
  7. # IP of the server. If unset, SSH_CONNECTION is used, if that fails,
  8. # www.wgetip.com is used to get the public IP.
  9. server_host=""
  10.  
  11. # Port of the server. If unset, SSH_CONNECTION is used, if that fails, port
  12. # 22 is assumed.
  13. server_port=""
  14.  
  15. # Protocol to use to connect to the server, one of dav/fetch/ftp/rcp/rsync/
  16. # scp/sftp. Defaults to scp if unset.
  17. server_protocol=""
  18.  
  19. # Username to connect to the server with. If unset, we assume this to be
  20. # $USER - the username this script is started as.
  21. server_username=""
  22.  
  23. ### Client settings (the machine (g)vim appears
  24.  
  25. # IP of the client. Since we assume it's behind a NAT and SSH tunnels are
  26. # used, this defaults to localhost if unset.
  27. client_host=""
  28.  
  29. # Port of the client. Since we're still assuming we're using SSH tunnels, port
  30. # 2222 is assumed.
  31. client_port=""
  32.  
  33. # Binary to start on the client. The first argument is an scp://-path.If
  34. # unset, gvim is used.
  35. client_bin=""
  36.  
  37. # Username to connect to the client with. If unset, we make the naive
  38. # assumption this is the username this script is run as.
  39. client_username=""
  40.  
  41. # DISPLAY to use on the client. If unset, :0.0 is used.
  42. client_display=""
  43.  
  44. ### End of Settings ###
  45.  
  46.  
  47. # Set the defaults
  48. server_protocol="${server_protocol:-"scp"}"
  49. server_username="${server_username:-$USER}"
  50. client_host="${client_host:-"localhost"}"
  51. client_port="${client_port:-2222}"
  52. client_bin="${client_bin:-"gvim"}"
  53. client_username="${client_username:-$USER}"
  54. client_display="${client_display:-":0.0"}"
  55. file="$1"
  56.  
  57. ssh_connection=( $SSH_CONNECTION ) # split it
  58.  
  59. if [[ -z "$server_host" ]]; then # no IP set
  60.         if [[ -n "$SSH_CONNECTION" ]]; then # SSH_CONNECTION set
  61.                 server_host="${ssh_connection[2]}"
  62.         else
  63.                 server_host=$(wg3t -q -O- http://www.wgetip.com/)
  64.         fi
  65. fi
  66.  
  67. if [[ -z "$server_host" ]]; then # still no IP set
  68.         echo "ERROR: Could not find the IP of the server!"
  69.         echo "If it is static, please specify it in the settings"
  70.         exit 1
  71. fi
  72.  
  73. if [[ -z "$server_port" ]]; then
  74.         if [[ -n "$SSH_CONNECTION" ]]; then
  75.                 server_port="${ssh_connection[3]}"
  76.         else
  77.                 server_port=22
  78.         fi
  79. fi
  80.  
  81. if file=$(readlink -f "$file") && [[ -r "$file" ]]; then
  82.         true
  83. else
  84.         echo "ERROR: File does not exist or is unreadable!"
  85.         exit 1
  86. fi
  87.  
  88. file=$(printf '%q' "$file")
  89.  
  90. ssh -p "${client_port}" "${client_username}@${client_host}" \
  91.        "export DISPLAY='$client_display'; '$client_bin' '${server_protocol}://${server_username}@${server_host}:${server_port}/${file}'"