Ejemplo n.º 1
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
if (!isset($orgUsrObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
$order = $_POST['order'];
$Data['tDashboard'] = $order;
//$orgObj->setAllVar($Data);
$where = " iUserID = '" . $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'] . "'";
$res = $orgUsrObj->updateData($Data, $where);
exit;
Ejemplo n.º 2
0
         $secManObj = new SecurityManager();
     }
     $where = " (vUserName='******') ";
     $data['vActivationCode'] = '';
     $data['vPassword'] = $generalobj->encrypt($newpass);
     $id = $secManObj->updateData($data, $where);
 } else {
     if ($memtype == 'orguser') {
         if (!isset($orgUsrObj)) {
             require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
             $orgUsrObj = new OrganizationUser();
         }
         $where = " (vUserName='******') ";
         $data['vActivationCode'] = '';
         $data['vPassword'] = $generalobj->encrypt($newpass);
         $id = $orgUsrObj->updateData($data, $where);
         if (!isset($orgObj)) {
             include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
             $orgObj = new Organization();
         }
         $orgDetail = $orgObj->select($memArr[0]['iOrganizationID']);
     }
 }
 $name = $memArr[0]['vFirstName'] . " " . $memArr[0]['vLastName'];
 if (!isset($sendMail)) {
     require_once SITE_CLASS_GEN . "class.sendmail.php";
     $sendMail = new SendPHPMail();
 }
 /*if($memtype == 'orguser')
   {
       $compname=$orgDetail[0]['vCompanyName'];
Ejemplo n.º 3
0
} else {
    $dt = $Data;
    $dt['eStatus'] = $Data['eStatus'] = 'Active';
}
$dt['iModifiedByID'] = $Data['iModifiedByID'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
$dt['eModifiedBy'] = $Data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
$oudt = $orgUserObj->getDetails('*', " AND iUserID={$iUserID} ");
$Data['iCreatedBy'] = $oudt[0]['iCreatedBy'];
$Data['eCreatedBy'] = $oudt[0]['eCreatedBy'];
$Data['vPassword'] = $oudt[0]['vPassword'];
$userToVerifyObj->setAllVar($Data);
// prints($Data);exit;
$iVerifiedID = $userToVerifyObj->insert($Data);
if ($iVerifiedID) {
    $where = "  iUserID='" . $iUserID . "'";
    $updateSucc = $orgUserObj->updateData($dt, $where);
}
$iOrgID = $Data['iOrganizationID'];
$userName = $Data['vFirstName'] . " " . $Data['vLastName'];
$userEmail = $Data['vEmail'];
//unset($Data);
if (!$updateSucc) {
    $iUserID = '';
}
if ($iUserID) {
    /*
         unset ($Data['dLastAccessDate']);
         $Data['iUserID']=$iUserID;
         $Data['iVerifiedID']='';
         $userToVerifyObj->setAllVar($Data);
         $iVerifiedID=$userToVerifyObj->insert(); */
