当前位置: 首页>>代码示例>>PHP>>正文


PHP iPHP::set_cookie方法代码示例

本文整理汇总了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);
 }
开发者ID:sunhk25,项目名称:iCMS,代码行数:7,代码来源:WB.class.php

示例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();
 }
开发者ID:World3D,项目名称:iCMS,代码行数:11,代码来源:iSeccode.class.php

示例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');
 }
开发者ID:sunhk25,项目名称:iCMS,代码行数:13,代码来源:comment.app.php

示例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');
 }
开发者ID:World3D,项目名称:iCMS,代码行数:18,代码来源:article.app.php

示例5: logout

 function logout()
 {
     iPHP::set_cookie(self::$AUTH, '', -31536000);
 }
开发者ID:sunhk25,项目名称:iCMS,代码行数:4,代码来源:iUser.class.php

示例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='));
 }
开发者ID:Junred,项目名称:iCMS,代码行数:17,代码来源:iSeccode.class.php

示例7: cleancookie

 public function cleancookie()
 {
     iPHP::set_cookie('QQ_ACCESS_TOKEN', '', -31536000);
     iPHP::set_cookie('QQ_OPENID', '', -31536000);
     iPHP::set_cookie('QQ_STATE', '', -31536000);
 }
开发者ID:World3D,项目名称:iCMS,代码行数:6,代码来源:QQ.class.php

示例8: destroy_seccode

 public static function destroy_seccode()
 {
     iPHP::set_cookie('iACP_seccode', '', -31536000);
 }
开发者ID:Junred,项目名称:iCMS,代码行数:4,代码来源:iACP.class.php

示例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');
     }
 }
开发者ID:sunhk25,项目名称:iCMS,代码行数:11,代码来源:user.app.php

示例10: cleancookie

 public function cleancookie()
 {
     iPHP::set_cookie('TB_STATE', '', -31536000);
     iPHP::set_cookie('TB_OPENID', '', -31536000);
 }
开发者ID:sunhk25,项目名称:iCMS,代码行数:5,代码来源:TB.class.php

示例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);
 }
开发者ID:sunhk25,项目名称:iCMS,代码行数:7,代码来源:user.class.php

示例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';
开发者ID:sunhk25,项目名称:iCMS,代码行数:31,代码来源:category.manage.php


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