<?php //Assigns the form variables to upload. $results = allData($_SESSION['id']); if (isPostRequest()) { if (filter_input(INPUT_POST, 'address_group_id') != null) { $selectedGroup = filter_input(INPUT_POST, 'address_group_id'); $results = groupData($_SESSION['id'], $selectedGroup); } elseif (filter_input(INPUT_POST, 'searchq') != null) { $searchq = filter_input(INPUT_POST, 'searchq'); $selectedCol = filter_input(INPUT_POST, 'col'); $results = searchData($_SESSION['id'], $searchq, $selectedCol); } } else { }
if ($debugPlayer === false || 10 <= $debugPlayer) { $ret = array("status" => "BAD_AUTH"); die(json_encode($ret)); } else { $_SESSION['playerId'] = $debugPlayer; $playerId = $debugPlayer; } } require_once 'db_login.php'; switch (arg('cmd')) { case false: $invalidArg = 'cmd'; break; case 'allData': if ($invalidArg === false) { allData($playerId); } break; case 'joinGame': if ($invalidArg === false) { $alias = arg('alias'); if ($alias === false) { $invalidArg = 'alias'; } } if ($invalidArg === false) { $tokens = arg('tokens'); if ($tokens === false) { $invalidArg = 'tokens'; } }