<?php
function filter_str($msg){
//$msg = str_replace('&','&',$msg);
//$msg = str_replace(' ',' ',$msg);
$msg = str_replace('"','"',$msg);
$msg = str_replace("'",''',$msg);
$msg = str_replace("<","<",$msg);
$msg = str_replace(">",">",$msg);
$msg = str_replace("\t"," ",$msg);
//$msg = str_replace("\r","",$msg);
$msg = str_replace(" "," ",$msg);
return $msg;
}
//设置COOKIE
function msetcookie($var,$val,$life=0){
global $db_mixcode;
return setcookie(MD5($db_mixcode).$var,$val,$life,'/');
}
//返回cookie
function mgetcookie($var){
global $db_mixcode;
$tvar = MD5($db_mixcode).$var;
return $_COOKIE[$tvar];
}
function is_email($email) {
return strlen($email) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $email);
}
function html2js($content){
$content = str_replace('"', '\"',$content);
$content = str_replace("\r", "\\r",$content);
$content = str_replace("\n", "\\n",$content);
return "<!--\r\ndocument.write(\"".$content."\");\r\n-->\r\n";
}
function mhtmlspecialchars($string) {
if(is_array($string)) {
foreach($string as $key => $val) {
$string[$key] = mhtmlspecialchars($val);
}
} else {
$string = preg_replace('/&((#(\d{3,5}|x[a-fA-F0-9]{4})|[a-zA-Z][a-z0-9]{2,5});)/', '&\\1',
str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $string));
}
return $string;
}
function textarea_post_change($mymps_string)
{
return nl2br(str_replace(' ',' ',htmlspecialchars(trim($mymps_string))));
}
function de_textarea_post_change($mymps_string)
{
return str_replace('<br />',' ',str_replace(' ',' ',trim($mymps_string)));
}
function random($length=5,$strtolower=1)
{
$hash = '';
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
$max = strlen($chars) - 1;
mt_srand((double)microtime() * 1000000);
for($i = 0; $i < $length; $i++) {
$hash .= $chars[mt_rand(0, $max)];
}
if($strtolower==1){
$hash=strtolower($hash);
}
return $hash;
}
function FileExt($filename) {
return trim(substr(strrchr($filename, '.'), 1, 10));
}
function createfile($file,$str)
{
if (is_file($file)){
@unlink ($file);
}
$fp=fopen($file,"w");
if (!is_writable ($file)){
return false;
}
if (!fwrite($fp,$str)){
return false;
}
fclose ($fp);
return $file;
}
function createdir($path)
{
if (!file_exists($path)){
createdir(dirname($path));
mkdir($path, 0777);
return true;
} elseif(file_exists($path)){
return true;
} else {
return false;
}
}
function DelDir($dirName)
{
if(! is_dir($dirName)){
return false;
}
$handle = @opendir($dirName);
while(($file = @readdir($handle)) !== false){
if($file != '.' && $file != '..'){
$dir = $dirName . '/' . $file;
is_dir($dir) ? DelDir($dir) : @unlink($dir);
}
}
closedir($handle);
return rmdir($dirName);
}
function die_msg($msg)
{
return '<p style="font-family: Verdana, Tahoma; font-size: 11px;"><b>Mymps info:</b>'.$msg.'</p>';
}
/* 调用UCenter函数 */
function uc_call($func, $params=NULL)
{
restore_error_handler();
if (!function_exists($func)){
include_once(MYMPS_ROOT.'/uc_client/client.php');
}
$res = call_user_func_array($func, $params);
//set_error_handler('exception_handler');
return $res;
}
function fck_editor($editor_name,$type,$value = '',$width='90%',$height='350',$BasePath='../include/FCKeditor/')
{
$editor = new FCKeditor($editor_name);
$editor->BasePath = $BasePath;
$editor->ToolbarSet = $type;
$editor->Width = $width;
$editor->Height = $height;
$editor->Value = $value;
$FCKeditor = $editor->CreateHtml();
return $FCKeditor;
}
function mymps_chk_randcode()
{
$checkcode = trim(strtoupper($GLOBALS['checkcode']));
session_start();
$chkcode = $_SESSION['chkcode'];
if(empty($chkcode) || $chkcode != $checkcode){
write_msg('验证码输入错误,请返回重新输入');
}
}
function CheckUserID($uid,$msgtitle='用户名')
{
for($i=0;isset($uid[$i]);$i++){
if(ord($ck_uid[$i]) > 0x80){
if(isset($uid[$i+1]) && ord($uid[$i+1])>0x40){
$i++;
}else{
return $msgtitle.'可能含有乱码,建议你改用英文字母和数字组合!';
}
}
}
return 'ok';
}
function GetIP()
{
if(!empty($_SERVER["HTTP_CLIENT_IP"])){
$cip = $_SERVER["HTTP_CLIENT_IP"];
}elseif(!empty($_SERVER["HTTP_X_FORWARDED_FOR"])){
$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
}elseif(!empty($_SERVER["REMOTE_ADDR"])){
$cip = $_SERVER["REMOTE_ADDR"];
}else{
$cip = '';
}
preg_match("/[\d\.]{7,15}/", $cip, $cips);
$cip = isset($cips[0]) ? $cips[0] : 'unknown';
unset($cips);
return $cip;
}
function utf8_unserialize ($serial_str) {
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str );
return unserialize ($out);
}
function write_admin_record($msg)
{
global $admin_id,$db_mymps,$db,$timestamp;
$db->query("INSERT INTO `{$db_mymps}admin_record_action` (id,adminid,ip,pubdate,action) VALUES ('','$admin_id','".GetIP()."','$timestamp','$msg')");
}
function write_msg($msg="",$url="javascript:history.go(-1);",$action="")
{
global $charset,$db,$db_mymps,$mymps_global;
!empty($action) && write_admin_record($msg);
if(defined('IN_AJAX')){
echo "<script language=javascript>alert('".$msg."');";
echo $url == 'olmsg' ? "</script>" : "window.location.href='".$url."';</script>";
} else {
if (!empty($msg)&&!empty($url)){
if($url=="javascript:history.go(-1);"){
$time_echo = "setTimeout('JumpUrl()',6000);";
$msg = "<img src='".$mymps_global[SiteUrl]."/images/warn.gif' align='absmiddle'> ".$msg;
$goto = "<a href='".$url."'>如果你的浏览器没反应,请点击这里...</a>";
}elseif($url == "olmsg"){
$time_echo = $goto = "";
}else{
$time_echo = "setTimeout('JumpUrl()',4000);";
$goto = "<a href='".$url."'>如果你的浏览器没反应,请点击这里...</a>";
}
include MYMPS_ROOT."/mypub/box/mymps_message.html";
}elseif(empty($msg)&&!empty($url)){
Header("HTTP/1.1 303 See Other");
Header("Location: $url");
}
}
is_object($db) && $db->Close();
if(!defined('NO_EXIT')) {
$mymps_global = $db = $db_mymps = $charset = $timestamp = NULL;
exit;
}
}
function show_msg($msgs,$ms="")
{
global $charset,$db,$db_mymps;
if(!empty($ms)&&$ms=='record'){
while (list($k,$v)=each($msgs)){$str .= "<br>".$v."<br>";};
write_admin_record(SpHtml2Text($str));
}elseif(!empty($ms)&&$ms!='record'){
write_admin_record($ms);
}
$title = $mymps_global[SiteName].'提示信息!';
include(MYMPS_ROOT."/mypub/box/mymps_msg.html");
while (list($k,$v)=each($msgs)){$str .= "<br>".$v."<br>";};
echo $str."</div></div></div></center></body></html>";
}
function mymps_goto($url='')
{
return "<script>window.document.location.href='$url';</script>";
}
function is_member_info($id,$type='public')
{
if(empty($id)){
write_msg("操作失败!您没有选择对象!");
}
$type = ($type == 'public')?'AND info_level != 0':'';
$post = $GLOBALS['db']->getRow("SELECT * FROM `{$GLOBALS['db_mymps']}information` WHERE id = '$id' $type");
return $post;
}
function setParam($param1,$rewrite='active',$pre='',$htmlpath='')
{
if($rewrite == 'rewrite'){
$param = $pre;
foreach($param1 as $key){
global ${$key};
$param .= ${$key} ? urlencode($key).'-'.${$key}.'-' : '';
}
} elseif($rewrite == 'html'){
$param = $htmlpath;
} elseif($rewrite == 'active'){
foreach($param1 as $key){
global ${$key};
$param .= ${$key} ? urlencode($key).'='.${$key}.'&' : '';
}
}
return $param;
}
function page1($sqlstr='',$per_page='')
{
global $rows_num,$page,$pages_num,$perpage,$rows_offset,$per_screen;
$page = (empty($page) || $page <0 ||!is_numeric($page))?1:$page;
$per_pa
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的嗨射阳分类信息网站管理源码.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共2000个文件
html:758个
gif:488个
php:309个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 109 浏览量
2023-10-14
21:42:04
上传
评论
收藏 16.04MB ZIP 举报
温馨提示
基于PHP的嗨射阳分类信息网站管理源码.zip
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/ace77722cc904668be9c7ee0feb247ba_dwf1354046363.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
易小侠
- 粉丝: 6507
- 资源: 9万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)