Example #1
0
 function init()
 {
     if (IReq::get('action') == 'goods_img_upload') {
         $admin_name = IFilter::act(IReq::get('admin_name'));
         $admin_pwd = IFilter::act(IReq::get('admin_pwd'));
         $adminObj = new IModel('admin');
         $adminRow = $adminObj->getObj("admin_name = '" . $admin_name . "'", 'password');
         if (empty($adminRow) || $adminRow['password'] != $admin_pwd) {
             exit;
         }
     } else {
         $checkObj = new CheckRights($this);
         $checkObj->checkAdminRights();
     }
 }
Example #2
0
 function init()
 {
     $checkObj = new CheckRights($this);
     $checkObj->checkAdminRights();
 }
Example #3
0
 function init()
 {
     $checkObj = new CheckRights($this);
     $checkObj->checkAdminRights();
     $this->tablePre = isset(IWeb::$app->config['DB']['tablePre']) ? IWeb::$app->config['DB']['tablePre'] : '';
 }