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 +++++++++++---------- 6 files changed, 51 insertions(+), 50 deletions(-) (limited to 'html/pages/admin') 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 ''; } } -- cgit