コード例 #1
0
ファイル: goods.php プロジェクト: Wen1750686723/utao
 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();
     }
 }
コード例 #2
0
ファイル: member.php プロジェクト: Wen1750686723/utao
 function init()
 {
     $checkObj = new CheckRights($this);
     $checkObj->checkAdminRights();
 }
コード例 #3
0
ファイル: tools.php プロジェクト: Wen1750686723/utao
 function init()
 {
     $checkObj = new CheckRights($this);
     $checkObj->checkAdminRights();
     $this->tablePre = isset(IWeb::$app->config['DB']['tablePre']) ? IWeb::$app->config['DB']['tablePre'] : '';
 }