本文整理汇总了PHP中iPHP::set_cookie方法的典型用法代码示例。如果您正苦于以下问题:PHP iPHP::set_cookie方法的具体用法?PHP iPHP::set_cookie怎么用?PHP iPHP::set_cookie使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iPHP
的用法示例。
在下文中一共展示了iPHP::set_cookie方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cleancookie
public function cleancookie()
{
iPHP::set_cookie('WB_ACCESS_TOKEN', '', -31536000);
iPHP::set_cookie('WB_REFRESH_TOKEN', '', -31536000);
iPHP::set_cookie('WB_OPENID', '', -31536000);
iPHP::set_cookie('WB_STATE', '', -31536000);
}
示例2: run
public static function run($pre = null)
{
extension_loaded('gd') && function_exists('gd_info') or self::$noGD = true;
self::$code or self::$code = self::__mkcode();
self::$noGD && (self::$code = 'iCMS');
$name = 'seccode';
$pre && ($name = $pre . '_seccode');
//设定cookie
iPHP::set_cookie($name, authcode(self::$code, 'ENCODE'));
self::__image();
}
示例3: API_like
public function API_like()
{
// iPHP::app('user.class','static');
// user::get_cookie() OR iPHP::code(0,'iCMS:!login',0,'json');
$this->id or iPHP::code(0, 'iCMS:article:empty_id', 0, 'json');
$lckey = 'like_comment_' . $this->id;
$like = iPHP::get_cookie($lckey);
$like && iPHP::code(0, 'iCMS:comment:!like', 0, 'json');
//$ip = iPHP::getIp();
iDB::query("UPDATE `#iCMS@__comment` SET `up`=up+1 WHERE `id`='{$this->id}'");
iPHP::set_cookie($lckey, $_SERVER['REQUEST_TIME'], 86400);
iPHP::code(1, 'iCMS:comment:like', 0, 'json');
}
示例4: vote
private function vote($_do)
{
// iPHP::app('user.class','static');
// user::get_cookie() OR iPHP::code(0,'iCMS:!login',0,'json');
$aid = (int) $_GET['iid'];
$aid or iPHP::code(0, 'iCMS:article:empty_id', 0, 'json');
$ackey = 'article_' . $_do . '_' . $aid;
$vote = iPHP::get_cookie($ackey);
$vote && iPHP::code(0, 'iCMS:article:!' . $_do, 0, 'json');
if ($_do == 'good') {
$sql = '`good`=good+1';
} else {
$sql = '`bad`=bad+1';
}
iDB::query("UPDATE `#iCMS@__article` SET {$sql} WHERE `id` ='{$aid}' limit 1");
iPHP::set_cookie($ackey, time(), 86400);
iPHP::code(1, 'iCMS:article:' . $_do, 0, 'json');
}
示例5: logout
function logout()
{
iPHP::set_cookie(self::$AUTH, '', -31536000);
}
示例6: icmsChar
private static function icmsChar($name)
{
iPHP::set_cookie($name, authcode('iCMS', 'ENCODE'));
header('Content-type:image/gif' . PHP_EOL);
exit(base64_decode('
R0lGODlhUAAeALMAAAAAAI+Pj09PTzMzM8zMzK+vr39/fw8PD2ZmZj8/Px8fH9/f35mZmb+/v2ZmZv
///yH5BAEHAA8ALAAAAABQAB4AAAT/8MlJq7046827/2AojmS5IYi2MEYiGMyiBYa4GEFWtElvEJoE
oHBpCADIAxIpAF6QjBACeQkok4qlgnhZHA4yyhQgKIQXhSOgZkEqQF5qZXpANCiNcaoKiE6mA04WBA
MAexRLdx4BSxWMA2EWC4WHGgYAkCqFfhOGAAkfCgeFFaKRXYWKGQsACqcYXmCIBkeCGgxrQhQEhhy8
b46CU6obuGwSaw29HEILuhPKXCcHbWxeAyAKlWsPzRvKKc8SyjkcC68P3A8FAOUk3MYnADLiD7HoHu
qX+B/qpqtkJNR7wOiANBDqElAzoQ6XOwvDBAKwwAhTAH4YEoJiaO0AMEmj/yYMlLBgTKsXxDKyObCx
hLoHlzhRiClyIiwGCLIsKZNBo4l0x1hhs6DgYzebHBoYKITJVic2CYa6PPYgIgWHFEZuKAmlmoQpP1
/a+1RhgKyaIwh8eaWO3UEOuASJPRpJGdWjVzFWiDeL5DIPUyLNBTfhyCtx5PrdfRnYg9C+ZeeNrSSR
Qsh8i4OS7XBE5twH8RpXqHfpLQa7FcQyonxhSktkdyWYYnmh3gJRTi/USn0XUMoJC45kguwIE4DfeH
d9eViBqwCvjpRoK9CgegA1CdB9ticdw0gCWaZXr04LSXbozQ3oXIJkgEzic/p4X5h+PXtM7ycQ0Etg
hwEDDfCn1xAq/PkHQ4A/Jajgggw26EEEADs='));
}
示例7: cleancookie
public function cleancookie()
{
iPHP::set_cookie('QQ_ACCESS_TOKEN', '', -31536000);
iPHP::set_cookie('QQ_OPENID', '', -31536000);
iPHP::set_cookie('QQ_STATE', '', -31536000);
}
示例8: destroy_seccode
public static function destroy_seccode()
{
iPHP::set_cookie('iACP_seccode', '', -31536000);
}
示例9: API_login
public function API_login()
{
if (iCMS::$config['user']['login']['enable']) {
$this->openid();
iPHP::set_cookie('forward', $this->forward);
user::status($this->forward, "login");
iPHP::view('iCMS://user/login.htm');
} else {
iPHP::view('iCMS://user/login.close.htm');
}
}
示例10: cleancookie
public function cleancookie()
{
iPHP::set_cookie('TB_STATE', '', -31536000);
iPHP::set_cookie('TB_OPENID', '', -31536000);
}
示例11: logout
public static function logout()
{
iPHP::set_cookie(self::$AUTH, '', -31536000);
iPHP::set_cookie('userid', '', -31536000);
iPHP::set_cookie('nickname', '', -31536000);
iPHP::set_cookie('seccode', '', -31536000);
}
示例12: defined
<?php
/**
* @package iCMS
* @copyright 2007-2010, iDreamSoft
* @license http://www.idreamsoft.com iDreamSoft
* @author coolmoo <idreamsoft@qq.com>
* @$Id: category.manage.php 2381 2014-03-21 04:03:07Z coolmoo $
*/
defined('iPHP') or exit('What are you doing?');
iPHP::set_cookie(iACP::$app_name . '_tabs', iACP::$app_do);
iACP::head();
if (iACP::$app_do == 'tree') {
?>
<link rel="stylesheet" href="./app/admincp/ui/jquery/treeview-0.1.0.css" type="text/css" />
<link rel="stylesheet" href="./app/admincp/ui/jquery/ui-1.10.3.min.css" type="text/css" />
<script type="text/javascript" src="./app/admincp/ui/jquery/ui-1.10.3.min.js"></script>
<script type="text/javascript" src="./app/admincp/ui/jquery/treeview-0.1.0.js"></script>
<script type="text/javascript" src="./app/admincp/ui/jquery/treeview-0.1.0.async.js"></script>
<script type="text/javascript">
var upordurl="<?php
echo $this->category_uri;
?>
&do=updateorder";
$(function(){
$("#tree").treeview({
url:'<?php
echo $this->category_uri;
?>
&do=ajaxtree&expanded=<?php
echo iACP::$app_do == 'all' ? '1' : '0';