public function deleteAction() { $top_menus = new FTable('top_menus'); $topid = FRequest::getInt('topid'); $top_menus->where(array('id' => $topid))->remove(true); FResponse::redirect('r'); }
public function deleteAction() { $spmT = new FTable('stats_spm'); $auto_id = FRequest::getInt('id'); $spmT->where(array('id' => $auto_id))->remove(true); FResponse::redirect('r'); }
protected function checkAuth() { $auth_info = Service_Manager::getSessionData(); if (!$auth_info) { FResponse::redirect('/admin/auth/login'); } return true; }
public function articleAction() { global $_F; $id = FRequest::getInt('id'); $table = new FTable("dynamics", "dy"); $dy = $table->where(array("id" => $id))->find(); // echo(json_encode($dy)); if (!$dy || $dy["uid"] <= 0) { return; } FResponse::redirect($dy["url"]); }
public function defaultAction() { global $_F; $url = "http://down.mumu123.cn/mumu/MuMu_1617_1000_6_1.005.apk"; $mumu_auth = FCookie::get('mumu_auth'); $v = FRequest::getString('v'); if ($v) { FResponse::redirect($url); } else { if ($mumu_auth) { FResponse::redirect($url); } else { FResponse::redirect('/public/reg'); } } }
public function deleteAction() { $useradds = new FTable('user_address'); $addrid = FRequest::getInt('addrid'); $useradds->where(array('addrid' => $addrid))->remove(true); FResponse::redirect('r'); }
public function logoutAction() { Service_Manager::removeSession(); FResponse::redirect('/'); }
public function deleteAction() { $uid = FRequest::getInt('uid'); $where = array('uid' => $uid); $managerList = $this->db_manager->where($where)->remove(true); FResponse::redirect('/admin/manager/list'); }
/** * 微信oauth登陆->第一步:用户同意授权,获取code * 应用授权作用域,snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid), * snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。并且,即使在未关注的情况下,只要用户授权,也能获取其信息) * 直接在微信打开链接,可以不填此参数。做页面302重定向时候,必须带此参数 * * @param string $redirect_uri 授权后重定向的回调链接地址 * @param string $scope 应用授权作用域 0为snsapi_base,1为snsapi_userinfo * @param string $state 重定向后会带上state参数,开发者可以填写任意参数值 */ public function redirectGetOauthCode($redirect_uri, $scope = 0, $state = '') { $scope = $scope == 0 ? 'snsapi_base' : 'snsapi_userinfo'; $url = self::CONNECT_OAUTH_AUTHORIZE_URL . 'appid=' . $this->appid . '&redirect_uri=' . urlencode($redirect_uri) . '&response_type=code&scope=' . $scope . '&state=' . $state . '#wechat_redirect'; // $logger = new FLogger('weixin_login'); // $logger->append($url); // echo($url); FResponse::redirect($url); // header("location: " . $url); }