摘要: /** 強制更新圖片緩存* @param Array $files 要更新的圖片* @param int $version 版本*/function force_reload_file($files=array(), $version=0){ $html = ''; if(!isset($_COOKIE['force_reload_page_'.$version])){ // 判斷是否已更新過 setcookie('force_reload_page_'.$version, true, time()+2592000); $html .= ' 阅读全文
posted @ 2013-01-09 22:30 傲雪星枫 阅读(359) 评论(0) 推荐(0) 编辑
摘要: DataReturn.class.phptype = $this->exists($param,'type')? strtoupper($param['type']) : 'JSON'; // 類型 JSON,XML,CALLBACK,ARRAY $this->xmlroot = $this->exists($param,'xmlroot')? $param['xmlroot'] : 'xmlroot'; // xml root dom name $this->callbac 阅读全文
posted @ 2013-01-09 21:55 傲雪星枫 阅读(236) 评论(0) 推荐(0) 编辑
摘要: StrFilter.class.php_white_list = $white_list; $this->_black_list = $black_list; $this->_replacement = $replacement; } /** 替换非法字符 * @param String $content 要替換的字符串 * @return String 替換后的字符串 */ public function replace($content){ if(!isset($content) || $co... 阅读全文
posted @ 2013-01-09 21:38 傲雪星枫 阅读(267) 评论(0) 推荐(0) 编辑