Location: PHPKode > projects > Guild DKP System > dkpsystem1.4/index.php
<?php
//Load Configuration File
require("config.php");
?>
<html>
<head>
<title>Guild DKP Tracker v1.4.0 - Programmed by Dexter Brock</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
  form { margin: 0px; padding: 0px; }
</style>
<script language="JavaScript">
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=760,height=400,left=100,top=100');");
}
function adminPopUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=760,height=400,left=100,top=100');");
}
function pageSettings() {
	formLogin.txtUsername.select();
	formLogin.txtUsername.focus();
}
</script>
</head>

<body bgcolor="#CCCCCC" text="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" onLoad="pageSettings();">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="80%" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr> 
          <td height="125" bgcolor="cccccc"><a href="?s=points"><img src="images/logo.gif" width="500" height="125" border="0"></a></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr> 
          <td valign="middle" bgcolor="#003366"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="60%" valign="middle"><font color="#FFFFFF" size="1" face="Tahoma"><strong><a href="?s=points">Points</a> 
                  | <a href="?s=itemcatalog">Item Catalog</a> | <a href="?s=raidhistory">Raid 
                  History</a> | <a href="?s=announcements">Announcements</a> | 
                  <a href="?s=pointdisputes">Point Disputes</a></strong></font></td>
                <td width="40%"> 
                  <div align="right"> <font color="#FFFFFF" size="1" face="Tahoma"><strong> 
                    <?php
if(!session_is_registered("login")) {
?>
                    <form action="?d=admin&s=login" method="post" name="formLogin" id="formLogin">
                      <input name="txtUsername" type="text" id="txtUsername" value="user" size="10">
                      <input name="txtPassword" type="password" id="txtPassword" value="pass" size="10">
                      <input name="Login" type="submit" id="Login" value="Login">
                    </form>
                    <?php
}
else {
	echo "<a href=javascript:adminPopUp('adminpanel.php')>Admin Panel</a> | <a href='?s=logout'>Logout</a>";
}
?>
                    </strong></font></div></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td valign="middle" bgcolor="#E9E9E9"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><font face="Tahoma"> 
                  <?php
$directory = $_GET['d'];
$section = $_GET['s'];
if(!isset($section)) { $section = "points"; }

if(isset($directory) && $directory == "admin") {
	if(session_is_registered("login") || $section == "login") {
		$file = "includes/admin/".$section.".php";
		if(file_exists($file)) {
			include($file);
		} else {
			echo "<font size='2'>".IMG_ARROW."The page that you are requesting can not be found.</font>";
		}
	} else {
		echo "<font size='2'>".IMG_ARROW."You must be logged in to navigate to this page.<br>".IMG_ARROW."Please try logging in using the login form located at the top of this page.</font>";
	}
} else {
	$file = "includes/".$section.".php";
	if(file_exists($file)) {
		include($file);
	} else {
		echo "<font size='2'>".IMG_ARROW."The page that you are requesting can not be found.</font>";
	}
}
?>
                  </font></td>
              </tr>
            </table></td>
        </tr>
        <tr bgcolor="#003366"> 
          <td> <div align="center"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td><div align="center"><font color="#CCCCCC" size="1" face="Tahoma"><strong>Guild 
                      DKP System v1.4.0 :: <a href="mailto:hide@address.com">Written 
                      by Dexter Brock</a> :: Copyright &copy; 2006 DKPTracker.com</strong></font></div></td>
                </tr>
              </table>
              <font color="#CCCCCC" size="1" face="Tahoma"></font></div></td>
        </tr>
      </table></td>
    <td width="20%" valign="top"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td height="125">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr> 
          <td bgcolor="#003366"><font color="#FFFFFF" size="1" face="Tahoma"><strong>Genreal 
            Information</strong></font></td>
        </tr>
        <tr>
          <td bgcolor="#E9E9E9">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td bgcolor="#003366"><strong><font color="#CCCCCC" size="1" face="Tahoma"><u>Awards</u></font></strong></td>
              </tr>
              <tr> 
                <td bgcolor="#CCCCCC"><strong><font color="#000000" size="1" face="Tahoma"><u>Master 
                  Looter</u>: Soon</font></strong></td>
              </tr>
              <tr> 
                <td bgcolor="#CCCCCC"><strong><font color="#000000" size="1" face="Tahoma"><u>Perfect 
                  Attendance</u>: Soon</font></strong></td>
              </tr>
              <tr> 
                <td bgcolor="#CCCCCC"><strong><font color="#000000" size="1" face="Tahoma"><u>Slacker</u>: 
                  Nox</font></strong></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td bgcolor="#003366"><font color="#CCCCCC" size="1" face="Tahoma"><strong><u>Guild</u></strong></font></td>
              </tr>
              <tr> 
                <td bgcolor="#CCCCCC"><strong><font color="#000000" size="1" face="Tahoma"><u>Name</u>: 
                  Ravencrest Watch</font></strong></td>
              </tr>
              <tr> 
                <td bgcolor="#CCCCCC"><strong><font color="#000000" size="1" face="Tahoma"><u>Total 
                  Players</u>: <?php echo $db->count_rows($db->query("SELECT id FROM dkp_users")); ?> 
                  </font></strong></td>
              </tr>
              <?php
$sql = $db->query("SELECT * FROM dkp_classes");
while($class_row = mysql_fetch_array($sql)) {
	$classid = $class_row[id];
	$class_name = $class_row['class'];
	$total_class_players = $db->count_rows($db->query("SELECT * FROM dkp_users WHERE class=\"$classid\""));
	
?>
              <tr> 
                <td bgcolor="#CCCCCC"><strong><font color="#000000" size="1" face="Tahoma"><?php echo "<u>" . $class_name . "</u>: " . $total_class_players; ?></font></strong></td>
              </tr>
              <?php
}
?>
            </table>
            <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td height="17" bgcolor="#003366"> <div align="center"><font color="#CCCCCC" size="1" face="Tahoma"><strong>Awards 
                    are updated weekly</strong></font></div></td>
              </tr>
            </table></td>
        </tr>
      </table> </td>
  </tr>
</table>
</body>
</html>
Return current item: Guild DKP System