Location: PHPKode > projects > PHP Enter > www/form.php
<?php if (eregi('form.php', $_SERVER['PHP_SELF'])) { die ('You can\'t access this file directly...'); }
include('settings.php');
require_once('./languages/lang_'.$config['lang'].'.php');
$tmp = mysql_query("SELECT * FROM categori ORDER BY name ASC") 
or die("A MySQL error has occurred.<br />Your Query: " . $tmp . "<br /> Error: (" . mysql_errno() . ") " . mysql_error());
while ($aclrow = mysql_fetch_assoc($tmp))
{
$ccval[] = $aclrow;
}
if(@$ccval == true){
$smarty->assign('path',$path);
$smarty->assign('title',$title);
$smarty->assign('temp',$temp);
$smarty->assign('categori', $ccval);
$smarty->display('blank.php');
}else{
$smarty->assign('path',$path);
$smarty->assign('title',$title);
$smarty->assign('temp',$temp);
$smarty->assign('categori', @$ccval);
$smarty->display('blank.php');
echo"There are no categories available!";
die();
}
?>
<script type="text/javascript">
 var RecaptchaOptions = {
    theme : 'white'
 };
 </script>
<body style="text-align: center">
<div id="center">
<table width="100%" style="font-size:13px;"><tr><td>
<?php echo $lang['LOGENTER'] ?>
</td></tr></table>
<form action="signin.php" name="ccform" method="post">
<?php
@$return=$_GET['return'];

if(@$return==true){
echo"<input name=\"return\" value=\"$return\" type=\"hidden\">";
}
?>
<table width="100%" style="font-size:13px;"><tr>
<td valign="top" width="195px"><?php echo $lang['USER'] ?>:</td>
<td><input style="width:318px;" name="username" type="text">
</td></tr></table>
<table width="100%" style="font-size:13px;"><tr>
<td valign="top" width="195px"><?php echo $lang['PASS'] ?>:</td>
<td><input style="width:318px;" name="password" type="password">
</td></tr></table>
<table width="100%" style="font-size:13px;"><tr>
<td valign="top" width="195px">
<?php echo $lang['CODE'] ?>:</td>
<td>
<?php
require_once('recaptchalib.php');
$publickey = $config['keypublic'];
echo recaptcha_get_html($publickey);
?>
</td></tr></table>
<table width="100%" style="font-size:13px;"><tr>
<td valign="top" width="195px"></td>
<td><input class="incc" type="submit" style="color:#ffffff;border:1px solid #ffffff;background:#A5C6EC" value="<?php echo $lang['LOGLOGIN'] ?>" name="Submit" type="button">
</td></tr></table>
<table width="100%" style="font-size:13px;"><tr><td>
<?php echo $lang['LOGFORGO']; ?> - 
<?php echo $lang['LOGSIGNP']; ?>
</td></tr></table>
</form>
</div></div>
</td></tr></table>
</div>
<?php
$smarty->display('footer.php');
?>
Return current item: PHP Enter