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
<?php function tryFont($name){ $name=$rp."/".$name.".ttf"; return null; } } return $name; } $SCALE=1.25; $WIDTH=530*$SCALE; $HEIGHT=150*$SCALE; $FONT_1=tryFont("OpenSans-Semibold"); $FONT_1_SIZE=14*$SCALE; $FONT_2=tryFont("OpenSans-Light"); $FONT_2_SIZE=24*$SCALE; $FONT_3=tryFont("OpenSans-Semibold"); $FONT_3_SIZE=10*$SCALE; $FONT_4=tryFont("OpenSans-Semibold"); $FONT_4_SIZE=8*$SCALE; $FONT_WATERMARK=tryFont("OpenSans-Light"); $FONT_WATERMARK_SIZE=8*$SCALE; $POSITION_Y_1=24*$SCALE; $POSITION_Y_2=78*$SCALE; $POSITION_Y_3=118*$SCALE; $POSITION_Y_4=146*$SCALE; $POSITION_Y_WATERMARK=146*$SCALE; $POSITION_X_DL=68*$SCALE; $POSITION_X_UL=200*$SCALE; $POSITION_X_PING=330*$SCALE; $POSITION_X_JIT=460*$SCALE; $POSITION_X_ISP=4*$SCALE; $DL_TEXT="DOWNLOAD"; $UL_TEXT="UPLOAD"; $PING_TEXT="PING"; $JIT_TEXT="JITTER"; $MBPS_TEXT="Mbps"; $MS_TEXT="ms"; $WATERMARK_TEXT="7xSVR SPEEDTEST"; $id=$_GET["id"]; include_once('../telemetry/telemetry_settings.php'); $conn=null; $q=null; $ispinfo=null; $dl=null; $ul=null; $ping=null; $jit=null; if($db_type=="mysql"){ $conn = new mysqli($MySql_hostname, $MySql_username, $MySql_password, $MySql_databasename); $q = $conn->prepare("select ispinfo,dl,ul,ping,jitter from speedtest_users where id=?"); $q->bind_param("i",$id); $q->execute(); $q->bind_result($ispinfo,$dl,$ul,$ping,$jit); $q->fetch(); }else if($db_type=="sqlite"){ $ispinfo=$row["ispinfo"]; $dl=$row["dl"]; $ul=$row["ul"]; $ping=$row["ping"]; $jitter=$row["jitter"]; $conn=null; }else if($db_type=="postgresql"){ $conn_host = "host=$PostgreSql_hostname"; $conn_db = "dbname=$PostgreSql_databasename"; $conn_user = "user=$PostgreSql_username"; $conn_password = "password=$PostgreSql_password"; $ispinfo=$row["ispinfo"]; $dl=$row["dl"]; $ul=$row["ul"]; $ping=$row["ping"]; $jitter=$row["jitter"]; $conn=null; if(!($dash===FALSE)){ }else $ispinfo=""; $POSITION_X_WATERMARK=$WIDTH-$watermarkBbox[4]-4*$SCALE; imagefttext($im,$FONT_1_SIZE,0,$POSITION_X_DL-$dlBbox[4]/2,$POSITION_Y_1,$TEXT_COLOR_DL,$FONT_1,$DL_TEXT); imagefttext($im,$FONT_1_SIZE,0,$POSITION_X_UL-$ulBbox[4]/2,$POSITION_Y_1,$TEXT_COLOR_UL,$FONT_1,$UL_TEXT); imagefttext($im,$FONT_1_SIZE,0,$POSITION_X_PING-$pingBbox[4]/2,$POSITION_Y_1,$TEXT_COLOR_PING,$FONT_1,$PING_TEXT); imagefttext($im,$FONT_1_SIZE,0,$POSITION_X_JIT-$jitBbox[4]/2,$POSITION_Y_1,$TEXT_COLOR_JIT,$FONT_1,$JIT_TEXT); imagefttext($im,$FONT_2_SIZE,0,$POSITION_X_DL-$dlMeterBbox[4]/2,$POSITION_Y_2,$TEXT_COLOR_2,$FONT_2,$dl); imagefttext($im,$FONT_2_SIZE,0,$POSITION_X_UL-$ulMeterBbox[4]/2,$POSITION_Y_2,$TEXT_COLOR_2,$FONT_2,$ul); imagefttext($im,$FONT_2_SIZE,0,$POSITION_X_PING-$pingMeterBbox[4]/2,$POSITION_Y_2,$TEXT_COLOR_2,$FONT_2,$ping); imagefttext($im,$FONT_2_SIZE,0,$POSITION_X_JIT-$jitMeterBbox[4]/2,$POSITION_Y_2,$TEXT_COLOR_2,$FONT_2,$jit); imagefttext($im,$FONT_3_SIZE,0,$POSITION_X_DL-$mbpsBbox[4]/2,$POSITION_Y_3,$TEXT_COLOR_3,$FONT_3,$MBPS_TEXT); imagefttext($im,$FONT_3_SIZE,0,$POSITION_X_UL-$mbpsBbox[4]/2,$POSITION_Y_3,$TEXT_COLOR_3,$FONT_3,$MBPS_TEXT); imagefttext($im,$FONT_3_SIZE,0,$POSITION_X_PING-$msBbox[4]/2,$POSITION_Y_3,$TEXT_COLOR_3,$FONT_3,$MS_TEXT); imagefttext($im,$FONT_3_SIZE,0,$POSITION_X_JIT-$msBbox[4]/2,$POSITION_Y_3,$TEXT_COLOR_3,$FONT_3,$MS_TEXT); imagefttext($im,$FONT_WATERMARK_SIZE,0,$POSITION_X_WATERMARK,$POSITION_Y_WATERMARK,$TEXT_COLOR_WATERMARK,$FONT_WATERMARK,$WATERMARK_TEXT); ?>