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(); } }
function init() { $checkObj = new CheckRights($this); $checkObj->checkAdminRights(); }
function init() { $checkObj = new CheckRights($this); $checkObj->checkAdminRights(); $this->tablePre = isset(IWeb::$app->config['DB']['tablePre']) ? IWeb::$app->config['DB']['tablePre'] : ''; }