Esempio n. 1
0
function getAdminLogin()
{
    if ($_SESSION['adminUser']) {
        unset($_SESSION['adminUser']);
    }
    // get captcha text
    $showCaptcha = getCaptchaText();
    $html = '';
    $html = '<input type="hidden" name="sCaptcha" value="' . $showCaptcha . '">';
    $html .= '<tr class="header"><td colspan="2">Admin Area - Login</td></tr>';
    $html .= '<tr><td width="100">Username</td><td><input type="text" name="uName" value=""></td></tr>';
    $html .= '<tr><td>Password</td><td><input type="password" name="uPass" value=""></td></tr>';
    $html .= '<tr><td>Enter Code</td><td><input type="text" size="6" name="uCaptcha" value="">&nbsp;<span class="captcha">' . $showCaptcha . '</span></td></tr>';
    $html .= '<tr><td>&nbsp;</td><td><input style="cursor:pointer;" type="submit" name="submit" value="Login"></td></tr>';
    include "../includes/config.php";
    if ($CONFIG['showAdminResetPasswordLink']) {
        $html .= '<tr><td>&nbsp;</td><td>&#187;&nbsp;<a href="?option=lostPassword">Reset Password?</a></td></tr>';
    }
    return $html;
}
Esempio n. 2
0
<?php

// include files
include "../../includes/session.php";
include "../../includes/functions.php";
include "../../lang/" . getLang('');
// captcha
$showCaptcha = getCaptchaText();
// send email
if ($_POST) {
    $result = sendAdminEmail('1', $_POST['id'], $_POST['report']);
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head> 
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="style.css">

<style>

.table
{
	border: 0px;
}

.header
{
	font-weight: bold;