From 861e3230f0154e6a5942698adedf18d5eb0e0b8a Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Wed, 10 Jan 2018 20:08:33 +0100 Subject: Move imaegs to assets folder --- html/includes/config_pic.php | 24 ++++-------------------- html/includes/functions.php | 18 +++++++++--------- html/includes/header.php | 2 +- html/includes/navbar.php | 2 +- html/includes/weaponstats.php | 4 ++-- 5 files changed, 17 insertions(+), 33 deletions(-) (limited to 'html/includes') diff --git a/html/includes/config_pic.php b/html/includes/config_pic.php index e70aee5..99bc089 100644 --- a/html/includes/config_pic.php +++ b/html/includes/config_pic.php @@ -1,7 +1,6 @@ 'Player's overall accuracy this month was 42.22 % while it was 27.52 % last month!' - $j=0; $pic[$i]['process'][$j]['type'] = 'text'; $pic[$i]['process'][$j]['value'] = '%PLAYERNAME%'; @@ -197,13 +190,6 @@ $pic[$i]['process'][$j]['x_from'] = 75; $pic[$i]['process'][$j]['y_from'] = 91; $j++; - - - - - - - // The next picture $i++; @@ -234,6 +220,4 @@ $pic[$i]['process'][$j]['x_from'] = 9; $pic[$i]['process'][$j]['y_from'] = 43; $j++; - - -?> \ No newline at end of file +?> diff --git a/html/includes/functions.php b/html/includes/functions.php index 005a3c1..fb24308 100755 --- a/html/includes/functions.php +++ b/html/includes/functions.php @@ -271,9 +271,9 @@ function FlagImage($country, $mini = true) { $width = ($mini) ? 20 : 20; $height = ($mini) ? 14 : 14; if (empty($country)) return(''); - if (!file_exists("images/flags/$country.png")) return(''); //18*12 + if (!file_exists("assets/images/flags/$country.png")) return(''); //18*12 $countryname = (isset($a_countries[$country])) ? $a_countries[$country] : ''; - return(''. $country .''); + return(''. $country .''); } function RankMovement($diff) { @@ -291,11 +291,11 @@ function RankMovement($diff) { $chtext = "lost ". get_dp($diff * -1) ." ranking points"; } $moveimg = ''; - if (file_exists("images/ranks/$chimg.png")) { - $infos = getimagesize("images/ranks/$chimg.png"); + if (file_exists("assets/images/ranks/$chimg.png")) { + $infos = getimagesize("assets/images/ranks/$chimg.png"); $width = $infos[0]; $height = $infos[1]; - $moveimg = ''; + $moveimg = ''; } return($moveimg); } @@ -343,10 +343,10 @@ function RankImageOrText($pid, $name, $rank, $gid, $gamename, $mini = true, $for } $ranktext = $rank.ordinal($rank); - if (file_exists("images/ranks/$rank.png")) { + if (file_exists("assets/images/ranks/$rank.png")) { $width = ($mini) ? 15 : 15; $height = ($mini) ? 12 : 12; - $img = ''. $rank .''; + $img = ''. $rank .''; } else { $img = ''; } @@ -601,14 +601,14 @@ function getMapImageName($mapname) { $mapname = str_replace($mapVersions, "", $mapname); } - $mappic = strtolower("images/maps/" . $mapname . "_large.jpg"); + $mappic = strtolower("assets/images/maps/" . $mapname . "_large.jpg"); if(file_exists(dirname(dirname(__FILE__)) . "/" . $mappic)) { return $mappic; } } - return "images/maps/blank_large.jpg"; + return "assets/images/maps/blank_large.jpg"; } ?> diff --git a/html/includes/header.php b/html/includes/header.php index 92e0dd1..1759a8b 100755 --- a/html/includes/header.php +++ b/html/includes/header.php @@ -33,7 +33,7 @@ echo ' Unreal Tournament Stats - Powered by UTStats - + diff --git a/html/includes/navbar.php b/html/includes/navbar.php index 0e25a53..ef856db 100755 --- a/html/includes/navbar.php +++ b/html/includes/navbar.php @@ -2,7 +2,7 @@