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); }
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(); }
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'); }
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'); }
function logout() { iPHP::set_cookie(self::$AUTH, '', -31536000); }
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=')); }
public function cleancookie() { iPHP::set_cookie('QQ_ACCESS_TOKEN', '', -31536000); iPHP::set_cookie('QQ_OPENID', '', -31536000); iPHP::set_cookie('QQ_STATE', '', -31536000); }
public static function destroy_seccode() { iPHP::set_cookie('iACP_seccode', '', -31536000); }
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'); } }
public function cleancookie() { iPHP::set_cookie('TB_STATE', '', -31536000); iPHP::set_cookie('TB_OPENID', '', -31536000); }
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); }
<?php /** * @package iCMS * @copyright 2007-2010, iDreamSoft * @license http://www.idreamsoft.com iDreamSoft * @author coolmoo <*****@*****.**> * @$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';