Ejemplo n.º 4
0
 $dt['iRejectedById'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
 $dt['eRejectedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
 $dt['dRejectedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
 $res = $orgUserPermObj->updateData($dts, " iPermissionID={$iPermissionID} ");
 $iVerifiedID = $orgUserPermVerifyObj->getDetails('*', " AND iPermissionID={$iPermissionID} ", " iVerifiedID DESC ", '', " LIMIT 0,1");
 if (is_array($iVerifiedID) && count($iVerifiedID) > 0) {
     $iVerifiedID = $iVerifiedID[0]['iVerifiedID'];
     $rs = $orgUserPermVerifyObj->updateData($dt, " iVerifiedID={$iVerifiedID} ");
 }
 if ($res) {
     $updtl = $orgUserPermObj->select($iPermissionID);
     $iUserID = $updtl[0]['iUserID'];
     $usrprmtdtls = $orgUsrObj->getDetails('*', " AND iUserID={$iUserID} ");
     $vudtl = $userToVerifyObj->getDetails('*', " AND iUserID={$iUserID} ", " iVerifiedID DESC ", '', " LIMIT 0,1");
     if ($usrprmtdtls[0]['eStatus'] == 'Need to Verify' || $usrprmtdtls[0]['eStatus'] == 'Modified' || $usrprmtdtls[0]['eStatus'] == 'Delete' || $usrprmtdtls[0]['eNeedToVerify'] == 'Yes') {
         $rs = $orgUsrObj->updateData($dts, " iUserID={$iUserID} ");
         if ($vudtl[0]['iVerifiedID'] > 0) {
             $rs = $userToVerifyObj->updateData($dt, " iVerifiedID=" . $vudtl[0]['iVerifiedID']);
         }
     }
 }
 if ($res) {
     $msg = "rus";
 } else {
     $msg = "ruserr";
 }
 unset($_SESSION['from']);
 $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG'] = $msg;
 if ($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] == 'OA') {
     header('Location:' . SITE_URL_DUM . 'createorganizationuser/' . $usrprmtdtls[0]['iUserID'] . '/' . $var_msg);
     exit;
Ejemplo n.º 5
0
        } else {
            $var_msg = $smarty->get_template_vars('MSG_STATUS_SENT_ERR');
        }
    }
} else {
    $where = "AND iUserID IN ({$val})";
    $arr = $UsrObj->getDetails('*', $where);
    foreach ($arr as $k => $v) {
        if (($v['eStatus'] == 'Active' || $v['eStatus'] == 'Inactive' || $v['eStatus'] == '') && $v['eNeedToVerify'] != 'Yes') {
            $data['eStatus'] = 'Delete';
            $data['iModifiedByID'] = $sess_id;
            $data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
            $data['dModifiedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
            $UsrObj->setAllVar($data);
            $where = "iUserID IN (" . $v['iUserID'] . ")";
            $res = $UsrObj->updateData($data, $where);
            $data = $v;
            $data['eStatus'] = 'Delete';
            $data['iModifiedByID'] = $sess_id;
            $data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
            $data['dModifiedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
            $userToVerifyObj->setAllVar($data);
            $res = $userToVerifyObj->insert();
            // $res = $userToVerifyObj->updateData($data, $where);
            $where = 'AND iUserID = ' . $v['iUserID'] . '';
            $orderby = ' iVerifiedID Desc';
            $vrfid = $userToVerifyObj->getDetails('iVerifiedID', $where, $orderby);
            // ---------------------  ORGANIZATION DATA FETCHED ------------------------------------------//
            $iOrgID = $v['iOrganizationID'];
            $userName = $v['vFirstName'] . " " . $v['vLastName'];
            $userEmail = $v['vEmail'];
Ejemplo n.º 6
0
         } else {
             if ($orgusrdtls[0]['eStatus'] == 'Modified') {
                 $dt['eStatus'] = $dts['eStatus'] = "Active";
                 $dts['iModifiedByID'] = "";
                 $dts['eModifiedBy'] = "";
             } else {
                 if ($orgusrdtls[0]['eStatus'] == 'Delete') {
                     $dt['eStatus'] = $dts['eStatus'] = "Active";
                     $dts['iModifiedByID'] = "";
                     $dts['eModifiedBy'] = "";
                 }
             }
         }
     }
 }
 $res = $orgUserObj->updateData($dts, " iUserID={$iUserID} ");
 $iVerifiedID = $userToVerifyObj->getDetails('*', " AND iUserID={$iUserID} ", " iVerifiedID DESC ", '', " LIMIT 0,1");
 if (is_array($iVerifiedID) && count($iVerifiedID) > 0) {
     $iVerifiedID = $iVerifiedID[0]['iVerifiedID'];
     $rs = $userToVerifyObj->updateData($dt, " iVerifiedID={$iVerifiedID} ");
 }
 if ($res) {
     $usrprmtdtls = $orgUserPermObj->getDetails('*', " AND iUserID={$iUserID} ");
     $vudtl = $orgUserPermVerifyObj->getDetails('*', " AND iUserID={$iUserID} ", " iVerifiedID DESC ", '', " LIMIT 0,1");
     if ($usrprmtdtls[0]['eStatus'] == 'Need to Verify' || $usrprmtdtls[0]['eStatus'] == 'Modified' || $usrprmtdtls[0]['eStatus'] == 'Delete' || $usrprmtdtls[0]['eNeedToVerify'] == 'Yes') {
         $rs = $orgUserPermObj->updateData($dts, " iUserID={$iUserID} ");
         if ($vudtl[0]['iVerifiedID'] > 0) {
             $rs = $orgUserPermVerifyObj->updateData($dt, " iVerifiedID=" . $vudtl[0]['iVerifiedID']);
         }
     }
 }