include 'functions.php'; include 'config.php'; isLoggedIn(); if( isset($_GET[$getMain]) ){ $m = intval(htmlspecialchars($_GET[$getMain])); }else { $m = 0; } if( isset($_GET[$getSub]) ){ $s = intval(htmlspecialchars($_GET[$getSub])); }else { $s = 0; } $templateName = $structure[$m][$s]['name']; ?>