Location: PHPKode > projects > Guild DKP System > dkpsystem1.4/adminpanel.php
<?php
require("config.php");
$directory = $_GET['d'];
$section = $_GET['s'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Admin Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
  form { margin: 0px; padding: 0px; }
  
  #fixedtipdiv{
	position:absolute;
	padding: 2px;
	border:1px solid black;
	font:normal 10px Tahoma;
	line-height:18px;
	z-index:100;
  }
</style>
<?php
if($s == "disputes") {
?>
<script language="JavaScript">
var tipwidth='235px' //default tooltip width
var tipbgcolor='#cccccc'  //tooltip bgcolor
var disappeardelay=0  //tooltip disappear speed onMouseout (in miliseconds)
var vertical_offset="0px" //horizontal offset of tooltip from anchor link
var horizontal_offset="-3px" //horizontal offset of tooltip from anchor link

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+';background-color:'+tipbgcolor+'" ></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden, tipwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function fixedtooltip(menucontents, obj, e, tipwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidetip()
dropmenuobj=document.getElementById? document.getElementById("fixedtipdiv") : fixedtipdiv
dropmenuobj.innerHTML=menucontents

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", tipwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
}

function hidetip(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidetip(){
if (ie4||ns6)
delayhide=setTimeout("hidetip()",disappeardelay)
}

function clearhidetip(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
</script>
<?php
}
?>
<script language="JavaScript">
function verify(message) {
	var box = confirm(message);
	if(box == true) {
		return true;
	}
	else {
		return false;
	}
}
</script>
</head>

<body bgcolor="#CCCCCC" text="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td bgcolor="#003366"><font color="#FFFFFF" size="2" face="Tahoma"><strong>Admin 
      Panel </strong></font></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr> 
    <td bgcolor="#003366"> <font color="#FFFFFF" size="1" face="Tahoma"><strong><a href="?d=admin&s=factorpoints">Factor 
      Points</a> | <a href="?d=admin&s=sessionconfiguration">Session Configuration</a> 
      | <a href="?d=admin&s=startraid">Start Raid</a> 
      <?php $sql = $db->query("SELECT * FROM dkp_sessionhistory WHERE status=1"); if($db->count_rows($sql) > 0) { echo "<img src='images/exlam.gif' width='15' height='12'>"; } ?>
      | <a href="?d=admin&s=userconfiguration">User Configuration</a> | <a href="?d=admin&s=itemconfiguration">Item 
      Configuration</a> | <a href="?d=admin&s=outsideloot">Outside Raid Loot</a> 
      | <a href="?d=admin&s=disputes">Disputes</a> 
      <?php $sql = $db->query("SELECT * FROM dkp_disputes WHERE checked=0"); if($db->count_rows($sql) > 0) { echo "<img src='images/exlam.gif' width='15' height='12'>"; } ?>
      | <a href="?d=admin&s=changepassword">Change Password</a></strong></font></td>
  </tr>
  <tr> 
    <td 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 = "factorpoints"; }
if(!isset($directory)) { $directory = "admin"; }

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>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td bgcolor="#003366"><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></td>
  </tr>
</table>
</body>
</html>
Return current item: Guild DKP System