From 3a58cb2802c8be14f78015105afe759b1c7ce692 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Tue, 9 Jan 2018 00:43:43 +0100 Subject: Implement design for pages and update includes --- html/pages/admin/plm.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) mode change 100755 => 100644 html/pages/admin/plm.php (limited to 'html/pages/admin/plm.php') diff --git a/html/pages/admin/plm.php b/html/pages/admin/plm.php old mode 100755 new mode 100644 index 68992e2..1ea9f52 --- a/html/pages/admin/plm.php +++ b/html/pages/admin/plm.php @@ -43,13 +43,13 @@ if($debug) { } // Print header & links -echo '

Player merging tool

'; +echo '

Player merging tool

'; echo "

Merge ip's - Merge ip's, limited on range - Manage ignored ip's - Manage ignored ip's - only range

"; // CASE: MANAGE IGNORED IPS if($_GET['manignore'] == "true") { if($_POST['submit'] == "Remove from ignored list") { - echo "

Stopped ignore ip's

"; + echo "

Stopped ignore ip's

"; foreach($_POST as $key=>$value) { if($key !='submit') { $key = mysql_real_escape_string(str_replace("_",".",$key)); @@ -60,7 +60,7 @@ if($_GET['manignore'] == "true") { } } else if($_GET['onlyrange'] == "true") { if($_POST['submit'] == "Confirm") { - echo '

Ignored ip\'s in range '.htmlentities($_POST['from']).' to '.htmlentities($_POST['to']).'
If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this

'; + echo '

Ignored ip\'s in range '.htmlentities($_POST['from']).' to '.htmlentities($_POST['to']).'
If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this

'; echo '
'; $from = mysql_real_escape_string($_POST['from']); @@ -75,7 +75,7 @@ if($_GET['manignore'] == "true") { $trueplayerip = long2ip($playerip); $pidcount = $r_pipcheck[pidcount]; - echo "
$trueplayerip"; + echo "
$trueplayerip"; // Query for player names and ids associated to that ip during the cycle $sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country"; @@ -90,13 +90,13 @@ if($_GET['manignore'] == "true") { echo "

No ignored ip's found

"; } } else { - echo "

Ignored ip's in range: Enter range to filter on

"; + echo "

Ignored ip's in range: Enter range to filter on

"; echo ''; echo '
Ranging from to '; echo '

'; } } else { - echo '

Ignored ip\'s
If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this

'; + echo '

Ignored ip\'s
If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this

'; echo '
'; $ignore_ips = mysql_query("SELECT ip FROM uts_ignoreips ORDER BY ip ASC"); @@ -107,7 +107,7 @@ if($_GET['manignore'] == "true") { $trueplayerip = long2ip($playerip); $pidcount = $r_pipcheck[pidcount]; - echo "
$trueplayerip"; + echo "
$trueplayerip"; // Query for player names and ids associated to that ip during the cycle $sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country"; @@ -125,7 +125,7 @@ if($_GET['manignore'] == "true") { // CASE: IGNORE SUBMITTED IP'S } else if($_POST['submit'] == "ignore") { - echo "

Ignored ips

"; + echo "

Ignored ips

"; foreach($_POST as $key=>$value) { if($key !='submit') { $key = mysql_real_escape_string(str_replace("_",".",$key)); @@ -138,7 +138,7 @@ if($_GET['manignore'] == "true") { // CASE: SHOW NICKS WITH GIVEN SHARED IP } else if(substr($_POST['submit'],0,8) == "merge - ") { - echo "

Merge nicks with shared ip

"; + echo "

Merge nicks with shared ip

"; $ip = mysql_real_escape_string(str_replace("_",".",substr($_POST['submit'],8))); $sql_pipcheck = "SELECT ip, COUNT(DISTINCT pid) AS pidcount FROM uts_player WHERE ip = INET_ATON('$ip') GROUP BY ip ORDER BY ip ASC"; @@ -152,7 +152,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ... IF ($pidcount > 1 ) { echo ''; - echo "
$trueplayerip"; + echo "
$trueplayerip"; // Query for player names and ids associated to that ip during the cycle $sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country"; @@ -170,7 +170,7 @@ if($_GET['manignore'] == "true") { // CASE: MERGE NICKS WITH SHARED IP } else if($_POST['submit'] == "Player merge") { - echo "

Merging nicks with shared ip

"; + echo "

Merging nicks with shared ip

"; $ip = mysql_real_escape_string(str_replace("_",".",$_POST['ip'])); $merge_to_pid = mysql_real_escape_string($_POST['merge_to']); @@ -184,7 +184,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ... IF ($pidcount > 1 ) { - echo "$trueplayerip

merge:
"; + echo "$trueplayerip

merge:
"; // Query for player names and ids associated to that ip during the cycle $sql_pcheck = "SELECT p.pid FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country"; @@ -210,7 +210,7 @@ if($_GET['manignore'] == "true") { // CASE: SHOW ALL IP'S LINKED TO MORE THAN ONE NICK - ONLY RANGE } else if($_GET['onlyrange'] == "true") { if($_POST['submit'] == "Confirm") { - echo "

Showing all ip's in range ".htmlentities($_POST['from'])." to ".htmlentities($_POST['to'])."
If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this

"; + echo "

Showing all ip's in range ".htmlentities($_POST['from'])." to ".htmlentities($_POST['to'])."
If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this

"; $from = mysql_real_escape_string($_POST['from']); $to = mysql_real_escape_string($_POST['to']); @@ -240,7 +240,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ... IF ($pidcount > 1 ) { - echo "
$trueplayerip"; + echo "
$trueplayerip"; // Query for player names and ids associated to that ip during the cycle $sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country"; @@ -260,7 +260,7 @@ if($_GET['manignore'] == "true") { } } else { - echo "

Showing all ip's in range - Enter range to filter on

"; + echo "

Showing all ip's in range - Enter range to filter on

"; echo ''; echo '
Ranging from to '; echo '

'; @@ -268,7 +268,7 @@ if($_GET['manignore'] == "true") { // CASE: SHOW ALL IP'S LINKED TO MORE THAN ONE NICK } else { - echo "

IP's linked with more than one nick
If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this

"; + echo "

IP's linked with more than one nick
If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this

"; $ignore_ips = mysql_query("SELECT ip FROM uts_ignoreips"); $extended_query = ""; @@ -299,7 +299,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ... IF ($pidcount > 1 ) { - echo "
$trueplayerip"; + echo "
$trueplayerip"; // Query for player names and ids associated to that ip during the cycle $sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country"; -- cgit