include ('templates/'.$template.'/template.php');
if ( $_GET['action'] = 'admin' ) {include ('templates/'.$template.'/admintemplate.php'); } else {include ('templates/'.$template.'/template.php');};
if ( $_GET['action'] == 'admin' ) {/*Do Nothing*/} else {include ('templates/'.$template.'/template.php');};
include ('templates/'.$template.'/admin-template.php');
if (!isset($_GET['action'])) $_GET['action'] = null;if ( $_GET['action'] == 'admin' ) {/*Do Nothing*/} else {include ('templates/'.$template.'/template.php');};
$action = isset($_GET['action']) ? $_GET['action'] : null;switch ($action) { ... }$cmd = isset($_GET['cmd']) ? $_GET['cmd'] : null;switch ($cmd) { ... }Or, you can fix this in a way that doesn't require altering your switch logic, by giving $_GET['action'] etc, a defined (but "empty") value if action isn't given in a query string:if (!isset($_GET['action'])) $_GET['action'] = null;switch ($_GET['action']) { ... }if (!isset($_GET['cmd'])) $_GET['cmd'] = null;switch ($_GET['cmd']) { ... }if (!isset($_GET['type'])) $_GET['type'] = null;switch ($_GET['type']) { ... }if (!isset($_GET['page'])) $_GET['page'] = null;if (!isset($_GET['name'])) $_GET['name'] = null; if (!isset($_GET['case'])) $_GET['case'] = null;