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/pages/admin/acelog.php | 14 +++++------ html/pages/admin/aclog.php | 4 +-- html/pages/admin/editgamestype.php | 46 +++++++++++++++++------------------ html/pages/admin/editweapons.php | 8 +++--- html/pages/admin/main.php | 4 +-- html/pages/admin/utdclog.php | 25 ++++++++++--------- html/pages/graph_mbreakdown.php | 10 ++++---- html/pages/graph_pbreakdown.php | 8 +++--- html/pages/home.php | 4 +-- html/pages/maps.php | 2 +- html/pages/match_info_killsmatrix.php | 8 +++--- html/pages/match_info_other.php | 4 +-- html/pages/players.php | 2 +- html/pages/players_info.php | 4 +-- html/pages/players_search.php | 10 ++++---- html/pages/report/bbcode.php | 4 +-- html/pages/report/clanbase.php | 4 +-- html/pages/servers.php | 2 +- html/pages/servers_query.php | 8 +++--- 19 files changed, 86 insertions(+), 85 deletions(-) (limited to 'html/pages') diff --git a/html/pages/admin/acelog.php b/html/pages/admin/acelog.php index a9c80c0..31f98e8 100644 --- a/html/pages/admin/acelog.php +++ b/html/pages/admin/acelog.php @@ -12,7 +12,7 @@ function InvertSort($curr_field, $order, $sort) { function SortPic($curr_field, $order, $sort) { if ($curr_field != $order) return; - $fname = 'images/s_'. strtolower($sort) .'.png'; + $fname = 'assets/images/s_'. strtolower($sort) .'.png'; if (!file_exists($fname)) return; return(' '); } @@ -147,7 +147,7 @@ if (empty($filename)) { $fp = my_fopen('logs/ace/'.$filename, 'rb', $compression = NULL); if (!$fp) die("Error opening file"); - + while (($line = my_fgets($fp, 5000, $compression)) !== FALSE) { $info = preg_split('/\s/', $line, 3); $info[2] = preg_replace('/[\r\n]+/', '', $info[2]); @@ -242,7 +242,7 @@ if (empty($filename)) { $d_size = file_size_info(filesize('logs/ace/'. $log)); echo $d_size['size'] .' '. $d_size['type']; echo ''; - echo 'Delete'; + echo 'Delete'; echo ''; } } @@ -256,7 +256,7 @@ if (!empty($filename)) { '.$filename.' '; - echo 'Delete'; + echo 'Delete'; echo ' '; if (substr($filename, strlen($filename) - strlen($import_ace_screenshot_extension)) == $import_ace_screenshot_extension @@ -269,10 +269,10 @@ if (!empty($filename)) { else { $fp = my_fopen('logs/ace/'.$filename, 'rb', $compression = NULL); if (!$fp) die("Error opening file"); - + $i = 0; echo ''; - + while (($line = my_fgets($fp, 5000, $compression)) !== FALSE) { /* $i++; @@ -299,7 +299,7 @@ if (!empty($filename)) { echo ' '.$Screenshot.' '; - echo 'Delete'; + echo 'Delete'; echo ' '; diff --git a/html/pages/admin/aclog.php b/html/pages/admin/aclog.php index 2d78b77..d057c9f 100644 --- a/html/pages/admin/aclog.php +++ b/html/pages/admin/aclog.php @@ -70,7 +70,7 @@ if (empty($filename)) { echo $d_size['size'] .' '. $d_size['type']; echo ''; - echo 'Delete'; + echo 'Delete'; echo ''; } } @@ -83,7 +83,7 @@ if (!empty($filename)) { '.$filename.' '; - echo 'Delete'; + echo 'Delete'; echo ' '; diff --git a/html/pages/admin/editgamestype.php b/html/pages/admin/editgamestype.php index 26bff62..0b8ac30 100644 --- a/html/pages/admin/editgamestype.php +++ b/html/pages/admin/editgamestype.php @@ -1,6 +1,6 @@ ''); @@ -27,15 +27,15 @@ if (isset($_REQUEST['submit'])) { mutator = '". my_addslashes($_REQUEST['mutator']) ."', gid = '". my_addslashes($_REQUEST['gid']) ."' ") or die(mysql_error()); - + if (isset($_REQUEST['update'])) { echo'
- - - + + + '; $where = 'WHERE 1'; @@ -49,27 +49,27 @@ if (isset($_REQUEST['submit'])) { if ($_REQUEST['mutator'] != '*') { $where .= " AND m.mutators LIKE '%".my_addslashes($_REQUEST['mutator'])."%'"; } - + mysql_query("UPDATE uts_player p, uts_match m SET p.gid = '". my_addslashes($_REQUEST['gid']) ."' $where AND m.id = p.matchid;") or die(mysql_error()); echo' - - - - + + + + '; mysql_query("UPDATE uts_match m SET m.gid = '". my_addslashes($_REQUEST['gid']) ."' $where;") or die(mysql_error()); echo' - - - - - + + + + + '; - + if ($_REQUEST['gamename'] != '*') { $gids[] = $_REQUEST['gid']; $where = "WHERE gid IN (".implode(',', $gids).")"; @@ -77,7 +77,7 @@ if (isset($_REQUEST['submit'])) { $where = 'WHERE 1'; } mysql_query("DELETE FROM uts_rank $where;") or die(mysql_error()); - + $sql_nrank = "SELECT SUM(p.gametime) AS time, p.pid, p.gid, SUM(p.rank) AS rank, COUNT(p.matchid) AS matches FROM uts_player p, uts_pinfo pi $where AND pi.id = p.pid AND pi.banned <> 'Y' GROUP BY p.gid, p.pid"; $q_nrank = mysql_query($sql_nrank) or die(mysql_error()); $num_ranks = 0; @@ -138,7 +138,7 @@ while ($r_gamestype = mysql_fetch_array($q_gamestype)) { echo ''; echo ''; echo ''; @@ -168,7 +168,7 @@ echo ''; echo ''; echo ''; echo '
Updating...
Updating Player RecordsDone (updated '.mysql_affected_rows().' records)
Updating MatchesDone (updated '.mysql_affected_rows().' matches)
Re-Calcuating Rankings '.htmlentities($gamedisplaynames[$r_gamestype['gid']]).''; echo ''; - echo 'Delete'; + echo 'Delete'; echo ''; echo '
If server ='; echo ''; echo '
==> assume gametype:'; - + echo 'Go Back To Admin Page
'; - + ?> diff --git a/html/pages/admin/editweapons.php b/html/pages/admin/editweapons.php index dec6b64..e7b3251 100644 --- a/html/pages/admin/editweapons.php +++ b/html/pages/admin/editweapons.php @@ -1,6 +1,6 @@ $bla) { mysql_query(" UPDATE uts_weapons @@ -17,7 +17,7 @@ echo'
- + @@ -39,7 +39,7 @@ while ($r_weapons = mysql_fetch_array($q_weapons)) { echo '
NameShould exist in images/weapons/
Leave empty to display the weapon name').'>Image
Should exist in assets/images/weapons/
Leave empty to display the weapon name').'>Image
Order Hide
'; echo ''; echo ''; - if (!empty($r_weapons['image'])) echo ' '; + if (!empty($r_weapons['image'])) echo ' '; echo'
'; echo ''; echo ''; @@ -54,5 +54,5 @@ echo' Go Back To Admin Page '; - + ?> diff --git a/html/pages/admin/main.php b/html/pages/admin/main.php index e2c191e..697909a 100644 --- a/html/pages/admin/main.php +++ b/html/pages/admin/main.php @@ -51,14 +51,14 @@ foreach($tables as $table) { echo' '; if (substr($table['name'], 0, 9) == 'uts_temp_' and strlen($table['name']) == 17) { - echo 'Delete'.$table['name'].''; + echo 'Delete'.$table['name'].''; } else { echo $table['name']; } echo ' '.nf($table['rows']).' rows '.$d_size['size'] .' '. $d_size['type'].' - '. $title .' + '. $title .' '; } diff --git a/html/pages/admin/utdclog.php b/html/pages/admin/utdclog.php index b81f8d4..53ef2cd 100644 --- a/html/pages/admin/utdclog.php +++ b/html/pages/admin/utdclog.php @@ -61,9 +61,9 @@ if (empty($filename)) { $d_size = file_size_info(filesize('logs/utdc/'. $log)); echo $d_size['size'] .' '. $d_size['type']; echo ''; - echo 'Delete'; + echo 'Delete'; echo ''; - } + } } } @@ -74,7 +74,7 @@ if (!empty($filename)) { '.$filename.' '; - echo 'Delete'; + echo 'Delete'; echo ' '; if (substr($filename, -4) == '.enc') { @@ -85,10 +85,10 @@ if (!empty($filename)) { else { $fp = my_fopen('logs/utdc/'.$filename, 'rb', $compression = NULL); if (!$fp) die("Error opening file"); - + $i = 0; echo ''; - + while (($line = my_fgets($fp, 5000, $compression)) !== FALSE) { /* $i++; @@ -113,15 +113,16 @@ if (!empty($filename)) { if ($filename == '.htaccess' or $filename == 'index.htm') continue; if ((substr($file, -4) == '.enc') and ((substr($filename, strlen($filename)-(23 + $extra), 19) == substr($file, strlen($file)-23, 19)) or ((substr($filename, strlen($filename)-(23 + $extra), 17) == substr($file, strlen($file)-23, 17)) and (abs(intval(substr($file, strlen($file)- 6, 2)) - intval(substr($filename, strlen($filename)-(6 + $extra), 17))) <=3)))) { - echo ' + echo ' '.$file.' - '; - echo 'Delete'; - echo ' - '; - + + + Delete + + + '; echo ''; - echo ''; + echo ''; echo ''; } } diff --git a/html/pages/graph_mbreakdown.php b/html/pages/graph_mbreakdown.php index 172b419..677e0c1 100755 --- a/html/pages/graph_mbreakdown.php +++ b/html/pages/graph_mbreakdown.php @@ -104,7 +104,7 @@ echo ' for ($i = 0; $i <= 23; $i++) { if (!isset($gb_hour[$i])) $gb_hour[$i] = 0; $title = $gb_hour[$i] .' ('. get_dp($gb_hour[$i] / $hour_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; } echo ''; @@ -113,7 +113,7 @@ echo ''; for ($i = 0; $i <= 6; $i++) { if (!isset($gb_day[$i])) $gb_day[$i] = 0; $title = $gb_day[$i] .' ('. get_dp($gb_day[$i] / $day_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; } echo ''; @@ -122,7 +122,7 @@ echo ''; for ($i = 1; $i <= 12; $i++) { if (!isset($gb_month[$i])) $gb_month[$i] = 0; $title = $gb_month[$i] .' ('. get_dp($gb_month[$i] / $month_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; } echo ''; @@ -216,14 +216,14 @@ for ($i = 0; $i < $max_cntry; $i++) { if (!isset($gb_hour[$i])) $gb_hour[$i] = 0; $country = explode(";",$gb_country[$i]); $title = $a_countries[$country[0]] .': ' . $country[1] . ' ('. get_dp($country[1] / $country_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; $x += $country[1]; } if($others){ $countries_left = $country_sum - $x; $title = 'Other Countries: ' . $countries_left . ' ('. get_dp($countries_left / $country_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; }; echo ''; diff --git a/html/pages/graph_pbreakdown.php b/html/pages/graph_pbreakdown.php index 8395b30..b287865 100644 --- a/html/pages/graph_pbreakdown.php +++ b/html/pages/graph_pbreakdown.php @@ -59,7 +59,7 @@ echo' for ($i = 0; $i <= 23; $i++) { if (!isset($gb_hour[$i])) $gb_hour[$i] = 0; $title = $gb_hour[$i] .' ('. get_dp($gb_hour[$i] / $hour_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; } echo ''; @@ -68,7 +68,7 @@ echo ''; for ($i = 0; $i <= 6; $i++) { if (!isset($gb_day[$i])) $gb_day[$i] = 0; $title = $gb_day[$i] .' ('. get_dp($gb_day[$i] / $day_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; } echo ''; @@ -77,7 +77,7 @@ echo ''; for ($i = 1; $i <= 12; $i++) { if (!isset($gb_month[$i])) $gb_month[$i] = 0; $title = $gb_month[$i] .' ('. get_dp($gb_month[$i] / $month_sum * 100) .' %)'; - echo ''. $title .''; + echo ''. $title .''; } echo ''; echo' @@ -134,4 +134,4 @@ echo'
'; -?> \ No newline at end of file +?> diff --git a/html/pages/home.php b/html/pages/home.php index a61d7f9..d3e0fa0 100755 --- a/html/pages/home.php +++ b/html/pages/home.php @@ -16,8 +16,8 @@ $moreThan2Teams = ($lastMapScore2!=0); $mappic = getMapImageName($lastMapFileName); // quick hack to show empty one at front page if no map -if (!file_exists($mappic) || $mappic == "images/maps/blank_large.jpg") { - $mappic = "images/maps/emptyfront.jpg"; +if (!file_exists($mappic) || $mappic == "assets/images/maps/blank_large.jpg") { + $mappic = "assets/images/maps/emptyfront.jpg"; } echo ' diff --git a/html/pages/maps.php b/html/pages/maps.php index 1959085..bd1106e 100644 --- a/html/pages/maps.php +++ b/html/pages/maps.php @@ -7,7 +7,7 @@ function InvertSort($curr_field, $filter, $sort) { function SortPic($curr_field, $filter, $sort) { if ($curr_field != $filter) return; - $fname = 'images/s_'. strtolower($sort) .'.png'; + $fname = 'assets/images/s_'. strtolower($sort) .'.png'; if (!file_exists($fname)) return; return(' '); } diff --git a/html/pages/match_info_killsmatrix.php b/html/pages/match_info_killsmatrix.php index 0ace5ac..91a9087 100644 --- a/html/pages/match_info_killsmatrix.php +++ b/html/pages/match_info_killsmatrix.php @@ -63,7 +63,7 @@ echo ' Kills Match Up -
+
'; @@ -90,7 +90,7 @@ if ($teamgame) { case 3: $teamcolor = 'goldteamb'; break; } echo ' - '; + '; } echo ''; } @@ -102,7 +102,7 @@ foreach($players as $kid => $killer) { if ($killer['banned'] == 'Y') continue; $i++; echo ''; - if ($first) echo' '; + if ($first) echo' '; echo ''; echo ''. FormatPlayerName($killer['country'], $killer['pid'], $killer['name'], $gid, $gamename) .' '; @@ -113,7 +113,7 @@ foreach($players as $kid => $killer) { case 2: $teamcolor = 'greenteamb'; break; case 3: $teamcolor = 'goldteamb'; break; } - echo ''; + echo ''; } foreach($players as $vid => $victim) { $class = ($kid == $vid) ? 'suicide' : 'killCell'; diff --git a/html/pages/match_info_other.php b/html/pages/match_info_other.php index 6547637..63e840e 100755 --- a/html/pages/match_info_other.php +++ b/html/pages/match_info_other.php @@ -11,7 +11,7 @@ echo '
Special Events - + First Blood Multis Sprees @@ -108,7 +108,7 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta Pickups Summary - + Pads Armour Keg diff --git a/html/pages/players.php b/html/pages/players.php index d888855..b038405 100755 --- a/html/pages/players.php +++ b/html/pages/players.php @@ -7,7 +7,7 @@ function InvertSort($curr_field, $filter, $sort) { function SortPic($curr_field, $filter, $sort) { if ($curr_field != $filter) return; - $fname = 'images/s_'. strtolower($sort) .'.png'; + $fname = 'assets/images/s_'. strtolower($sort) .'.png'; if (!file_exists($fname)) return; return(' '); } diff --git a/html/pages/players_info.php b/html/pages/players_info.php index a23f4fd..1ddb631 100755 --- a/html/pages/players_info.php +++ b/html/pages/players_info.php @@ -87,9 +87,9 @@ echo ' Career Summary for '.htmlentities($playername).' '; if (PlayerOnWatchlist($pid)) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } echo ' diff --git a/html/pages/players_search.php b/html/pages/players_search.php index 39ab53f..133f46c 100644 --- a/html/pages/players_search.php +++ b/html/pages/players_search.php @@ -8,7 +8,7 @@ function InvertSort($curr_field, $filter, $sort) { function SortPic($curr_field, $filter, $sort) { if ($curr_field != $filter) return; - $fname = 'images/s_'. strtolower($sort) .'.png'; + $fname = 'assets/images/s_'. strtolower($sort) .'.png'; if (!file_exists($fname)) return; return(' '); } @@ -38,10 +38,10 @@ echo' -
+
- + Player Name'.SortPic('name', $filter, $sort).' @@ -68,7 +68,7 @@ while ($r_plist = mysql_fetch_array($q_plist)) { $eff = get_dp($r_plist[eff]); $acc = get_dp($r_plist[accuracy]); $ttl = GetMinutes($r_plist[ttl]); - + echo' '.FormatPlayerName($r_plist[country], $r_plist['pid'], $r_plist[name]).' @@ -86,4 +86,4 @@ while ($r_plist = mysql_fetch_array($q_plist)) { } echo' '; -?> \ No newline at end of file +?> diff --git a/html/pages/report/bbcode.php b/html/pages/report/bbcode.php index e07aa91..09c65a7 100644 --- a/html/pages/report/bbcode.php +++ b/html/pages/report/bbcode.php @@ -10,7 +10,7 @@ if (empty($id)) { $sql_s = small_query("SELECT mapfile, gametime FROM uts_match WHERE id = '$id'"); $map = str_replace(".unr", "", "$sql_s[mapfile]"); -$mappic = strtolower("images/maps/".$map.".jpg"); +$mappic = strtolower("assets/images/maps/".$map.".jpg"); $actgamelength = $sql_s[gametime]; // Lets work out what kind of game this was from the scores @@ -421,4 +421,4 @@ echo' This report was created with UTStats from the following game: [url]http://'.$oururl.'?p=match&mid='.$id.'[/url] '; -?> \ No newline at end of file +?> diff --git a/html/pages/report/clanbase.php b/html/pages/report/clanbase.php index 6b7d412..2eb8cde 100644 --- a/html/pages/report/clanbase.php +++ b/html/pages/report/clanbase.php @@ -53,7 +53,7 @@ $teamb = '[cl]'.$teambid.','.$teamb.'[/cl]'; $sql_s = small_query("SELECT mapfile, gametime FROM uts_match WHERE id = '$id'"); $map = str_replace(".unr", "", "$sql_s[mapfile]"); -$mappic = strtolower("images/maps/".$map.".jpg"); +$mappic = strtolower("assets/images/maps/".$map.".jpg"); $actgamelength = $sql_s[gametime]; // Lets work out what kind of game this was from the scores @@ -527,4 +527,4 @@ echo'
This report was created with UTStats from the following game:
[el]http://'.$oururl.'?p=match&mid='.$id.',http://'.$oururl.'?p=match&mid='.$id.'[/el] '; -?> \ No newline at end of file +?> diff --git a/html/pages/servers.php b/html/pages/servers.php index bb54d75..65dd06b 100644 --- a/html/pages/servers.php +++ b/html/pages/servers.php @@ -64,7 +64,7 @@ while ($r_servers = mysql_fetch_array($q_servers)) { - Server Status + Server Status '.$r_servers[matchcount].' diff --git a/html/pages/servers_query.php b/html/pages/servers_query.php index d6228a6..84a4fa9 100644 --- a/html/pages/servers_query.php +++ b/html/pages/servers_query.php @@ -61,18 +61,18 @@ fclose ($sock); //Split chunks by \ $chunks = split('[\]', $data); -$mappic = strtolower("images/maps/".$map.".jpg"); +$mappic = strtolower("assets/images/maps/".$map.".jpg"); if (file_exists($mappic)) { } else { - $mappic = ("images/maps/blank.jpg"); + $mappic = ("assets/images/maps/blank.jpg"); } $mapname = getiteminfo("mapname",$chunks); -$mappic = strtolower("images/maps/".$mapname.".jpg"); +$mappic = strtolower("assets/images/maps/".$mapname.".jpg"); if (file_exists($mappic)) { } else { - $mappic = "images/maps/blank.jpg"; + $mappic = "assets/images/maps/blank.jpg"; } $r_hostname = getiteminfo("hostname",$chunks); -- cgit