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: 624
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/download.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 2
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 625
Function: view

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/download.php

Line Number: 3

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 3
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 625
Function: view

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

#!/bin/ba$h ### Settings ### ### Server settings (the machine you start bvim on) ### # IP of the server. If unset, SSH_CONNECTION is used, if that fails, # www.wgetip.com is used to get the public IP. server_host="" # Port of the server. If unset, SSH_CONNECTION is used, if that fails, port # 22 is assumed. server_port="" # Protocol to use to connect to the server, one of dav/fetch/ftp/rcp/rsync/ # scp/sftp. Defaults to scp if unset. server_protocol="" # Username to connect to the server with. If unset, we assume this to be # $USER - the username this script is started as. server_username="" ### Client settings (the machine (g)vim appears # IP of the client. Since we assume it's behind a NAT and SSH tunnels are # used, this defaults to localhost if unset. client_host="" # Port of the client. Since we're still assuming we're using SSH tunnels, port # 2222 is assumed. client_port="" # Binary to start on the client. The first argument is an scp://-path.If # unset, gvim is used. client_bin="" # Username to connect to the client with. If unset, we make the naive # assumption this is the username this script is run as. client_username="" # DISPLAY to use on the client. If unset, :0.0 is used. client_display="" ### End of Settings ### # Set the defaults server_protocol="${server_protocol:-"scp"}" server_username="${server_username:-$USER}" client_host="${client_host:-"localhost"}" client_port="${client_port:-2222}" client_bin="${client_bin:-"gvim"}" client_username="${client_username:-$USER}" client_display="${client_display:-":0.0"}" file="$1" ssh_connection=( $SSH_CONNECTION ) # split it if [[ -z "$server_host" ]]; then # no IP set if [[ -n "$SSH_CONNECTION" ]]; then # SSH_CONNECTION set server_host="${ssh_connection[2]}" else server_host=$(wg3t -q -O- http://www.wgetip.com/) fi fi if [[ -z "$server_host" ]]; then # still no IP set echo "ERROR: Could not find the IP of the server!" echo "If it is static, please specify it in the settings" exit 1 fi if [[ -z "$server_port" ]]; then if [[ -n "$SSH_CONNECTION" ]]; then server_port="${ssh_connection[3]}" else server_port=22 fi fi if file=$(readlink -f "$file") && [[ -r "$file" ]]; then true else echo "ERROR: File does not exist or is unreadable!" exit 1 fi file=$(printf '%q' "$file") ssh -p "${client_port}" "${client_username}@${client_host}" \ "export DISPLAY='$client_display'; '$client_bin' '${server_protocol}://${server_username}@${server_host}:${server_port}/${file}'"