function mod_roster($r, $n, $us = "us", $size = "100%") { $error = ''; if (empty($r) || empty($n) || empty($us)) { echo 'Missing guild realm/name/or locale (us/eu).'; return; } $r = stripslashes(str_replace(' ', '+', $r)); $n = stripslashes(str_replace(' ', '+', $n)); if (strtolower($us) == "us") { $us = "www"; } else { $us = "eu"; } $output = readXML('http://' . $us . '.wowarmory.com/guild-info.xml?r=' . $r . '&n=' . $n); if (strpos($output, "<guildInfo/>") !== false) { echo 'Incorrect guild realm/name/or locale (us/eu).'; return; } groupHead("<b>Roster</b>", $size); /* echo '<textarea rows="12" cols="128" style="font-size: 11px;">'; echo htmlspecialchars($output); echo '</textarea>'; */ echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">'; $pos = 0; $guildName = ''; while (true) { $thisElem = readElement($output, $pos); if ($thisElem == false) { break; } else { $element = readAttribs($thisElem[0]); if ($element[0] == 'character') { //echo "<br />Element: [".$element[0]." | Name: ".$element['name'].", Gender: ".$element['gender'].", Race: ".$element['race'].", Class: ".$element['class']."]"; $pic = strtolower($element['gender']) . '-' . strtolower(str_replace(' ', '', $element['race'])); $pic2 = strtolower($element['class']); echo '<tr><td align="left" height="24"><a href="http://www.wowarmory.com/character-sheet.xml?' . $element['url'] . '" class="classCol' . $element['class'] . '">' . '<img src="../images/icons/race/' . $pic . '.gif" border="0" width="18" height="18" />' . '<img src="../images/icons/class/' . $pic2 . '.gif" border="0" alt="' . $pic2 . '" /> [<b>' . $element['level'] . '</b>] ' . $element['name'] . '</a></td><td align="right"><u>Rank ' . $element['rank'] . '</u></td></tr>'; } $pos = $thisElem[1]; } } echo '</table>'; groupFoot(); }
echo '</table>'; echo '</td></tr>'; echo '<tr class="login"><td align="center" colspan="2"><input type="submit" value="Register"></td></tr>'; echo '</table>'; echo '</form>'; groupFoot(); } } else { if (isset($_SESSION['user']) && empty($error)) { groupHead("Login", 400); echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">'; echo '<div align="center">You are now logged in as ' . $_SESSION['user'] . '.<br /><br /><a href="index.php">Back to Home Page</a></div>'; echo '</table>'; groupFoot(); } else { groupHead("Login", 400); if (!empty($error)) { echo '<div align="center" style="font-weight: bold; color: #FF0000;"><br />' . $error . '</div><br />'; } echo '<form name="register" action="login.php" method="post">'; echo '<input type="hidden" name="login" value="yes">'; echo '<input type="hidden" name="refer" value="' . $_SERVER['HTTP_REFERER'] . '">'; echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">'; echo '<tr class="login"><td align="right" width="50%">Username: </td><td align="left"><input type="text" name="user" size="24" maxlength="15" value="' . $_POST['user'] . '"></td></tr>'; echo '<tr class="login"><td align="right" width="50%">Password: </td><td align="left"><input type="password" name="pass" size="24" maxlength="15"></td></tr>'; echo '<tr class="login"><td align="center" colspan="2"><input type="submit" value="Login"></td></tr>'; echo '</table>'; echo '</form>'; groupFoot(); } }
echo '<p /> <p />'; $_GET['from'] = (int) $_GET['from']; if (empty($_GET['to'])) { $_GET['to'] = $_GET['from'] + 100; } else { $_GET['to'] == (int) $_GET['to']; } if (empty($_GET['sort'])) { $_GET['sort'] = 'id'; } if (empty($_GET['order'])) { $_GET['order'] = 'ASC'; } //$result = mysql_query("SELECT * FROM users WHERE id BETWEEN " . $_GET['from'] . " AND " . $_GET['to'] ." ORDER BY " . $_GET['sort']); $result = mysql_query("SELECT * FROM users ORDER BY " . $_GET['sort'] . " " . $_GET['order'] . " LIMIT " . $_GET['from'] . ", " . ($_GET['to'] - $_GET['from'])); groupHead("<center>Users</center>", "", "", 400); echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">'; echo '<tr><td width="4%" align="right" style="font-weight: bold;">#</td><td width="1%"></td><td width="50%" style="font-weight: bold;">Username</td><td width="45%" style="font-weight: bold;">Joined</td></tr>'; while ($row = mysql_fetch_array($result)) { echo '<tr><td align="right">' . $row['id'] . '.</td><td></td><td><a href="analyze.php?u=' . $row['name'] . '"'; if (rights($row['name']) == 'admin') { echo ' style="color: #CC0000;" title="' . $row['name'] . ' is an administrator."'; } elseif (rights($row['name']) == 'moderator') { echo ' style="color: #00CC00;" title="' . $row['name'] . ' is a moderator."'; } echo '>' . $row['name'] . '</a></td><td>' . date("n/d/y (g:i:s A)", $row['joined'] + 10800) . '</td></tr>'; } echo '<tr><form name="options" action="moderator.php" method="GET"><td colspan="5" align="center"> <input type="button" value="<< BACK 100 <<" onclick="document.options.from.value = ' . ($_GET['from'] - 100) . '; document.options.to.value = ' . $_GET['from'] . '; document.options.submit();" ' . ($_GET['from'] < 100 ? 'disabled="true"' : '') . '> <input type="button" value=">> NEXT 100 >>" onclick="document.options.from.value = ' . ($_GET['from'] + 100) . '; document.options.to.value = ' . ($_GET['from'] + 200) . '; document.options.submit();">
echo '</table>'; //Most Downloaded echo '<table id="mostDownloadedc" class="hidden" cellpadding="0" cellspacing="0" border="0">'; $max = 10; $result = mysql_query("SELECT * FROM tracks ORDER BY downloads DESC LIMIT 0, " . $max); $count = 0; while ($row = mysql_fetch_array($result)) { $count++; $infoTag = "Created by " . $row['author']; echo '<tr><td align="right">' . $count . '. </td><td align="left"><a href="track.php?id=' . $row['id'] . '" title="' . $infoTag . '">' . $row['label'] . '</a></td></tr>'; echo '<tr><td></td><td>' . $row['downloads'] . ' downloads</td>'; } echo '</table>'; groupFoot($sideColor); echo '</td></tr><tr><td height="16"></td></tr><tr><td>'; groupHead("<center>Shoutbox</center>", $sideColor, "", 200, "yes"); $max = 5; $shout = explode("\r\n", file_get_contents("shout.dat")); $cInfo = 3; if (isset($_SESSION['user'])) { echo '<center><input type="image" id="addMessage" class="shown" src="images/addMessage.png" onclick="document.getElementById(\'addMessage\').className = \'hidden\';document.getElementById(\'messageBox\').className = \'shown\';"></center>'; } echo '<div align="center" id="messageBox" class="hidden">'; echo '<b><a href="analyze.php?u=' . $_SESSION['user'] . '"'; if (rights($_SESSION['user']) == 'admin') { echo ' style="color: #CC0000;" title="' . $_SESSION['user'] . ' is an administrator."'; } elseif (rights($_SESSION['user']) == 'moderator') { echo ' style="color: #00CC00;" title="' . $_SESSION['user'] . ' is a moderator."'; } echo '>' . $_SESSION['user'] . '</a></b>'; echo '<br />';
<?php include "scripts/header.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>GuildCube.com | Home</title> <link rel="stylesheet" href="scripts/style.css" type="text/css"> <!-- Global stylesheet --> <link rel="stylesheet" href="style.css" type="text/css"> <!-- Main page stylesheet --> </head> <body> <?php include "scripts/navigation.php"; ?> <?php echo '<table align="center" width="800" height="500" cellpadding="0" cellspacing="0" border="0">'; echo '<tr><td align="center">'; groupHead("News", 400, 200); echo '<div align="center" style="font-weight: bold;"><a href="http://demo.guildcube.com">View Demo</a></div>'; groupFoot(); echo '</td></tr>'; echo '</table>'; ?> </body> </html>
?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Line Rider Share - Statistics</title> </head> <body> <?php include "header.php"; ?> <?php groupHead("Advanced Statistics", "", "", 640); $tracks = array(); $trackTotal = 0; $comments = array(); $commentTotal = 0; $previews = array(); $previewTotal = 0; $trash = array(); $trashTotal = 0; $managers = array(); $managerTotal = 0; $sols = array(); $solTotal = 0; if (is_dir("tracks")) { if ($trackh = opendir("tracks")) { while (($file = readdir($trackh)) !== false) {
<?php groupFoot(); } } else { if (isset($_SESSION['user'])) { groupHead("<center>Logged In</center>", "", "", 320); ?> <tr><td align="center" style="color: #0000FF; font-weight: bold;"><center>You are now logged in as <?php echo $_SESSION['user']; ?> .</center></td></tr> <?php groupFoot(); } else { echo '<p /> <p /> <p /> <p /> <p /> <p /> <p /> <p />'; groupHead("<center>Log In</center>", "", "", 320); ?> <form name="login" action="login.php" method="post"> <input type="hidden" name="check" value="yes"> <input type="hidden" name="refer" value="<?php echo $_SERVER['HTTP_REFERER']; ?> "> <?php if (!empty($error)) { echo '<tr><td align="center" colspan="2" style="color: #FF0000; font-weight: bold;">' . $error . '</td></tr>'; } ?> <tr><td align="right">Username:</td><td><input type="text" name="u" size="30" maxlength="15" value="<?php echo $_POST['u']; ?>
echo $_REQUEST['n']; ?> </title> </head> <body> <?php include "navigation.php"; ?> <?php $result = mysql_query("SELECT * FROM users WHERE name='" . $_REQUEST['n'] . "'"); $row = mysql_fetch_array($result); if (!empty($row(['name']))) { groupHead('Characters', 500); echo '<table cellpadding="8" cellspacing="0" border="1" align="center">'; $chars = explode("|", $row['chars']); foreach ($chars as $char) { $char = explode(",", $char); echo '<tr><td align="left">[' . strtoupper($char[0]) . '] ' . $char[2] . '-' . $char[1] . '</td></tr>'; } echo '</table>'; groupFoot(); } else { groupHead('Invalid User', 500); echo '<div align="center" style="font-weight: bold;">User ' . $_REQUEST['n'] . ' does not exist</div>'; groupFoot(); } ?> </body> </html>
if (isset($_SESSION['user'])) { if ($success && empty($error)) { groupHead("Create a Guild Site", 500); echo '<div align="center" style="font-weight: bold; color: #8888FF;">Successfully created your guild<br /><br /><a href="' . $domain . '/' . strtolower($_POST['name']) . '">View My Guild</a></div>'; groupFoot(); } else { groupHead("Create a Guild Site", 500); if (!empty($error)) { echo '<div align="center" style="font-weight: bold; color: #FF0000;"><br />' . $error . '</div><br />'; } echo '<form name="guild" action="createGuild.php" method="post">'; echo '<input type="hidden" name="create" value="yes">'; echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">'; echo '<tr class="newGuild"><td align="right" width="50%">Guild Name: </td><td align="left"><input type="text" name="name" size="36" maxlength="18"></td></tr>'; echo '<tr class="newGuild"><td align="right" width="50%">Server: </td><td align="left"><input type="text" name="server" size="36" maxlength="100"></td></tr>'; echo '<tr class="newGuild"><td align="right" width="50%">Locale: </td><td align="left"><select name="locale"><option value="us">US</option><option value="eu">EU</option></select></td></tr>'; echo '<tr class="newGuild"><td align="center" colspan="2"><input type="submit" value="Create Guild"></td></tr>'; echo '</table>'; echo '</form>'; groupFoot(); } } else { groupHead("Create a Guild Site", 500); echo '<center><b>You must be logged in to create a guild page.</b><br /><br />Please login or register a new account using the links in the top-right corner of the screen</center>'; groupFoot(); } echo '</td></tr></table>'; ?> </body> </html>
} // End For echo '</tr></table>'; echo $nl . '<script type="text/javascript" language="javascript1.1">' . $nl; echo '<!--' . $nl; echo 'function finished() {' . $nl; echo 'document.getElementById("totalviews").innerHTML = \'Total Views: ' . array_sum($views) . '\';' . $nl; echo 'document.getElementById("totaldownloads").innerHTML = \'Total Downloads: ' . array_sum($downloads) . '\';' . $nl; echo '}' . $nl; echo '//-->' . $nl; echo '</script>' . $nl; if (count($myTracks) == 0) { echo 'This user hasn\'t uploaded any tracks yet.'; } groupFoot($userColor); echo '</td></tr></table>'; } else { echo '<p /> <p /> <p />'; groupHead("<center>Track Manager</center>", "993333"); echo 'You must be logged in to analyze your tracks.'; groupFoot("993333"); } ?> <?php include "tracker.php"; ?> </body> </html>
if (isset($_SESSION['user'])) { echo '<center><input type="button" value="Add Your Tracks to Manager" class="normalbold" onclick="document.addYourTracks.submit(); this.disabled = true;"></center>' . $nl; echo '<form name="addYourTracks" action="manager.php" method="post"><input type="hidden" name="addYours" value="true"></form>' . $nl; } echo '<p /> <p />'; echo '<center><a href="#" onclick="window.open(\'http://www.official-linerider.com/play.html\');" title="Click here after you have downloaded the tracks to the \'www.official-linerider.com\' folder." style="font-weight: bold; font-size: 18px;">Open Line Rider in a new tab/window.</a></center>'; echo '<p /> <p />'; if (isset($_SESSION['user'])) { //Logged In echo '<center>'; echo '<form name="upload" action="manager.php" method="post" enctype="multipart/form-data">' . $nl; //Track uploader if (isset($_SESSION['user'])) { groupHead("<center>Upload Tracks</center>"); } else { groupHead("<center>Upload Tracks</center>", "993333"); } if (isset($_REQUEST['check'])) { if ($_FILES['uploadedFile']['name'] == '') { $error .= 'Click browse and upload your savedLines.sol file.'; } else { if (substr($_FILES['uploadedFile']['name'], strpos($_FILES['uploadedFile']['name'], ".")) != ".sol") { $error .= 'Wrong file type.<br />Upload savedLines<b>.sol</b> or undefined<b>.sol</b>'; } elseif ($_FILES['uploadedFile']['name'] != "undefined.sol" && $_FILES['uploadedFile']['name'] != "savedLines.sol") { $error .= 'Wrong file name.<br />Upload <b>savedLines</b>.sol or <b>undefined</b>.sol'; } } } if (isset($_REQUEST['check']) && $error == '') { $trackIDs = explode(chr(9), $trackInfo[0]); $trackNames = explode(chr(9), $trackInfo[1]);
?> <?php if (empty($_REQUEST['a'])) { $_REQUEST['a'] = 'id'; } if ($_REQUEST['o'] != 'desc') { $_REQUEST['o'] = 'asc'; } strtoupper($_REQUEST['o']); $_REQUEST['from'] = (int) $_REQUEST['from']; if (empty($_REQUEST['to'])) { $_REQUEST['to'] = $_REQUEST['from'] + 100; } //echo '<h1 align="center">Under Construction</h1><center><b style="color: #FF0000">Nothing on this page is guaranteed or final.</b></center><br />'; groupHead("<center>All Tracks (" . totalTracks() . " total, showing " . ($_REQUEST['to'] - $_REQUEST['from']) . ")</center>", "", "", 880); $last = lastTrack(); $result = mysql_query("SELECT * FROM tracks ORDER BY " . $_REQUEST['a'] . " " . $_REQUEST['o'] . " LIMIT " . $_REQUEST['from'] . ", " . ($_REQUEST['to'] - $_REQUEST['from'])); /*********** GOOGLE ANALYTICS SEARCH RESULTS ************/ echo ' <div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 800; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> '; /*********** GOOGLE ANALYTICS SEARCH RESULTS ************/
$auth = str_ireplace($_REQUEST['search'], '<b>' . substr($auth, $pos, $len) . '</b>', $auth); $found = true; } if ($found == true) { $results[] = '<tr><td style="font-size: 12px;" width="75%"><a href="track.php?id=' . $i . '">' . $name . '</a></td><td>by <a href="analyze.php?u=' . $auth . '">' . $auth . '</a></td></tr>'; } } else { $done++; if ($done >= 1000) { break; } //Stop after a thousand empty spaces } } echo '<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" id="results" class="hidden"><tr><td>'; groupHead("<center>" . count($results) . " results for <i>" . $_REQUEST['search'] . "</i>.", "", "", 512); echo '<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">'; if (count($results) == 0) { echo 'Sorry, no results could be found for ' . $_REQUEST['search']; } else { for ($i = 0; $i < count($results); $i++) { echo $results[$i]; } } echo '</table>'; groupFoot(); echo '</td></tr></table>'; echo '</center>'; ?> <script language="javascript">