|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- if (!defined('DEDEINC')) exit('dedebiz');
-
-
- 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);
- }
- }
|