Example #1
0
 /**
  * Function truncates the Admin activity records     
  * 
  * 
  * @return string
  */
 function deleteActivity()
 {
     include_once 'classes/Core/CAdminActivity.php';
     $default = new Core_CAdminActivity();
     $_SESSION['messageActivity'] = $default->deleteActivity();
     header('Location:?do=activity');
     exit;
     //Bin_Template::createTemplate('deleteAdminActivity.html',$output);
 }
Example #2
0
 /**
  * Function sets the admin and subadmin name in the session for displaying.
  * 
  * 
  * @return string
  */
 function userName()
 {
     include_once 'classes/Core/CAdminActivity.php';
     $user = '';
     $id = 0;
     $flag = 1;
     if ($_SESSION['adminId'] != '') {
         $user = $_SESSION['adminName'];
         $id = $_SESSION['adminId'];
     } else {
         if ($_SESSION['subadminId'] != '') {
             $user = $_SESSION['subadminName'];
             $id = $_SESSION['subadminId'];
             $flag = 0;
         }
     }
     Core_CAdminActivity::setReport($user, $id, $flag);
     return $user;
 }