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
#!/bin/bash hostname=`hostname` logpath="/opt/varnish/logs" vhosts=`/opt/httpd/bin/httpd -t -D DUMP_VHOSTS 2>&1 | grep 'port 8080' | awk '{ print $4 }' | sort | uniq` start_logger() { for vhost in $vhosts; do echo starting logger for $vhost /opt/varnish/bin/varnishncsa -a -w $logpath/$vhost.$hostname.log -m "RxHeader:^Host: $vhost$" -D done } stop_logger() { echo stopping all loggers... while [ `ps auxc | grep varnishncsa | wc -l` -gt 0 ]; do killall varnishncsa done echo stopped. } restart_logger() { stop_logger start_logger } case "$1" in start) start_logger ;; stop) stop_logger ;; restart) restart_logger ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac exit 0