@@ -68,7 +68,7 @@ if (!function_exists('GetCurUrl')) { | |||||
if (empty($_SERVER["QUERY_STRING"])) { | if (empty($_SERVER["QUERY_STRING"])) { | ||||
$nowurl = $scriptName; | $nowurl = $scriptName; | ||||
} else { | } else { | ||||
$nowurl = $scriptName . "?" . $_SERVER["QUERY_STRING"]; | |||||
$nowurl = $scriptName."?".$_SERVER["QUERY_STRING"]; | |||||
} | } | ||||
} | } | ||||
return $nowurl; | return $nowurl; | ||||
@@ -125,7 +125,7 @@ if (!function_exists('GetEditor')) { | |||||
function GetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype = "print", $isfullpage = "FALSE", $bbcode = false) | function GetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype = "print", $isfullpage = "FALSE", $bbcode = false) | ||||
{ | { | ||||
if (!function_exists('SpGetEditor')) { | if (!function_exists('SpGetEditor')) { | ||||
require_once(DEDEINC . "/inc/inc_fun_funAdmin.php"); | |||||
require_once(DEDEINC."/inc/inc_fun_funAdmin.php"); | |||||
} | } | ||||
return SpGetEditor($fname, $fvalue, $nheight, $etype, $gtype, $isfullpage, $bbcode); | return SpGetEditor($fname, $fvalue, $nheight, $etype, $gtype, $isfullpage, $bbcode); | ||||
} | } | ||||
@@ -158,7 +158,7 @@ if (!function_exists('GetTemplets')) { | |||||
if (!function_exists('GetSysTemplets')) { | if (!function_exists('GetSysTemplets')) { | ||||
function GetSysTemplets($filename) | function GetSysTemplets($filename) | ||||
{ | { | ||||
return GetTemplets($GLOBALS['cfg_basedir'] . $GLOBALS['cfg_templets_dir'] . '/system/' . $filename); | |||||
return GetTemplets($GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir'].'/system/'.$filename); | |||||
} | } | ||||
} | } | ||||
/** | /** | ||||
@@ -170,7 +170,7 @@ if (!function_exists('GetNewInfo')) { | |||||
function GetNewInfo() | function GetNewInfo() | ||||
{ | { | ||||
if (!function_exists('SpGetNewInfo')) { | if (!function_exists('SpGetNewInfo')) { | ||||
require_once(DEDEINC . "/inc/inc_fun_funAdmin.php"); | |||||
require_once(DEDEINC."/inc/inc_fun_funAdmin.php"); | |||||
} | } | ||||
return SpGetNewInfo(); | return SpGetNewInfo(); | ||||
} | } | ||||
@@ -191,7 +191,7 @@ if (!function_exists('dd2char')) { | |||||
$nn = ''; | $nn = ''; | ||||
for ($i = 0; $i < $slen; $i++) { | for ($i = 0; $i < $slen; $i++) { | ||||
if (isset($ddnum[$i + 1])) { | if (isset($ddnum[$i + 1])) { | ||||
$n = $ddnum[$i] . $ddnum[$i + 1]; | |||||
$n = $ddnum[$i].$ddnum[$i + 1]; | |||||
if (($n > 96 && $n < 123) || ($n > 64 && $n < 91)) { | if (($n > 96 && $n < 123) || ($n > 64 && $n < 91)) { | ||||
$okdd .= chr($n); | $okdd .= chr($n); | ||||
$i++; | $i++; | ||||
@@ -224,7 +224,7 @@ if (!function_exists('json_encode')) { | |||||
} else if (defined($value) && $value === NULL) { | } else if (defined($value) && $value === NULL) { | ||||
$value = strval(constant((string)$value)); | $value = strval(constant((string)$value)); | ||||
} else if (is_string($value)) { | } else if (is_string($value)) { | ||||
$value = '"' . addslashes($value) . '"'; | |||||
$value = '"'.addslashes($value).'"'; | |||||
} | } | ||||
return $value; | return $value; | ||||
} | } | ||||
@@ -248,9 +248,9 @@ if (!function_exists('json_encode')) { | |||||
foreach ($data as $key => $val) { | foreach ($data as $key => $val) { | ||||
if (!is_NULL($val)) { | if (!is_NULL($val)) { | ||||
if ($assoc) { | if ($assoc) { | ||||
$json .= "\"$key\":" . json_encode($val) . ","; | |||||
$json .= "\"$key\":".json_encode($val).","; | |||||
} else { | } else { | ||||
$json .= json_encode($val) . ","; | |||||
$json .= json_encode($val).","; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -390,7 +390,7 @@ class Agent extends Mobile_Detect | |||||
} elseif (is_array($merged[$key])) { | } elseif (is_array($merged[$key])) { | ||||
$merged[$key][] = $value; | $merged[$key][] = $value; | ||||
} else { | } else { | ||||
$merged[$key] .= '|' . $value; | |||||
$merged[$key] .= '|'.$value; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -964,7 +964,7 @@ class Mobile_Detect | |||||
} | } | ||||
// test the alternate, too | // test the alternate, too | ||||
$altHeader = 'HTTP_' . $header; | |||||
$altHeader = 'HTTP_'.$header; | |||||
//Test both the regular and the HTTP_ prefix | //Test both the regular and the HTTP_ prefix | ||||
if (isset($this->httpHeaders[$header])) { | if (isset($this->httpHeaders[$header])) { | ||||
@@ -1061,7 +1061,7 @@ class Mobile_Detect | |||||
$this->userAgent = null; | $this->userAgent = null; | ||||
foreach ($this->getUaHttpHeaders() as $altHeader) { | foreach ($this->getUaHttpHeaders() as $altHeader) { | ||||
if (false === empty($this->httpHeaders[$altHeader])) { // @todo: should use getHttpHeader(), but it would be slow. (Serban) | if (false === empty($this->httpHeaders[$altHeader])) { // @todo: should use getHttpHeader(), but it would be slow. (Serban) | ||||
$this->userAgent .= $this->httpHeaders[$altHeader] . " "; | |||||
$this->userAgent .= $this->httpHeaders[$altHeader]." "; | |||||
} | } | ||||
} | } | ||||
@@ -4,11 +4,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $title; ?>_下载地址列表_<?php echo $cfg_webname;?></title> | <title><?php echo $title; ?>_下载地址列表_<?php echo $cfg_webname;?></title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<style type="text/css"> | <style type="text/css"> | ||||
.formbox li{ | .formbox li{ | ||||
list-style: url(none) none; | list-style: url(none) none; | ||||
@@ -5,11 +5,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $cfg_webname;?>_申请友情链接</title> | <title><?php echo $cfg_webname;?>_申请友情链接</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body class="flinkpage"> | <body class="flinkpage"> | ||||
@@ -4,11 +4,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $cfg_webname;?>_所有链接</title> | <title><?php echo $cfg_webname;?>_所有链接</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body class="flinkpage"> | <body class="flinkpage"> | ||||
<?php include("plus_header.htm") ;?> | <?php include("plus_header.htm") ;?> | ||||
@@ -4,9 +4,9 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $cfg_webname;?>_高级搜索</title> | <title><?php echo $cfg_webname;?>_高级搜索</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
</head> | </head> | ||||
<body class="flinkpage"> | <body class="flinkpage"> | ||||
@@ -4,11 +4,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $diy->name; ?> - Powered by DedeBIZ</title> | <title><?php echo $diy->name; ?> - Powered by DedeBIZ</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="main mceneter"> | <div class="main mceneter"> | ||||
@@ -14,5 +14,5 @@ | |||||
</div> | </div> | ||||
<!-- /.scroll-top --> | <!-- /.scroll-top --> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/style.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/style.js"></script> |
@@ -1,11 +1,10 @@ | |||||
<div class="container header"> | <div class="container header"> | ||||
<header class="pt-3"> | <header class="pt-3"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl;?>/"><img src="<?php echo $cfg_cmsurl;?>/static/web/img/logo.gif" | |||||
alt="<?php echo $cfg_webname;?>" srcset=""></a></div> | |||||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl; ?>/"><img src="<?php echo $cfg_cmsurl; ?>/static/web/img/logo.gif" alt="<?php echo $cfg_webname;?>" srcset=""></a></div> | |||||
<div class="col-12 col-sm-6 d-flex justify-content-end"> | <div class="col-12 col-sm-6 d-flex justify-content-end"> | ||||
<div class="input-group py-3"> | <div class="input-group py-3"> | ||||
<form class="search" name="formsearch" action="<?php echo $cfg_cmsurl;?>/apps/search.php"> | |||||
<form class="search" name="formsearch" action="<?php echo $cfg_cmsurl; ?>/apps/search.php"> | |||||
<input type="hidden" name="kwtype" value="0" /> | <input type="hidden" name="kwtype" value="0" /> | ||||
<input name="q" type="text" class="form-control" placeholder="输入搜索关键词"> | <input name="q" type="text" class="form-control" placeholder="输入搜索关键词"> | ||||
<div class="input-group-append"> | <div class="input-group-append"> | ||||
@@ -4,11 +4,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $diy->name;?> - Powered by DedeBIZ</title> | <title><?php echo $diy->name;?> - Powered by DedeBIZ</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="main mceneter"> | <div class="main mceneter"> | ||||
@@ -4,9 +4,9 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title>推荐_<?php echo $title; ?>_{dede:global name='cfg_webname'/}</title> | <title>推荐_<?php echo $title; ?>_{dede:global name='cfg_webname'/}</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
</head> | </head> | ||||
<body class="flinkpage"> | <body class="flinkpage"> | ||||
@@ -4,11 +4,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $diy->name;?> - powered by dedebiz</title> | <title><?php echo $diy->name;?> - powered by dedebiz</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="main mceneter"> | <div class="main mceneter"> | ||||
@@ -6,11 +6,11 @@ | |||||
<?php echo $msgtitle; ?> | <?php echo $msgtitle; ?> | ||||
</title> | </title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body class="flinkpage"> | <body class="flinkpage"> | ||||
@@ -4,11 +4,11 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | ||||
<title><?php echo $cfg_webname?>_投票结果</title> | <title><?php echo $cfg_webname?>_投票结果</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/index.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
</head> | </head> | ||||
<body class="flinkpage"> | <body class="flinkpage"> | ||||
<?php include("plus_header.htm") ;?> | <?php include("plus_header.htm") ;?> | ||||
@@ -1,8 +1,7 @@ | |||||
<div class="container header"> | <div class="container header"> | ||||
<header class="pt-3"> | <header class="pt-3"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-12 col-sm-6 logo"><a href="{dede:global.cfg_cmsurl/}/"><img src="{dede:global.cfg_cmsurl/}/static/web/img/logo.png" | |||||
alt="{dede:global.cfg_webname/}" srcset=""></a></div> | |||||
<div class="col-12 col-sm-6 logo"><a href="{dede:global.cfg_cmsurl/}/"><img src="{dede:global.cfg_cmsurl/}/static/web/img/logo.png" alt="{dede:global.cfg_webname/}" srcset=""></a></div> | |||||
<div class="col-12 col-sm-6 d-flex justify-content-end"> | <div class="col-12 col-sm-6 d-flex justify-content-end"> | ||||
<div class="input-group py-3"> | <div class="input-group py-3"> | ||||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | <form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | ||||
@@ -7,13 +7,9 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
define('AJAXLOGIN', TRUE); | define('AJAXLOGIN', TRUE); | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
AjaxHead(); | AjaxHead(); | ||||
$format = isset($format) ? "json" : ""; | $format = isset($format) ? "json" : ""; | ||||
if (!$cfg_ml->IsLogin()) { | if (!$cfg_ml->IsLogin()) { | ||||
if ($format === 'json') { | if ($format === 'json') { | ||||
echo json_encode(array( | echo json_encode(array( | ||||
@@ -26,12 +22,9 @@ if (!$cfg_ml->IsLogin()) { | |||||
} | } | ||||
exit; | exit; | ||||
} | } | ||||
$uid = $cfg_ml->M_LoginID; | $uid = $cfg_ml->M_LoginID; | ||||
!$cfg_ml->fields['face'] && $face = ($cfg_ml->fields['sex'] == '女') ? 'dfgirl' : 'dfboy'; | !$cfg_ml->fields['face'] && $face = ($cfg_ml->fields['sex'] == '女') ? 'dfgirl' : 'dfboy'; | ||||
$facepic = empty($face) ? $cfg_ml->fields['face'] : $GLOBALS['cfg_memberurl'].'/templets/images/'.$face.'.png'; | $facepic = empty($face) ? $cfg_ml->fields['face'] : $GLOBALS['cfg_memberurl'].'/templets/images/'.$face.'.png'; | ||||
if ($format === 'json') { | if ($format === 'json') { | ||||
echo json_encode(array( | echo json_encode(array( | ||||
"code" => 200, | "code" => 200, | ||||
@@ -9,7 +9,6 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
//考虑安全原因不管是否开启游客投稿功能,都不允许用户对图集投稿 | //考虑安全原因不管是否开启游客投稿功能,都不允许用户对图集投稿 | ||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
if ($cfg_mb_lit == 'Y') { | if ($cfg_mb_lit == 'Y') { | ||||
@@ -29,7 +28,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 2; | |||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if (empty($formhtml)) $formhtml = 0; | if (empty($formhtml)) $formhtml = 0; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -40,7 +38,6 @@ if (empty($dopost)) { | |||||
ShowMsg('模型参数不正确', '-1'); | ShowMsg('模型参数不正确', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' "); | ||||
@@ -54,7 +51,6 @@ if (empty($dopost)) { | |||||
include(DEDEMEMBER."/templets/album_add.htm"); | include(DEDEMEMBER."/templets/album_add.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*------------------------------ | /*------------------------------ | ||||
function _SaveArticle(){ } | function _SaveArticle(){ } | ||||
------------------------------*/ | ------------------------------*/ | ||||
@@ -80,7 +76,6 @@ else if ($dopost == 'save') { | |||||
$imgurls = "{dede:pagestyle maxwidth='$maxwidth' pagepicnum='$pagepicnum' ddmaxwidth='$ddmaxwidth' row='$prow' col='$pcol' value='$pagestyle'/}\r\n"; | $imgurls = "{dede:pagestyle maxwidth='$maxwidth' pagepicnum='$pagepicnum' ddmaxwidth='$ddmaxwidth' row='$prow' col='$pcol' value='$pagestyle'/}\r\n"; | ||||
$hasone = false; | $hasone = false; | ||||
$ddisfirst = 1; | $ddisfirst = 1; | ||||
//只支持填写地址 | //只支持填写地址 | ||||
for ($i = 1; $i <= 120; $i++) { | for ($i = 1; $i <= 120; $i++) { | ||||
if (!isset(${'imgfile'.$i})) { | if (!isset(${'imgfile'.$i})) { | ||||
@@ -95,7 +90,6 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} //循环结束 | } //循环结束 | ||||
$imgurls = addslashes($imgurls); | $imgurls = addslashes($imgurls); | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$isrm = 1; | $isrm = 1; | ||||
if (!isset($formhtml)) { | if (!isset($formhtml)) { | ||||
@@ -120,7 +114,6 @@ else if ($dopost == 'save') { | |||||
$inadd_v .= " ,'".${$vs[0]}."' "; | $inadd_v .= " ,'".${$vs[0]}."' "; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_f) { | if ($fontiterm != $inadd_f) { | ||||
@@ -128,7 +121,6 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//生成文档ID | //生成文档ID | ||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
@@ -148,7 +140,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//保存到附加表 | //保存到附加表 | ||||
$addtable = trim($cInfos['addtable']); | $addtable = trim($cInfos['addtable']); | ||||
if (empty($addtable)) { | if (empty($addtable)) { | ||||
@@ -167,22 +158,17 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//增加积分 | //增加积分 | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | ||||
//更新统计 | //更新统计 | ||||
countArchives($channelid); | countArchives($channelid); | ||||
//生成HTML | //生成HTML | ||||
InsertTags($tags, $arcID); | InsertTags($tags, $arcID); | ||||
$artUrl = MakeArt($arcID, true); | $artUrl = MakeArt($arcID, true); | ||||
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | ||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | |||||
请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图集</a> | <a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图集</a> | ||||
| | ||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看图集</a> | <a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看图集</a> | ||||
@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | |||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -28,12 +27,10 @@ if (empty($dopost)) { | |||||
ShowMsg('模型不存在', '-1'); | ShowMsg('模型不存在', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//如果限制了会员级别或类型,则允许游客投稿选项无效 | //如果限制了会员级别或类型,则允许游客投稿选项无效 | ||||
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') { | if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') { | ||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
} | } | ||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' "); | ||||
@@ -67,7 +64,6 @@ else if ($dopost == 'save') { | |||||
if (!isset(${$vs[0]})) { | if (!isset(${$vs[0]})) { | ||||
${$vs[0]} = ''; | ${$vs[0]} = ''; | ||||
} | } | ||||
//自动摘要和远程图片本地化 | //自动摘要和远程图片本地化 | ||||
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | ||||
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ||||
@@ -79,7 +75,6 @@ else if ($dopost == 'save') { | |||||
$inadd_v .= " ,'".${$vs[0]}."' "; | $inadd_v .= " ,'".${$vs[0]}."' "; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_f) { | if ($fontiterm != $inadd_f) { | ||||
@@ -87,29 +82,23 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//处理图片文档的自定义属性 | //处理图片文档的自定义属性 | ||||
if ($litpic != '') $flag = 'p'; | if ($litpic != '') $flag = 'p'; | ||||
//生成文档ID | //生成文档ID | ||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//保存到主表 | //保存到主表 | ||||
$inQuery = "INSERT INTO `#@__archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle, | |||||
color,writer,source,litpic,pubdate,senddate,mid,description,keywords,mtype) | |||||
VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle', | |||||
'$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); "; | |||||
$inQuery = "INSERT INTO `#@__archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords,mtype) | |||||
VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle','$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); "; | |||||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
$gerr = $dsql->GetError(); | $gerr = $dsql->GetError(); | ||||
$dsql->ExecuteNoneQuery("Delete From `#@__arctiny` where id='$arcID' "); | $dsql->ExecuteNoneQuery("Delete From `#@__arctiny` where id='$arcID' "); | ||||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//保存到附加表 | //保存到附加表 | ||||
$addtable = trim($cInfos['addtable']); | $addtable = trim($cInfos['addtable']); | ||||
if (empty($addtable)) { | if (empty($addtable)) { | ||||
@@ -127,24 +116,19 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//增加积分 | //增加积分 | ||||
$dsql->ExecuteNoneQuery("Update `#@__member` set scores=scores+{$cfg_sendarc_scores} where mid='".$cfg_ml->M_ID."' ; "); | $dsql->ExecuteNoneQuery("Update `#@__member` set scores=scores+{$cfg_sendarc_scores} where mid='".$cfg_ml->M_ID."' ; "); | ||||
//更新统计 | //更新统计 | ||||
countArchives($channelid); | countArchives($channelid); | ||||
//生成HTML | //生成HTML | ||||
InsertTags($tags, $arcID); | InsertTags($tags, $arcID); | ||||
$artUrl = MakeArt($arcID, true); | $artUrl = MakeArt($arcID, true); | ||||
if ($artUrl == '') { | if ($artUrl == '') { | ||||
$artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | ||||
} | } | ||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | |||||
请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-secondary btn-sm'>继续发布内容</a> | <a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-secondary btn-sm'>继续发布内容</a> | ||||
| | ||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看内容</a> | <a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看内容</a> | ||||
@@ -160,4 +144,4 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -10,10 +10,8 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
if (empty($dopost)) $dopost = ''; | if (empty($dopost)) $dopost = ''; | ||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | ||||
/*----------------- | /*----------------- | ||||
function delStow() | function delStow() | ||||
删除收藏 | 删除收藏 | ||||
@@ -30,7 +28,6 @@ if ($dopost == "delStow") { | |||||
ShowMsg("成功删除一条收藏记录", $ENV_GOBACK_URL); | ShowMsg("成功删除一条收藏记录", $ENV_GOBACK_URL); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*----------------- | /*----------------- | ||||
function addArchives() | function addArchives() | ||||
添加投稿 | 添加投稿 | ||||
@@ -57,7 +54,6 @@ else if ($dopost == "addArc") { | |||||
header("Location:$addcon"); | header("Location:$addcon"); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*----------------- | /*----------------- | ||||
function editArchives() | function editArchives() | ||||
修改投稿 | 修改投稿 | ||||
@@ -85,7 +81,6 @@ else if ($dopost == "edit") { | |||||
header("Location:$edit"."&aid=$aid"); | header("Location:$edit"."&aid=$aid"); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*-------------------- | /*-------------------- | ||||
function delArchives() | function delArchives() | ||||
删除文章 | 删除文章 | ||||
@@ -94,11 +89,8 @@ else if ($dopost == "delArc") { | |||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
include_once(DEDEMEMBER."/inc/inc_batchup.php"); | include_once(DEDEMEMBER."/inc/inc_batchup.php"); | ||||
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? 'content_list.php?channelid=' : $_COOKIE['ENV_GOBACK_URL']; | $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? 'content_list.php?channelid=' : $_COOKIE['ENV_GOBACK_URL']; | ||||
$equery = "SELECT arc.channel,arc.senddate,arc.arcrank,ch.maintable,ch.addtable,ch.issystem,ch.arcsta FROM `#@__arctiny` arc | $equery = "SELECT arc.channel,arc.senddate,arc.arcrank,ch.maintable,ch.addtable,ch.issystem,ch.arcsta FROM `#@__arctiny` arc | ||||
LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' "; | |||||
LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' "; | |||||
$row = $dsql->GetOne($equery); | $row = $dsql->GetOne($equery); | ||||
if (!is_array($row)) { | if (!is_array($row)) { | ||||
ShowMsg("您没有权限删除这篇文档", "-1"); | ShowMsg("您没有权限删除这篇文档", "-1"); | ||||
@@ -115,7 +107,6 @@ else if ($dopost == "delArc") { | |||||
ShowMsg("您没有权限删除这篇文档", "-1"); | ShowMsg("您没有权限删除这篇文档", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($row['arcrank'] >= 0) { | if ($row['arcrank'] >= 0) { | ||||
$dtime = time(); | $dtime = time(); | ||||
$maxtime = $cfg_mb_editday * 24 * 3600; | $maxtime = $cfg_mb_editday * 24 * 3600; | ||||
@@ -124,20 +115,16 @@ else if ($dopost == "delArc") { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
$channelid = $row['channel']; | $channelid = $row['channel']; | ||||
$row['litpic'] = (isset($arr['litpic']) ? $arr['litpic'] : ''); | $row['litpic'] = (isset($arr['litpic']) ? $arr['litpic'] : ''); | ||||
//删除文档 | //删除文档 | ||||
if ($row['issystem'] != -1) $rs = DelArc($aid); | if ($row['issystem'] != -1) $rs = DelArc($aid); | ||||
else $rs = DelArcSg($aid); | else $rs = DelArcSg($aid); | ||||
//删除缩略图 | //删除缩略图 | ||||
if (trim($row['litpic']) != '' && preg_match("#^".$cfg_user_dir."/{$cfg_ml->M_ID}#", $row['litpic'])) { | if (trim($row['litpic']) != '' && preg_match("#^".$cfg_user_dir."/{$cfg_ml->M_ID}#", $row['litpic'])) { | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__uploads` WHERE url LIKE '{$row['litpic']}' AND mid='{$cfg_ml->M_ID}' "); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__uploads` WHERE url LIKE '{$row['litpic']}' AND mid='{$cfg_ml->M_ID}' "); | ||||
@unlink($cfg_basedir.$row['litpic']); | @unlink($cfg_basedir.$row['litpic']); | ||||
} | } | ||||
if ($ENV_GOBACK_URL == 'content_list.php?channelid=') { | if ($ENV_GOBACK_URL == 'content_list.php?channelid=') { | ||||
$ENV_GOBACK_URL = $ENV_GOBACK_URL.$channelid; | $ENV_GOBACK_URL = $ENV_GOBACK_URL.$channelid; | ||||
} | } | ||||
@@ -154,7 +141,6 @@ else if ($dopost == "delArc") { | |||||
} | } | ||||
exit(); | exit(); | ||||
} | } | ||||
/*----------------- | /*----------------- | ||||
function viewArchives() | function viewArchives() | ||||
查看文章 | 查看文章 | ||||
@@ -166,4 +152,4 @@ else if ($dopost == "viewArchives") { | |||||
} else { | } else { | ||||
header("location:/book/book.php?bid=".$aid); | header("location:/book/book.php?bid=".$aid); | ||||
} | } | ||||
} | |||||
} |
@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | |||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -44,13 +43,11 @@ if (empty($dopost)) { | |||||
include(DEDEMEMBER."/templets/archives_edit.htm"); | include(DEDEMEMBER."/templets/archives_edit.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*------------------------------ | /*------------------------------ | ||||
function _SaveArticle(){ } | function _SaveArticle(){ } | ||||
------------------------------*/ | ------------------------------*/ | ||||
else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
include(DEDEMEMBER.'/inc/archives_check_edit.php'); | include(DEDEMEMBER.'/inc/archives_check_edit.php'); | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = $inadd_m = ''; | $inadd_f = $inadd_m = ''; | ||||
if (!empty($dede_addonfields)) { | if (!empty($dede_addonfields)) { | ||||
@@ -64,18 +61,15 @@ else if ($dopost == 'save') { | |||||
if (!isset(${$vs[0]})) { | if (!isset(${$vs[0]})) { | ||||
${$vs[0]} = ''; | ${$vs[0]} = ''; | ||||
} | } | ||||
//自动摘要和远程图片本地化 | //自动摘要和远程图片本地化 | ||||
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | ||||
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ||||
} | } | ||||
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid); | ${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid); | ||||
$inadd_m .= ','.$vs[0]; | $inadd_m .= ','.$vs[0]; | ||||
$inadd_f .= ','.$vs[0]." ='".${$vs[0]}."' "; | $inadd_f .= ','.$vs[0]." ='".${$vs[0]}."' "; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_m) { | if ($fontiterm != $inadd_m) { | ||||
@@ -83,29 +77,24 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//处理图片文档的自定义属性 | //处理图片文档的自定义属性 | ||||
if ($litpic != '') $flag = 'p'; | if ($litpic != '') $flag = 'p'; | ||||
//更新数据库的SQL语句 | //更新数据库的SQL语句 | ||||
$upQuery = "UPDATE `#@__archives` SET | $upQuery = "UPDATE `#@__archives` SET | ||||
ismake='$ismake', | |||||
arcrank='$arcrank', | |||||
typeid='$typeid', | |||||
title='$title', | |||||
litpic='$litpic', | |||||
description='$description', | |||||
keywords='$keywords', | |||||
mtype = '$mtypesid', | |||||
flag='$flag' | |||||
WHERE id='$aid' And mid='$mid'; "; | |||||
ismake='$ismake', | |||||
arcrank='$arcrank', | |||||
typeid='$typeid', | |||||
title='$title', | |||||
litpic='$litpic', | |||||
description='$description', | |||||
keywords='$keywords', | |||||
mtype = '$mtypesid', | |||||
flag='$flag' | |||||
WHERE id='$aid' And mid='$mid'; "; | |||||
if (!$dsql->ExecuteNoneQuery($upQuery)) { | if (!$dsql->ExecuteNoneQuery($upQuery)) { | ||||
ShowMsg("把数据保存到数据库主表时出错,请联系管理员".$dsql->GetError(), "-1"); | ShowMsg("把数据保存到数据库主表时出错,请联系管理员".$dsql->GetError(), "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($addtable != '') { | if ($addtable != '') { | ||||
$upQuery = "UPDATE `$addtable` SET typeid='$typeid'{$inadd_f}, userip='$userip' WHERE aid='$aid' "; | $upQuery = "UPDATE `$addtable` SET typeid='$typeid'{$inadd_f}, userip='$userip' WHERE aid='$aid' "; | ||||
if (!$dsql->ExecuteNoneQuery($upQuery)) { | if (!$dsql->ExecuteNoneQuery($upQuery)) { | ||||
@@ -118,9 +107,8 @@ else if ($dopost == 'save') { | |||||
UpIndexKey($aid, $arcrank, $typeid, $sortrank, $tags); | UpIndexKey($aid, $arcrank, $typeid, $sortrank, $tags); | ||||
$artUrl = MakeArt($aid, TRUE); | $artUrl = MakeArt($aid, TRUE); | ||||
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$aid"; | if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$aid"; | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " 请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-secondary btn-sm'>发布新内容</a> | <a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-secondary btn-sm'>发布新内容</a> | ||||
| | ||||
<a href='archives_edit.php?channelid=$channelid&aid=".$aid."' class='btn btn-secondary btn-sm'>查看修改</a> | <a href='archives_edit.php?channelid=$channelid&aid=".$aid."' class='btn btn-secondary btn-sm'>查看修改</a> | ||||
@@ -136,4 +124,4 @@ else if ($dopost == 'save') { | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | |||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -28,12 +27,10 @@ if (empty($dopost)) { | |||||
ShowMsg('模型不存在', '-1'); | ShowMsg('模型不存在', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//如果限制了会员级别或类型,则允许游客投稿选项无效 | //如果限制了会员级别或类型,则允许游客投稿选项无效 | ||||
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') { | if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') { | ||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
} | } | ||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE rank='".$cInfos['sendrank']."' "); | ||||
@@ -61,41 +58,33 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//校验CSRF | //校验CSRF | ||||
CheckCSRF(); | CheckCSRF(); | ||||
$flag = ''; | $flag = ''; | ||||
$autokey = $remote = $dellink = $autolitpic = 0; | $autokey = $remote = $dellink = $autolitpic = 0; | ||||
$userip = GetIP(); | $userip = GetIP(); | ||||
if ($typeid == 0) { | if ($typeid == 0) { | ||||
ShowMsg('请指定文档隶属的栏目', '-1'); | ShowMsg('请指定文档隶属的栏目', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$query = "SELECT tp.ispart,tp.channeltype,tp.issend,ch.issend AS cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | $query = "SELECT tp.ispart,tp.channeltype,tp.issend,ch.issend AS cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | ||||
FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid' "; | |||||
FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid' "; | |||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
//检测栏目是否有投稿权限 | //检测栏目是否有投稿权限 | ||||
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | ||||
ShowMsg("您所选择的栏目不支持投稿", "-1"); | ShowMsg("您所选择的栏目不支持投稿", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查频道设定的投稿许可权限 | //检查频道设定的投稿许可权限 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000); | ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
if ($cInfos['arcsta'] == 0) { | if ($cInfos['arcsta'] == 0) { | ||||
$arcrank = 0; | $arcrank = 0; | ||||
@@ -104,13 +93,11 @@ else if ($dopost == 'save') { | |||||
} else { | } else { | ||||
$arcrank = -1; | $arcrank = -1; | ||||
} | } | ||||
//对保存的内容进行处理 | //对保存的内容进行处理 | ||||
$sortrank = $senddate = $pubdate = time(); | $sortrank = $senddate = $pubdate = time(); | ||||
$title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); | $title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); | ||||
$mid = $cfg_ml->M_ID; | $mid = $cfg_ml->M_ID; | ||||
$description = empty($description) ? "" : $description; | $description = empty($description) ? "" : $description; | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = $inadd_v = ''; | $inadd_f = $inadd_v = ''; | ||||
if (!empty($dede_addonfields)) { | if (!empty($dede_addonfields)) { | ||||
@@ -126,34 +113,28 @@ else if ($dopost == 'save') { | |||||
if (!isset(${$vs[0]})) { | if (!isset(${$vs[0]})) { | ||||
${$vs[0]} = ''; | ${$vs[0]} = ''; | ||||
} | } | ||||
//自动摘要和远程图片本地化 | //自动摘要和远程图片本地化 | ||||
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | ||||
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ||||
} | } | ||||
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], 0); | ${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], 0); | ||||
$inadd_f .= ',`'.$vs[0].'`'; | $inadd_f .= ',`'.$vs[0].'`'; | ||||
$inadd_v .= " ,'".${$vs[0]}."' "; | $inadd_v .= " ,'".${$vs[0]}."' "; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != str_replace('`', '', $inadd_f)) { | if ($fontiterm != str_replace('`', '', $inadd_f)) { | ||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//生成文档ID | //生成文档ID | ||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//保存到附加表 | //保存到附加表 | ||||
$addtable = trim($cInfos['addtable']); | $addtable = trim($cInfos['addtable']); | ||||
if (empty($addtable)) { | if (empty($addtable)) { | ||||
@@ -169,19 +150,14 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//增加积分 | //增加积分 | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | ||||
//生成HTML | //生成HTML | ||||
$artUrl = MakeArt($arcID, true); | $artUrl = MakeArt($arcID, true); | ||||
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | ||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | |||||
请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='archives_sg_add.php?channelid=$channelid' class='btn btn-secondary btn-sm'>继续发布内容</a> | <a href='archives_sg_add.php?channelid=$channelid' class='btn btn-secondary btn-sm'>继续发布内容</a> | ||||
| | ||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看内容</a> | <a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看内容</a> | ||||
@@ -197,4 +173,4 @@ else if ($dopost == 'save') { | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | |||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -40,7 +39,6 @@ if (empty($dopost)) { | |||||
include(DEDEMEMBER."/templets/archives_sg_edit.htm"); | include(DEDEMEMBER."/templets/archives_sg_edit.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*------------------------------ | /*------------------------------ | ||||
function _SaveArticle(){ } | function _SaveArticle(){ } | ||||
------------------------------*/ | ------------------------------*/ | ||||
@@ -59,25 +57,21 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
if ($typeid == 0) { | if ($typeid == 0) { | ||||
ShowMsg('请指定文档隶属的栏目', '-1'); | ShowMsg('请指定文档隶属的栏目', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$query = "SELECT tp.ispart,tp.channeltype,tp.issend,ch.issend AS cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | $query = "SELECT tp.ispart,tp.channeltype,tp.issend,ch.issend AS cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | ||||
FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid' "; | |||||
FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid' "; | |||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
//检测栏目是否有投稿权限 | //检测栏目是否有投稿权限 | ||||
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | ||||
ShowMsg("您所选择的栏目不支持投稿", "-1"); | ShowMsg("您所选择的栏目不支持投稿", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//校验CSRF | //校验CSRF | ||||
CheckCSRF(); | CheckCSRF(); | ||||
//文档的默认状态 | //文档的默认状态 | ||||
if ($cInfos['arcsta'] == 0) { | if ($cInfos['arcsta'] == 0) { | ||||
$arcrank = 0; | $arcrank = 0; | ||||
@@ -86,11 +80,9 @@ else if ($dopost == 'save') { | |||||
} else { | } else { | ||||
$arcrank = -1; | $arcrank = -1; | ||||
} | } | ||||
//对保存的内容进行处理 | //对保存的内容进行处理 | ||||
$title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); | $title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); | ||||
$mid = $cfg_ml->M_ID; | $mid = $cfg_ml->M_ID; | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = $inadd_m = ''; | $inadd_f = $inadd_m = ''; | ||||
if (!empty($dede_addonfields)) { | if (!empty($dede_addonfields)) { | ||||
@@ -104,19 +96,15 @@ else if ($dopost == 'save') { | |||||
if (!isset(${$vs[0]})) { | if (!isset(${$vs[0]})) { | ||||
${$vs[0]} = ''; | ${$vs[0]} = ''; | ||||
} | } | ||||
//自动摘要和远程图片本地化 | //自动摘要和远程图片本地化 | ||||
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | ||||
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]); | ||||
} | } | ||||
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid); | ${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid); | ||||
$inadd_f .= ',`'.$vs[0]."` ='".${$vs[0]}."' "; | $inadd_f .= ',`'.$vs[0]."` ='".${$vs[0]}."' "; | ||||
$inadd_m .= ','.$vs[0]; | $inadd_m .= ','.$vs[0]; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_m) { | if ($fontiterm != $inadd_m) { | ||||
@@ -124,8 +112,6 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
if ($addtable != '') { | if ($addtable != '') { | ||||
$upQuery = "UPDATE `$addtable` SET `title`='$title',`typeid`='$typeid',`arcrank`='$arcrank',userip='$userip'{$inadd_f} WHERE aid='$aid' "; | $upQuery = "UPDATE `$addtable` SET `title`='$title',`typeid`='$typeid',`arcrank`='$arcrank',userip='$userip'{$inadd_f} WHERE aid='$aid' "; | ||||
if (!$dsql->ExecuteNoneQuery($upQuery)) { | if (!$dsql->ExecuteNoneQuery($upQuery)) { | ||||
@@ -133,12 +119,9 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
UpIndexKey($aid, 0, $typeid, $sortrank, ''); | UpIndexKey($aid, 0, $typeid, $sortrank, ''); | ||||
$artUrl = MakeArt($aid, true); | $artUrl = MakeArt($aid, true); | ||||
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$aid"; | if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$aid"; | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = "请选择您的后续操作: | $msg = "请选择您的后续操作: | ||||
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新内容</a> | <a href='archives_sg_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新内容</a> | ||||
@@ -156,4 +139,4 @@ else if ($dopost == 'save') { | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -18,24 +18,19 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | |||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid'; "); | $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid'; "); | ||||
//如果限制了会员级别或类型,则允许游客投稿选项无效 | //如果限制了会员级别或类型,则允许游客投稿选项无效 | ||||
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') CheckRank(0, 0); | if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') CheckRank(0, 0); | ||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE rank='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000); | ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
@@ -48,7 +43,6 @@ function _SaveArticle(){ } | |||||
------------------------------*/ | ------------------------------*/ | ||||
else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
include(DEDEMEMBER.'/inc/archives_check.php'); | include(DEDEMEMBER.'/inc/archives_check.php'); | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = $inadd_v = ''; | $inadd_f = $inadd_v = ''; | ||||
if (!empty($dede_addonfields)) { | if (!empty($dede_addonfields)) { | ||||
@@ -70,36 +64,29 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_f) { | if ($fontiterm != $inadd_f) { | ||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$body = AnalyseHtmlBody($body, $description); | $body = AnalyseHtmlBody($body, $description); | ||||
$body = HtmlReplace($body, -1); | $body = HtmlReplace($body, -1); | ||||
//生成文档ID | //生成文档ID | ||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//保存到主表 | //保存到主表 | ||||
$inQuery = "INSERT INTO `#@__archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle, | |||||
color,writer,source,litpic,pubdate,senddate,mid,description,keywords,mtype) | |||||
VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle', | |||||
'$color','$writer','$source','','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); "; | |||||
$inQuery = "INSERT INTO `#@__archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords,mtype) | |||||
VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle','$color','$writer','$source','','$pubdate','$senddate','$mid','$description','$keywords','$mtypesid'); "; | |||||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
$gerr = $dsql->GetError(); | $gerr = $dsql->GetError(); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID' "); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID' "); | ||||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//保存到附加表 | //保存到附加表 | ||||
$addtable = trim($cInfos['addtable']); | $addtable = trim($cInfos['addtable']); | ||||
if (empty($addtable)) { | if (empty($addtable)) { | ||||
@@ -117,22 +104,17 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//增加积分 | //增加积分 | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` set scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | $dsql->ExecuteNoneQuery("UPDATE `#@__member` set scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | ||||
//更新统计 | //更新统计 | ||||
countArchives($channelid); | countArchives($channelid); | ||||
//生成HTML | //生成HTML | ||||
InsertTags($tags, $arcID); | InsertTags($tags, $arcID); | ||||
$artUrl = MakeArt($arcID, TRUE); | $artUrl = MakeArt($arcID, TRUE); | ||||
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | ||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = | |||||
"请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文章</a> | <a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文章</a> | ||||
| | ||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a> | <a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a> | ||||
@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; | |||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -49,7 +48,6 @@ function _SaveArticle(){ } | |||||
------------------------------*/ | ------------------------------*/ | ||||
else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
include(DEDEMEMBER.'/inc/archives_check_edit.php'); | include(DEDEMEMBER.'/inc/archives_check_edit.php'); | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = $inadd_m = ''; | $inadd_f = $inadd_m = ''; | ||||
if (!empty($dede_addonfields)) { | if (!empty($dede_addonfields)) { | ||||
@@ -68,19 +66,15 @@ else if ($dopost == 'save') { | |||||
$inadd_m .= ','.$vs[0]; | $inadd_m .= ','.$vs[0]; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_m) { | if ($fontiterm != $inadd_m) { | ||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
$body = AnalyseHtmlBody($body, $description); | $body = AnalyseHtmlBody($body, $description); | ||||
$body = HtmlReplace($body, -1); | $body = HtmlReplace($body, -1); | ||||
//更新数据库的SQL语句 | //更新数据库的SQL语句 | ||||
$upQuery = "UPDATE `#@__archives` SET | $upQuery = "UPDATE `#@__archives` SET | ||||
ismake='$ismake', | ismake='$ismake', | ||||
@@ -108,9 +102,8 @@ else if ($dopost == 'save') { | |||||
if ($artUrl == '') { | if ($artUrl == '') { | ||||
$artUrl = $cfg_phpurl."/view.php?aid=$aid"; | $artUrl = $cfg_phpurl."/view.php?aid=$aid"; | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " 请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文章</a> | <a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文章</a> | ||||
| | ||||
<a href='archives_do.php?channelid=$channelid&aid=".$aid."&dopost=edit' class='btn btn-secondary btn-sm'>查看修改</a> | <a href='archives_do.php?channelid=$channelid&aid=".$aid."&dopost=edit' class='btn btn-secondary btn-sm'>查看修改</a> | ||||
@@ -126,4 +119,4 @@ else if ($dopost == 'save') { | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", false); | $winform = $win->GetWindow("hand", " ", false); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -40,4 +40,4 @@ while ($row = $dsql->GetObject()) { | |||||
} | } | ||||
$tpl = new DedeTemplate(); | $tpl = new DedeTemplate(); | ||||
$tpl->LoadTemplate(DEDEMEMBER.'/templets/buy.htm'); | $tpl->LoadTemplate(DEDEMEMBER.'/templets/buy.htm'); | ||||
$tpl->Display(); | |||||
$tpl->Display(); |
@@ -11,27 +11,23 @@ CheckRank(0, 0); | |||||
$menutype = 'mydede'; | $menutype = 'mydede'; | ||||
$menutype_son = 'op'; | $menutype_son = 'op'; | ||||
require_once DEDEINC.'/dedetemplate.class.php'; | require_once DEDEINC.'/dedetemplate.class.php'; | ||||
$product = isset($product) ? trim(HtmlReplace($product, 1)) : ''; | $product = isset($product) ? trim(HtmlReplace($product, 1)) : ''; | ||||
$mid = $cfg_ml->M_ID; | $mid = $cfg_ml->M_ID; | ||||
$ptype = ''; | $ptype = ''; | ||||
$pname = ''; | $pname = ''; | ||||
$price = ''; | $price = ''; | ||||
$mtime = time(); | $mtime = time(); | ||||
if (isset($pd_encode) && isset($pd_verify) && md5("payment".$pd_encode.$cfg_cookie_encode) == $pd_verify) { | if (isset($pd_encode) && isset($pd_verify) && md5("payment".$pd_encode.$cfg_cookie_encode) == $pd_verify) { | ||||
$result = json_decode(mchStrCode($pd_encode, 'DECODE')); | $result = json_decode(mchStrCode($pd_encode, 'DECODE')); | ||||
$product = preg_replace("#[^0-9a-z]#i", "", $result->product); | $product = preg_replace("#[^0-9a-z]#i", "", $result->product); | ||||
$pid = preg_replace("#[^0-9a-z]#i", "", $result->pid); | $pid = preg_replace("#[^0-9a-z]#i", "", $result->pid); | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__member_operation` WHERE mid='$mid' AND sta=0 AND product='$product'"); | $row = $dsql->GetOne("SELECT * FROM `#@__member_operation` WHERE mid='$mid' AND sta=0 AND product='$product'"); | ||||
if (!isset($row['buyid'])) { | if (!isset($row['buyid'])) { | ||||
ShowMsg("请不要重复提交表单!", 'javascript:;'); | |||||
ShowMsg("请不要重复提交表单", 'javascript:;'); | |||||
exit(); | exit(); | ||||
} | } | ||||
if (!isset($paytype)) { | if (!isset($paytype)) { | ||||
ShowMsg("请选择支付方式!", 'javascript:;'); | |||||
ShowMsg("请选择支付方式", 'javascript:;'); | |||||
exit(); | exit(); | ||||
} | } | ||||
$buyid = $row['buyid']; | $buyid = $row['buyid']; | ||||
@@ -42,12 +38,10 @@ if (isset($pd_encode) && isset($pd_verify) && md5("payment".$pd_encode.$cfg_cook | |||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_operation` WHERE mid='$mid' AND sta=0 AND product='$product'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_operation` WHERE mid='$mid' AND sta=0 AND product='$product'"); | ||||
} | } | ||||
} | } | ||||
if (empty($product)) { | if (empty($product)) { | ||||
ShowMsg("请选择一个产品!", 'javascript:;'); | ShowMsg("请选择一个产品!", 'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$pid = isset($pid) && is_numeric($pid) ? $pid : 0; | $pid = isset($pid) && is_numeric($pid) ? $pid : 0; | ||||
if ($product == 'member') { | if ($product == 'member') { | ||||
$ptype = "会员升级"; | $ptype = "会员升级"; | ||||
@@ -68,7 +62,6 @@ if ($product == 'member') { | |||||
$pname = $row['pname']; | $pname = $row['pname']; | ||||
$price = $row['money']; | $price = $row['money']; | ||||
} | } | ||||
if (!isset($paytype)) { | if (!isset($paytype)) { | ||||
$inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`) | $inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`) | ||||
VALUES ('$buyid', '$pname', '$product' , '$price' , '$mtime' , '$pid' , '$mid' , '0' , '$ptype'); | VALUES ('$buyid', '$pname', '$product' , '$price' , '$mtime' , '$pid' , '$mid' , '0' , '$ptype'); | ||||
@@ -78,12 +71,10 @@ if (!isset($paytype)) { | |||||
echo "数据库出错,请重新尝试".$dsql->GetError(); | echo "数据库出错,请重新尝试".$dsql->GetError(); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($price == '') { | if ($price == '') { | ||||
echo "无法识别您的订单"; | echo "无法识别您的订单"; | ||||
exit(); | exit(); | ||||
} | } | ||||
//获取支付接口列表 | //获取支付接口列表 | ||||
$payment_list = array(); | $payment_list = array(); | ||||
$dsql->SetQuery("SELECT * FROM `#@__payment` WHERE enabled='1' ORDER BY `rank` ASC"); | $dsql->SetQuery("SELECT * FROM `#@__payment` WHERE enabled='1' ORDER BY `rank` ASC"); | ||||
@@ -94,7 +85,6 @@ if (!isset($paytype)) { | |||||
$i++; | $i++; | ||||
} | } | ||||
unset($row); | unset($row); | ||||
$pr_encode = array(); | $pr_encode = array(); | ||||
foreach ($_REQUEST as $key => $val) { | foreach ($_REQUEST as $key => $val) { | ||||
if (!in_array($key, array('product', 'pid'))) { | if (!in_array($key, array('product', 'pid'))) { | ||||
@@ -103,24 +93,18 @@ if (!isset($paytype)) { | |||||
$val = preg_replace("#[^0-9a-z]#i", "", $val); | $val = preg_replace("#[^0-9a-z]#i", "", $val); | ||||
$pr_encode[$key] = $val; | $pr_encode[$key] = $val; | ||||
} | } | ||||
$pr_encode = str_replace('=', '', mchStrCode(json_encode($pr_encode))); | $pr_encode = str_replace('=', '', mchStrCode(json_encode($pr_encode))); | ||||
$pr_verify = md5("payment".$pr_encode.$cfg_cookie_encode); | $pr_verify = md5("payment".$pr_encode.$cfg_cookie_encode); | ||||
$tpl = new DedeTemplate(); | $tpl = new DedeTemplate(); | ||||
$tpl->LoadTemplate(DEDEMEMBER.'/templets/buy_action_payment.htm'); | $tpl->LoadTemplate(DEDEMEMBER.'/templets/buy_action_payment.htm'); | ||||
$tpl->Display(); | $tpl->Display(); | ||||
} else { | } else { | ||||
$rs = $dsql->GetOne("SELECT * FROM `#@__payment` WHERE id='$paytype' "); | $rs = $dsql->GetOne("SELECT * FROM `#@__payment` WHERE id='$paytype' "); | ||||
$rs['code'] = preg_replace("#[^0-9a-z]#i", "", $rs['code']); | $rs['code'] = preg_replace("#[^0-9a-z]#i", "", $rs['code']); | ||||
if (!file_exists(DEDEINC.'/payment/'.$rs['code'].'.php')) { | if (!file_exists(DEDEINC.'/payment/'.$rs['code'].'.php')) { | ||||
ShowMsg("未发现支付接口文件,请到后台配置", 'javascript:;'); | ShowMsg("未发现支付接口文件,请到后台配置", 'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
require_once DEDEINC.'/payment/'.$rs['code'].'.php'; | require_once DEDEINC.'/payment/'.$rs['code'].'.php'; | ||||
$pay = new $rs['code']; | $pay = new $rs['code']; | ||||
$payment = ""; | $payment = ""; | ||||
@@ -152,7 +136,6 @@ if (!isset($paytype)) { | |||||
$dtp->Display(); | $dtp->Display(); | ||||
exit(); | exit(); | ||||
} | } | ||||
/** | /** | ||||
* 加密函数 | * 加密函数 | ||||
* | * | ||||
@@ -171,7 +154,6 @@ function mchStrCode($string, $operation = 'ENCODE') | |||||
$runtokey = $key_length ? ($operation == 'ENCODE' ? substr(md5(microtime(true)), -$key_length) : substr($string, 0, $key_length)) : ''; | $runtokey = $key_length ? ($operation == 'ENCODE' ? substr(md5(microtime(true)), -$key_length) : substr($string, 0, $key_length)) : ''; | ||||
$keys = md5(substr($runtokey, 0, 16).substr($fixedkey, 0, 16).substr($runtokey, 16).substr($fixedkey, 16)); | $keys = md5(substr($runtokey, 0, 16).substr($fixedkey, 0, 16).substr($runtokey, 16).substr($fixedkey, 16)); | ||||
$string = $operation == 'ENCODE' ? sprintf('%010d', $expiry ? $expiry + time() : 0).substr(md5($string.$egiskeys), 0, 16).$string : base64_decode(substr($string, $key_length)); | $string = $operation == 'ENCODE' ? sprintf('%010d', $expiry ? $expiry + time() : 0).substr(md5($string.$egiskeys), 0, 16).$string : base64_decode(substr($string, $key_length)); | ||||
$i = 0; | $i = 0; | ||||
$result = ''; | $result = ''; | ||||
$string_length = strlen($string); | $string_length = strlen($string); | ||||
@@ -187,4 +169,4 @@ function mchStrCode($string, $operation = 'ENCODE') | |||||
return ''; | return ''; | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
@@ -8,33 +8,26 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
$svali = GetCkVdValue(); | $svali = GetCkVdValue(); | ||||
if (strtolower($vdcode) != $svali || $svali == "") { | if (strtolower($vdcode) != $svali || $svali == "") { | ||||
ShowMsg("验证码错误", "-1"); | ShowMsg("验证码错误", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$cardid = preg_replace("#[^0-9A-Za-z-]#", "", $cardid); | $cardid = preg_replace("#[^0-9A-Za-z-]#", "", $cardid); | ||||
if (empty($cardid)) { | if (empty($cardid)) { | ||||
ShowMsg("卡号为空", "-1"); | ShowMsg("卡号为空", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__moneycard_record` WHERE cardid='$cardid' "); | $row = $dsql->GetOne("SELECT * FROM `#@__moneycard_record` WHERE cardid='$cardid' "); | ||||
if (!is_array($row)) { | if (!is_array($row)) { | ||||
ShowMsg("卡号错误:不存在此卡号", "-1"); | ShowMsg("卡号错误:不存在此卡号", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($row['isexp'] == -1) { | if ($row['isexp'] == -1) { | ||||
ShowMsg("此卡号已经失效,不能再次使用", "-1"); | ShowMsg("此卡号已经失效,不能再次使用", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$hasMoney = $row['num']; | $hasMoney = $row['num']; | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__moneycard_record` SET uid='".$cfg_ml->M_ID."',isexp='-1',utime='".time()."' WHERE cardid='$cardid' "); | $dsql->ExecuteNoneQuery("UPDATE `#@__moneycard_record` SET uid='".$cfg_ml->M_ID."',isexp='-1',utime='".time()."' WHERE cardid='$cardid' "); | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET money=money+$hasMoney WHERE mid='".$cfg_ml->M_ID."'"); | $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET money=money+$hasMoney WHERE mid='".$cfg_ml->M_ID."'"); | ||||
ShowMsg("充值成功,您本次增加的金币为:{$hasMoney} 个", -1); | ShowMsg("充值成功,您本次增加的金币为:{$hasMoney} 个", -1); | ||||
exit(); | |||||
exit(); |
@@ -28,18 +28,15 @@ function XSSClean($val) | |||||
$val = preg_replace('/(&#[xX]0{0,8}'.dechex(ord($search[$i])).';?)/i', $search[$i], $val); //with a ; | $val = preg_replace('/(&#[xX]0{0,8}'.dechex(ord($search[$i])).';?)/i', $search[$i], $val); //with a ; | ||||
$val = preg_replace('/(�{0,8}'.ord($search[$i]).';?)/', $search[$i], $val); //with a ; | $val = preg_replace('/(�{0,8}'.ord($search[$i]).';?)/', $search[$i], $val); //with a ; | ||||
} | } | ||||
$val = str_replace("`", "‘", $val); | $val = str_replace("`", "‘", $val); | ||||
$val = str_replace("'", "‘", $val); | $val = str_replace("'", "‘", $val); | ||||
$val = str_replace("\"", "“", $val); | $val = str_replace("\"", "“", $val); | ||||
$val = str_replace(",", ",", $val); | $val = str_replace(",", ",", $val); | ||||
$val = str_replace("(", "(", $val); | $val = str_replace("(", "(", $val); | ||||
$val = str_replace(")", ")", $val); | $val = str_replace(")", ")", $val); | ||||
$ra1 = array('javascript', 'vbscript', 'expression', 'applet', 'meta', 'xml', 'blink', 'link', 'style', 'script', 'embed', 'object', 'iframe', 'frame', 'frameset', 'ilayer', 'layer', 'bgsound', 'title', 'base'); | $ra1 = array('javascript', 'vbscript', 'expression', 'applet', 'meta', 'xml', 'blink', 'link', 'style', 'script', 'embed', 'object', 'iframe', 'frame', 'frameset', 'ilayer', 'layer', 'bgsound', 'title', 'base'); | ||||
$ra2 = array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavailable', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterchange', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowenter', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload'); | $ra2 = array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavailable', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterchange', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowenter', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload'); | ||||
$ra = array_merge($ra1, $ra2); | $ra = array_merge($ra1, $ra2); | ||||
$found = true; | $found = true; | ||||
while ($found == true) { | while ($found == true) { | ||||
$val_before = $val; | $val_before = $val; | ||||
@@ -70,12 +67,10 @@ $_GET = XSSClean($_GET); | |||||
$_POST = XSSClean($_POST); | $_POST = XSSClean($_POST); | ||||
$_REQUEST = XSSClean($_REQUEST); | $_REQUEST = XSSClean($_REQUEST); | ||||
$_COOKIE = XSSClean($_COOKIE); | $_COOKIE = XSSClean($_COOKIE); | ||||
require_once(dirname(__FILE__).'/../system/common.inc.php'); | require_once(dirname(__FILE__).'/../system/common.inc.php'); | ||||
require_once(DEDEINC.'/filter.inc.php'); | require_once(DEDEINC.'/filter.inc.php'); | ||||
require_once(DEDEINC.'/memberlogin.class.php'); | require_once(DEDEINC.'/memberlogin.class.php'); | ||||
require_once(DEDEINC.'/dedetemplate.class.php'); | require_once(DEDEINC.'/dedetemplate.class.php'); | ||||
//检查CSRF | //检查CSRF | ||||
function CheckCSRF() | function CheckCSRF() | ||||
{ | { | ||||
@@ -88,10 +83,8 @@ function CheckCSRF() | |||||
ShowMsg('CSRF校验失败,请刷新页面重新提交', '-1'); | ShowMsg('CSRF校验失败,请刷新页面重新提交', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
DropCookie("dede_csrf_token"); | DropCookie("dede_csrf_token"); | ||||
} | } | ||||
//生成CSRF校验token,在比较重要的表单中应该要加上这个token校验 | //生成CSRF校验token,在比较重要的表单中应该要加上这个token校验 | ||||
$cc_csrf_token = GetCookie("dede_csrf_token"); | $cc_csrf_token = GetCookie("dede_csrf_token"); | ||||
if (!isset($GLOBALS['csrf_token']) || $GLOBALS['csrf_token'] === null) { | if (!isset($GLOBALS['csrf_token']) || $GLOBALS['csrf_token'] === null) { | ||||
@@ -104,12 +97,9 @@ if (!isset($GLOBALS['csrf_token']) || $GLOBALS['csrf_token'] === null) { | |||||
$GLOBALS['csrf_token'] = md5(uniqid(mt_rand(), TRUE)); | $GLOBALS['csrf_token'] = md5(uniqid(mt_rand(), TRUE)); | ||||
} | } | ||||
} | } | ||||
if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { | if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { | ||||
PutCookie('dede_csrf_token', $GLOBALS['csrf_token'], 7200, '/'); | PutCookie('dede_csrf_token', $GLOBALS['csrf_token'], 7200, '/'); | ||||
} | } | ||||
//获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行修改这个选项 | //获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行修改这个选项 | ||||
$dedeNowurl = $s_scriptName = ''; | $dedeNowurl = $s_scriptName = ''; | ||||
$dedeNowurl = GetCurUrl(); | $dedeNowurl = GetCurUrl(); | ||||
@@ -118,7 +108,6 @@ $s_scriptName = $dedeNowurls[0]; | |||||
$menutype = ''; | $menutype = ''; | ||||
$menutype_son = ''; | $menutype_son = ''; | ||||
$gourl = empty($gourl) ? "" : RemoveXSS($gourl); | $gourl = empty($gourl) ? "" : RemoveXSS($gourl); | ||||
//检查是否开放会员功能 | //检查是否开放会员功能 | ||||
if ($cfg_mb_open == 'N') { | if ($cfg_mb_open == 'N') { | ||||
if (defined('AJAXLOGIN')) { | if (defined('AJAXLOGIN')) { | ||||
@@ -139,7 +128,6 @@ if ($cfg_mb_open == 'N') { | |||||
} | } | ||||
$keeptime = isset($keeptime) && is_numeric($keeptime) ? $keeptime : -1; | $keeptime = isset($keeptime) && is_numeric($keeptime) ? $keeptime : -1; | ||||
$cfg_ml = new MemberLogin($keeptime); | $cfg_ml = new MemberLogin($keeptime); | ||||
//判断用户是否登录 | //判断用户是否登录 | ||||
$myurl = ''; | $myurl = ''; | ||||
if ($cfg_ml->IsLogin()) { | if ($cfg_ml->IsLogin()) { | ||||
@@ -149,10 +137,8 @@ if ($cfg_ml->IsLogin()) { | |||||
$cfg_ml->fields['face'] = $cfg_cmsurl."../static/web/img/avatar.png"; | $cfg_ml->fields['face'] = $cfg_cmsurl."../static/web/img/avatar.png"; | ||||
} | } | ||||
} | } | ||||
/** 有没新短信 **/ | |||||
//有没新短信 | |||||
$pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_pms` WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | $pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_pms` WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | ||||
/** | /** | ||||
* 检查用户是否有权限进行某个操作 | * 检查用户是否有权限进行某个操作 | ||||
* | * | ||||
@@ -197,15 +183,14 @@ function CheckRank($rank = 0, $money = 0) | |||||
$myname = "普通会员"; | $myname = "普通会员"; | ||||
} | } | ||||
} | } | ||||
ShowMsg("对不起,需要:<span style='font-size:11pt;color:red'>$needname</span> 才能访问本页面<br>您目前的等级是:<span style='font-size:11pt;color:red'>$myname</span> ", "-1", 0, 5000); | |||||
ShowMsg("对不起,需要:<span style='color:red'>$needname</span> 才能访问本页面<br>您目前的等级是:<span style='color:red'>$myname</span> ", "-1", 0, 5000); | |||||
exit(); | exit(); | ||||
} else if ($cfg_ml->M_Money < $money) { | } else if ($cfg_ml->M_Money < $money) { | ||||
ShowMsg("对不起,需要花费金币:<span style='font-size:11pt;color:red'>$money</span> 才能访问本页面<br>您目前拥有的金币是:<span style='font-size:11pt;color:red'>".$cfg_ml->M_Money."</span> ", "-1", 0, 5000); | |||||
ShowMsg("对不起,需要花费金币:<span style='color:red'>$money</span> 才能访问本页面<br>您目前拥有的金币是:<span style='color:red'>".$cfg_ml->M_Money."</span> ", "-1", 0, 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 更新文档统计 | * 更新文档统计 | ||||
* | * | ||||
@@ -230,4 +215,4 @@ function countArchives($channelid) | |||||
} else { | } else { | ||||
return FALSE; | return FALSE; | ||||
} | } | ||||
} | |||||
} |
@@ -19,7 +19,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0; | |||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
if (!isset($keyword)) $keyword = ''; | if (!isset($keyword)) $keyword = ''; | ||||
if (!isset($arcrank)) $arcrank = ''; | if (!isset($arcrank)) $arcrank = ''; | ||||
$positionname = ''; | $positionname = ''; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
$mid = $cfg_ml->M_ID; | $mid = $cfg_ml->M_ID; | ||||
@@ -32,13 +31,11 @@ if (!is_array($cInfos)) { | |||||
$arcsta = $cInfos['arcsta']; | $arcsta = $cInfos['arcsta']; | ||||
$dtime = time(); | $dtime = time(); | ||||
$maxtime = $cfg_mb_editday * 24 * 3600; | $maxtime = $cfg_mb_editday * 24 * 3600; | ||||
//禁止访问无权限的模型 | //禁止访问无权限的模型 | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg('您无权限访问该部分', '-1'); | ShowMsg('您无权限访问该部分', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($cid == 0) { | if ($cid == 0) { | ||||
$row = $tl->dsql->GetOne("Select typename From #@__channeltype where id='$channelid'"); | $row = $tl->dsql->GetOne("Select typename From #@__channeltype where id='$channelid'"); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
@@ -54,8 +51,6 @@ if ($keyword != '') { | |||||
$whereSql .= " And (arc.title like '%$keyword%') "; | $whereSql .= " And (arc.title like '%$keyword%') "; | ||||
} | } | ||||
if ($cid != 0) $whereSql .= " And arc.typeid in (".GetSonIds($cid).")"; | if ($cid != 0) $whereSql .= " And arc.typeid in (".GetSonIds($cid).")"; | ||||
//增加分类查询 | //增加分类查询 | ||||
if ($arcrank == '1') { | if ($arcrank == '1') { | ||||
$whereSql .= " And arc.arcrank >= 0"; | $whereSql .= " And arc.arcrank >= 0"; | ||||
@@ -64,7 +59,6 @@ if ($arcrank == '1') { | |||||
} else if ($arcrank == '-2') { | } else if ($arcrank == '-2') { | ||||
$whereSql .= " And arc.arcrank = -2"; | $whereSql .= " And arc.arcrank = -2"; | ||||
} | } | ||||
$classlist = ''; | $classlist = ''; | ||||
$dsql->SetQuery("SELECT * FROM `#@__mtypes` WHERE `mid` = '$cfg_ml->M_ID';"); | $dsql->SetQuery("SELECT * FROM `#@__mtypes` WHERE `mid` = '$cfg_ml->M_ID';"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -74,12 +68,11 @@ while ($row = $dsql->GetArray()) { | |||||
if ($mtypesid != 0) { | if ($mtypesid != 0) { | ||||
$whereSql .= " And arc.mtype = '$mtypesid'"; | $whereSql .= " And arc.mtype = '$mtypesid'"; | ||||
} | } | ||||
$query = "SELECT arc.id,arc.typeid,arc.senddate,arc.flag,arc.ismake,arc.channel,arc.arcrank, | |||||
arc.click,arc.title,arc.color,arc.litpic,arc.pubdate,arc.mid,tp.typename,ch.typename as channelname | |||||
from `#@__archives` arc | |||||
left join `#@__arctype` tp on tp.id=arc.typeid | |||||
left join `#@__channeltype` ch on ch.id=arc.channel | |||||
$whereSql order by arc.senddate desc "; | |||||
$query = "SELECT arc.id,arc.typeid,arc.senddate,arc.flag,arc.ismake,arc.channel,arc.arcrank,arc.click,arc.title,arc.color,arc.litpic,arc.pubdate,arc.mid,tp.typename,ch.typename as channelname | |||||
from `#@__archives` arc | |||||
left join `#@__arctype` tp on tp.id=arc.typeid | |||||
left join `#@__channeltype` ch on ch.id=arc.channel | |||||
$whereSql order by arc.senddate desc "; | |||||
$dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
$dlist->pageSize = 20; | $dlist->pageSize = 20; | ||||
$dlist->SetParameter("dopost", "listArchives"); | $dlist->SetParameter("dopost", "listArchives"); | ||||
@@ -88,4 +81,4 @@ $dlist->SetParameter("cid", $cid); | |||||
$dlist->SetParameter("channelid", $channelid); | $dlist->SetParameter("channelid", $channelid); | ||||
$dlist->SetTemplate(DEDEMEMBER."/templets/content_list.htm"); | $dlist->SetTemplate(DEDEMEMBER."/templets/content_list.htm"); | ||||
$dlist->SetSource($query); | $dlist->SetSource($query); | ||||
$dlist->Display(); | |||||
$dlist->Display(); |
@@ -10,16 +10,13 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
$menutype = 'config'; | $menutype = 'config'; | ||||
if (!isset($dopost)) $dopost = ''; | if (!isset($dopost)) $dopost = ''; | ||||
$pwd2 = (empty($pwd2)) ? "" : $pwd2; | $pwd2 = (empty($pwd2)) ? "" : $pwd2; | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'"); | $row = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'"); | ||||
$face = $row['face']; | $face = $row['face']; | ||||
if ($dopost == 'save') { | if ($dopost == 'save') { | ||||
$svali = GetCkVdValue(); | $svali = GetCkVdValue(); | ||||
//校验CSRF | //校验CSRF | ||||
CheckCSRF(); | CheckCSRF(); | ||||
if (strtolower($vdcode) != $svali || $svali == '') { | if (strtolower($vdcode) != $svali || $svali == '') { | ||||
ReSETVdValue(); | ReSETVdValue(); | ||||
ShowMsg('验证码错误', '-1'); | ShowMsg('验证码错误', '-1'); | ||||
@@ -40,14 +37,12 @@ if ($dopost == 'save') { | |||||
$pwd2 = substr(md5($userpwd), 5, 20); | $pwd2 = substr(md5($userpwd), 5, 20); | ||||
} | } | ||||
$addupquery = ''; | $addupquery = ''; | ||||
//修改安全问题或Email | //修改安全问题或Email | ||||
if ($email != $row['email'] || ($newsafequestion != 0 && $newsafeanswer != '')) { | if ($email != $row['email'] || ($newsafequestion != 0 && $newsafeanswer != '')) { | ||||
if ($row['safequestion'] != 0 && ($row['safequestion'] != $safequestion || $row['safeanswer'] != $safeanswer)) { | if ($row['safequestion'] != 0 && ($row['safequestion'] != $safequestion || $row['safeanswer'] != $safeanswer)) { | ||||
ShowMsg('您的旧安全问题及答案不正确,不能修改Email或安全问题', '-1'); | ShowMsg('您的旧安全问题及答案不正确,不能修改Email或安全问题', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//修改Email | //修改Email | ||||
if ($email != $row['email']) { | if ($email != $row['email']) { | ||||
if (!CheckEmail($email)) { | if (!CheckEmail($email)) { | ||||
@@ -57,7 +52,6 @@ if ($dopost == 'save') { | |||||
$addupquery .= ",email='$email'"; | $addupquery .= ",email='$email'"; | ||||
} | } | ||||
} | } | ||||
//修改安全问题 | //修改安全问题 | ||||
if ($newsafequestion != 0 && $newsafeanswer != '') { | if ($newsafequestion != 0 && $newsafeanswer != '') { | ||||
if (strlen($newsafeanswer) > 30) { | if (strlen($newsafeanswer) > 30) { | ||||
@@ -70,7 +64,6 @@ if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
} | } | ||||
//修改uname | //修改uname | ||||
if ($uname != $row['uname']) { | if ($uname != $row['uname']) { | ||||
$rs = CheckUserID($uname, '昵称或公司名称', FALSE); | $rs = CheckUserID($uname, '昵称或公司名称', FALSE); | ||||
@@ -80,16 +73,13 @@ if ($dopost == 'save') { | |||||
} | } | ||||
$addupquery .= ",uname='$uname'"; | $addupquery .= ",uname='$uname'"; | ||||
} | } | ||||
//性别 | //性别 | ||||
if (!in_array($sex, array('男', '女', '保密'))) { | if (!in_array($sex, array('男', '女', '保密'))) { | ||||
ShowMsg('请选择正常的性别', '-1'); | ShowMsg('请选择正常的性别', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$query1 = "UPDATE `#@__member` SET pwd='$pwd',sex='$sex'{$addupquery} where mid='".$cfg_ml->M_ID."' "; | $query1 = "UPDATE `#@__member` SET pwd='$pwd',sex='$sex'{$addupquery} where mid='".$cfg_ml->M_ID."' "; | ||||
$dsql->ExecuteNoneQuery($query1); | $dsql->ExecuteNoneQuery($query1); | ||||
//如果是管理员,修改其后台密码 | //如果是管理员,修改其后台密码 | ||||
if ($cfg_ml->fields['matt'] == 10 && $pwd2 != "") { | if ($cfg_ml->fields['matt'] == 10 && $pwd2 != "") { | ||||
$query2 = "UPDATE `#@__admin` SET pwd='$pwd2' where id='".$cfg_ml->M_ID."' "; | $query2 = "UPDATE `#@__admin` SET pwd='$pwd2' where id='".$cfg_ml->M_ID."' "; | ||||
@@ -100,4 +90,4 @@ if ($dopost == 'save') { | |||||
ShowMsg('成功更新您的基本资料', 'edit_baseinfo.php', 0, 5000); | ShowMsg('成功更新您的基本资料', 'edit_baseinfo.php', 0, 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/edit_baseinfo.htm"); | |||||
include(DEDEMEMBER."/templets/edit_baseinfo.htm"); |
@@ -9,20 +9,16 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
if (!defined('DEDEMEMBER')) exit('dedebiz'); | if (!defined('DEDEMEMBER')) exit('dedebiz'); | ||||
include_once(DEDEINC.'/image.func.php'); | include_once(DEDEINC.'/image.func.php'); | ||||
include_once(DEDEINC.'/libraries/oxwindow.class.php'); | include_once(DEDEINC.'/libraries/oxwindow.class.php'); | ||||
$svali = GetCkVdValue(); | $svali = GetCkVdValue(); | ||||
if (strtolower($vdcode) != $svali || $svali == '') { | if (strtolower($vdcode) != $svali || $svali == '') { | ||||
ResetVdValue(); | ResetVdValue(); | ||||
ShowMsg('验证码错误', '-1'); | ShowMsg('验证码错误', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//校验CSRF | //校验CSRF | ||||
CheckCSRF(); | CheckCSRF(); | ||||
$flag = ''; | $flag = ''; | ||||
$autokey = $remote = $dellink = $autolitpic = 0; | $autokey = $remote = $dellink = $autolitpic = 0; | ||||
$userip = GetIP(); | $userip = GetIP(); | ||||
@@ -31,29 +27,24 @@ if ($typeid == 0) { | |||||
ShowMsg('请指定文档隶属的栏目', '-1'); | ShowMsg('请指定文档隶属的栏目', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$query = "Select tp.ispart,tp.channeltype,tp.issend,ch.issend as cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | $query = "Select tp.ispart,tp.channeltype,tp.issend,ch.issend as cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | ||||
From `#@__arctype` tp left join `#@__channeltype` ch on ch.id=tp.channeltype where tp.id='$typeid' "; | |||||
From `#@__arctype` tp left join `#@__channeltype` ch on ch.id=tp.channeltype where tp.id='$typeid' "; | |||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
//检测栏目是否有投稿权限 | //检测栏目是否有投稿权限 | ||||
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | ||||
ShowMsg("您所选择的栏目不支持投稿", "-1"); | ShowMsg("您所选择的栏目不支持投稿", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查频道设定的投稿许可权限 | //检查频道设定的投稿许可权限 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000); | ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
if ($cInfos['arcsta'] == 0) { | if ($cInfos['arcsta'] == 0) { | ||||
$ismake = 0; | $ismake = 0; | ||||
@@ -65,7 +56,6 @@ if ($cInfos['arcsta'] == 0) { | |||||
$ismake = 0; | $ismake = 0; | ||||
$arcrank = -1; | $arcrank = -1; | ||||
} | } | ||||
//对保存的内容进行处理 | //对保存的内容进行处理 | ||||
$money = 0; | $money = 0; | ||||
$flag = $shorttitle = $color = $source = ''; | $flag = $shorttitle = $color = $source = ''; | ||||
@@ -76,7 +66,6 @@ if (empty($description)) $description = ''; | |||||
$description = cn_substrR(HtmlReplace($description, 1), 250); | $description = cn_substrR(HtmlReplace($description, 1), 250); | ||||
$keywords = cn_substrR(HtmlReplace($tags, 1), 30); | $keywords = cn_substrR(HtmlReplace($tags, 1), 30); | ||||
$mid = $cfg_ml->M_ID; | $mid = $cfg_ml->M_ID; | ||||
//检测文档是否重复 | //检测文档是否重复 | ||||
if ($cfg_mb_cktitle == 'Y') { | if ($cfg_mb_cktitle == 'Y') { | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__archives` WHERE title LIKE '$title' "); | $row = $dsql->GetOne("SELECT * FROM `#@__archives` WHERE title LIKE '$title' "); | ||||
@@ -84,4 +73,4 @@ if ($cfg_mb_cktitle == 'Y') { | |||||
ShowMsg("对不起,请不要发布重复文档", "-1", "0", 5000); | ShowMsg("对不起,请不要发布重复文档", "-1", "0", 5000); | ||||
exit(); | exit(); | ||||
} | } | ||||
} | |||||
} |
@@ -9,10 +9,8 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
if (!defined('DEDEMEMBER')) exit('dedebiz'); | if (!defined('DEDEMEMBER')) exit('dedebiz'); | ||||
require_once(DEDEINC."/image.func.php"); | require_once(DEDEINC."/image.func.php"); | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
$flag = ''; | $flag = ''; | ||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$userip = GetIP(); | $userip = GetIP(); | ||||
@@ -26,22 +24,17 @@ if ($typeid == 0) { | |||||
ShowMsg('请指定文档隶属的栏目', '-1'); | ShowMsg('请指定文档隶属的栏目', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//校验CSRF | //校验CSRF | ||||
CheckCSRF(); | CheckCSRF(); | ||||
$query = "SELECT tp.ispart,tp.channeltype,tp.issend,ch.issend as cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | $query = "SELECT tp.ispart,tp.channeltype,tp.issend,ch.issend as cissend,ch.sendrank,ch.arcsta,ch.addtable,ch.fieldset,ch.usertype | ||||
FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid' "; | |||||
FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid' "; | |||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
//检测栏目是否有投稿权限 | //检测栏目是否有投稿权限 | ||||
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) { | ||||
ShowMsg("您所选择的栏目不支持投稿", "-1"); | ShowMsg("您所选择的栏目不支持投稿", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
if ($cInfos['arcsta'] == 0) { | if ($cInfos['arcsta'] == 0) { | ||||
$ismake = 0; | $ismake = 0; | ||||
@@ -53,7 +46,6 @@ if ($cInfos['arcsta'] == 0) { | |||||
$ismake = 0; | $ismake = 0; | ||||
$arcrank = -1; | $arcrank = -1; | ||||
} | } | ||||
//对保存的内容进行处理 | //对保存的内容进行处理 | ||||
$title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); | $title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen); | ||||
$writer = cn_substrR(HtmlReplace($writer, 1), 20); | $writer = cn_substrR(HtmlReplace($writer, 1), 20); | ||||
@@ -61,15 +53,13 @@ if (empty($description)) $description = ''; | |||||
$description = cn_substrR(HtmlReplace($description, 1), 250); | $description = cn_substrR(HtmlReplace($description, 1), 250); | ||||
$keywords = cn_substrR(HtmlReplace($tags, 1), 30); | $keywords = cn_substrR(HtmlReplace($tags, 1), 30); | ||||
$mid = $cfg_ml->M_ID; | $mid = $cfg_ml->M_ID; | ||||
$midQuery = "SELECT mid FROM `#@__arctiny` WHERE id='$aid'"; | $midQuery = "SELECT mid FROM `#@__arctiny` WHERE id='$aid'"; | ||||
$midRow = $dsql->GetOne($midQuery); | $midRow = $dsql->GetOne($midQuery); | ||||
if ($midRow['mid'] != $mid) { | if ($midRow['mid'] != $mid) { | ||||
ShowMsg('您暂无权限在这里进行修改文档', 'javascript:;'); | ShowMsg('您暂无权限在这里进行修改文档', 'javascript:;'); | ||||
exit; | exit; | ||||
} | } | ||||
$isadmin = ($cfg_ml->fields['matt'] == 10 ? true : false); | $isadmin = ($cfg_ml->fields['matt'] == 10 ? true : false); | ||||
if (empty($oldlitpic)) { | if (empty($oldlitpic)) { | ||||
$oldlitpic = ''; | $oldlitpic = ''; | ||||
} | |||||
} |
@@ -12,10 +12,8 @@ if (!defined('DEDEMEMBER')) exit('dedebiz'); | |||||
require_once(DEDEINC.'/image.func.php'); | require_once(DEDEINC.'/image.func.php'); | ||||
require_once(DEDEINC.'/archives.func.php'); | require_once(DEDEINC.'/archives.func.php'); | ||||
require_once(DEDEINC."/userlogin.class.php"); | require_once(DEDEINC."/userlogin.class.php"); | ||||
//检查用户是否被禁言 | //检查用户是否被禁言 | ||||
CheckNotAllow(); | CheckNotAllow(); | ||||
/** | /** | ||||
* 获得HTML里的外部资源,针对图集 | * 获得HTML里的外部资源,针对图集 | ||||
* | * | ||||
@@ -84,7 +82,6 @@ function GetCurContentAlbum($body, $rfurl, &$firstdd) | |||||
} | } | ||||
return $rsimg; | return $rsimg; | ||||
} | } | ||||
/** | /** | ||||
* 图集里大图的小图 | * 图集里大图的小图 | ||||
* | * | ||||
@@ -105,7 +102,6 @@ function GetImageMapDD($filename, $ddm, $oldname = '') | |||||
ImageResize($GLOBALS['cfg_basedir'].$filename, $ddm, 300, $toFile); | ImageResize($GLOBALS['cfg_basedir'].$filename, $ddm, 300, $toFile); | ||||
return $ddpicok; | return $ddpicok; | ||||
} | } | ||||
/** | /** | ||||
* 把上传的信息保存到数据库 | * 把上传的信息保存到数据库 | ||||
* | * | ||||
@@ -132,9 +128,8 @@ function SaveUploadInfo($title, $filename, $medaitype = 1, $addinfos = '') | |||||
$row = $dsql->GetOne("SELECT aid,title,url FROM `#@__uploads` WHERE url LIKE '$filename' AND mid='".$cfg_ml->M_ID."'; "); | $row = $dsql->GetOne("SELECT aid,title,url FROM `#@__uploads` WHERE url LIKE '$filename' AND mid='".$cfg_ml->M_ID."'; "); | ||||
$uptime = time(); | $uptime = time(); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
$query = "UPDATE `#@__uploads` SET title='$title',mediatype='$medaitype', | |||||
width='{$addinfos[0]}',height='{$addinfos[1]}',filesize='{$addinfos[2]}',uptime='$uptime' | |||||
WHERE aid='{$row['aid']}'; "; | |||||
$query = "UPDATE `#@__uploads` SET title='$title',mediatype='$medaitype',width='{$addinfos[0]}',height='{$addinfos[1]}',filesize='{$addinfos[2]}',uptime='$uptime' | |||||
WHERE aid='{$row['aid']}'; "; | |||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
} else { | } else { | ||||
$inquery = "INSERT INTO `#@__uploads`(title,url,mediatype,width,height,playtime,filesize,uptime,mid) | $inquery = "INSERT INTO `#@__uploads`(title,url,mediatype,width,height,playtime,filesize,uptime,mid) | ||||
@@ -145,7 +140,6 @@ function SaveUploadInfo($title, $filename, $medaitype = 1, $addinfos = '') | |||||
AddMyAddon($fid, $filename); | AddMyAddon($fid, $filename); | ||||
return TRUE; | return TRUE; | ||||
} | } | ||||
/** | /** | ||||
* 获得一个附加表单 | * 获得一个附加表单 | ||||
* | * | ||||
@@ -156,7 +150,6 @@ function GetFormItemA($ctag) | |||||
{ | { | ||||
return GetFormItem($ctag, 'member'); | return GetFormItem($ctag, 'member'); | ||||
} | } | ||||
/** | /** | ||||
* 处理不同类型的数据 | * 处理不同类型的数据 | ||||
* | * | ||||
@@ -171,7 +164,6 @@ function GetFieldValueA($dvalue, $dtype, $aid = 0, $job = 'add', $addvar = '') | |||||
{ | { | ||||
return GetFieldValue($dvalue, $dtype, $aid, $job, $addvar, 'member'); | return GetFieldValue($dvalue, $dtype, $aid, $job, $addvar, 'member'); | ||||
} | } | ||||
/** | /** | ||||
* 获得带值的表单(编辑时用) | * 获得带值的表单(编辑时用) | ||||
* | * | ||||
@@ -183,7 +175,6 @@ function GetFormItemValueA($ctag, $fvalue) | |||||
{ | { | ||||
return GetFormItemValue($ctag, $fvalue, 'member'); | return GetFormItemValue($ctag, $fvalue, 'member'); | ||||
} | } | ||||
/** | /** | ||||
* 载入自定义表单(用于发布) | * 载入自定义表单(用于发布) | ||||
* | * | ||||
@@ -209,13 +200,11 @@ function PrintAutoFieldsAdd(&$fieldset, $loadtype = 'all', $isprint = TRUE) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
echo "<input type=\"hidden\" name=\"dede_addonfields\" value=\"".$dede_addonfields."\" />"; | echo "<input type=\"hidden\" name=\"dede_addonfields\" value=\"".$dede_addonfields."\" />"; | ||||
echo "<input type=\"hidden\" name=\"_csrf_token\" value=\"".$GLOBALS['csrf_token']."\" />"; | echo "<input type=\"hidden\" name=\"_csrf_token\" value=\"".$GLOBALS['csrf_token']."\" />"; | ||||
//增加一个返回 | //增加一个返回 | ||||
return $addonfieldsname; | return $addonfieldsname; | ||||
} | } | ||||
/** | /** | ||||
* 载入自定义表单(用于编辑) | * 载入自定义表单(用于编辑) | ||||
* | * | ||||
@@ -244,7 +233,6 @@ function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype = 'all') | |||||
echo "<input type=\"hidden\" name=\"dede_addonfields\" value=\"".$dede_addonfields."\" />"; | echo "<input type=\"hidden\" name=\"dede_addonfields\" value=\"".$dede_addonfields."\" />"; | ||||
echo "<input type=\"hidden\" name=\"_csrf_token\" value=\"".$GLOBALS['csrf_token']."\" />"; | echo "<input type=\"hidden\" name=\"_csrf_token\" value=\"".$GLOBALS['csrf_token']."\" />"; | ||||
} | } | ||||
/** | /** | ||||
* 创建指定ID的文档 | * 创建指定ID的文档 | ||||
* | * | ||||
@@ -274,7 +262,6 @@ function MakeArt($aid, $ismakesign = FALSE) | |||||
} | } | ||||
return $reurl; | return $reurl; | ||||
} | } | ||||
/** | /** | ||||
* 处理HTML文本、自动摘要、自动获取缩略图等 | * 处理HTML文本、自动摘要、自动获取缩略图等 | ||||
* | * | ||||
@@ -289,12 +276,10 @@ function AnalyseHtmlBody($body, &$description, $dtype = '') | |||||
global $cfg_mb_rmdown, $cfg_basehost, $cfg_auot_description, $arcID; | global $cfg_mb_rmdown, $cfg_basehost, $cfg_auot_description, $arcID; | ||||
$autolitpic = (empty($autolitpic) ? '' : $autolitpic); | $autolitpic = (empty($autolitpic) ? '' : $autolitpic); | ||||
$body = stripslashes($body); | $body = stripslashes($body); | ||||
//远程图片本地化 | //远程图片本地化 | ||||
if ($cfg_mb_rmdown == 'Y') { | if ($cfg_mb_rmdown == 'Y') { | ||||
$body = GetCurContent($body); | $body = GetCurContent($body); | ||||
} | } | ||||
//自动摘要 | //自动摘要 | ||||
if ($description == '' && $cfg_auot_description > 0) { | if ($description == '' && $cfg_auot_description > 0) { | ||||
$description = cn_substr(html2text($body), $cfg_auot_description); | $description = cn_substr(html2text($body), $cfg_auot_description); | ||||
@@ -304,7 +289,6 @@ function AnalyseHtmlBody($body, &$description, $dtype = '') | |||||
$body = addslashes($body); | $body = addslashes($body); | ||||
return $body; | return $body; | ||||
} | } | ||||
/** | /** | ||||
* 获得文章body里的外部资源 | * 获得文章body里的外部资源 | ||||
* | * | ||||
@@ -365,4 +349,4 @@ function GetCurContent(&$body) | |||||
} | } | ||||
$htd->Close(); | $htd->Close(); | ||||
return $body; | return $body; | ||||
} | |||||
} |
@@ -10,7 +10,6 @@ if (!defined('DEDEINC')) exit('dedebiz'); | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(DEDEINC."/channelunit.func.php"); | require_once(DEDEINC."/channelunit.func.php"); | ||||
/** | /** | ||||
* 删除文档 | * 删除文档 | ||||
* | * | ||||
@@ -22,21 +21,18 @@ function DelArc($aid) | |||||
{ | { | ||||
global $dsql, $cfg_cookie_encode, $cfg_ml, $cfg_upload_switch, $cfg_medias_dir; | global $dsql, $cfg_cookie_encode, $cfg_ml, $cfg_upload_switch, $cfg_medias_dir; | ||||
$aid = intval($aid); | $aid = intval($aid); | ||||
//读取文档信息 | //读取文档信息 | ||||
$arctitle = ''; | $arctitle = ''; | ||||
$arcurl = ''; | $arcurl = ''; | ||||
$arcQuery = "SELECT arc.*,ch.addtable,tp.typedir,tp.typename,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath,ch.nid | $arcQuery = "SELECT arc.*,ch.addtable,tp.typedir,tp.typename,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath,ch.nid | ||||
FROM `#@__archives` arc | |||||
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid | |||||
LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel | |||||
FROM `#@__archives` arc | |||||
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid | |||||
LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel | |||||
WHERE arc.id='$aid' "; | WHERE arc.id='$aid' "; | ||||
$arcRow = $dsql->GetOne($arcQuery); | $arcRow = $dsql->GetOne($arcQuery); | ||||
if (!is_array($arcRow)) { | if (!is_array($arcRow)) { | ||||
return false; | return false; | ||||
} | } | ||||
//删除数据库的内容 | //删除数据库的内容 | ||||
$dsql->ExecuteNoneQuery(" DELETE FROM `#@__arctiny` WHERE id='$aid' "); | $dsql->ExecuteNoneQuery(" DELETE FROM `#@__arctiny` WHERE id='$aid' "); | ||||
if ($arcRow['addtable'] != '') { | if ($arcRow['addtable'] != '') { | ||||
@@ -70,11 +66,9 @@ function DelArc($aid) | |||||
} | } | ||||
} | } | ||||
$tmpname = '/(\\'.$cfg_medias_dir.'.+?)(\"| )/'; | $tmpname = '/(\\'.$cfg_medias_dir.'.+?)(\"| )/'; | ||||
//取出文章附件; | |||||
//取出文章附件 | |||||
preg_match_all("$tmpname", $row["$nid"], $delname); | preg_match_all("$tmpname", $row["$nid"], $delname); | ||||
//移出重复附件; | |||||
//移出重复附件 | |||||
$delname = array_unique($delname['1']); | $delname = array_unique($delname['1']); | ||||
foreach ($delname as $var) { | foreach ($delname as $var) { | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__uploads` WHERE url='$var' AND mid = '$cfg_ml->M_ID'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__uploads` WHERE url='$var' AND mid = '$cfg_ml->M_ID'"); | ||||
@@ -89,7 +83,6 @@ function DelArc($aid) | |||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` where aid='$aid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` where aid='$aid'"); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_stow` where aid='$aid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_stow` where aid='$aid'"); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__taglist ` where aid='$aid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__taglist ` where aid='$aid'"); | ||||
//删除HTML | //删除HTML | ||||
if ($arcRow['ismake'] == -1 || $arcRow['arcrank'] != 0 || $arcRow['typeid'] == 0 || $arcRow['money'] > 0) { | if ($arcRow['ismake'] == -1 || $arcRow['arcrank'] != 0 || $arcRow['typeid'] == 0 || $arcRow['money'] > 0) { | ||||
return TRUE; | return TRUE; | ||||
@@ -120,13 +113,11 @@ function DelArc($aid) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
//删除文本文件 | //删除文本文件 | ||||
$filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt"; | $filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt"; | ||||
if (is_file($filename)) @unlink($filename); | if (is_file($filename)) @unlink($filename); | ||||
return TRUE; | return TRUE; | ||||
} | } | ||||
/** | /** | ||||
* 删除不带主表内容模型的数据 | * 删除不带主表内容模型的数据 | ||||
* | * | ||||
@@ -138,30 +129,24 @@ function DelArcSg($aid) | |||||
{ | { | ||||
global $dsql, $cfg_cookie_encode, $cfg_ml, $cfg_upload_switch, $cfg_medias_dir; | global $dsql, $cfg_cookie_encode, $cfg_ml, $cfg_upload_switch, $cfg_medias_dir; | ||||
$aid = intval($aid); | $aid = intval($aid); | ||||
//读取文档信息 | //读取文档信息 | ||||
$arctitle = ''; | $arctitle = ''; | ||||
$arcurl = ''; | $arcurl = ''; | ||||
$arcQuery = "Select arc.id,arc.typeid,arc.senddate,arc.arcrank,ch.addtable,ch.nid, | |||||
tp.typedir,tp.typename,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath | |||||
from `#@__arctiny` arc | |||||
left join `#@__arctype` tp on tp.id=arc.typeid | |||||
left join `#@__channeltype` ch on ch.id=arc.channel | |||||
$arcQuery = "Select arc.id,arc.typeid,arc.senddate,arc.arcrank,ch.addtable,ch.nid,tp.typedir,tp.typename,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath | |||||
from `#@__arctiny` arc | |||||
left join `#@__arctype` tp on tp.id=arc.typeid | |||||
left join `#@__channeltype` ch on ch.id=arc.channel | |||||
where arc.id='$aid' "; | where arc.id='$aid' "; | ||||
$arcRow = $dsql->GetOne($arcQuery); | $arcRow = $dsql->GetOne($arcQuery); | ||||
if (!is_array($arcRow)) { | if (!is_array($arcRow)) { | ||||
return FALSE; | return FALSE; | ||||
} | } | ||||
//删除数据库的内容 | //删除数据库的内容 | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` where id='$aid' "); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` where id='$aid' "); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `".$arcRow['addtable']."` where aid='$aid' "); | $dsql->ExecuteNoneQuery("DELETE FROM `".$arcRow['addtable']."` where aid='$aid' "); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` where aid='$aid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` where aid='$aid'"); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_stow` where aid='$aid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_stow` where aid='$aid'"); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__taglist ` where aid='$aid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__taglist ` where aid='$aid'"); | ||||
//删除HTML | //删除HTML | ||||
if ($arcRow['arcrank'] != 0 || $arcRow['typeid'] == 0) { | if ($arcRow['arcrank'] != 0 || $arcRow['typeid'] == 0) { | ||||
return TRUE; | return TRUE; | ||||
@@ -196,7 +181,6 @@ function DelArcSg($aid) | |||||
$filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt"; | $filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt"; | ||||
return TRUE; | return TRUE; | ||||
} | } | ||||
/** | /** | ||||
* 获取真实路径 | * 获取真实路径 | ||||
* | * | ||||
@@ -206,4 +190,4 @@ function GetTruePath() | |||||
{ | { | ||||
$truepath = $GLOBALS["cfg_basedir"]; | $truepath = $GLOBALS["cfg_basedir"]; | ||||
return $truepath; | return $truepath; | ||||
} | |||||
} |
@@ -9,7 +9,6 @@ | |||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
if (!defined('DEDEMEMBER')) exit('dedebiz'); | if (!defined('DEDEMEMBER')) exit('dedebiz'); | ||||
/** | /** | ||||
* 获取选项列表 | * 获取选项列表 | ||||
* | * | ||||
@@ -47,7 +46,6 @@ function GetOptionList($selid = 0, $channeltype = 0) | |||||
} | } | ||||
return $OptionArrayList; | return $OptionArrayList; | ||||
} | } | ||||
/** | /** | ||||
* 逻辑递归 | * 逻辑递归 | ||||
* | * | ||||
@@ -79,7 +77,6 @@ function LogicGetOptionArray($id, $step, $channeltype, $selid = 0) | |||||
LogicGetOptionArray($row->id, $step."─", $channeltype, $selid); | LogicGetOptionArray($row->id, $step."─", $channeltype, $selid); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 自定义类型 | * 自定义类型 | ||||
* | * | ||||
@@ -105,4 +102,4 @@ function classification($mid, $mtypeid = 0, $channelid = 1) | |||||
$selected = ''; | $selected = ''; | ||||
} | } | ||||
return $list; | return $list; | ||||
} | |||||
} |
@@ -29,7 +29,6 @@ function IsCommendArchives($iscommend) | |||||
} | } | ||||
return $s; | return $s; | ||||
} | } | ||||
/** | /** | ||||
* 获得推荐的标题 | * 获得推荐的标题 | ||||
* | * | ||||
@@ -44,7 +43,6 @@ function GetCommendTitle($title, $iscommend) | |||||
} | } | ||||
return "$title"; | return "$title"; | ||||
} | } | ||||
$GLOBALS['RndTrunID'] = 1; | $GLOBALS['RndTrunID'] = 1; | ||||
/** | /** | ||||
* 更换颜色 | * 更换颜色 | ||||
@@ -62,7 +60,6 @@ function GetColor($color1, $color2) | |||||
return $color2; | return $color2; | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 检查图片是否存在 | * 检查图片是否存在 | ||||
* | * | ||||
@@ -77,7 +74,6 @@ function CheckPic($picname) | |||||
return "images/dfpic.gif"; | return "images/dfpic.gif"; | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 判断内容是否生成HTML | * 判断内容是否生成HTML | ||||
* | * | ||||
@@ -94,7 +90,6 @@ function IsHtmlArchives($ismake) | |||||
return "<span style='color:#dc3545'>未生成</span>"; | return "<span style='color:#dc3545'>未生成</span>"; | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 获得内容的限定级别名称 | * 获得内容的限定级别名称 | ||||
* | * | ||||
@@ -117,7 +112,6 @@ function GetRankName($arcrank) | |||||
return "不限"; | return "不限"; | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 判断内容是否为图片文章 | * 判断内容是否为图片文章 | ||||
* | * | ||||
@@ -127,8 +121,8 @@ function GetRankName($arcrank) | |||||
function IsPicArchives($picname) | function IsPicArchives($picname) | ||||
{ | { | ||||
if ($picname != "") { | if ($picname != "") { | ||||
return "<span style='color:#dc3545'>(图)</span>"; | |||||
return "<span style='color:#dc3545'>[图]</span>"; | |||||
} else { | } else { | ||||
return ""; | return ""; | ||||
} | } | ||||
} | |||||
} |
@@ -31,7 +31,6 @@ function random($length, $numeric = 0) | |||||
} | } | ||||
return $hash; | return $hash; | ||||
} | } | ||||
/** | /** | ||||
* 邮件发送函数 | * 邮件发送函数 | ||||
* | * | ||||
@@ -63,7 +62,6 @@ function sendmail($email, $mailtitle, $mailbody, $headers) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 发送邮件;type为INSERT新建验证码,UPDATE修改验证码; | * 发送邮件;type为INSERT新建验证码,UPDATE修改验证码; | ||||
* | * | ||||
@@ -82,7 +80,7 @@ function newmail($mid, $userid, $mailto, $type, $send) | |||||
$mailtitle = $cfg_webname.":密码修改"; | $mailtitle = $cfg_webname.":密码修改"; | ||||
$mailto = $mailto; | $mailto = $mailto; | ||||
$headers = "From: ".$cfg_adminemail."\r\nReply-To: $cfg_adminemail"; | $headers = "From: ".$cfg_adminemail."\r\nReply-To: $cfg_adminemail"; | ||||
$mailbody = "亲爱的".$userid.":\r\n您好感谢您使用".$cfg_webname."网\r\n".$cfg_webname."应您的要求,重新设置密码:(注:如果您没有提出申请,请检查您的信息是否泄漏)\r\n本次临时登录密码为:".$randval." 请于三天内登录下面网址确认修改\r\n".$cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid; | |||||
$mailbody = "您好".$userid.":\r\n感谢您使用".$cfg_webname."网\r\n".$cfg_webname."应您的要求,重新设置密码(如果您没有提出申请,请检查您的信息是否泄漏)\r\n本次临时登录密码为:".$randval." 请于三天内登录下面网址确认修改\r\n".$cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid; | |||||
if ($type == 'INSERT') { | if ($type == 'INSERT') { | ||||
$key = md5($randval); | $key = md5($randval); | ||||
$sql = "INSERT INTO `#@__pwd_tmp` (`mid` ,`membername` ,`pwd` ,`mailtime`)VALUES ('$mid', '$userid', '$key', '$mailtime');"; | $sql = "INSERT INTO `#@__pwd_tmp` (`mid` ,`membername` ,`pwd` ,`mailtime`)VALUES ('$mid', '$userid', '$key', '$mailtime');"; | ||||
@@ -111,7 +109,6 @@ function newmail($mid, $userid, $mailto, $type, $send) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 查询会员信息mail用户输入邮箱地址;userid用户名 | * 查询会员信息mail用户输入邮箱地址;userid用户名 | ||||
* | * | ||||
@@ -127,7 +124,6 @@ function member($mail, $userid) | |||||
if (!is_array($row)) return ShowMsg("对不起,用户ID输入错误", "-1"); | if (!is_array($row)) return ShowMsg("对不起,用户ID输入错误", "-1"); | ||||
else return $row; | else return $row; | ||||
} | } | ||||
/** | /** | ||||
* 查询是否发送过验证码 | * 查询是否发送过验证码 | ||||
* | * | ||||
@@ -156,4 +152,4 @@ function sn($mid, $userid, $mailto, $send = 'Y') | |||||
else { | else { | ||||
return ShowMsg('对不起,请10分钟后再重新申请', 'login.php'); | return ShowMsg('对不起,请10分钟后再重新申请', 'login.php'); | ||||
} | } | ||||
} | |||||
} |
@@ -11,9 +11,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
$uid = empty($uid) ? "" : RemoveXSS($uid); | $uid = empty($uid) ? "" : RemoveXSS($uid); | ||||
if (empty($action)) $action = ''; | if (empty($action)) $action = ''; | ||||
if (empty($aid)) $aid = ''; | if (empty($aid)) $aid = ''; | ||||
$menutype = 'mydede'; | $menutype = 'mydede'; | ||||
//会员后台 | //会员后台 | ||||
if ($uid == '') { | if ($uid == '') { | ||||
$iscontrol = 'yes'; | $iscontrol = 'yes'; | ||||
@@ -28,10 +26,8 @@ if ($uid == '') { | |||||
} else { | } else { | ||||
$ddsize = 0; | $ddsize = 0; | ||||
} | } | ||||
require_once(DEDEINC.'/channelunit.func.php'); | require_once(DEDEINC.'/channelunit.func.php'); | ||||
/* 最新文档8条 */ | |||||
//最新文档8条 | |||||
$archives = array(); | $archives = array(); | ||||
$sql = "SELECT arc.*, category.namerule, category.typedir, category.moresite, category.siteurl, category.sitepath, mem.userid | $sql = "SELECT arc.*, category.namerule, category.typedir, category.moresite, category.siteurl, category.sitepath, mem.userid | ||||
FROM `#@__archives` arc | FROM `#@__archives` arc | ||||
@@ -45,27 +41,22 @@ if ($uid == '') { | |||||
$row['htmlurl'] = GetFileUrl($row['id'], $row['typeid'], $row['senddate'], $row['title'], $row['ismake'], $row['arcrank'], $row['namerule'], $row['typedir'], $row['money'], $row['filename'], $row['moresite'], $row['siteurl'], $row['sitepath']); | $row['htmlurl'] = GetFileUrl($row['id'], $row['typeid'], $row['senddate'], $row['title'], $row['ismake'], $row['arcrank'], $row['namerule'], $row['typedir'], $row['money'], $row['filename'], $row['moresite'], $row['siteurl'], $row['sitepath']); | ||||
$archives[] = $row; | $archives[] = $row; | ||||
} | } | ||||
/** 调用访客记录 **/ | |||||
//调用访客记录 | |||||
$_vars['mid'] = $cfg_ml->M_ID; | $_vars['mid'] = $cfg_ml->M_ID; | ||||
if (empty($cfg_ml->fields['face'])) { | if (empty($cfg_ml->fields['face'])) { | ||||
$cfg_ml->fields['face'] = ($cfg_ml->fields['sex'] == '女') ? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png'; | $cfg_ml->fields['face'] = ($cfg_ml->fields['sex'] == '女') ? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png'; | ||||
} | } | ||||
/** 我的收藏 **/ | |||||
//我的收藏 | |||||
$favorites = array(); | $favorites = array(); | ||||
$dsql->Execute('fl', "SELECT * FROM `#@__member_stow` WHERE mid='{$cfg_ml->M_ID}' LIMIT 5"); | $dsql->Execute('fl', "SELECT * FROM `#@__member_stow` WHERE mid='{$cfg_ml->M_ID}' LIMIT 5"); | ||||
while ($arr = $dsql->GetArray('fl')) { | while ($arr = $dsql->GetArray('fl')) { | ||||
$favorites[] = $arr; | $favorites[] = $arr; | ||||
} | } | ||||
/** 有没新短信 **/ | |||||
//有没新短信 | |||||
$pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_pms` WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | $pms = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_pms` WHERE toid='{$cfg_ml->M_ID}' AND `hasview`=0 AND folder = 'inbox'"); | ||||
$dpl = new DedeTemplate(); | $dpl = new DedeTemplate(); | ||||
$tpl = dirname(__FILE__)."/templets/index.htm"; | $tpl = dirname(__FILE__)."/templets/index.htm"; | ||||
$dpl->LoadTemplate($tpl); | $dpl->LoadTemplate($tpl); | ||||
$dpl->display(); | $dpl->display(); | ||||
} | } | ||||
} | |||||
} |
@@ -1,15 +1,14 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* @version $Id: index_do.php 1 8:24 2010年7月9日Z tianya $ | |||||
* @package DedeBIZ.User | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | |||||
* @link https://www.dedebiz.com | |||||
*/ | |||||
* @version $Id: index_do.php 1 8:24 2010年7月9日Z tianya $ | |||||
* @package DedeBIZ.User | |||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | |||||
* @link https://www.dedebiz.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
if (empty($dopost)) $dopost = ''; | if (empty($dopost)) $dopost = ''; | ||||
if (empty($fmdo)) $fmdo = ''; | if (empty($fmdo)) $fmdo = ''; | ||||
/********************* | /********************* | ||||
function check_email() | function check_email() | ||||
*******************/ | *******************/ | ||||
@@ -32,10 +31,8 @@ if ($fmdo == 'sendMail') { | |||||
$mailbody .= "欢迎注册成为[{$cfg_webname}]的会员\r\n"; | $mailbody .= "欢迎注册成为[{$cfg_webname}]的会员\r\n"; | ||||
$mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏访问这地址:\r\n\r\n"; | $mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏访问这地址:\r\n\r\n"; | ||||
$mailbody .= "{$url}\r\n\r\n"; | $mailbody .= "{$url}\r\n\r\n"; | ||||
$mailbody .= "Power by https://www.dedebiz.com DedeBIZ内容管理系统\r\n"; | |||||
$mailbody .= "Power by DedeBIZ内容管理系统\r\n"; | |||||
$headers = "From: ".$cfg_adminemail."\r\nReply-To: ".$cfg_adminemail; | $headers = "From: ".$cfg_adminemail."\r\nReply-To: ".$cfg_adminemail; | ||||
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) { | if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) { | ||||
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port); | $client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port); | ||||
$client->appid = $cfg_bizcore_appid; | $client->appid = $cfg_bizcore_appid; | ||||
@@ -53,7 +50,6 @@ if ($fmdo == 'sendMail') { | |||||
@mail($cfg_ml->fields['email'], $mailtitle, $mailbody, $headers); | @mail($cfg_ml->fields['email'], $mailtitle, $mailbody, $headers); | ||||
} | } | ||||
} | } | ||||
ShowMsg('成功发送邮件,请稍后登录您的邮箱进行接收', '/user'); | ShowMsg('成功发送邮件,请稍后登录您的邮箱进行接收', '/user'); | ||||
exit(); | exit(); | ||||
} else if ($fmdo == 'checkMail') { | } else if ($fmdo == 'checkMail') { | ||||
@@ -82,7 +78,6 @@ if ($fmdo == 'sendMail') { | |||||
function Case_user() | function Case_user() | ||||
*******************/ | *******************/ | ||||
else if ($fmdo == 'user') { | else if ($fmdo == 'user') { | ||||
//检查用户名是否存在 | //检查用户名是否存在 | ||||
if ($dopost == "checkuser") { | if ($dopost == "checkuser") { | ||||
AjaxHead(); | AjaxHead(); | ||||
@@ -106,7 +101,6 @@ else if ($fmdo == 'user') { | |||||
echo $msg; | echo $msg; | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查email是否存在 | //检查email是否存在 | ||||
else if ($dopost == "checkmail") { | else if ($dopost == "checkmail") { | ||||
AjaxHead(); | AjaxHead(); | ||||
@@ -128,7 +122,6 @@ else if ($fmdo == 'user') { | |||||
echo $msg; | echo $msg; | ||||
exit(); | exit(); | ||||
} | } | ||||
//引入注册页面 | //引入注册页面 | ||||
else if ($dopost == "regnew") { | else if ($dopost == "regnew") { | ||||
$step = empty($step) ? 1 : intval(preg_replace("/[^\d]/", '', $step)); | $step = empty($step) ? 1 : intval(preg_replace("/[^\d]/", '', $step)); | ||||
@@ -136,9 +129,9 @@ else if ($fmdo == 'user') { | |||||
exit(); | exit(); | ||||
} | } | ||||
/*************************** | /*************************** | ||||
//积分换金币 | |||||
function money2s() { } | |||||
***************************/ | |||||
//积分换金币 | |||||
function money2s() { } | |||||
***************************/ | |||||
else if ($dopost == "money2s") { | else if ($dopost == "money2s") { | ||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
if ($cfg_money_scores == 0) { | if ($cfg_money_scores == 0) { | ||||
@@ -150,14 +143,12 @@ else if ($fmdo == 'user') { | |||||
ShowMsg('您没指定要兑换多少金币', '-1'); | ShowMsg('您没指定要兑换多少金币', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$needscores = $money * $cfg_money_scores; | $needscores = $money * $cfg_money_scores; | ||||
if ($cfg_ml->fields['scores'] < $needscores) { | if ($cfg_ml->fields['scores'] < $needscores) { | ||||
ShowMsg('您积分不足,不能换取这么多的金币', '-1'); | ShowMsg('您积分不足,不能换取这么多的金币', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$litmitscores = $cfg_ml->fields['scores'] - $needscores; | $litmitscores = $cfg_ml->fields['scores'] - $needscores; | ||||
//保存记录 | //保存记录 | ||||
$mtime = time(); | $mtime = time(); | ||||
$inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`) | $inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`) | ||||
@@ -165,14 +156,12 @@ else if ($fmdo == 'user') { | |||||
$dsql->ExecuteNoneQuery($inquery); | $dsql->ExecuteNoneQuery($inquery); | ||||
//修改积分与金币值 | //修改积分与金币值 | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET `scores`=$litmitscores, money= money + $money WHERE mid='".$cfg_ml->M_ID."' "); | $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET `scores`=$litmitscores, money= money + $money WHERE mid='".$cfg_ml->M_ID."' "); | ||||
//清除会员缓存 | //清除会员缓存 | ||||
$cfg_ml->DelCache($cfg_ml->M_ID); | $cfg_ml->DelCache($cfg_ml->M_ID); | ||||
ShowMsg('成功兑换指定量的金币', 'operation.php'); | ShowMsg('成功兑换指定量的金币', 'operation.php'); | ||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
/********************* | /********************* | ||||
function login() | function login() | ||||
*******************/ | *******************/ | ||||
@@ -200,10 +189,8 @@ else if ($fmdo == 'login') { | |||||
ShowMsg("密码不能为空", "-1", 0, 2000); | ShowMsg("密码不能为空", "-1", 0, 2000); | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查帐号 | //检查帐号 | ||||
$rs = $cfg_ml->CheckUser($userid, $pwd); | $rs = $cfg_ml->CheckUser($userid, $pwd); | ||||
if ($rs == 0) { | if ($rs == 0) { | ||||
ResetVdValue(); | ResetVdValue(); | ||||
ShowMsg("用户名不存在", "index.php", 0, 2000); | ShowMsg("用户名不存在", "index.php", 0, 2000); | ||||
@@ -228,7 +215,6 @@ else if ($fmdo == 'login') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//退出登录 | //退出登录 | ||||
else if ($dopost == "exit") { | else if ($dopost == "exit") { | ||||
$cfg_ml->ExitCookie(); | $cfg_ml->ExitCookie(); | ||||
@@ -236,5 +222,5 @@ else if ($fmdo == 'login') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} else { | } else { | ||||
ShowMsg("本页面禁止返回!", "index.php"); | |||||
} | |||||
ShowMsg("本页面禁止返回", "index.php"); | |||||
} |
@@ -12,4 +12,4 @@ if ($cfg_ml->IsLogin()) { | |||||
ShowMsg('您已经登录系统,无需重新注册', 'index.php'); | ShowMsg('您已经登录系统,无需重新注册', 'index.php'); | ||||
exit(); | exit(); | ||||
} | } | ||||
require_once(dirname(__FILE__)."/templets/login.htm"); | |||||
require_once(dirname(__FILE__)."/templets/login.htm"); |
@@ -15,7 +15,6 @@ $menutype_son = 'op'; | |||||
require_once(DEDEINC.'/datalistcp.class.php'); | require_once(DEDEINC.'/datalistcp.class.php'); | ||||
setcookie('ENV_GOBACK_URL', GetCurUrl(), time() + 3600, '/'); | setcookie('ENV_GOBACK_URL', GetCurUrl(), time() + 3600, '/'); | ||||
if (!isset($dopost)) $dopost = ''; | if (!isset($dopost)) $dopost = ''; | ||||
if ($dopost == '') { | if ($dopost == '') { | ||||
$query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc"; | $query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc"; | ||||
$dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
@@ -29,4 +28,4 @@ if ($dopost == '') { | |||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg("成功删除指定的交易记录!", "mypay.php"); | ShowMsg("成功删除指定的交易记录!", "mypay.php"); | ||||
exit(); | exit(); | ||||
} | |||||
} |
@@ -23,14 +23,12 @@ if ($rank == 'top') { | |||||
$sql = "SELECT s.*,t.* FROM `#@__member_stow` AS s left join `#@__member_stowtype` AS t on t.stowname=s.type where s.mid='".$cfg_ml->M_ID."' order by s.id desc"; | $sql = "SELECT s.*,t.* FROM `#@__member_stow` AS s left join `#@__member_stowtype` AS t on t.stowname=s.type where s.mid='".$cfg_ml->M_ID."' order by s.id desc"; | ||||
$tpl = 'mystow'; | $tpl = 'mystow'; | ||||
} | } | ||||
$dsql->Execute('nn', 'SELECT indexname,stowname FROM `#@__member_stowtype`'); | $dsql->Execute('nn', 'SELECT indexname,stowname FROM `#@__member_stowtype`'); | ||||
while ($row = $dsql->GetArray('nn')) { | while ($row = $dsql->GetArray('nn')) { | ||||
$rows[] = $row; | $rows[] = $row; | ||||
} | } | ||||
$dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
$dlist->pageSize = 20; | $dlist->pageSize = 20; | ||||
$dlist->SetTemplate(DEDEMEMBER."/templets/mystow.htm"); | $dlist->SetTemplate(DEDEMEMBER."/templets/mystow.htm"); | ||||
$dlist->SetSource($sql); | $dlist->SetSource($sql); | ||||
$dlist->Display(); | |||||
$dlist->Display(); |
@@ -15,7 +15,6 @@ $menutype = 'mydede'; | |||||
$menutype_son = 'op'; | $menutype_son = 'op'; | ||||
setcookie("ENV_GOBACK_URL", GetCurUrl(), time() + 3600, "/"); | setcookie("ENV_GOBACK_URL", GetCurUrl(), time() + 3600, "/"); | ||||
if (!isset($dopost)) $dopost = ''; | if (!isset($dopost)) $dopost = ''; | ||||
/** | /** | ||||
* 获取状态 | * 获取状态 | ||||
* | * | ||||
@@ -40,6 +39,6 @@ if ($dopost == '') { | |||||
$ids = preg_replace("#[^0-9,]#", "", $ids); | $ids = preg_replace("#[^0-9,]#", "", $ids); | ||||
$query = "DELETE FROM `#@__member_operation` WHERE aid IN($ids) AND mid='{$cfg_ml->M_ID}'"; | $query = "DELETE FROM `#@__member_operation` WHERE aid IN($ids) AND mid='{$cfg_ml->M_ID}'"; | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg("成功删除指定的交易记录!", "operation.php"); | |||||
ShowMsg("成功删除指定的交易记录", "operation.php"); | |||||
exit(); | exit(); | ||||
} | |||||
} |
@@ -17,14 +17,12 @@ if ($cfg_mb_lit == 'Y') { | |||||
ShowMsg('由于系统开启了精简版会员空间,您不能向其它会员发短信息,不过您可以向他留言', '-1'); | ShowMsg('由于系统开启了精简版会员空间,您不能向其它会员发短信息,不过您可以向他留言', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
if (!isset($dopost)) { | if (!isset($dopost)) { | ||||
$dopost = ''; | $dopost = ''; | ||||
} | } | ||||
//检查用户是否被禁言 | //检查用户是否被禁言 | ||||
CheckNotAllow(); | CheckNotAllow(); | ||||
$state = empty($state) ? 0 : intval($state); | $state = empty($state) ? 0 : intval($state); | ||||
if ($dopost == 'read') { | if ($dopost == 'read') { | ||||
$sql = "SELECT * FROM `#@__member_friends` WHERE mid='{$cfg_ml->M_ID}' AND ftype!='-1' ORDER BY addtime DESC LIMIT 20"; | $sql = "SELECT * FROM `#@__member_friends` WHERE mid='{$cfg_ml->M_ID}' AND ftype!='-1' ORDER BY addtime DESC LIMIT 20"; | ||||
$friends = array(); | $friends = array(); | ||||
@@ -97,7 +95,6 @@ else { | |||||
$wsql = " `fromid` ='{$cfg_ml->M_ID}' AND folder LIKE 'outbox'"; | $wsql = " `fromid` ='{$cfg_ml->M_ID}' AND folder LIKE 'outbox'"; | ||||
$tname = "已发信息"; | $tname = "已发信息"; | ||||
} | } | ||||
$query = "SELECT * FROM `#@__member_pms` WHERE $wsql ORDER BY sendtime DESC"; | $query = "SELECT * FROM `#@__member_pms` WHERE $wsql ORDER BY sendtime DESC"; | ||||
$dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
$dlist->pageSize = 20; | $dlist->pageSize = 20; | ||||
@@ -105,4 +102,4 @@ else { | |||||
$dlist->SetTemplate(DEDEMEMBER.'/templets/pm-main.htm'); | $dlist->SetTemplate(DEDEMEMBER.'/templets/pm-main.htm'); | ||||
$dlist->SetSource($query); | $dlist->SetSource($query); | ||||
$dlist->Display(); | $dlist->Display(); | ||||
} | |||||
} |
@@ -12,21 +12,17 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
require_once(DEDEMEMBER."/inc/inc_pwd_functions.php"); | require_once(DEDEMEMBER."/inc/inc_pwd_functions.php"); | ||||
if (empty($dopost)) $dopost = ""; | if (empty($dopost)) $dopost = ""; | ||||
$id = isset($id) ? intval($id) : 0; | $id = isset($id) ? intval($id) : 0; | ||||
if ($dopost == "") { | if ($dopost == "") { | ||||
include(dirname(__FILE__)."/templets/resetpassword.htm"); | include(dirname(__FILE__)."/templets/resetpassword.htm"); | ||||
} elseif ($dopost == "getpwd") { | } elseif ($dopost == "getpwd") { | ||||
//验证验证码 | //验证验证码 | ||||
if (!isset($vdcode)) $vdcode = ''; | if (!isset($vdcode)) $vdcode = ''; | ||||
$svali = GetCkVdValue(); | $svali = GetCkVdValue(); | ||||
if (strtolower($vdcode) != $svali || $svali == '') { | if (strtolower($vdcode) != $svali || $svali == '') { | ||||
ResetVdValue(); | ResetVdValue(); | ||||
ShowMsg("对不起,验证码输入错误", "-1"); | ShowMsg("对不起,验证码输入错误", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//验证邮箱,用户名 | //验证邮箱,用户名 | ||||
if (empty($mail) && empty($userid)) { | if (empty($mail) && empty($userid)) { | ||||
showmsg('对不起,请输入用户名或邮箱', '-1'); | showmsg('对不起,请输入用户名或邮箱', '-1'); | ||||
@@ -39,7 +35,6 @@ if ($dopost == "") { | |||||
exit(); | exit(); | ||||
} | } | ||||
$member = member($mail, $userid); | $member = member($mail, $userid); | ||||
//以邮件方式取回密码; | //以邮件方式取回密码; | ||||
if ($type == 1) { | if ($type == 1) { | ||||
//判断系统邮件服务是否开启 | //判断系统邮件服务是否开启 | ||||
@@ -49,7 +44,6 @@ if ($dopost == "") { | |||||
showmsg('对不起邮件服务暂未开启,请联系管理员', 'login.php'); | showmsg('对不起邮件服务暂未开启,请联系管理员', 'login.php'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//以安全问题取回密码; | //以安全问题取回密码; | ||||
} else if ($type == 2) { | } else if ($type == 2) { | ||||
if ($member['safequestion'] == 0) { | if ($member['safequestion'] == 0) { | ||||
@@ -64,9 +58,7 @@ if ($dopost == "") { | |||||
$sql = "SELECT safequestion,safeanswer,userid,email FROM `#@__member` WHERE mid = '$mid'"; | $sql = "SELECT safequestion,safeanswer,userid,email FROM `#@__member` WHERE mid = '$mid'"; | ||||
$row = $db->GetOne($sql); | $row = $db->GetOne($sql); | ||||
if (empty($safequestion)) $safequestion = ''; | if (empty($safequestion)) $safequestion = ''; | ||||
if (empty($safeanswer)) $safeanswer = ''; | if (empty($safeanswer)) $safeanswer = ''; | ||||
if ($row['safequestion'] === $safequestion && $row['safeanswer'] === $safeanswer) { | if ($row['safequestion'] === $safequestion && $row['safeanswer'] === $safeanswer) { | ||||
sn($mid, $row['userid'], $row['email'], 'N'); | sn($mid, $row['userid'], $row['email'], 'N'); | ||||
exit(); | exit(); | ||||
@@ -97,7 +89,6 @@ if ($dopost == "") { | |||||
require_once(dirname(__FILE__)."/templets/resetpassword2.htm"); | require_once(dirname(__FILE__)."/templets/resetpassword2.htm"); | ||||
} elseif ($setp == 2) { | } elseif ($setp == 2) { | ||||
if (isset($key)) $pwdtmp = $key; | if (isset($key)) $pwdtmp = $key; | ||||
$sn = md5(trim($pwdtmp)); | $sn = md5(trim($pwdtmp)); | ||||
if ($row['pwd'] == $sn) { | if ($row['pwd'] == $sn) { | ||||
if ($pwd != "") { | if ($pwd != "") { | ||||
@@ -118,4 +109,4 @@ if ($dopost == "") { | |||||
showmsg('对不起,临时密码错误', '-1'); | showmsg('对不起,临时密码错误', '-1'); | ||||
exit; | exit; | ||||
} | } | ||||
} | |||||
} |
@@ -13,7 +13,6 @@ include_once DEDEINC.'/datalistcp.class.php'; | |||||
$menutype = 'mydede'; | $menutype = 'mydede'; | ||||
$menutype_son = 'op'; | $menutype_son = 'op'; | ||||
if (!isset($dopost)) $dopost = ''; | if (!isset($dopost)) $dopost = ''; | ||||
/** | /** | ||||
* 获取状态 | * 获取状态 | ||||
* | * | ||||
@@ -56,7 +55,7 @@ if ($dopost == '') { | |||||
$dsql->ExecuteNoneQuery($query2); | $dsql->ExecuteNoneQuery($query2); | ||||
$dsql->ExecuteNoneQuery($query3); | $dsql->ExecuteNoneQuery($query3); | ||||
} | } | ||||
ShowMsg("成功删除指定的交易记录!", "shops_orders.php"); | |||||
ShowMsg("成功删除指定的交易记录", "shops_orders.php"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | |||||
} |
@@ -17,21 +17,19 @@ if (isset($oid)) { | |||||
exit(); | exit(); | ||||
} | } | ||||
$priceCount = $row['priceCount']; | $priceCount = $row['priceCount']; | ||||
$members = $dsql->GetOne("SELECT `money` FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'"); | $members = $dsql->GetOne("SELECT `money` FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'"); | ||||
if ($members['money'] < $priceCount) { | if ($members['money'] < $priceCount) { | ||||
ShowMsg("支付失败点数不够", "-1"); | ShowMsg("支付失败点数不够", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($dsql->ExecuteNoneQuery("UPDATE `#@__shops_orders` SET `state`='1' WHERE `oid`='$oid' AND `userid`='".$cfg_ml->M_ID."' AND `state`<1")) { | if ($dsql->ExecuteNoneQuery("UPDATE `#@__shops_orders` SET `state`='1' WHERE `oid`='$oid' AND `userid`='".$cfg_ml->M_ID."' AND `state`<1")) { | ||||
$res = $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET money=money-$priceCount WHERE mid='{$cfg_ml->M_ID}'"); | $res = $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET money=money-$priceCount WHERE mid='{$cfg_ml->M_ID}'"); | ||||
ShowMsg("下单,支付成功,等待商家发货", "../user/shops_products.php?oid=".$oid); | |||||
ShowMsg("下单,支付成功,等待商家发货", "../user/shops_products.php?oid=".$oid); | |||||
exit(); | exit(); | ||||
} else { | } else { | ||||
ShowMsg("支付失败,请联系管理员", "-1"); | |||||
ShowMsg("支付失败,请联系管理员", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} else { | } else { | ||||
exit("403 Forbidden!"); | exit("403 Forbidden!"); | ||||
} | |||||
} |
@@ -13,7 +13,6 @@ include_once DEDEINC.'/datalistcp.class.php'; | |||||
$menutype = 'mydede'; | $menutype = 'mydede'; | ||||
$menutype_son = 'op'; | $menutype_son = 'op'; | ||||
if (!isset($dopost)) $dopost = ''; | if (!isset($dopost)) $dopost = ''; | ||||
if ($dopost == '') { | if ($dopost == '') { | ||||
$do = isset($do) ? trim($do) : ''; | $do = isset($do) ? trim($do) : ''; | ||||
$oid = isset($oid) ? preg_replace("#[^-0-9A-Z]#i", "", $oid) : ''; | $oid = isset($oid) ? preg_replace("#[^-0-9A-Z]#i", "", $oid) : ''; | ||||
@@ -24,7 +23,6 @@ if ($dopost == '') { | |||||
ShowMsg("已确认订单", 'shops_products.php?oid='.$oid); | ShowMsg("已确认订单", 'shops_products.php?oid='.$oid); | ||||
exit(); | exit(); | ||||
} | } | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__shops_userinfo` WHERE userid='".$cfg_ml->M_ID."' AND oid='$oid'"); | $row = $dsql->GetOne("SELECT * FROM `#@__shops_userinfo` WHERE userid='".$cfg_ml->M_ID."' AND oid='$oid'"); | ||||
if (!isset($row['oid'])) { | if (!isset($row['oid'])) { | ||||
ShowMsg("订单不存在", -1); | ShowMsg("订单不存在", -1); | ||||
@@ -44,7 +42,6 @@ if ($dopost == '') { | |||||
unset($rs); | unset($rs); | ||||
$addsql = " AND oid='".$oid."'"; | $addsql = " AND oid='".$oid."'"; | ||||
} | } | ||||
$sql = "SELECT * FROM `#@__shops_products` WHERE userid='".$cfg_ml->M_ID."' $addsql ORDER BY aid ASC"; | $sql = "SELECT * FROM `#@__shops_products` WHERE userid='".$cfg_ml->M_ID."' $addsql ORDER BY aid ASC"; | ||||
$dl = new DataListCP(); | $dl = new DataListCP(); | ||||
$dl->pageSize = 20; | $dl->pageSize = 20; | ||||
@@ -65,11 +62,10 @@ if ($dopost == '') { | |||||
$dsql->ExecuteNoneQuery($query2); | $dsql->ExecuteNoneQuery($query2); | ||||
$dsql->ExecuteNoneQuery($query3); | $dsql->ExecuteNoneQuery($query3); | ||||
} | } | ||||
ShowMsg("成功删除指定的交易记录!", "shops_products.php"); | |||||
ShowMsg("成功删除指定的交易记录", "shops_products.php"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 获取状态 | * 获取状态 | ||||
* | * | ||||
@@ -92,7 +88,6 @@ function GetSta($sta, $oid) | |||||
return '已完成'; | return '已完成'; | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 购物车时间 | * 购物车时间 | ||||
* | * | ||||
@@ -104,4 +99,4 @@ function carTime($oid) | |||||
global $dsql; | global $dsql; | ||||
$row = $dsql->GetOne("SELECT stime FROM `#@__shops_orders` WHERE oid='$oid'"); | $row = $dsql->GetOne("SELECT stime FROM `#@__shops_orders` WHERE oid='$oid'"); | ||||
return Mydate('Y-m-d h:i:s', $row['stime']); | return Mydate('Y-m-d h:i:s', $row['stime']); | ||||
} | |||||
} |
@@ -23,7 +23,6 @@ require_once(DEDEMEMBER."/inc/inc_archives_functions.php"); | |||||
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3; | $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3; | ||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -33,12 +32,10 @@ if (empty($dopost)) { | |||||
ShowMsg('模型不正确', '-1'); | ShowMsg('模型不正确', '-1'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//如果限制了会员级别或类型,则允许游客投稿选项无效 | //如果限制了会员级别或类型,则允许游客投稿选项无效 | ||||
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') { | if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') { | ||||
CheckRank(0, 0); | CheckRank(0, 0); | ||||
} | } | ||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' "); | ||||
@@ -52,21 +49,18 @@ if (empty($dopost)) { | |||||
include(DEDEMEMBER."/templets/soft_add.htm"); | include(DEDEMEMBER."/templets/soft_add.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
/*------------------------------ | /*------------------------------ | ||||
function _SaveArticle(){ } | function _SaveArticle(){ } | ||||
------------------------------*/ | ------------------------------*/ | ||||
else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
$description = ''; | $description = ''; | ||||
include(DEDEMEMBER.'/inc/archives_check.php'); | include(DEDEMEMBER.'/inc/archives_check.php'); | ||||
//生成文档ID | //生成文档ID | ||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = ''; | $inadd_f = ''; | ||||
$inadd_v = ''; | $inadd_v = ''; | ||||
@@ -86,7 +80,6 @@ else if ($dopost == 'save') { | |||||
if (!isset(${$vs[0]})) { | if (!isset(${$vs[0]})) { | ||||
${$vs[0]} = ''; | ${$vs[0]} = ''; | ||||
} else if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') | } else if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') | ||||
//HTML文本特殊处理 | //HTML文本特殊处理 | ||||
{ | { | ||||
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $litpic, $keywords, $vs[1]); | ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $litpic, $keywords, $vs[1]); | ||||
@@ -100,33 +93,27 @@ else if ($dopost == 'save') { | |||||
$inadd_v .= " ,'".${$vs[0]}."' "; | $inadd_v .= " ,'".${$vs[0]}."' "; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_f) { | if ($fontiterm != $inadd_f) { | ||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//处理图片文档的自定义属性 | //处理图片文档的自定义属性 | ||||
if ($litpic != '') { | if ($litpic != '') { | ||||
$flag = 'p'; | $flag = 'p'; | ||||
} | } | ||||
$body = HtmlReplace($body, -1); | $body = HtmlReplace($body, -1); | ||||
//保存到主表 | //保存到主表 | ||||
$inQuery = "INSERT INTO `#@__archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle, | |||||
color,writer,source,litpic,pubdate,senddate,mid,description,keywords) | |||||
VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle', | |||||
'$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords'); "; | |||||
$inQuery = "INSERT INTO `#@__archives`(id,typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,description,keywords) | |||||
VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank','0','$money','$title','$shorttitle','$color','$writer','$source','$litpic','$pubdate','$senddate','$mid','$description','$keywords'); "; | |||||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
$gerr = $dsql->GetError(); | $gerr = $dsql->GetError(); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID' "); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID' "); | ||||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//软件链接列表 | //软件链接列表 | ||||
$softurl1 = stripslashes($softurl1); | $softurl1 = stripslashes($softurl1); | ||||
$softurl1 = str_replace(array("{dede:", "{/dede:", "}"), "#", $softurl1); | $softurl1 = str_replace(array("{dede:", "{/dede:", "}"), "#", $softurl1); | ||||
@@ -152,7 +139,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
} | } | ||||
$urls = addslashes($urls); | $urls = addslashes($urls); | ||||
$softsize = $softsize.$unit; | $softsize = $softsize.$unit; | ||||
//保存到附加表 | //保存到附加表 | ||||
$needmoney = @intval($needmoney); | $needmoney = @intval($needmoney); | ||||
if ($needmoney > 100) $needmoney = 100; | if ($needmoney > 100) $needmoney = 100; | ||||
@@ -164,10 +150,8 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
ShowMsg("没找到当前模型[{$channelid}]的主表信息,无法完成操作", "javascript:;"); | ShowMsg("没找到当前模型[{$channelid}]的主表信息,无法完成操作", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$inQuery = "INSERT INTO `$addtable`(aid,typeid,filetype,language,softtype,accredit, | |||||
os,softrank,officialUrl,officialDemo,softsize,softlinks,introduce,userip,templet,redirecturl,daccess,needmoney{$inadd_f}) | |||||
VALUES ('$arcID','$typeid','$filetype','$language','$softtype','$accredit', | |||||
'$os','$softrank','$officialUrl','$officialDemo','$softsize','$urls','$body','$userip','','','0','$needmoney'{$inadd_v});"; | |||||
$inQuery = "INSERT INTO `$addtable`(aid,typeid,filetype,language,softtype,accredit,os,softrank,officialUrl,officialDemo,softsize,softlinks,introduce,userip,templet,redirecturl,daccess,needmoney{$inadd_f}) | |||||
VALUES ('$arcID','$typeid','$filetype','$language','$softtype','$accredit','$os','$softrank','$officialUrl','$officialDemo','$softsize','$urls','$body','$userip','','','0','$needmoney'{$inadd_v});"; | |||||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
$gerr = $dsql->GetError(); | $gerr = $dsql->GetError(); | ||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); | ||||
@@ -177,25 +161,20 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeCMS官方".str_replace('"', '', $gerr), "javascript:;"); | ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeCMS官方".str_replace('"', '', $gerr), "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//增加积分 | //增加积分 | ||||
$cfg_sendarc_scores = intval($cfg_sendarc_scores); | $cfg_sendarc_scores = intval($cfg_sendarc_scores); | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | $dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; "); | ||||
//更新统计 | //更新统计 | ||||
countArchives($channelid); | countArchives($channelid); | ||||
//生成HTML | //生成HTML | ||||
InsertTags($tags, $arcID); | InsertTags($tags, $arcID); | ||||
$artUrl = MakeArt($arcID, TRUE); | $artUrl = MakeArt($arcID, TRUE); | ||||
if ($artUrl == '') { | if ($artUrl == '') { | ||||
$artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | ||||
} | } | ||||
ClearMyAddon($arcID, $title); | ClearMyAddon($arcID, $title); | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " | |||||
请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布软件</a> | <a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布软件</a> | ||||
| | ||||
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看软件</a> | <a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看软件</a> | ||||
@@ -211,4 +190,4 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", FALSE); | $winform = $win->GetWindow("hand", " ", FALSE); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -17,7 +17,6 @@ require_once(DEDEMEMBER."/inc/inc_archives_functions.php"); | |||||
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3; | $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3; | ||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
/*------------- | /*------------- | ||||
function _ShowForm(){ } | function _ShowForm(){ } | ||||
--------------*/ | --------------*/ | ||||
@@ -48,7 +47,7 @@ if (empty($dopost)) { | |||||
$query = "SELECT * FROM `#@__channeltype` WHERE id='".$row['channel']."'"; | $query = "SELECT * FROM `#@__channeltype` WHERE id='".$row['channel']."'"; | ||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读取频道配置信息出错!", "javascript:;"); | |||||
ShowMsg("读取频道配置信息出错", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
@@ -84,7 +83,6 @@ function _SaveArticle(){ } | |||||
else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
$description = ''; | $description = ''; | ||||
include(DEDEMEMBER.'/inc/archives_check_edit.php'); | include(DEDEMEMBER.'/inc/archives_check_edit.php'); | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = ''; | $inadd_f = ''; | ||||
if (!empty($dede_addonfields)) { | if (!empty($dede_addonfields)) { | ||||
@@ -105,10 +103,8 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
$body = AnalyseHtmlBody($body, $description); | $body = AnalyseHtmlBody($body, $description); | ||||
$body = HtmlReplace($body, -1); | $body = HtmlReplace($body, -1); | ||||
//处理图片文档的自定义属性 | //处理图片文档的自定义属性 | ||||
if ($litpic != '') $flag = 'p'; | if ($litpic != '') $flag = 'p'; | ||||
//分析处理附加表数据 | //分析处理附加表数据 | ||||
$inadd_f = ''; | $inadd_f = ''; | ||||
$inadd_v = ''; | $inadd_v = ''; | ||||
@@ -122,7 +118,6 @@ else if ($dopost == 'save') { | |||||
continue; | continue; | ||||
} | } | ||||
$vs = explode(',', $v); | $vs = explode(',', $v); | ||||
//HTML文本特殊处理 | //HTML文本特殊处理 | ||||
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') { | ||||
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $litpic, $keywords, $vs[1]); | ${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $litpic, $keywords, $vs[1]); | ||||
@@ -135,15 +130,13 @@ else if ($dopost == 'save') { | |||||
$inadd_f .= ",`{$vs[0]}` = '".${$vs[0]}."'"; | $inadd_f .= ",`{$vs[0]}` = '".${$vs[0]}."'"; | ||||
} | } | ||||
} | } | ||||
//这里对前台提交的附加数据进行一次校验 | //这里对前台提交的附加数据进行一次校验 | ||||
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | $fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE); | ||||
if ($fontiterm != $inadd_f) { | if ($fontiterm != $inadd_f) { | ||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//修改主档案表 | //修改主档案表 | ||||
$upQuery = "UPDATE `#@__archives` set | $upQuery = "UPDATE `#@__archives` set | ||||
ismake='$ismake', | ismake='$ismake', | ||||
@@ -159,7 +152,6 @@ else if ($dopost == 'save') { | |||||
ShowMsg("更新数据库archives表时出错,请检查", "-1"); | ShowMsg("更新数据库archives表时出错,请检查", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//软件链接列表 | //软件链接列表 | ||||
$urls = ''; | $urls = ''; | ||||
for ($i = 1; $i <= 9; $i++) { | for ($i = 1; $i <= 9; $i++) { | ||||
@@ -177,7 +169,6 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
} | } | ||||
$urls = addslashes($urls); | $urls = addslashes($urls); | ||||
//更新附加表 | //更新附加表 | ||||
$needmoney = @intval($needmoney); | $needmoney = @intval($needmoney); | ||||
if ($needmoney > 100) $needmoney = 100; | if ($needmoney > 100) $needmoney = 100; | ||||
@@ -201,7 +192,7 @@ else if ($dopost == 'save') { | |||||
introduce='$body'{$inadd_f} | introduce='$body'{$inadd_f} | ||||
WHERE aid='$aid'; "; | WHERE aid='$aid'; "; | ||||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | if (!$dsql->ExecuteNoneQuery($inQuery)) { | ||||
ShowMsg("更新数据库附加表 addonsoft 时出错,请检查原因", "-1"); | |||||
ShowMsg("更新数据库附加表时出错,请检查原因", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
@@ -210,9 +201,8 @@ else if ($dopost == 'save') { | |||||
if ($artUrl == '') { | if ($artUrl == '') { | ||||
$artUrl = $cfg_phpurl."/view.php?aid=$aid"; | $artUrl = $cfg_phpurl."/view.php?aid=$aid"; | ||||
} | } | ||||
//返回成功信息 | //返回成功信息 | ||||
$msg = " 请选择您的后续操作: | |||||
$msg = "请选择您的后续操作: | |||||
<a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新软件</a> | <a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新软件</a> | ||||
| | ||||
<a href='soft_edit.php?channelid=$channelid&aid=".$aid."' class='btn btn-secondary btn-sm'>查看修改</a> | <a href='soft_edit.php?channelid=$channelid&aid=".$aid."' class='btn btn-secondary btn-sm'>查看修改</a> | ||||
@@ -228,4 +218,4 @@ else if ($dopost == 'save') { | |||||
$win->AddMsgItem($msg); | $win->AddMsgItem($msg); | ||||
$winform = $win->GetWindow("hand", " ", FALSE); | $winform = $win->GetWindow("hand", " ", FALSE); | ||||
$win->Display(); | $win->Display(); | ||||
} | |||||
} |
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/member_album.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/member_album.js"></script> | |||||
<title>新建<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>新建<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,13 +3,13 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/member_album.js"></script> | |||||
<title>修改图集:<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/member_album.js"></script> | |||||
<title>修改图集<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>修改<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>修改<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>修改<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>修改<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>修改文章:<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>修改文章<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>钱包积分 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>钱包积分 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>订单确认 - 会员中心 -<?php echo $cfg_webname; ?></title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>订单确认 - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | <?php include(DEDEMEMBER."/templets/top_login.htm"); ?> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>文档管理 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>文档管理 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
function viewArc(aid) { | function viewArc(aid) { | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>文档管理 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>文档管理 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
function viewArc(aid) { | function viewArc(aid) { | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>修改帐号基本资料 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>修改帐号基本资料 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -158,8 +158,8 @@ | |||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | <input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | ||||
style="text-transform:uppercase;"> | style="text-transform:uppercase;"> | ||||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
title="点击我更换图片" alt="点击我更换图片" /> | title="点击我更换图片" alt="点击我更换图片" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>验证邮箱 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>验证邮箱 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>头像设置 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>头像设置 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -13,22 +13,19 @@ | |||||
</button> | </button> | ||||
</div> | </div> | ||||
<!-- /.scroll-top --> | <!-- /.scroll-top --> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/popper.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/style.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/popper.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/style.js"></script> | |||||
<script> | <script> | ||||
//校验是否登录 | //校验是否登录 | ||||
function CheckLogin() { | function CheckLogin() { | ||||
$.get("<?php echo $cfg_cmsurl;?>/user/ajax_loginsta.php?format=json",function(data) { | |||||
$.get("<?php echo $cfg_cmsurl; ?>/user/ajax_loginsta.php?format=json",function(data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
$("#_login").html(` | $("#_login").html(` | ||||
欢迎,${result.data.username} | 欢迎,${result.data.username} | ||||
<a class="ml-2" href="<?php echo $cfg_cmsurl;?>/user/">[会员中心]</a> | |||||
<a class="ml-2" href="<?php echo $cfg_cmsurl;?>/user/index_do.php?fmdo=login&dopost=exit">[退出]</a> | |||||
<a class="ml-2" href="<?php echo $cfg_cmsurl; ?>/user/">[会员中心]</a> | |||||
<a class="ml-2" href="<?php echo $cfg_cmsurl; ?>/user/index_do.php?fmdo=login&dopost=exit">[退出]</a> | |||||
`); | `); | ||||
$("#iptUsername").val(result.data.username); | $("#iptUsername").val(result.data.username); | ||||
$("#iptUsername").attr("disabled", "disabled"); | $("#iptUsername").attr("disabled", "disabled"); | ||||
@@ -1,11 +1,10 @@ | |||||
<div class="container header"> | <div class="container header"> | ||||
<header class="pt-3"> | <header class="pt-3"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl;?>/"><img src="<?php echo $cfg_cmsurl;?>/static/web/img/logo.png" | |||||
alt="<?php echo $cfg_webname;?>"></a></div> | |||||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl; ?>/"><img src="<?php echo $cfg_cmsurl; ?>/static/web/img/logo.png" alt="<?php echo $cfg_webname;?>"></a></div> | |||||
<div class="col-12 col-sm-6 d-flex justify-content-end"> | <div class="col-12 col-sm-6 d-flex justify-content-end"> | ||||
<div class="input-group py-3"> | <div class="input-group py-3"> | ||||
<form class="search" name="formsearch" action="<?php echo $cfg_cmsurl;?>/apps/search.php"> | |||||
<form class="search" name="formsearch" action="<?php echo $cfg_cmsurl; ?>/apps/search.php"> | |||||
<input type="hidden" name="kwtype" value="0" /> | <input type="hidden" name="kwtype" value="0" /> | ||||
<input name="q" type="text" class="form-control" placeholder="输入搜索关键词"> | <input name="q" type="text" class="form-control" placeholder="输入搜索关键词"> | ||||
<div class="input-group-append"> | <div class="input-group-append"> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title><?php echo $cfg_webname; ?> - 会员登录</title> | <title><?php echo $cfg_webname; ?> - 会员登录</title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -38,8 +38,8 @@ | |||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | <input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | ||||
style="text-transform:uppercase;"> | style="text-transform:uppercase;"> | ||||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
title="点击我更换图片" alt="点击我更换图片" /> | title="点击我更换图片" alt="点击我更换图片" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>会员中心 -<?php echo $cfg_webname; ?></title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<style> | <style> | ||||
.member a.btn { | .member a.btn { | ||||
color: white; | color: white; | ||||
@@ -3,7 +3,6 @@ | |||||
<a href="<?php echo $cfg_memberurl;?>/"> | <a href="<?php echo $cfg_memberurl;?>/"> | ||||
<img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" alt="<?php echo $cfg_ml->M_MbType; ?>的头像"> | <img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" alt="<?php echo $cfg_ml->M_MbType; ?>的头像"> | ||||
</a> | </a> | ||||
<div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span></div> | <div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span></div> | ||||
<div> | <div> | ||||
<h4><?php echo $cfg_ml->M_LoginID; ?></h4> | <h4><?php echo $cfg_ml->M_LoginID; ?></h4> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title><?php echo $cfg_webname; ?> - 会员登录</title> | <title><?php echo $cfg_webname; ?> - 会员登录</title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -38,8 +38,8 @@ | |||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | <input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | ||||
style="text-transform:uppercase;"> | style="text-transform:uppercase;"> | ||||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
title="点击我更换图片" alt="点击我更换图片" /> | title="点击我更换图片" alt="点击我更换图片" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>我购买的文章 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>我购买的文章 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>收藏夹 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>收藏夹 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>金币订单 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>金币订单 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,13 +3,13 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/style.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/style.js"></script> | |||||
<title>消息管理 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>消息管理 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
<script> | <script> | ||||
//阅读消息 | //阅读消息 | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title><?php echo $cfg_webname; ?> - 会员注册</title> | <title><?php echo $cfg_webname; ?> - 会员注册</title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -31,8 +31,8 @@ | |||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | <input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | ||||
style="text-transform:uppercase;"> | style="text-transform:uppercase;"> | ||||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" | |||||
style="cursor:pointer;" onClick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" | |||||
style="cursor:pointer;" onClick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
title="点击我更换图片" alt="点击我更换图片" /> | title="点击我更换图片" alt="点击我更换图片" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>密码帮手——找回密码第一步</title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>密码帮手 - 找回密码第一步</title> | |||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
function changeAuthCode() { | function changeAuthCode() { | ||||
var num = new Date().getTime(); | var num = new Date().getTime(); | ||||
@@ -81,8 +81,8 @@ | |||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | <input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | ||||
style="text-transform:uppercase;"> | style="text-transform:uppercase;"> | ||||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
title="点击我更换图片" alt="点击我更换图片" /> | title="点击我更换图片" alt="点击我更换图片" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>密码帮手——找回密码第二步</title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>密码帮手 - 找回密码第二步</title> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<?php include(DEDEMEMBER."/templets/top.htm"); ?> | <?php include(DEDEMEMBER."/templets/top.htm"); ?> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>密码帮手——找回密码第三步</title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>密码帮手 - 找回密码第三步</title> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -41,8 +41,8 @@ | |||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | <input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate" | ||||
style="text-transform:uppercase;"> | style="text-transform:uppercase;"> | ||||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer;" | |||||
onclick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" | |||||
title="点击我更换图片" alt="点击我更换图片" /> | title="点击我更换图片" alt="点击我更换图片" /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>密码帮手——找回密码第三步</title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>密码帮手 - 找回密码第三步</title> | |||||
</head> | </head> | ||||
<body class="buycarpage"> | <body class="buycarpage"> | ||||
@@ -1,14 +1,13 @@ | |||||
<!DOCTYPE html> | <!DOCTYPE html> | ||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>商城订单 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>商城订单 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>我购买的商品 - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>我购买的商品 - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -3,11 +3,11 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>上传<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | <title>上传<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
var startNum = 2; | var startNum = 2; | ||||
@@ -3,12 +3,12 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl;?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/member.css"> | |||||
<title>编辑软件:<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css"> | |||||
<link href="<?php echo $cfg_cmsurl; ?>/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css"> | |||||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css"> | |||||
<title>编辑软件<?php echo $row['title']?> - 会员中心 - <?php echo $cfg_webname; ?></title> | |||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
var startNum = 2; | var startNum = 2; | ||||
function MakeUpload() { | function MakeUpload() { | ||||
@@ -1,7 +1,6 @@ | |||||
<nav class="site-nav bg-light py-2"> | <nav class="site-nav bg-light py-2"> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-12 d-flex justify-content-end user" id="_login"> | <div class="col-12 d-flex justify-content-end user" id="_login"> | ||||
<a href="<?php echo $cfg_memberurl;?>/login.php">登录</a> | <a href="<?php echo $cfg_memberurl;?>/login.php">登录</a> | ||||
<a class="ml-3" href="<?php echo $cfg_memberurl;?>/index_do.php?fmdo=user&dopost=regnew">注册</a> | <a class="ml-3" href="<?php echo $cfg_memberurl;?>/index_do.php?fmdo=user&dopost=regnew">注册</a> | ||||
@@ -1,8 +1,7 @@ | |||||
<div class="container header"> | <div class="container header"> | ||||
<header class="py-3"> | <header class="py-3"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl;?>/"><img | |||||
src="<?php echo $cfg_cmsurl;?>/static/web/img/logo.png" alt="<?php echo $cfg_webname;?>"></a></div> | |||||
<div class="col-12 col-sm-6 logo"><a href="<?php echo $cfg_cmsurl; ?>/"><img src="<?php echo $cfg_cmsurl; ?>/static/web/img/logo.png" alt="<?php echo $cfg_webname;?>"></a></div> | |||||
<div class="col-12 col-sm-6 d-flex justify-content-end member-actions"> | <div class="col-12 col-sm-6 d-flex justify-content-end member-actions"> | ||||
<a href="<?php echo $cfg_memberurl;?>/shops_orders.php" class="cart" title="订单管理"><i class="fa fa-shopping-cart" aria-hidden="true"></i></a> | <a href="<?php echo $cfg_memberurl;?>/shops_orders.php" class="cart" title="订单管理"><i class="fa fa-shopping-cart" aria-hidden="true"></i></a> | ||||
<a href="<?php echo $cfg_memberurl;?>/pm.php" title="消息管理" class="message"> | <a href="<?php echo $cfg_memberurl;?>/pm.php" title="消息管理" class="message"> | ||||
@@ -10,7 +9,7 @@ | |||||
</a> | </a> | ||||
<a><?php echo $cfg_ml->M_LoginID; ?> | <a><?php echo $cfg_ml->M_LoginID; ?> | ||||
</a> | </a> | ||||
<a href="<?php echo $cfg_cmsurl;?>/user/index_do.php?fmdo=login&dopost=exit#" title="退出"> | |||||
<a href="<?php echo $cfg_cmsurl; ?>/user/index_do.php?fmdo=login&dopost=exit#" title="退出"> | |||||
<i class="fa fa-sign-out" aria-hidden="true"></i> | <i class="fa fa-sign-out" aria-hidden="true"></i> | ||||
</a> | </a> | ||||
</div> | </div> | ||||