Ejemplo n.º 1
0
   {
      require_once(SITE_CLASS_APPLICATION."class.member.php");
      $memobj = new Member();
   }

   $smarty->assign('memobj',$memobj);
*/
//Check whether the login session created or not
//prints($_SESSION);exit;
$lgfl_ary = array('', 'c-logout', 'c-home', 'c-aboutus', 'c-contactus', 'c-privacypolicy', 'c-forgotpass', 'm-getcaptcha', 'm-aj_chkscode', 'm-orgregister', 'u-aj_chkdupdata', 'or-aj_chkdupdata', 'c-registrationactivation', 'm-aj_forgotpass');
if (SessionVar('SESS_' . PRJ_CONST_PREFIX . '_ID') == '' && !in_array($file, $lgfl_ary)) {
    $msg = "sessexp";
    header("Location:" . SITE_URL_DUM . "logout/" . $msg);
    exit;
} else {
    if (SessionVar('SESS_' . PRJ_CONST_PREFIX . '_ID') != '') {
        $mdtls = $usrobj->select($sess_id);
        if ($sess_usertype_short == 'SM') {
            if ($mdtls[0]['eStatus'] != 'Active') {
                header("Location: " . SITE_URL_DUM . "logout");
                exit;
            }
        } else {
            if ($mdtls[0]['eStatus'] == 'Inactive' && $mdtls[0]['eNeedToVerify'] == 'Yes' || $mdtls[0]['eStatus'] == 'Delete') {
                header("Location: " . SITE_URL_DUM . "logout");
                exit;
            }
        }
    }
}
//$where = " AND iUserId = '".$iAccHolderId."'";
Ejemplo n.º 2
0
<?php

/**
 * Add/Update File For Admin change password
 *
 * @package		addadminchangepassword.inc.php
 * @Section		general
 * @author		Andrew Dev
*/
if (SessionVar('' . PRJ_CONST_PREFIX . '_SESS_A_ROLE') != 'Premier Admin') {
    if ($iAdminId != SessionVar('' . PRJ_CONST_PREFIX . '_SESS_USERID')) {
        header("Location:index.php?file=ge-noaccess&view=add&AX=Yes");
        exit;
    }
}
$view = GetVar("view");
$iAdminId = GetVar("iAdminId");
$validation = "'vPassword','vconfirmPass'";
?>

<form name="frmadd" id="frmadd" action="index.php?file=ge-adminchangepassword&view=action" method="post" enctype="multipart/form-data">
<?php 
echo $generalobj->PrintElement("view", "view", $view, "Hidden");
echo $generalobj->PrintElement("iAdminId", "iAdminId", $iAdminId, "Hidden");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<?php 
if (GetVar('var_msg') != '') {
    ?>
<tr>
   <td height="35" align="center" >
Ejemplo n.º 3
0
    			<td width="19" align="right"><a href="<?php 
echo SITE_URL_DUM;
?>
" target="_blank" title="Site"   class="toplink">Site</a></td>
          <td width="10" align="center"><img src="<?php 
echo ADMIN_IMAGES;
?>
square-bullet.gif" alt=""  border="0"/></td>
          <td width="37"><a href="<?php 
echo ADMIN_URL . "index.php?file=gen-logout";
?>
" title="Logout" class="toplink">Logout</a></td>
        </tr>
		<tr>
			<td align="right" colspan="11" valign="top" class="welcome-text">Welcome : <span class=""><?php 
print SessionVar('' . PRJ_CONST_PREFIX . '_SESS_NAME');
?>
</span></td>
		</tr>
	    </table>
	</td>
</tr>

<tr>
    <td colspan="2" class="topnav-bg">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td><?php 
print $menubobj->displayMenu();
?>
</td>
Ejemplo n.º 4
0
 /**
  * Function::ChkMemType()
  * Check member access page according to is type(Member/Customer)
  * added by Andrew Dev
  */
 function ChkMemType($type)
 {
     if (SessionVar('' . PRJ_CONST_PREFIX . '_SESS_USERTYPE') != $type) {
         $msg = "notauthorized";
         header("Location:" . SITE_URL_DUM . "notauthorised");
         exit;
     }
 }
Ejemplo n.º 5
0
<?php

include_once "web.config.php";
$dLogoutDate = date("Y-m-d H:i");
$Data = array("dLogoutDate" => $dLogoutDate);
$dbobj->MySQLQueryPerform('' . PRJ_DB_PREFIX . '_login_history', $Data, 'update', "iLLogsId = '" . SessionVar('' . PRJ_CONST_PREFIX . '_SESS_ID_LOG') . "'");
$err_msg = "You have successfully Logged Out";
foreach ($_SESSION as $key => $val) {
    $sesscode = substr($key, 0, strlen(PRJ_CONST_PREFIX));
    if ($sesscode == '' . PRJ_CONST_PREFIX . '') {
        $_SESSION[$key] = "";
    }
}
//session_destroy();
header("Location:" . ADMIN_URL);
exit;