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/functions.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'html/includes/functions.php') 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"; } ?> -- cgit