当前位置: 首页>>代码示例>>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;未经允许,请勿转载。