KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/abtechsci/mmc15/HDWRegistrationAndLogin/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/abtechsci/mmc15/HDWRegistrationAndLogin/admin/index.php
<?php
error_reporting(7);
session_start();
require_once('../config.php');
require_once('../tables.php');


if ($_POST["updatefields"])
{
   foreach ($_COOKIE as $item => $value)
     if (substr($item,0,11) == 'hdwchecked_')  
        setcookie ($item, "", time() - 3600,"/");

   foreach ($_POST as $item => $value)
     if (substr($item,0,11) == 'hdwchecked_')
         @setcookie ($item, $value, time()+3600*24*365, '/');
   echo '<script type="text/javascript">document.location="index.php?table='.$_GET["table"].'";</script>';      
   exit;
}


if ($_GET["logout"]=="true")
{
    $_SESSION["password"] = "";
    echo "<script>document.location='index.php'</script>";
} 
if (file_exists("../tables.php"))
{
    for ($i=0;$i<count($hdw_tables_array);$i++)
            $content .= '<a href="index.php?table='.trim($hdw_tables_array[$i]["name"]).'">'.trim($hdw_tables_array[$i]["name"]).'</a><br />';
}
else    
    $content = "";

?>
<!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>Form To Database Admin</title>
<style type="text/css">
<!--
body{
	margin : 0px 0px 0px 0px;
	font: 12px Arial, Helvetica, sans-serif;
	background-color : #ffffff;	
	color : #5C5C5C;
}
#container {
	text-align : center;
}

#div_body{
	width : 95%;
	
	min-height : 500px;
	height: auto !important;
	height:500px;
	
	background-color : #FFFFFF;
	clear : both;
	text-align : justify;
	margin : auto;
	padding-left: 0px;
	padding-right: 0px;
	padding-bottom: 16px;
	padding-top: 0px;
}

#div_logo{
	width : 100%;
	height : 108px;
	background-image : url(logo.jpg);
	margin-bottom : 20px;
}

.action_anchor {
     font-weight: bold;
     color: white;
     margin-right: 10px;
     margin-top: 5px;
}

h1{
	font-size:15px;
	padding : 5px;
	
}
h3{
	font-size:12px;
	font-weight:normal;
}
a{
	color : #739E40;
	font-weight:normal;
	text-decoration:none;
}
#container #div_footer{
	width : 95%;
	text-align :left;
	margin : auto;
	padding-top:10px;
	color: #ffffff;
}

#container #div_footer a{
	color : #FFFFFF;
	text-decoration : none;
}
.style1 {
	font-size: 12px;
	font-weight: bold;
}
.style2 {font-size: 14px}
-->
</style>
</head>

<body>
<div id="container">
	<div id="div_body">		
		<?php
		
		if ($_POST["password"]==HDW_PASS || $_SESSION["password"] == HDW_PASS)
        {
        	$_SESSION["password"] = HDW_PASS;
        ?> 
        
		<div id="div_logo"><div style="float:right"><a href="?logout=true" class="action_anchor">log out</a></div></div>
<div style="padding:10px;">
		<span class="style1"><span class="style2">Form To Database Admin</span><br />
(Click &quot;edit button&quot; to view all info about each registrant)</span>
        <p>
        <?php 
   if ($_GET["action"] == 'edit')
   {
   	   if (HDW_MYSQL)
           require "_edit.inc.php";
       else
           require "_edit_text.inc.php"; 
   }    
   else if ($_GET["table"])
   {
   	   if (HDW_MYSQL)
           require "_table.inc.php";
       else
           require "_table_text.inc.php"; 
   }
   else 
   { 
       echo '<h3>Select the table to admin...</h3>';
       echo $content;
   } 
?>		
        <?php
        }
        else
        {
        ?>
        <br />
        <div id="div_logo"></div>
        <form action="index.php" method="post" name="form1">
        <table width="170" border="0" cellspacing="5" cellpadding="5">
          <tr>
            <td>Password</td>
            <td><input type="password" name="password"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="Submit" value="Enter"></td>
          </tr>
        </table></form>
        <?php
        }    
		?>
</div>		
		<div class="end"></div>
	</div>
	<div id="div_footer">
		&copy; Hot <a href="http://www.hotdreamweaver.com">Dreamweaver</a>. All rights reserved. <a href="http://www.hotdreamweaver.com">www.hotdreamweaver.com</a>
	</div>
</div>
</body>
</html>

Anon7 - 2021