From 93f886b56502c39be1325b4d30c2cd1b5c6f2462 Mon Sep 17 00:00:00 2001 From: Jimako Date: Fri, 1 Dec 2023 18:34:32 +0100 Subject: [PATCH] #1 removed not needed file userbar.php if this is needed, let me know, but it looks like forgotten file --- userbar.php | 72 ----------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 userbar.php diff --git a/userbar.php b/userbar.php deleted file mode 100644 index 65ce7a4..0000000 --- a/userbar.php +++ /dev/null @@ -1,72 +0,0 @@ -= 24) { - $hour - 24; - } - $time = date("d.m ".$hour.":i"); - - $im = @imagecreatefromgif("lgsl_files/other/banner_thin.gif"); // create background - - $on_id = imagecreatefromgif($misc['icon_status']); // create status icon - list($width, $height) = getimagesize($misc['icon_status']); - if($width > 16){ - $on_id = resizeImage(16, 16, $misc['icon_status']); // resize to 16x16 if it needed - } - - $game_id = imagecreatefromgif($misc['icon_game']); // create game icon - list($width, $height) = getimagesize($misc['icon_game']); - if($width > 16){ - $game_id = resizeImage(16, 16, $misc['icon_game']); // resize to 16x16 if it needed - } - - $color_pz = imagecolorallocate($im, 128, 0, 0); - $color_ip = imagecolorallocate($im, 255, 0, 0); - $color_map = imagecolorallocate($im, 0, 0, 0); - $color_pl = imagecolorallocate($im, 0, 128, 0); - $color_time = imagecolorallocate($im, 66, 66, 66); - - imagecopy($im, $on_id, 8, 2, 0, 0, 16, 16); // place status icon - imagecopy($im, $game_id, 26, 2, 0, 0, 16, 16); // place game icon - - //reported PHP bug https://bugs.php.net/bug.php?id=75656 and used their temp fix - //putenv('GDFONTPATH=' . realpath('.')); - $FontName = "lgsl_files/other/verdana.ttf"; - imagettftext($im, 7, 0, 44, 17, $color_map, realpath($FontName), /* map */ $lgsl_config['text']['map'].": ".$server['s']['map']); - imagettftext($im, 7, 0, 44, 9, $color_ip, realpath($FontName), /* port */ $server['b']['ip'].":".$server['b']['c_port']); - imagettftext($im, 8, 0, 150, 10, $color_pz, realpath($FontName), /* name */ $server['s']['name']); - imagettftext($im, 7, 0, 150, 18, $color_pl, realpath($FontName), /* players */ $lgsl_config['text']['plr'].": ".$server['s']['players']."/".$server['s']['playersmax']); - imagettftext($im, 5, 0, 238, 18, $color_time, realpath($FontName), /* updated */ "upd: ".$time." | ".$server['s']['game']); - - imagegif($im); - imagedestroy($im); -//------------------------------------------------------------------------------------------------------------+ -?> \ No newline at end of file