It looks like the two logins are meant to serve some purpose, but I can't figure it out? How would I comment out the upper boxes in the code. PHP novice. Thanks.
require_once('../libs/common.php');
require_once('../libs/operator.php');
$errors = array();
$page = array( 'formisRemember' => true, 'version' => $version);
if( isset($_POST['login']) && isset($_POST['password']) ) {
$login = getparam('login');
$password = getparam('password');
$remember = isset($_POST['isRemember']) && $_POST['isRemember'] == "on";
$operator = operator_by_login( $login );
if( $operator && isset($operator['vcpassword']) && $operator['vcpassword'] == md5($password) ) {
$target = isset($_SESSION['backpath'])
? $_SESSION['backpath']
: "$webimroot/operator/index.php";
login_operator($operator,$remember);
header("Location: $target");
exit;
} else {
$errors[] = getlocal("page_login.error");
$page['formlogin'] = $login;
}
}
$page['localeLinks'] = get_locale_links("$webimroot/operator/login.php");
start_html_output();
require('../view/login.php');
?>