當前位置: 首頁>>代碼示例>>PHP>>正文


PHP msg_url函數代碼示例

本文整理匯總了PHP中msg_url函數的典型用法代碼示例。如果您正苦於以下問題:PHP msg_url函數的具體用法?PHP msg_url怎麽用?PHP msg_url使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了msg_url函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: index

 public function index($fid = 'id', $id = 0, $page = 0)
 {
     $id = intval($id);
     //ID
     $page = intval($page);
     //頁數
     if ($page == 0) {
         $page = 1;
     }
     //判斷ID
     if ($id == 0) {
         msg_url(L('dance_09'), Web_Path);
     }
     //獲取數據
     $row = $this->CsdjDB->get_row_arr('dance_list', '*', $id);
     if (!$row || $row['yid'] > 0) {
         msg_url(L('dance_18'), Web_Path);
     }
     //判斷運行模式,生成則跳轉至靜態頁麵
     $html = config('Html_Uri');
     if (config('Web_Mode') == 3 && $html['lists']['check'] == 1) {
         //獲取靜態路徑
         $Htmllink = LinkUrl('lists', $fid, $id, $page, 'dance');
         header("Location: " . $Htmllink);
         exit;
     }
     //獲取當前分類下二級分類ID
     $ids = getChild($id);
     //裝載模板並輸出
     $skins = empty($row['skins']) ? 'list.html' : $row['skins'];
     $this->CsdjTpl->plub_list($row, $id, $fid, $page, $ids, false, $skins, 'lists', 'dance', $row['name'], $row['name']);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:32,代碼來源:lists.php

示例2: index

 public function index($name)
 {
     if (empty($name)) {
         msg_url('出錯了,模板標示為空!', Web_Path);
     }
     $this->CsdjTpl->opt($name);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:7,代碼來源:opt.php

示例3: del

 public function del()
 {
     $id = intval($this->uri->segment(4));
     $callback = $this->input->get('callback', true);
     $row = $this->db->query("select uid from " . CS_SqlPrefix . "vod_fav where id=" . $id . "")->row();
     if ($row) {
         if ($row->uid != $_SESSION['cscms__id']) {
             $err = 1002;
             if (empty($callback)) {
                 msg_url('沒有權限操作', 'javascript:history.back();');
             }
         } else {
             $this->db->query("DELETE FROM " . CS_SqlPrefix . "vod_fav where id=" . $id . "");
             $err = 1001;
             if (empty($callback)) {
                 msg_url('刪除成功~!', 'javascript:history.back();');
             }
         }
     } else {
         $err = 1002;
         if (empty($callback)) {
             msg_url('數據不存在', 'javascript:history.back();');
         }
     }
     echo $callback . "({error:" . $err . "})";
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:26,代碼來源:fav.php

示例4: index

 public function index($fid = 'id', $id = 0, $page = 0)
 {
     $id = intval($id);
     //ID
     $page = intval($page);
     //頁數
     if ($page == 0) {
         $page = 1;
     }
     //判斷ID
     if ($id == 0) {
         msg_url('出錯了,ID不能為空!', Web_Path);
     }
     //獲取數據
     $row = $this->CsdjDB->get_row_arr('vod_list', '*', $id);
     if (!$row || $row['yid'] > 0) {
         msg_url('出錯了,該分類不存在!', Web_Path);
     }
     //判斷運行模式,生成則跳轉至靜態頁麵
     $html = config('Html_Uri');
     if (config('Web_Mode') == 3 && $html['lists']['check'] == 1 && !defined('MOBILE')) {
         //獲取靜態路徑
         $Htmllink = LinkUrl('lists', $fid, $id, $page, 'vod');
         header("Location: " . $Htmllink);
         exit;
     }
     //獲取當前分類下二級分類ID
     $arr['cid'] = getChild($id);
     $arr['fid'] = $row['fid'] == 0 ? $row['id'] : $row['fid'];
     $arr['sid'] = $arr['fid'];
     //裝載模板並輸出
     $skins = empty($row['skins']) ? 'list.html' : $row['skins'];
     $this->CsdjTpl->plub_list($row, $id, $fid, $page, $arr, false, $skins, 'lists', 'vod', $row['name'], $row['name']);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:34,代碼來源:lists.php

示例5: index

 public function index($name)
 {
     if (empty($name)) {
         msg_url(L('dance_19'), Web_Path);
     }
     $this->CsdjTpl->opt($name);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:7,代碼來源:opt.php

示例6: index

 public function index()
 {
     $id = (int) $this->uri->segment(4);
     //ID
     //模板
     $tpl = 'blog.html';
     //當前會員
     $uid = get_home_uid();
     if ($uid == 0) {
         msg_url(L('home_01'), 'http://' . Web_Url . Web_Path);
     }
     $row = $this->CsdjDB->get_row_arr('user', '*', $uid);
     if (empty($row['nichen'])) {
         $row['nichen'] = $row['name'];
     }
     //裝載模板
     $title = $row['nichen'] . L('blog_01');
     $ids['uid'] = $row['id'];
     $ids['uida'] = $row['id'];
     $rowb = $this->db->query("SELECT * FROM " . CS_SqlPrefix . "blog where uid=" . $uid . " and id=" . $id . "")->row_array();
     if (!$rowb) {
         msg_url(L('blog_02'), 'http://' . Web_Url . Web_Path);
     }
     $Mark_Text = $this->CsdjTpl->home_list($row, 'blog', 1, $tpl, $title, $ids, '', '', true, FALSE);
     $Mark_Text = $this->skins->cscms_skins('blog', $Mark_Text, $Mark_Text, $rowb);
     //解析當前數據標簽
     //評論
     $Mark_Text = str_replace("[blog:pl]", get_pl('blog', $id), $Mark_Text);
     $Mark_Text = $this->skins->template_parse($Mark_Text, true, true);
     echo $Mark_Text;
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:31,代碼來源:blog.php

示例7: show

 public function show($id = 0)
 {
     $id = intval($id);
     //ID
     //判斷ID
     if ($id == 0) {
         msg_url('出錯了,ID不能為空!', Web_Path);
     }
     //獲取數據
     $row = $this->CsdjDB->get_row_arr('vod_topic', '*', $id);
     if (!$row || $row['yid'] > 0) {
         msg_url('出錯了,該專題不存在!', Web_Path);
     }
     //判斷運行模式,生成則跳轉至靜態頁麵
     $html = config('Html_Uri');
     if (config('Web_Mode') == 3 && $html['topic/show']['check'] == 1 && !defined('MOBILE')) {
         //獲取靜態路徑
         $Htmllink = LinkUrl('topic', 'show', $id, 1, 'vod');
         header("Location: " . $Htmllink);
         exit;
     }
     //裝載模板並輸出
     $ids['tid'] = $id;
     $Mark_Text = $this->CsdjTpl->plub_show('topic', $row, $ids, true, 'topic-show.html', $row['name'], $row['name']);
     //評論
     $Mark_Text = str_replace("[topic:pl]", get_pl('vod', $id, 1), $Mark_Text);
     //增加人氣
     $Mark_Text = hits_js($Mark_Text, hitslink('hits/ids/' . $id . '/topic', 'vod'));
     echo $Mark_Text;
     $this->cache->end();
     //由於前麵不是直接輸出,所以這裏需要加入寫緩存
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:32,代碼來源:topic.php

示例8: index

 public function index()
 {
     $name = $this->uri->segment(2);
     //頁麵標示
     if (empty($name)) {
         msg_url(L('opt_01'), Web_Path);
     }
     $this->CsdjTpl->opt($name);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:9,代碼來源:opt.php

示例9: del

 public function del()
 {
     $id = intval($this->uri->segment(4));
     //ID
     if ($id == 0) {
         msg_url(L('gbook_02'), 'javascript:history.back();');
     }
     $this->db->query("delete from " . CS_SqlPrefix . "gbook where uida=" . $_SESSION['cscms__id'] . " and id=" . $id . "");
     msg_url(L('gbook_03'), $_SERVER['HTTP_REFERER']);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:10,代碼來源:gbook.php

示例10: index

 public function index($fid = 'id', $id = 0, $page = 1)
 {
     $id = intval($id);
     //ID
     $page = intval($page);
     //ID
     if (preg_match("/^\\d*\$/", $fid)) {
         $id = intval($fid);
         $page = intval($id);
         $fid = 'id';
     }
     $cid = intval($this->input->get_post('cid'));
     if ($page == 0) {
         $page = 1;
     }
     //判斷ID
     if ($id == 0) {
         msg_url('出錯了,ID不能為空!', Web_Path);
     }
     //獲取數據
     $row = $this->CsdjDB->get_row_arr('singer', '*', $id);
     if (!$row || $row['yid'] > 0 || $row['hid'] > 0) {
         msg_url('出錯了,該歌手不存在!', Web_Path);
     }
     //判斷運行模式,生成則跳轉至靜態頁麵
     $html = config('Html_Uri');
     if (config('Web_Mode') == 3 && $html['show']['check'] == 1) {
         //獲取靜態路徑
         $Htmllink = LinkUrl('pic', $cid, $id, 0, 'singer');
         header("Location: " . $Htmllink);
         exit;
     }
     if ($cid > 0) {
         $arr['cid'] = getChild($cid);
     }
     $arr['tags'] = $row['tags'];
     $arr['singerid'] = $id;
     //摧毀部分需要超級鏈接字段數組
     $rows = $row;
     //先保存數組保留下麵使用
     unset($row['tags']);
     //裝載模板並輸出
     $Mark_Text = $this->CsdjTpl->plub_list($row, $id, $fid, $page, $arr, TRUE, 'pic.html', 'pic', 'singer', $row['name'], $row['name']);
     //評論
     $Mark_Text = str_replace("[singer:pl]", get_pl('singer', $id), $Mark_Text);
     //分類地址、名稱
     $Mark_Text = str_replace("[singer:link]", LinkUrl('show', 'id', $row['id'], 1, 'singer'), $Mark_Text);
     $Mark_Text = str_replace("[singer:classlink]", LinkUrl('lists', 'id', $row['cid'], 1, 'singer'), $Mark_Text);
     $Mark_Text = str_replace("[singer:classname]", $this->CsdjDB->getzd('singer_list', 'name', $row['cid']), $Mark_Text);
     //標簽加超級連接
     $Mark_Text = str_replace("[singer:tags]", SearchLink($rows['tags']), $Mark_Text);
     echo $Mark_Text;
     $this->cache->end();
     //由於前麵不是直接輸出,所以這裏需要加入寫緩存
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:55,代碼來源:pic.php

示例11: index

 public function index()
 {
     $this->CsdjUser->User_Login();
     $id = (int) $this->uri->segment(4);
     //訂單ID
     if ($id == 0) {
         msg_url(L('pay_01'), spacelink('pay'));
     }
     $row = $this->CsdjDB->get_row('pay', '*', $id);
     if (!$row || $row->uid != $_SESSION['cscms__id']) {
         msg_url(L('pay_02'), spacelink('pay'));
     }
     echo L('pay_18');
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:14,代碼來源:kqpay.php

示例12: index

 public function index()
 {
     $name = $this->uri->segment(3);
     //頁麵標示
     if (empty($name)) {
         msg_url(L('page_01'), Web_Path);
     }
     //獲取數據
     $row = $this->CsdjDB->get_row_arr('page', '*', $name, 'name');
     if (!$row) {
         msg_url(L('page_02'), Web_Path);
     }
     $this->CsdjTpl->page($row);
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:14,代碼來源:page.php

示例13: index

 public function index()
 {
     //刪除在線狀態
     $updata['zx'] = 0;
     if (isset($_SESSION['cscms__id'])) {
         $this->CsdjDB->get_update('user', $_SESSION['cscms__id'], $updata);
         $this->CsdjDB->get_del('session', $_SESSION['cscms__id'], 'uid');
     }
     unset($_SESSION['cscms__id'], $_SESSION['cscms__name'], $_SESSION['cscms__login']);
     //清除記住登錄
     $this->cookie->set_cookie("user_id");
     $this->cookie->set_cookie("user_login");
     //--------------------------- Ucenter ---------------------------
     $log = User_Uc_Mode == 1 ? uc_user_synlogout : '';
     //--------------------------- Ucenter ---------------------------
     msg_url(L('logout_01') . $log, userurl(site_url('user/login')), 'ok');
     //退出登錄成功
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:18,代碼來源:logout.php

示例14: return_url

 public function return_url()
 {
     $this->CsdjUser->User_Login();
     $v_oid = $this->input->get('v_oid', TRUE, TRUE);
     $v_pstatus = $this->input->get('v_pstatus', TRUE, TRUE);
     $v_pstring = $this->input->get('v_pstring', TRUE, TRUE);
     $v_amount = $this->input->get('v_amount', TRUE, TRUE);
     $v_moneytype = $this->input->get('v_moneytype', TRUE, TRUE);
     $v_md5str = $this->input->get('v_md5str', TRUE, TRUE);
     $key = CS_Wypay_Key;
     //重新計算md5的值
     $md5string = strtoupper(md5($v_oid . $v_pstatus . $v_amount . $v_moneytype . $key));
     //拚湊加密串
     //支付狀態驗證
     if ($v_md5str == $md5string && $v_pstatus == "20") {
         msg_url(L('pay_07') . $v_oid, spacelink('pay'));
     } else {
         //驗證支付失敗
         msg_url(L('pay_09'), spacelink('pay'));
     }
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:21,代碼來源:wypay.php

示例15: index

 public function index($fid = 'id', $id = 0)
 {
     $id = intval($fid) > 0 ? intval($fid) : intval($id);
     //ID
     //判斷ID
     if ($id == 0) {
         msg_url('出錯了,ID不能為空!', Web_Path);
     }
     //獲取數據
     $row = $this->CsdjDB->get_row_arr('pic_type', '*', $id);
     if (!$row || $row['yid'] > 0 || $row['hid'] > 0) {
         msg_url('出錯了,該數據不存在或者沒有審核!', Web_Path);
     }
     //判斷運行模式,生成則跳轉至靜態頁麵
     $html = config('Html_Uri');
     if (config('Web_Mode') == 3 && $html['show']['check'] == 1) {
         //獲取靜態路徑
         $Htmllink = LinkUrl('show', $fid, $id, 0, 'pic');
         header("Location: " . $Htmllink);
         exit;
     }
     //摧毀部分需要超級鏈接字段數組
     $rows = $row;
     //先保存數組保留下麵使用
     unset($row['tags']);
     //獲取當前分類下二級分類ID
     $arr['cid'] = getChild($row['cid']);
     $arr['uid'] = $row['uid'];
     $arr['tags'] = $rows['tags'];
     $arr['sid'] = $row['id'];
     //默認模板
     $skins = empty($row['skins']) ? 'show.html' : $row['skins'];
     //裝載模板並輸出
     $Mark_Text = $this->CsdjTpl->plub_show('pic', $row, $arr, TRUE, $skins, $row['name'], $row['name']);
     //評論
     $Mark_Text = str_replace("[pic:pl]", get_pl('pic', $id), $Mark_Text);
     //分類地址、名稱
     $Mark_Text = str_replace("[pic:link]", LinkUrl('show', 'id', $row['id'], 1, 'pic'), $Mark_Text);
     $Mark_Text = str_replace("[pic:classlink]", LinkUrl('lists', 'id', $row['cid'], 1, 'pic'), $Mark_Text);
     $Mark_Text = str_replace("[pic:classname]", $this->CsdjDB->getzd('pic_list', 'name', $row['cid']), $Mark_Text);
     //獲取上下張
     preg_match_all('/[pic:slink]/', $Mark_Text, $arr);
     if (!empty($arr[0]) && !empty($arr[0][0])) {
         $rowd = $this->db->query("Select id,cid,pic,name from " . CS_SqlPrefix . "pic_type where yid=0 and hid=0 and id<" . $id . " order by id desc limit 1")->row();
         if ($rowd) {
             $Mark_Text = str_replace("[pic:slink]", LinkUrl('show', 'id', $rowd->id, 1, 'pic'), $Mark_Text);
             $Mark_Text = str_replace("[pic:sname]", $rowd->name, $Mark_Text);
             $Mark_Text = str_replace("[pic:sid]", $rowd->id, $Mark_Text);
             $Mark_Text = str_replace("[pic:spic]", piclink('pic', $rowd->pic), $Mark_Text);
         } else {
             $Mark_Text = str_replace("[pic:slink]", "#", $Mark_Text);
             $Mark_Text = str_replace("[pic:sname]", "沒有了", $Mark_Text);
             $Mark_Text = str_replace("[pic:sid]", 0, $Mark_Text);
             $Mark_Text = str_replace("[pic:spic]", piclink('pic', ''), $Mark_Text);
         }
     }
     unset($arr);
     preg_match_all('/[pic:xlink]/', $Mark_Text, $arr);
     if (!empty($arr[0]) && !empty($arr[0][0])) {
         $rowd = $this->db->query("Select id,cid,pic,name from " . CS_SqlPrefix . "pic_type where yid=0 and hid=0 and id>" . $id . " order by id asc limit 1")->row();
         if ($rowd) {
             $Mark_Text = str_replace("[pic:xlink]", LinkUrl('show', 'id', $rowd->id, 1, 'pic'), $Mark_Text);
             $Mark_Text = str_replace("[pic:xname]", $rowd->name, $Mark_Text);
             $Mark_Text = str_replace("[pic:xid]", $rowd->id, $Mark_Text);
             $Mark_Text = str_replace("[pic:xpic]", piclink('pic', $rowd->pic), $Mark_Text);
         } else {
             $Mark_Text = str_replace("[pic:xlink]", "#", $Mark_Text);
             $Mark_Text = str_replace("[pic:xname]", "沒有了", $Mark_Text);
             $Mark_Text = str_replace("[pic:xid]", 0, $Mark_Text);
             $Mark_Text = str_replace("[pic:xpic]", piclink('pic', ''), $Mark_Text);
         }
     }
     unset($arr);
     //標簽加超級連接
     $Mark_Text = str_replace("[pic:tags]", SearchLink($rows['tags']), $Mark_Text);
     //獲取當前相冊總數
     $pcount = $this->db->query("Select id from " . CS_SqlPrefix . "pic where sid=" . $id . " and hid=0 and yid=0")->num_rows();
     $Mark_Text = str_replace("[pic:count]", $pcount, $Mark_Text);
     //第一張圖片
     $rowp = $this->db->query("Select pic,content from " . CS_SqlPrefix . "pic where sid=" . $id . " and hid=0 and yid=0 order by id desc limit 1")->row();
     $pics = $rowp ? $rowp->pic : '';
     $content = $rowp ? $rowp->content : '';
     $Mark_Text = str_replace("[pic:url]", piclink('pic', $pics), $Mark_Text);
     $Mark_Text = str_replace("[pic:content]", $content, $Mark_Text);
     //增加人氣
     $Mark_Text = hits_js($Mark_Text, hitslink('hits/ids/' . $id, 'pic'));
     echo $Mark_Text;
     $this->cache->end();
     //由於前麵不是直接輸出,所以這裏需要加入寫緩存
 }
開發者ID:djqhuan,項目名稱:CSCMS-v4.0-UTF8,代碼行數:90,代碼來源:show.php


注:本文中的msg_url函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。