whoami7 - Manager
:
/
home
/
techyfnq
/
mailer.techinfrareviews.com
/
mailer.segnant.com
/
Upload File:
files >> //home/techyfnq/mailer.techinfrareviews.com/mailer.segnant.com/index.php
<?php session_start(); require 'configuration.php'; require_once 'includes/common.functions.php'; require_once ('classes/database.php'); require_once ('classes/functions.php'); $sqlObj = new mysqlClass; $funcObj = new funcClass; if (isset($_POST['formtype']) && $_POST['formtype'] == 'login') { $email = trim($_POST['email']); $password = trim($_POST['password']); $error = ""; if (empty($email)) { $error = "E-mail address is required<br /> "; } else if (!validate_email ($email)) { $error = "Invalid e-mail address<br />"; } if (isset($_POST['formtype']) && $_POST['formtype'] == 'login') { if (empty($password)) { $error .= "Password cannot be left blank"; } } if (strlen($error)) { $errorMsg = "<strong>Please correct the following error(s):</strong> <br /> $error"; } else { // If there is no error then try to login $resultSet = $funcObj->login($email,$password); if (count($resultSet)) { // User Authenticated // Set session variables if($resultSet[0]['IS_ACTIVE'] == 0 ){ $error = "Your account is inactive.Please contact with admin. <br />"; $errorMsg = $error; }else{ $_SESSION["SUPER_USER_NAME"] = $resultSet[0]['FULLNAME']; $_SESSION["SUPER_USER_ID"] = $resultSet[0]['USER_ID']; // If the Logged In User is a client if ($resultSet[0]['USER_TYPE'] == 'ADMIN') { $_SESSION["IS_USER_CLIENT"] = 0; // Redirect the user to desktop page header ("location: overview.php"); } else { $_SESSION["IS_USER_CLIENT"] = 1; // Redirect the user to report page header ("location: reports.php"); } } } else { $error = "Incorrect e-mail or password, please try again.<br />"; $errorMsg = $error; } } } ## IF THE FORGOT PASSWORD FORM IS SUBMITTED if (isset($_POST['formtype']) && $_POST['formtype'] == 'forgotpassword') { echo "recover password"; die(); } ?> <!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=utf-8" /> <title>Welcome to Segnant Mailer</title> <script type="text/javascript" src="includes/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="includes/js/common.jquery.js"></script> <script type="text/javascript" src="includes/js/index.jquery.js"></script> <link rel="stylesheet" type="text/css" href="includes/css/segnantmailer.css" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="79" class="headerbg"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="headeritems"> <tr> <td width="32%" rowspan="3" style="padding-left:10px;"><img src="images/logo.png" alt="" border="0" /></td> <td width="68%" align="right" style="padding-right:10px;" class="white"> </td> </tr> <tr> <td height="42"> </td> </tr> <tr> <td align="right" style="padding-right:10px;" class="size14 bold white"> </td> </tr> </table> </td> </tr> <tr> <td class="canvas" height="300" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="4"> <tr> <td colspan="2" class="heading" height="50" valign="top"> </td> </tr> <tr> <td colspan="2" height="20"> </td> </tr> <tr> <td colspan="2" align="center"> <?php if(isset($errorMsg) && !empty($errorMsg)){ echo "<center>"; errorMessage($errorMsg); echo "</center>"; } ?> <div id="formTableDiv"> <form name="frmlogin" action="index.php" method="post" style="margin: 0"> <table width="400" border="0" cellspacing="0" cellpadding="8" align="center" class="formtable"> <tr> <td colspan="2" height="40" class="size16 bold" width="400">Login to Admin Panel</td> </tr> <tr> <td width="50%"><strong>Email</strong></td> <td><strong>Password</strong></td> </tr> <tr> <td><input type="text" name="email" maxlength="35" size="32" value="<?php isset($_REQUEST['email']) ? $_REQUEST['email'] : ''?>" class="textbox" /></td> <td><input type="password" name="password" maxlength="35" size="32" class="textbox" /></td> </tr> <tr> <td><a href="#" id="forgotLink">Forgot your password?</a></td> <td align="right" style="text-align:right"><input type="submit" name="submit" value="Submit" class="button size2" /></td> </tr> <tr> <td height="2"></td> <td></td> </tr> </table> <input type="hidden" name="formtype" value="login" /> </form> </div> <div id="ForgotPasswordTableDiv" style="display:none"> <form name="frmForgot" action="index.php" method="post" style="margin: 0" onsubmit="return submitforgotpassword()"> <table width="400" border="0" cellspacing="0" cellpadding="8" align="center" class="formtable"> <tr> <td colspan="2" height="40" class="size16 bold" width="400">Forgot your password?</td> </tr> <tr> <td width="50%" colspan="2"><strong>Email Address</strong></td> </tr> <tr> <td colspan="2"><input type="text" name="email2" id="email2" class="textbox" maxlength="35" size="71" /></td> </tr> <tr> <td><a href="#" id="backtoLink">Back to login</a></td> <td align="right" style="text-align:right"><input type="submit" name="submit" value="Retrieve Password" class="button size4" /></td> </tr> <tr> <td align="left" height="38" colspan="2" id="preloader"><small>Enter the e-mail address you registered with and hit Retrieve Password button</small></td> </tr> </table> <input type="hidden" name="formtype" value="forgotpassword" /> </form> </div> </td> </tr> <tr> <td width="50%" valign="top"> </td> <td height="100" width="50%" valign="top"> </td> </tr> </table></td> </tr> <? require_once 'includes/inc.footer.php' ?> </table> </body> </html>
Copyright ©2021 || Defacer Indonesia