} } if ($_SERVER['QUERY_STRING'] == "gym_leaders") { echo "<h1>Gym Leaders (Black ties)</h1>"; displayLogo($_SERVER['QUERY_STRING']); echo "<p>Select a city!</p>"; echo "<ul class='allteams'>"; showAllTeamsList($options = "blacktie"); echo "</ul>"; } elseif ($_SERVER['QUERY_STRING'] == "missingno") { echo "<h1>Team: " . getTeamDisplay($_SERVER['QUERY_STRING']) . " (Software Engineering)</h1>"; displayLogo($_SERVER['QUERY_STRING']); echo "<p>The software engineer profiles coming soon!</p>"; } elseif ($_SERVER['QUERY_STRING']) { echo "<h1>Team: " . getTeamDisplay($_SERVER['QUERY_STRING']) . "</h1>"; displayLogo($_SERVER['QUERY_STRING']); $profiles = getTeamProfiles($_SERVER['QUERY_STRING']); $fields = array('nickname' => "People call me", 'termprog' => "My term/program", 'hometown' => "I'm from", 'fave_atk' => "My fave Pokemon attack is", 'fave_series' => "My fave Pokemon series is", 'loveuw' => "What I love about UW", 'advice' => "My advice to first-years"); if ($profiles) { foreach ($profiles as $p) { echo "<div class='profile'>"; echo "<h2>" . $p['pname'] . " " . $p['lname']; echo isHeadLeader($p['lpos']) ? " <span>- Head Leader</span></h2>" : "</h2>"; if ($p['nickname'] != "" || $p['loveuw'] != "" || $p['advice'] != "") { foreach ($fields as $field => $display) { echo "<p><b>" . $display . ": </b>"; echo $p[$field] != "" ? $p[$field] : "N/A"; echo "</p>"; } } else { echo "<p>I haven't filled out my profile yet!</p>";
global $HTTP_SERVER_VARS, $HTTP_GET_VARS; $us = @$HTTP_SERVER_VARS['PHP_SELF']; $page = @$HTTP_GET_VARS['page']; $css = getCSS(); $out = "<html>\n" . "<head>\n" . "<style>{$css}</style>\n" . "<title>ionCube Loader Installation Tool</title>" . "</head>\n" . "<body>\n"; $body = ""; $body .= "<div align=center><div class=\"main\">\n"; $body .= "<img src=\"{$us}?page=logo\"><br><br>\n"; if ($page == "rtl-tester") { $body .= rtl_tester(); } else { if ($page == "sysinfo") { return phpinfo(); } else { if ($page == "install-assistant") { $body .= install_assistant(); } else { if ($page == "logo") { displayLogo(); exit(1); } else { $body .= index(); } } } } $body .= "</div></div>\n"; $out .= $body; $out .= "</body></html>\n"; echo $out; }