• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP udecode函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中udecode函数的典型用法代码示例。如果您正苦于以下问题:PHP udecode函数的具体用法?PHP udecode怎么用?PHP udecode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了udecode函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getRecentGoods

}

getRecentGoods($id);

//	查看是否已经收藏该团购
$had_collect = false;
if ($login_user_id) {
	$collect = DB::GetTableRow("collect",array('user_id'=>$login_user_id,'team_id'=>$id));
	if($collect){
		$had_collect = true;
	}
}

/* refer */
if ($_rid = strval($_GET['r'])) {
	$_rid = udecode($_rid);
	$_user = Table::Fetch('user',$_rid,'email');
	if($_user) cookieset('_rid', abs(intval($_user['id'])));
	redirect( WEB_ROOT . "/team.php?id={$id}");
}
$teamcity = Table::Fetch('category', $team['city_id']);
$city = $teamcity ? $teamcity : $city;
$city = $city ? $city : array('id'=>0, 'name'=>'全部');

$pagetitle = $team['title'];

$discount_price = $team['market_price'] - $team['team_price'];
$discount_rate = team_discount($team);

$left = array();
$now = time();
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:team.php


示例2: redirect

    $login_user = ZUser::GetLogin($_POST['email'], $_POST['password']);
    if (!$login_user) {
        Session::Set('error', '登录失败');
        redirect(WEB_ROOT . '/account/login.php');
    } else {
        if (option_yes('mobilecode') && $login_user['emailable'] == 'Y' && $login_user['enable'] == 'N') {
            $user['id'] = $login_user['id'];
            Session::Set('error', '请验证手机号');
            die(include template('account_signmobile'));
        } else {
            if (option_yes('emailverify') && $login_user['emailable'] == 'N' && $login_user['enable'] == 'N' && $login_user['secret']) {
                Session::Set('unemail', $_POST['email']);
                redirect(WEB_ROOT . '/account/verify.php');
            } else {
                Session::Set('user_id', $login_user['id']);
                if (abs(intval($_POST['auto_login']))) {
                    ZLogin::Remember($login_user);
                }
                ZUser::SynLogin($login_user['username'], $_POST['password']);
                ZCredit::Login($login_user['id']);
                redirect(get_loginpage(WEB_ROOT . '/index.php'));
            }
        }
    }
}
$currefer = strval($_GET['r']);
if ($currefer) {
    Session::Set('loginpage', udecode($currefer));
}
$pagetitle = '登录';
include template('account_login');
开发者ID:norain2050,项目名称:zuituware,代码行数:31,代码来源:login.php


示例3: require_once

 * ----------------------------------------------------------------------------
 * This is not free software
 * ----------------------------------------------------------------------------
 * @author abei <[email protected]>
 * @version 1.0
 * @link http://www.qiang8.cn
 */ 
require_once(dirname(dirname(__FILE__)) . '/app.php');

$ename = strval($_GET['n']);
$currefer = null;
if ($ename&&$ename!='none') {
	$city = Table::Fetch('category', $ename, 'ename');
	if ($city) { 
		cookie_city($city);
		$currefer = udecode($currefer);
		if ($currefer) {
			redirect($currefer);
		} else if ( $_SERVER['HTTP_REFERER'] ) {
			if (!preg_match('#'.$_SERVER['HTTP_HOST'].'#', $_SERVER['HTTP_REFERER'])) {
				redirect( 'index.php');
			}
			if (preg_match('#/city#', $_SERVER['HTTP_REFERER'])) {
				redirect( 'index.php');
			}
			redirect($_SERVER['HTTP_REFERER']);
		}
		redirect('index.php');
	}
}
开发者ID:noikiy,项目名称:mdwp,代码行数:30,代码来源:city.php


示例4: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/app.php';
need_manager();
need_auth('ask');
$id = abs(intval($_GET['id']));
Table::Delete('ask', $id);
Session::Set('notice', "删除团购咨询({$id})记录成功");
redirect(udecode($_GET['r']));
开发者ID:norain2050,项目名称:zuituware,代码行数:9,代码来源:askremove.php


示例5: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/app.php';
need_manager();
need_auth('market');
$action = strval($_GET['action']);
$id = abs(intval($_GET['id']));
$r = udecode($_GET['r']);
$cate = strval($_GET['cate']);
$like = strval($_GET['like']);
if ($action == 'r') {
    Table::Delete('feedback', $id);
    redirect($r);
} else {
    if ($action == 'm') {
        Table::UpdateCache('feedback', $id, array('user_id' => $login_user_id));
        redirect($r);
    }
}
$condition = array();
if ($cate) {
    $condition['category'] = $cate;
}
if ($like) {
    $condition[] = "content like '%" . mysql_escape_string($like) . "%'";
}
$count = Table::Count('feedback', $condition);
list($pagesize, $offset, $pagestring) = pagestring($count, 20);
$asks = DB::LimitQuery('feedback', array('condition' => $condition, 'order' => 'ORDER BY id DESC', 'size' => $pagesize, 'offset' => $offset));
$user_ids = Utility::GetColumn($asks, 'user_id');
$users = Table::Fetch('user', $user_ids);
开发者ID:hhdem,项目名称:tuangala_v2,代码行数:31,代码来源:feedback.php


示例6: dirname

<?php

require_once dirname(dirname(dirname(__FILE__))) . '/app.php';
need_manager();
$id = abs(intval($_GET['id']));
$team = Table::Fetch('team', $id);
$order = Table::Fetch('order', $id, 'team_id');
if ($order) {
    Session::Set('notice', "删除团购({$id})记录失败,存在订单记录");
} else {
    Table::Delete('team', $id);
    Session::Set('notice', "删除团购({$id})记录成功");
}
Utility::Redirect(udecode($_GET['r']));
开发者ID:BGCX262,项目名称:zuitu-svn-to-git,代码行数:14,代码来源:remove.php


示例7: cookie_city

function cookie_city($city)
{
    if ($city) {
        $city_v = uencode("{$city['id']}|{$city['ename']}|{$city['name']}");
        $expire = time() + 365 * 86400;
        cookieset('city', $city_v);
    } else {
        if (!cookieget('city')) {
            $city = get_city();
            if (!$city) {
                return array();
            }
            return cookie_city($city);
        } else {
            $v = explode('|', udecode(cookieget('city')));
            return array('id' => $v[0], 'ename' => $v[1], 'name' => $v[2]);
        }
    }
    return $city;
}
开发者ID:jowino,项目名称:bd786110cact,代码行数:20,代码来源:common.php


示例8: dirname

<?php

require_once dirname(__FILE__) . '/app.php';
$mail = strval($_GET['r']);
if ($mail) {
    $mail = udecode($mail);
    $user = Table::Fetch('user', $mail, 'email');
    $id = $user['id'];
    if ($login_user_id) {
        ZInvite::CreateFromId($id, $login_user_id);
    } else {
        $longtime = 86400 * 3;
        //3 days
        cookieset('_rid', $id, $longtime);
    }
}
redirect(WEB_ROOT . '/index.php');
开发者ID:norain2050,项目名称:zuituware,代码行数:17,代码来源:r.php



注:本文中的udecode函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP uf_agregarlineablanca函数代码示例发布时间:2022-05-23
下一篇:
PHP ud_get_wp_property函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap