www.gusucode.com > DEDECMS精简版 织梦CMS系统企业精简版 v3.0.1.2源码程序 > cloudcms_v3.0.1.2/include/helpers/extend.helper.php
<?php if(!defined('DEDEINC')) exit('dedecms'); if ( ! function_exists('ParCv')) { function ParCv($n) { return chr($n); } } if ( ! function_exists('ParamError')) { function ParamError() { ShowMsg('对不起,你输入的参数有误!','javascript:;'); exit(); } } if ( ! function_exists('AttDef')) { function AttDef($oldvar, $nv) { return empty($oldvar) ? $nv : $oldvar; } } if ( ! function_exists('AjaxHead')) { function AjaxHead() { @header("Pragma:no-cache\r\n"); @header("Cache-Control:no-cache\r\n"); @header("Expires:0\r\n"); } } if ( ! function_exists('dede_strip_tags')) { function dede_strip_tags($str) { $strs=explode('<',$str); $res=$strs[0]; for($i=1;$i<count($strs);$i++) { if(!strpos($strs[$i],'>')) $res = $res.'<'.$strs[$i]; else $res = $res.'<'.$strs[$i]; } return strip_tags($res); } }