Browse Source

优化

tags/6.1.7
xushubieli 2 years ago
parent
commit
f8e181f5dc
87 changed files with 364 additions and 704 deletions
  1. +8
    -8
      src/system/helpers/util.helper.php
  2. +1
    -1
      src/system/libraries/agent.class.php
  3. +2
    -2
      src/system/libraries/mobiledetect.class.php
  4. +5
    -5
      src/theme/plus/download_links_templet.htm
  5. +5
    -5
      src/theme/plus/flink-add.htm
  6. +5
    -5
      src/theme/plus/flink-list.htm
  7. +3
    -3
      src/theme/plus/heightsearch.htm
  8. +5
    -5
      src/theme/plus/list_diyform.htm
  9. +2
    -2
      src/theme/plus/plus_footer.htm
  10. +2
    -3
      src/theme/plus/plus_header.htm
  11. +5
    -5
      src/theme/plus/post_diyform.htm
  12. +3
    -3
      src/theme/plus/recommend.htm
  13. +5
    -5
      src/theme/plus/view_diyform.htm
  14. +5
    -5
      src/theme/plus/view_msg.htm
  15. +5
    -5
      src/theme/plus/vote.htm
  16. +1
    -2
      src/theme/templets/header.htm
  17. +0
    -7
      src/user/ajax_loginsta.php
  18. +1
    -15
      src/user/album_add.php
  19. +4
    -20
      src/user/archives_add.php
  20. +2
    -16
      src/user/archives_do.php
  21. +12
    -24
      src/user/archives_edit.php
  22. +4
    -28
      src/user/archives_sg_add.php
  23. +2
    -19
      src/user/archives_sg_edit.php
  24. +3
    -21
      src/user/article_add.php
  25. +3
    -10
      src/user/article_edit.php
  26. +1
    -1
      src/user/buy.php
  27. +3
    -21
      src/user/buy_action.php
  28. +1
    -8
      src/user/check_card.php
  29. +4
    -19
      src/user/config.php
  30. +6
    -13
      src/user/content_list.php
  31. +1
    -11
      src/user/edit_baseinfo.php
  32. +2
    -13
      src/user/inc/archives_check.php
  33. +2
    -12
      src/user/inc/archives_check_edit.php
  34. +3
    -19
      src/user/inc/inc_archives_functions.php
  35. +10
    -26
      src/user/inc/inc_batchup.php
  36. +1
    -4
      src/user/inc/inc_catalog_options.php
  37. +2
    -8
      src/user/inc/inc_list_functions.php
  38. +2
    -6
      src/user/inc/inc_pwd_functions.php
  39. +5
    -14
      src/user/index.php
  40. +12
    -26
      src/user/index_do.php
  41. +1
    -1
      src/user/login.php
  42. +1
    -2
      src/user/mypay.php
  43. +1
    -3
      src/user/mystow.php
  44. +2
    -3
      src/user/operation.php
  45. +1
    -4
      src/user/pm.php
  46. +1
    -10
      src/user/resetpassword.php
  47. +2
    -3
      src/user/shops_orders.php
  48. +3
    -5
      src/user/shops_point.php
  49. +2
    -7
      src/user/shops_products.php
  50. +7
    -28
      src/user/soft_add.php
  51. +5
    -15
      src/user/soft_edit.php
  52. +6
    -6
      src/user/templets/album_add.htm
  53. +7
    -7
      src/user/templets/album_edit.htm
  54. +5
    -5
      src/user/templets/archives_add.htm
  55. +5
    -5
      src/user/templets/archives_edit.htm
  56. +5
    -5
      src/user/templets/archives_sg_add.htm
  57. +5
    -5
      src/user/templets/archives_sg_edit.htm
  58. +5
    -5
      src/user/templets/article_add.htm
  59. +6
    -6
      src/user/templets/article_edit.htm
  60. +5
    -5
      src/user/templets/buy.htm
  61. +6
    -6
      src/user/templets/buy_action_payment.htm
  62. +5
    -5
      src/user/templets/content_list.htm
  63. +5
    -5
      src/user/templets/content_sg_list.htm
  64. +7
    -7
      src/user/templets/edit_baseinfo.htm
  65. +5
    -5
      src/user/templets/edit_email.htm
  66. +5
    -5
      src/user/templets/edit_face.htm
  67. +6
    -9
      src/user/templets/footer.htm
  68. +2
    -3
      src/user/templets/header.htm
  69. +7
    -7
      src/user/templets/index-notlogin.htm
  70. +6
    -6
      src/user/templets/index.htm
  71. +0
    -1
      src/user/templets/info.htm
  72. +7
    -7
      src/user/templets/login.htm
  73. +5
    -5
      src/user/templets/mypay.htm
  74. +5
    -5
      src/user/templets/mystow.htm
  75. +5
    -5
      src/user/templets/operation.htm
  76. +7
    -7
      src/user/templets/pm-main.htm
  77. +7
    -7
      src/user/templets/reg-new.htm
  78. +8
    -8
      src/user/templets/resetpassword.htm
  79. +6
    -6
      src/user/templets/resetpassword2.htm
  80. +8
    -8
      src/user/templets/resetpassword3.htm
  81. +6
    -6
      src/user/templets/shops_action_payment.htm
  82. +5
    -6
      src/user/templets/shops_orders.htm
  83. +5
    -5
      src/user/templets/shops_products.htm
  84. +5
    -5
      src/user/templets/soft_add.htm
  85. +6
    -6
      src/user/templets/soft_edit.htm
  86. +0
    -1
      src/user/templets/top.htm
  87. +2
    -3
      src/user/templets/top_login.htm

+ 8
- 8
src/system/helpers/util.helper.php View File

@@ -68,7 +68,7 @@ if (!function_exists('GetCurUrl')) {
if (empty($_SERVER["QUERY_STRING"])) {
$nowurl = $scriptName;
} else {
$nowurl = $scriptName . "?" . $_SERVER["QUERY_STRING"];
$nowurl = $scriptName."?".$_SERVER["QUERY_STRING"];
}
}
return $nowurl;
@@ -125,7 +125,7 @@ if (!function_exists('GetEditor')) {
function GetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype = "print", $isfullpage = "FALSE", $bbcode = false)
{
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);
}
@@ -158,7 +158,7 @@ if (!function_exists('GetTemplets')) {
if (!function_exists('GetSysTemplets')) {
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()
{
if (!function_exists('SpGetNewInfo')) {
require_once(DEDEINC . "/inc/inc_fun_funAdmin.php");
require_once(DEDEINC."/inc/inc_fun_funAdmin.php");
}
return SpGetNewInfo();
}
@@ -191,7 +191,7 @@ if (!function_exists('dd2char')) {
$nn = '';
for ($i = 0; $i < $slen; $i++) {
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)) {
$okdd .= chr($n);
$i++;
@@ -224,7 +224,7 @@ if (!function_exists('json_encode')) {
} else if (defined($value) && $value === NULL) {
$value = strval(constant((string)$value));
} else if (is_string($value)) {
$value = '"' . addslashes($value) . '"';
$value = '"'.addslashes($value).'"';
}
return $value;
}
@@ -248,9 +248,9 @@ if (!function_exists('json_encode')) {
foreach ($data as $key => $val) {
if (!is_NULL($val)) {
if ($assoc) {
$json .= "\"$key\":" . json_encode($val) . ",";
$json .= "\"$key\":".json_encode($val).",";
} else {
$json .= json_encode($val) . ",";
$json .= json_encode($val).",";
}
}
}


+ 1
- 1
src/system/libraries/agent.class.php View File

@@ -390,7 +390,7 @@ class Agent extends Mobile_Detect
} elseif (is_array($merged[$key])) {
$merged[$key][] = $value;
} else {
$merged[$key] .= '|' . $value;
$merged[$key] .= '|'.$value;
}
}
}


+ 2
- 2
src/system/libraries/mobiledetect.class.php View File

@@ -964,7 +964,7 @@ class Mobile_Detect
}

// test the alternate, too
$altHeader = 'HTTP_' . $header;
$altHeader = 'HTTP_'.$header;

//Test both the regular and the HTTP_ prefix
if (isset($this->httpHeaders[$header])) {
@@ -1061,7 +1061,7 @@ class Mobile_Detect
$this->userAgent = null;
foreach ($this->getUaHttpHeaders() as $altHeader) {
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]." ";
}
}



+ 5
- 5
src/theme/plus/download_links_templet.htm View File

@@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $title; ?>_下载地址列表_<?php echo $cfg_webname;?></title>
<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">
.formbox li{
list-style: url(none) none;


+ 5
- 5
src/theme/plus/flink-add.htm View File

@@ -5,11 +5,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $cfg_webname;?>_申请友情链接</title>
<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>
<body class="flinkpage">



+ 5
- 5
src/theme/plus/flink-list.htm View File

@@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $cfg_webname;?>_所有链接</title>
<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>
<body class="flinkpage">
<?php include("plus_header.htm") ;?>


+ 3
- 3
src/theme/plus/heightsearch.htm View File

@@ -4,9 +4,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $cfg_webname;?>_高级搜索</title>
<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>
<body class="flinkpage">



+ 5
- 5
src/theme/plus/list_diyform.htm View File

@@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $diy->name; ?> - Powered by DedeBIZ</title>
<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>
<body>
<div class="main mceneter">


+ 2
- 2
src/theme/plus/plus_footer.htm View File

@@ -14,5 +14,5 @@
</div>
<!-- /.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>

+ 2
- 3
src/theme/plus/plus_header.htm View File

@@ -1,11 +1,10 @@
<div class="container header">
<header class="pt-3">
<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="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 name="q" type="text" class="form-control" placeholder="输入搜索关键词">
<div class="input-group-append">


+ 5
- 5
src/theme/plus/post_diyform.htm View File

@@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $diy->name;?> - Powered by DedeBIZ</title>
<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>
<body>
<div class="main mceneter">


+ 3
- 3
src/theme/plus/recommend.htm View File

@@ -4,9 +4,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>推荐_<?php echo $title; ?>_{dede:global name='cfg_webname'/}</title>
<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>
<body class="flinkpage">



+ 5
- 5
src/theme/plus/view_diyform.htm View File

@@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $diy->name;?> - powered by dedebiz</title>
<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>
<body>
<div class="main mceneter">


+ 5
- 5
src/theme/plus/view_msg.htm View File

@@ -6,11 +6,11 @@
<?php echo $msgtitle; ?>
</title>
<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>
<body class="flinkpage">



+ 5
- 5
src/theme/plus/vote.htm View File

@@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $cfg_webname?>_投票结果</title>
<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>
<body class="flinkpage">
<?php include("plus_header.htm") ;?>


+ 1
- 2
src/theme/templets/header.htm View File

@@ -1,8 +1,7 @@
<div class="container header">
<header class="pt-3">
<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="input-group py-3">
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php">


+ 0
- 7
src/user/ajax_loginsta.php View File

@@ -7,13 +7,9 @@
* @link https://www.dedebiz.com
*/
define('AJAXLOGIN', TRUE);
require_once(dirname(__FILE__)."/config.php");
AjaxHead();
$format = isset($format) ? "json" : "";
if (!$cfg_ml->IsLogin()) {
if ($format === 'json') {
echo json_encode(array(
@@ -26,12 +22,9 @@ if (!$cfg_ml->IsLogin()) {
}
exit;
}
$uid = $cfg_ml->M_LoginID;
!$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';
if ($format === 'json') {
echo json_encode(array(
"code" => 200,


+ 1
- 15
src/user/album_add.php View File

@@ -9,7 +9,6 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
//考虑安全原因不管是否开启游客投稿功能,都不允许用户对图集投稿
CheckRank(0, 0);
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;
$menutype = 'content';
if (empty($formhtml)) $formhtml = 0;
/*-------------
function _ShowForm(){ }
--------------*/
@@ -40,7 +38,6 @@ if (empty($dopost)) {
ShowMsg('模型参数不正确', '-1');
exit();
}
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' ");
@@ -54,7 +51,6 @@ if (empty($dopost)) {
include(DEDEMEMBER."/templets/album_add.htm");
exit();
}
/*------------------------------
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";
$hasone = false;
$ddisfirst = 1;
//只支持填写地址
for ($i = 1; $i <= 120; $i++) {
if (!isset(${'imgfile'.$i})) {
@@ -95,7 +90,6 @@ else if ($dopost == 'save') {
}
} //循环结束
$imgurls = addslashes($imgurls);
//分析处理附加表数据
$isrm = 1;
if (!isset($formhtml)) {
@@ -120,7 +114,6 @@ else if ($dopost == 'save') {
$inadd_v .= " ,'".${$vs[0]}."' ";
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_f) {
@@ -128,7 +121,6 @@ else if ($dopost == 'save') {
exit();
}
}
//生成文档ID
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
@@ -148,7 +140,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank'
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;");
exit();
}
//保存到附加表
$addtable = trim($cInfos['addtable']);
if (empty($addtable)) {
@@ -167,22 +158,17 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank'
exit();
}
}
//增加积分
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; ");
//更新统计
countArchives($channelid);
//生成HTML
InsertTags($tags, $arcID);
$artUrl = MakeArt($arcID, true);
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID";
ClearMyAddon($arcID, $title);
//返回成功信息
$msg = "
  请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图集</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看图集</a>


+ 4
- 20
src/user/archives_add.php View File

@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
@@ -28,12 +27,10 @@ if (empty($dopost)) {
ShowMsg('模型不存在', '-1');
exit();
}
//如果限制了会员级别或类型,则允许游客投稿选项无效
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') {
CheckRank(0, 0);
}
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' ");
@@ -67,7 +64,6 @@ else if ($dopost == 'save') {
if (!isset(${$vs[0]})) {
${$vs[0]} = '';
}
//自动摘要和远程图片本地化
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]);
@@ -79,7 +75,6 @@ else if ($dopost == 'save') {
$inadd_v .= " ,'".${$vs[0]}."' ";
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_f) {
@@ -87,29 +82,23 @@ else if ($dopost == 'save') {
exit();
}
}
//处理图片文档的自定义属性
if ($litpic != '') $flag = 'p';
//生成文档ID
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");
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)) {
$gerr = $dsql->GetError();
$dsql->ExecuteNoneQuery("Delete From `#@__arctiny` where id='$arcID' ");
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;");
exit();
}
//保存到附加表
$addtable = trim($cInfos['addtable']);
if (empty($addtable)) {
@@ -127,24 +116,19 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank'
exit();
}
}
//增加积分
$dsql->ExecuteNoneQuery("Update `#@__member` set scores=scores+{$cfg_sendarc_scores} where mid='".$cfg_ml->M_ID."' ; ");
//更新统计
countArchives($channelid);
//生成HTML
InsertTags($tags, $arcID);
$artUrl = MakeArt($arcID, true);
if ($artUrl == '') {
$artUrl = $cfg_phpurl."/view.php?aid=$arcID";
}
ClearMyAddon($arcID, $title);
//返回成功信息
$msg = "
  请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-secondary btn-sm'>继续发布内容</a>
&nbsp;&nbsp;
<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);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
}
}

+ 2
- 16
src/user/archives_do.php View File

@@ -10,10 +10,8 @@
*/
require_once(dirname(__FILE__)."/config.php");
if (empty($dopost)) $dopost = '';
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
/*-----------------
function delStow()
删除收藏
@@ -30,7 +28,6 @@ if ($dopost == "delStow") {
ShowMsg("成功删除一条收藏记录", $ENV_GOBACK_URL);
exit();
}
/*-----------------
function addArchives()
添加投稿
@@ -57,7 +54,6 @@ else if ($dopost == "addArc") {
header("Location:$addcon");
exit();
}
/*-----------------
function editArchives()
修改投稿
@@ -85,7 +81,6 @@ else if ($dopost == "edit") {
header("Location:$edit"."&aid=$aid");
exit();
}
/*--------------------
function delArchives()
删除文章
@@ -94,11 +89,8 @@ else if ($dopost == "delArc") {
CheckRank(0, 0);
include_once(DEDEMEMBER."/inc/inc_batchup.php");
$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
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);
if (!is_array($row)) {
ShowMsg("您没有权限删除这篇文档", "-1");
@@ -115,7 +107,6 @@ else if ($dopost == "delArc") {
ShowMsg("您没有权限删除这篇文档", "-1");
exit();
}
if ($row['arcrank'] >= 0) {
$dtime = time();
$maxtime = $cfg_mb_editday * 24 * 3600;
@@ -124,20 +115,16 @@ else if ($dopost == "delArc") {
exit();
}
}
$channelid = $row['channel'];
$row['litpic'] = (isset($arr['litpic']) ? $arr['litpic'] : '');
//删除文档
if ($row['issystem'] != -1) $rs = DelArc($aid);
else $rs = DelArcSg($aid);
//删除缩略图
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}' ");
@unlink($cfg_basedir.$row['litpic']);
}
if ($ENV_GOBACK_URL == 'content_list.php?channelid=') {
$ENV_GOBACK_URL = $ENV_GOBACK_URL.$channelid;
}
@@ -154,7 +141,6 @@ else if ($dopost == "delArc") {
}
exit();
}
/*-----------------
function viewArchives()
查看文章
@@ -166,4 +152,4 @@ else if ($dopost == "viewArchives") {
} else {
header("location:/book/book.php?bid=".$aid);
}
}
}

+ 12
- 24
src/user/archives_edit.php View File

@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
@@ -44,13 +43,11 @@ if (empty($dopost)) {
include(DEDEMEMBER."/templets/archives_edit.htm");
exit();
}
/*------------------------------
function _SaveArticle(){ }
------------------------------*/
else if ($dopost == 'save') {
include(DEDEMEMBER.'/inc/archives_check_edit.php');
//分析处理附加表数据
$inadd_f = $inadd_m = '';
if (!empty($dede_addonfields)) {
@@ -64,18 +61,15 @@ else if ($dopost == 'save') {
if (!isset(${$vs[0]})) {
${$vs[0]} = '';
}
//自动摘要和远程图片本地化
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]);
}
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid);
$inadd_m .= ','.$vs[0];
$inadd_f .= ','.$vs[0]." ='".${$vs[0]}."' ";
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_m) {
@@ -83,29 +77,24 @@ else if ($dopost == 'save') {
exit();
}
}
//处理图片文档的自定义属性
if ($litpic != '') $flag = 'p';
//更新数据库的SQL语句
$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)) {
ShowMsg("把数据保存到数据库主表时出错,请联系管理员".$dsql->GetError(), "-1");
exit();
}
if ($addtable != '') {
$upQuery = "UPDATE `$addtable` SET typeid='$typeid'{$inadd_f}, userip='$userip' WHERE aid='$aid' ";
if (!$dsql->ExecuteNoneQuery($upQuery)) {
@@ -118,9 +107,8 @@ else if ($dopost == 'save') {
UpIndexKey($aid, $arcrank, $typeid, $sortrank, $tags);
$artUrl = MakeArt($aid, TRUE);
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>
&nbsp;&nbsp;
<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);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
}
}

+ 4
- 28
src/user/archives_sg_add.php View File

@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
@@ -28,12 +27,10 @@ if (empty($dopost)) {
ShowMsg('模型不存在', '-1');
exit();
}
//如果限制了会员级别或类型,则允许游客投稿选项无效
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') {
CheckRank(0, 0);
}
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE rank='".$cInfos['sendrank']."' ");
@@ -61,41 +58,33 @@ else if ($dopost == 'save') {
exit();
}
}
//校验CSRF
CheckCSRF();
$flag = '';
$autokey = $remote = $dellink = $autolitpic = 0;
$userip = GetIP();
if ($typeid == 0) {
ShowMsg('请指定文档隶属的栏目', '-1');
exit();
}
$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);
//检测栏目是否有投稿权限
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) {
ShowMsg("您所选择的栏目不支持投稿", "-1");
exit();
}
//检查频道设定的投稿许可权限
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' ");
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000);
exit();
}
//文档的默认状态
if ($cInfos['arcsta'] == 0) {
$arcrank = 0;
@@ -104,13 +93,11 @@ else if ($dopost == 'save') {
} else {
$arcrank = -1;
}
//对保存的内容进行处理
$sortrank = $senddate = $pubdate = time();
$title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen);
$mid = $cfg_ml->M_ID;
$description = empty($description) ? "" : $description;
//分析处理附加表数据
$inadd_f = $inadd_v = '';
if (!empty($dede_addonfields)) {
@@ -126,34 +113,28 @@ else if ($dopost == 'save') {
if (!isset(${$vs[0]})) {
${$vs[0]} = '';
}
//自动摘要和远程图片本地化
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]);
}
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], 0);
$inadd_f .= ',`'.$vs[0].'`';
$inadd_v .= " ,'".${$vs[0]}."' ";
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != str_replace('`', '', $inadd_f)) {
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1");
ShowMsg("提交表单同系统配置不相符请重新提交", "-1");
exit();
}
}
//生成文档ID
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");
exit();
}
//保存到附加表
$addtable = trim($cInfos['addtable']);
if (empty($addtable)) {
@@ -169,19 +150,14 @@ else if ($dopost == 'save') {
exit();
}
}
//增加积分
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; ");
//生成HTML
$artUrl = MakeArt($arcID, true);
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID";
ClearMyAddon($arcID, $title);
//返回成功信息
$msg = "
  请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='archives_sg_add.php?channelid=$channelid' class='btn btn-secondary btn-sm'>继续发布内容</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看内容</a>
@@ -197,4 +173,4 @@ else if ($dopost == 'save') {
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
}
}

+ 2
- 19
src/user/archives_sg_edit.php View File

@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
@@ -40,7 +39,6 @@ if (empty($dopost)) {
include(DEDEMEMBER."/templets/archives_sg_edit.htm");
exit();
}
/*------------------------------
function _SaveArticle(){ }
------------------------------*/
@@ -59,25 +57,21 @@ else if ($dopost == 'save') {
exit();
}
}
if ($typeid == 0) {
ShowMsg('请指定文档隶属的栏目', '-1');
exit();
}
$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);
$addtable = $cInfos['addtable'];
//检测栏目是否有投稿权限
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) {
ShowMsg("您所选择的栏目不支持投稿", "-1");
exit();
}
//校验CSRF
CheckCSRF();
//文档的默认状态
if ($cInfos['arcsta'] == 0) {
$arcrank = 0;
@@ -86,11 +80,9 @@ else if ($dopost == 'save') {
} else {
$arcrank = -1;
}
//对保存的内容进行处理
$title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen);
$mid = $cfg_ml->M_ID;
//分析处理附加表数据
$inadd_f = $inadd_m = '';
if (!empty($dede_addonfields)) {
@@ -104,19 +96,15 @@ else if ($dopost == 'save') {
if (!isset(${$vs[0]})) {
${$vs[0]} = '';
}
//自动摘要和远程图片本地化
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]);
}
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid);
$inadd_f .= ',`'.$vs[0]."` ='".${$vs[0]}."' ";
$inadd_m .= ','.$vs[0];
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_m) {
@@ -124,8 +112,6 @@ else if ($dopost == 'save') {
exit();
}
}
if ($addtable != '') {
$upQuery = "UPDATE `$addtable` SET `title`='$title',`typeid`='$typeid',`arcrank`='$arcrank',userip='$userip'{$inadd_f} WHERE aid='$aid' ";
if (!$dsql->ExecuteNoneQuery($upQuery)) {
@@ -133,12 +119,9 @@ else if ($dopost == 'save') {
exit();
}
}
UpIndexKey($aid, 0, $typeid, $sortrank, '');
$artUrl = MakeArt($aid, true);
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$aid";
//返回成功信息
$msg = "请选择您的后续操作:
<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);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
}
}

+ 3
- 21
src/user/article_add.php View File

@@ -18,24 +18,19 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
if (empty($dopost)) {
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid'; ");
//如果限制了会员级别或类型,则允许游客投稿选项无效
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') CheckRank(0, 0);
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE rank='".$cInfos['sendrank']."' ");
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000);
exit();
@@ -48,7 +43,6 @@ function _SaveArticle(){ }
------------------------------*/
else if ($dopost == 'save') {
include(DEDEMEMBER.'/inc/archives_check.php');
//分析处理附加表数据
$inadd_f = $inadd_v = '';
if (!empty($dede_addonfields)) {
@@ -70,36 +64,29 @@ else if ($dopost == 'save') {
}
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_f) {
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1");
exit();
}
$body = AnalyseHtmlBody($body, $description);
$body = HtmlReplace($body, -1);
//生成文档ID
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");
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)) {
$gerr = $dsql->GetError();
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID' ");
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;");
exit();
}
//保存到附加表
$addtable = trim($cInfos['addtable']);
if (empty($addtable)) {
@@ -117,22 +104,17 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank'
exit();
}
}
//增加积分
$dsql->ExecuteNoneQuery("UPDATE `#@__member` set scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; ");
//更新统计
countArchives($channelid);
//生成HTML
InsertTags($tags, $arcID);
$artUrl = MakeArt($arcID, TRUE);
if ($artUrl == '') $artUrl = $cfg_phpurl."/view.php?aid=$arcID";
ClearMyAddon($arcID, $title);
//返回成功信息
$msg =
"请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文章</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a>


+ 3
- 10
src/user/article_edit.php View File

@@ -18,7 +18,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
@@ -49,7 +48,6 @@ function _SaveArticle(){ }
------------------------------*/
else if ($dopost == 'save') {
include(DEDEMEMBER.'/inc/archives_check_edit.php');
//分析处理附加表数据
$inadd_f = $inadd_m = '';
if (!empty($dede_addonfields)) {
@@ -68,19 +66,15 @@ else if ($dopost == 'save') {
$inadd_m .= ','.$vs[0];
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_m) {
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1");
ShowMsg("提交表单同系统配置不相符请重新提交", "-1");
exit();
}
}
$body = AnalyseHtmlBody($body, $description);
$body = HtmlReplace($body, -1);
//更新数据库的SQL语句
$upQuery = "UPDATE `#@__archives` SET
ismake='$ismake',
@@ -108,9 +102,8 @@ else if ($dopost == 'save') {
if ($artUrl == '') {
$artUrl = $cfg_phpurl."/view.php?aid=$aid";
}
//返回成功信息
$msg = "  请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文章</a>
&nbsp;&nbsp;
<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);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
}
}

+ 1
- 1
src/user/buy.php View File

@@ -40,4 +40,4 @@ while ($row = $dsql->GetObject()) {
}
$tpl = new DedeTemplate();
$tpl->LoadTemplate(DEDEMEMBER.'/templets/buy.htm');
$tpl->Display();
$tpl->Display();

+ 3
- 21
src/user/buy_action.php View File

@@ -11,27 +11,23 @@ CheckRank(0, 0);
$menutype = 'mydede';
$menutype_son = 'op';
require_once DEDEINC.'/dedetemplate.class.php';
$product = isset($product) ? trim(HtmlReplace($product, 1)) : '';
$mid = $cfg_ml->M_ID;
$ptype = '';
$pname = '';
$price = '';
$mtime = time();
if (isset($pd_encode) && isset($pd_verify) && md5("payment".$pd_encode.$cfg_cookie_encode) == $pd_verify) {
$result = json_decode(mchStrCode($pd_encode, 'DECODE'));
$product = preg_replace("#[^0-9a-z]#i", "", $result->product);
$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'");
if (!isset($row['buyid'])) {
ShowMsg("请不要重复提交表单!", 'javascript:;');
ShowMsg("请不要重复提交表单", 'javascript:;');
exit();
}
if (!isset($paytype)) {
ShowMsg("请选择支付方式!", 'javascript:;');
ShowMsg("请选择支付方式", 'javascript:;');
exit();
}
$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'");
}
}
if (empty($product)) {
ShowMsg("请选择一个产品!", 'javascript:;');
exit();
}
$pid = isset($pid) && is_numeric($pid) ? $pid : 0;
if ($product == 'member') {
$ptype = "会员升级";
@@ -68,7 +62,6 @@ if ($product == 'member') {
$pname = $row['pname'];
$price = $row['money'];
}
if (!isset($paytype)) {
$inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`)
VALUES ('$buyid', '$pname', '$product' , '$price' , '$mtime' , '$pid' , '$mid' , '0' , '$ptype');
@@ -78,12 +71,10 @@ if (!isset($paytype)) {
echo "数据库出错,请重新尝试".$dsql->GetError();
exit();
}
if ($price == '') {
echo "无法识别您的订单";
exit();
}
//获取支付接口列表
$payment_list = array();
$dsql->SetQuery("SELECT * FROM `#@__payment` WHERE enabled='1' ORDER BY `rank` ASC");
@@ -94,7 +85,6 @@ if (!isset($paytype)) {
$i++;
}
unset($row);
$pr_encode = array();
foreach ($_REQUEST as $key => $val) {
if (!in_array($key, array('product', 'pid'))) {
@@ -103,24 +93,18 @@ if (!isset($paytype)) {
$val = preg_replace("#[^0-9a-z]#i", "", $val);
$pr_encode[$key] = $val;
}
$pr_encode = str_replace('=', '', mchStrCode(json_encode($pr_encode)));
$pr_verify = md5("payment".$pr_encode.$cfg_cookie_encode);
$tpl = new DedeTemplate();
$tpl->LoadTemplate(DEDEMEMBER.'/templets/buy_action_payment.htm');
$tpl->Display();
} else {
$rs = $dsql->GetOne("SELECT * FROM `#@__payment` WHERE id='$paytype' ");
$rs['code'] = preg_replace("#[^0-9a-z]#i", "", $rs['code']);
if (!file_exists(DEDEINC.'/payment/'.$rs['code'].'.php')) {
ShowMsg("未发现支付接口文件,请到后台配置", 'javascript:;');
exit();
}
require_once DEDEINC.'/payment/'.$rs['code'].'.php';
$pay = new $rs['code'];
$payment = "";
@@ -152,7 +136,6 @@ if (!isset($paytype)) {
$dtp->Display();
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)) : '';
$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));
$i = 0;
$result = '';
$string_length = strlen($string);
@@ -187,4 +169,4 @@ function mchStrCode($string, $operation = 'ENCODE')
return '';
}
}
}
}

+ 1
- 8
src/user/check_card.php View File

@@ -8,33 +8,26 @@
*/
require_once(dirname(__FILE__)."/config.php");
$svali = GetCkVdValue();
if (strtolower($vdcode) != $svali || $svali == "") {
ShowMsg("验证码错误", "-1");
exit();
}
$cardid = preg_replace("#[^0-9A-Za-z-]#", "", $cardid);
if (empty($cardid)) {
ShowMsg("卡号为空", "-1");
exit();
}
$row = $dsql->GetOne("SELECT * FROM `#@__moneycard_record` WHERE cardid='$cardid' ");
if (!is_array($row)) {
ShowMsg("卡号错误:不存在此卡号", "-1");
exit();
}
if ($row['isexp'] == -1) {
ShowMsg("此卡号已经失效,不能再次使用", "-1");
exit();
}
$hasMoney = $row['num'];
$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."'");
ShowMsg("充值成功,您本次增加的金币为:{$hasMoney} 个", -1);
exit();
exit();

+ 4
- 19
src/user/config.php View File

@@ -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('/(&#0{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);

$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');
$ra = array_merge($ra1, $ra2);

$found = true;
while ($found == true) {
$val_before = $val;
@@ -70,12 +67,10 @@ $_GET = XSSClean($_GET);
$_POST = XSSClean($_POST);
$_REQUEST = XSSClean($_REQUEST);
$_COOKIE = XSSClean($_COOKIE);

require_once(dirname(__FILE__).'/../system/common.inc.php');
require_once(DEDEINC.'/filter.inc.php');
require_once(DEDEINC.'/memberlogin.class.php');
require_once(DEDEINC.'/dedetemplate.class.php');

//检查CSRF
function CheckCSRF()
{
@@ -88,10 +83,8 @@ function CheckCSRF()
ShowMsg('CSRF校验失败,请刷新页面重新提交', '-1');
exit();
}

DropCookie("dede_csrf_token");
}

//生成CSRF校验token,在比较重要的表单中应该要加上这个token校验
$cc_csrf_token = GetCookie("dede_csrf_token");
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));
}
}

if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') {
PutCookie('dede_csrf_token', $GLOBALS['csrf_token'], 7200, '/');
}


//获得当前脚本名称,如果您的系统被禁用了$_SERVER变量,请自行修改这个选项
$dedeNowurl = $s_scriptName = '';
$dedeNowurl = GetCurUrl();
@@ -118,7 +108,6 @@ $s_scriptName = $dedeNowurls[0];
$menutype = '';
$menutype_son = '';
$gourl = empty($gourl) ? "" : RemoveXSS($gourl);

//检查是否开放会员功能
if ($cfg_mb_open == 'N') {
if (defined('AJAXLOGIN')) {
@@ -139,7 +128,6 @@ if ($cfg_mb_open == 'N') {
}
$keeptime = isset($keeptime) && is_numeric($keeptime) ? $keeptime : -1;
$cfg_ml = new MemberLogin($keeptime);

//判断用户是否登录
$myurl = '';
if ($cfg_ml->IsLogin()) {
@@ -149,10 +137,8 @@ if ($cfg_ml->IsLogin()) {
$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'");

/**
* 检查用户是否有权限进行某个操作
*
@@ -197,15 +183,14 @@ function CheckRank($rank = 0, $money = 0)
$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();
} 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();
}
}
}

/**
* 更新文档统计
*
@@ -230,4 +215,4 @@ function countArchives($channelid)
} else {
return FALSE;
}
}
}

+ 6
- 13
src/user/content_list.php View File

@@ -19,7 +19,6 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
if (!isset($keyword)) $keyword = '';
if (!isset($arcrank)) $arcrank = '';
$positionname = '';
$menutype = 'content';
$mid = $cfg_ml->M_ID;
@@ -32,13 +31,11 @@ if (!is_array($cInfos)) {
$arcsta = $cInfos['arcsta'];
$dtime = time();
$maxtime = $cfg_mb_editday * 24 * 3600;
//禁止访问无权限的模型
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
ShowMsg('您无权限访问该部分', '-1');
exit();
}
if ($cid == 0) {
$row = $tl->dsql->GetOne("Select typename From #@__channeltype where id='$channelid'");
if (is_array($row)) {
@@ -54,8 +51,6 @@ if ($keyword != '') {
$whereSql .= " And (arc.title like '%$keyword%') ";
}
if ($cid != 0) $whereSql .= " And arc.typeid in (".GetSonIds($cid).")";
//增加分类查询
if ($arcrank == '1') {
$whereSql .= " And arc.arcrank >= 0";
@@ -64,7 +59,6 @@ if ($arcrank == '1') {
} else if ($arcrank == '-2') {
$whereSql .= " And arc.arcrank = -2";
}
$classlist = '';
$dsql->SetQuery("SELECT * FROM `#@__mtypes` WHERE `mid` = '$cfg_ml->M_ID';");
$dsql->Execute();
@@ -74,12 +68,11 @@ while ($row = $dsql->GetArray()) {
if ($mtypesid != 0) {
$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->pageSize = 20;
$dlist->SetParameter("dopost", "listArchives");
@@ -88,4 +81,4 @@ $dlist->SetParameter("cid", $cid);
$dlist->SetParameter("channelid", $channelid);
$dlist->SetTemplate(DEDEMEMBER."/templets/content_list.htm");
$dlist->SetSource($query);
$dlist->Display();
$dlist->Display();

+ 1
- 11
src/user/edit_baseinfo.php View File

@@ -10,16 +10,13 @@ require_once(dirname(__FILE__)."/config.php");
CheckRank(0, 0);
$menutype = 'config';
if (!isset($dopost)) $dopost = '';
$pwd2 = (empty($pwd2)) ? "" : $pwd2;
$row = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'");
$face = $row['face'];
if ($dopost == 'save') {
$svali = GetCkVdValue();
//校验CSRF
CheckCSRF();
if (strtolower($vdcode) != $svali || $svali == '') {
ReSETVdValue();
ShowMsg('验证码错误', '-1');
@@ -40,14 +37,12 @@ if ($dopost == 'save') {
$pwd2 = substr(md5($userpwd), 5, 20);
}
$addupquery = '';
//修改安全问题或Email
if ($email != $row['email'] || ($newsafequestion != 0 && $newsafeanswer != '')) {
if ($row['safequestion'] != 0 && ($row['safequestion'] != $safequestion || $row['safeanswer'] != $safeanswer)) {
ShowMsg('您的旧安全问题及答案不正确,不能修改Email或安全问题', '-1');
exit();
}
//修改Email
if ($email != $row['email']) {
if (!CheckEmail($email)) {
@@ -57,7 +52,6 @@ if ($dopost == 'save') {
$addupquery .= ",email='$email'";
}
}
//修改安全问题
if ($newsafequestion != 0 && $newsafeanswer != '') {
if (strlen($newsafeanswer) > 30) {
@@ -70,7 +64,6 @@ if ($dopost == 'save') {
}
}
}
//修改uname
if ($uname != $row['uname']) {
$rs = CheckUserID($uname, '昵称或公司名称', FALSE);
@@ -80,16 +73,13 @@ if ($dopost == 'save') {
}
$addupquery .= ",uname='$uname'";
}
//性别
if (!in_array($sex, array('男', '女', '保密'))) {
ShowMsg('请选择正常的性别', '-1');
exit();
}
$query1 = "UPDATE `#@__member` SET pwd='$pwd',sex='$sex'{$addupquery} where mid='".$cfg_ml->M_ID."' ";
$dsql->ExecuteNoneQuery($query1);
//如果是管理员,修改其后台密码
if ($cfg_ml->fields['matt'] == 10 && $pwd2 != "") {
$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);
exit();
}
include(DEDEMEMBER."/templets/edit_baseinfo.htm");
include(DEDEMEMBER."/templets/edit_baseinfo.htm");

+ 2
- 13
src/user/inc/archives_check.php View File

@@ -9,20 +9,16 @@
* @link https://www.dedebiz.com
*/
if (!defined('DEDEMEMBER')) exit('dedebiz');
include_once(DEDEINC.'/image.func.php');
include_once(DEDEINC.'/libraries/oxwindow.class.php');
$svali = GetCkVdValue();
if (strtolower($vdcode) != $svali || $svali == '') {
ResetVdValue();
ShowMsg('验证码错误', '-1');
exit();
}
//校验CSRF
CheckCSRF();
$flag = '';
$autokey = $remote = $dellink = $autolitpic = 0;
$userip = GetIP();
@@ -31,29 +27,24 @@ if ($typeid == 0) {
ShowMsg('请指定文档隶属的栏目', '-1');
exit();
}
$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);
//检测栏目是否有投稿权限
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) {
ShowMsg("您所选择的栏目不支持投稿", "-1");
exit();
}
//检查频道设定的投稿许可权限
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From #@__arcrank where rank='".$cInfos['sendrank']."' ");
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000);
exit();
}
//文档的默认状态
if ($cInfos['arcsta'] == 0) {
$ismake = 0;
@@ -65,7 +56,6 @@ if ($cInfos['arcsta'] == 0) {
$ismake = 0;
$arcrank = -1;
}
//对保存的内容进行处理
$money = 0;
$flag = $shorttitle = $color = $source = '';
@@ -76,7 +66,6 @@ if (empty($description)) $description = '';
$description = cn_substrR(HtmlReplace($description, 1), 250);
$keywords = cn_substrR(HtmlReplace($tags, 1), 30);
$mid = $cfg_ml->M_ID;
//检测文档是否重复
if ($cfg_mb_cktitle == 'Y') {
$row = $dsql->GetOne("SELECT * FROM `#@__archives` WHERE title LIKE '$title' ");
@@ -84,4 +73,4 @@ if ($cfg_mb_cktitle == 'Y') {
ShowMsg("对不起,请不要发布重复文档", "-1", "0", 5000);
exit();
}
}
}

+ 2
- 12
src/user/inc/archives_check_edit.php View File

@@ -9,10 +9,8 @@
* @link https://www.dedebiz.com
*/
if (!defined('DEDEMEMBER')) exit('dedebiz');
require_once(DEDEINC."/image.func.php");
require_once(DEDEINC."/libraries/oxwindow.class.php");
$flag = '';
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$userip = GetIP();
@@ -26,22 +24,17 @@ if ($typeid == 0) {
ShowMsg('请指定文档隶属的栏目', '-1');
exit();
}
//校验CSRF
CheckCSRF();
$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);
$addtable = $cInfos['addtable'];
//检测栏目是否有投稿权限
if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] != $channelid || $cInfos['cissend'] != 1) {
ShowMsg("您所选择的栏目不支持投稿", "-1");
exit();
}
//文档的默认状态
if ($cInfos['arcsta'] == 0) {
$ismake = 0;
@@ -53,7 +46,6 @@ if ($cInfos['arcsta'] == 0) {
$ismake = 0;
$arcrank = -1;
}
//对保存的内容进行处理
$title = cn_substrR(HtmlReplace($title, 1), $cfg_title_maxlen);
$writer = cn_substrR(HtmlReplace($writer, 1), 20);
@@ -61,15 +53,13 @@ if (empty($description)) $description = '';
$description = cn_substrR(HtmlReplace($description, 1), 250);
$keywords = cn_substrR(HtmlReplace($tags, 1), 30);
$mid = $cfg_ml->M_ID;
$midQuery = "SELECT mid FROM `#@__arctiny` WHERE id='$aid'";
$midRow = $dsql->GetOne($midQuery);
if ($midRow['mid'] != $mid) {
ShowMsg('您暂无权限在这里进行修改文档', 'javascript:;');
exit;
}
$isadmin = ($cfg_ml->fields['matt'] == 10 ? true : false);
if (empty($oldlitpic)) {
$oldlitpic = '';
}
}

+ 3
- 19
src/user/inc/inc_archives_functions.php View File

@@ -12,10 +12,8 @@ if (!defined('DEDEMEMBER')) exit('dedebiz');
require_once(DEDEINC.'/image.func.php');
require_once(DEDEINC.'/archives.func.php');
require_once(DEDEINC."/userlogin.class.php");
//检查用户是否被禁言
CheckNotAllow();
/**
* 获得HTML里的外部资源,针对图集
*
@@ -84,7 +82,6 @@ function GetCurContentAlbum($body, $rfurl, &$firstdd)
}
return $rsimg;
}
/**
* 图集里大图的小图
*
@@ -105,7 +102,6 @@ function GetImageMapDD($filename, $ddm, $oldname = '')
ImageResize($GLOBALS['cfg_basedir'].$filename, $ddm, 300, $toFile);
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."'; ");
$uptime = time();
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);
} else {
$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);
return TRUE;
}
/**
* 获得一个附加表单
*
@@ -156,7 +150,6 @@ function GetFormItemA($ctag)
{
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');
}
/**
* 获得带值的表单(编辑时用)
*
@@ -183,7 +175,6 @@ function GetFormItemValueA($ctag, $fvalue)
{
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=\"_csrf_token\" value=\"".$GLOBALS['csrf_token']."\" />";
//增加一个返回
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=\"_csrf_token\" value=\"".$GLOBALS['csrf_token']."\" />";
}
/**
* 创建指定ID的文档
*
@@ -274,7 +262,6 @@ function MakeArt($aid, $ismakesign = FALSE)
}
return $reurl;
}
/**
* 处理HTML文本、自动摘要、自动获取缩略图等
*
@@ -289,12 +276,10 @@ function AnalyseHtmlBody($body, &$description, $dtype = '')
global $cfg_mb_rmdown, $cfg_basehost, $cfg_auot_description, $arcID;
$autolitpic = (empty($autolitpic) ? '' : $autolitpic);
$body = stripslashes($body);
//远程图片本地化
if ($cfg_mb_rmdown == 'Y') {
$body = GetCurContent($body);
}
//自动摘要
if ($description == '' && $cfg_auot_description > 0) {
$description = cn_substr(html2text($body), $cfg_auot_description);
@@ -304,7 +289,6 @@ function AnalyseHtmlBody($body, &$description, $dtype = '')
$body = addslashes($body);
return $body;
}
/**
* 获得文章body里的外部资源
*
@@ -365,4 +349,4 @@ function GetCurContent(&$body)
}
$htd->Close();
return $body;
}
}

+ 10
- 26
src/user/inc/inc_batchup.php View File

@@ -10,7 +10,6 @@ if (!defined('DEDEINC')) exit('dedebiz');
* @link https://www.dedebiz.com
*/
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;
$aid = intval($aid);
//读取文档信息
$arctitle = '';
$arcurl = '';
$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' ";
$arcRow = $dsql->GetOne($arcQuery);
if (!is_array($arcRow)) {
return false;
}
//删除数据库的内容
$dsql->ExecuteNoneQuery(" DELETE FROM `#@__arctiny` WHERE id='$aid' ");
if ($arcRow['addtable'] != '') {
@@ -70,11 +66,9 @@ function DelArc($aid)
}
}
$tmpname = '/(\\'.$cfg_medias_dir.'.+?)(\"| )/';
//取出文章附件;
//取出文章附件
preg_match_all("$tmpname", $row["$nid"], $delname);
//移出重复附件;
//移出重复附件
$delname = array_unique($delname['1']);
foreach ($delname as $var) {
$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 `#@__member_stow` where aid='$aid'");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__taglist ` where aid='$aid'");
//删除HTML
if ($arcRow['ismake'] == -1 || $arcRow['arcrank'] != 0 || $arcRow['typeid'] == 0 || $arcRow['money'] > 0) {
return TRUE;
@@ -120,13 +113,11 @@ function DelArc($aid)
}
}
}
//删除文本文件
$filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt";
if (is_file($filename)) @unlink($filename);
return TRUE;
}
/**
* 删除不带主表内容模型的数据
*
@@ -138,30 +129,24 @@ function DelArcSg($aid)
{
global $dsql, $cfg_cookie_encode, $cfg_ml, $cfg_upload_switch, $cfg_medias_dir;
$aid = intval($aid);
//读取文档信息
$arctitle = '';
$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' ";
$arcRow = $dsql->GetOne($arcQuery);
if (!is_array($arcRow)) {
return FALSE;
}
//删除数据库的内容
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` where id='$aid' ");
$dsql->ExecuteNoneQuery("DELETE FROM `".$arcRow['addtable']."` where aid='$aid' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` where aid='$aid'");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_stow` where aid='$aid'");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__taglist ` where aid='$aid'");
//删除HTML
if ($arcRow['arcrank'] != 0 || $arcRow['typeid'] == 0) {
return TRUE;
@@ -196,7 +181,6 @@ function DelArcSg($aid)
$filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt";
return TRUE;
}
/**
* 获取真实路径
*
@@ -206,4 +190,4 @@ function GetTruePath()
{
$truepath = $GLOBALS["cfg_basedir"];
return $truepath;
}
}

+ 1
- 4
src/user/inc/inc_catalog_options.php View File

@@ -9,7 +9,6 @@
* @link https://www.dedebiz.com
*/
if (!defined('DEDEMEMBER')) exit('dedebiz');
/**
* 获取选项列表
*
@@ -47,7 +46,6 @@ function GetOptionList($selid = 0, $channeltype = 0)
}
return $OptionArrayList;
}
/**
* 逻辑递归
*
@@ -79,7 +77,6 @@ function LogicGetOptionArray($id, $step, $channeltype, $selid = 0)
LogicGetOptionArray($row->id, $step."─", $channeltype, $selid);
}
}
/**
* 自定义类型
*
@@ -105,4 +102,4 @@ function classification($mid, $mtypeid = 0, $channelid = 1)
$selected = '';
}
return $list;
}
}

+ 2
- 8
src/user/inc/inc_list_functions.php View File

@@ -29,7 +29,6 @@ function IsCommendArchives($iscommend)
}
return $s;
}
/**
* 获得推荐的标题
*
@@ -44,7 +43,6 @@ function GetCommendTitle($title, $iscommend)
}
return "$title";
}
$GLOBALS['RndTrunID'] = 1;
/**
* 更换颜色
@@ -62,7 +60,6 @@ function GetColor($color1, $color2)
return $color2;
}
}
/**
* 检查图片是否存在
*
@@ -77,7 +74,6 @@ function CheckPic($picname)
return "images/dfpic.gif";
}
}
/**
* 判断内容是否生成HTML
*
@@ -94,7 +90,6 @@ function IsHtmlArchives($ismake)
return "<span style='color:#dc3545'>未生成</span>";
}
}
/**
* 获得内容的限定级别名称
*
@@ -117,7 +112,6 @@ function GetRankName($arcrank)
return "不限";
}
}
/**
* 判断内容是否为图片文章
*
@@ -127,8 +121,8 @@ function GetRankName($arcrank)
function IsPicArchives($picname)
{
if ($picname != "") {
return "<span style='color:#dc3545'>(图)</span>";
return "<span style='color:#dc3545'>[图]</span>";
} else {
return "";
}
}
}

+ 2
- 6
src/user/inc/inc_pwd_functions.php View File

@@ -31,7 +31,6 @@ function random($length, $numeric = 0)
}
return $hash;
}
/**
* 邮件发送函数
*
@@ -63,7 +62,6 @@ function sendmail($email, $mailtitle, $mailbody, $headers)
}
}
}
/**
* 发送邮件;type为INSERT新建验证码,UPDATE修改验证码;
*
@@ -82,7 +80,7 @@ function newmail($mid, $userid, $mailto, $type, $send)
$mailtitle = $cfg_webname.":密码修改";
$mailto = $mailto;
$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') {
$key = md5($randval);
$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用户名
*
@@ -127,7 +124,6 @@ function member($mail, $userid)
if (!is_array($row)) return ShowMsg("对不起,用户ID输入错误", "-1");
else return $row;
}
/**
* 查询是否发送过验证码
*
@@ -156,4 +152,4 @@ function sn($mid, $userid, $mailto, $send = 'Y')
else {
return ShowMsg('对不起,请10分钟后再重新申请', 'login.php');
}
}
}

+ 5
- 14
src/user/index.php View File

@@ -11,9 +11,7 @@ require_once(dirname(__FILE__)."/config.php");
$uid = empty($uid) ? "" : RemoveXSS($uid);
if (empty($action)) $action = '';
if (empty($aid)) $aid = '';
$menutype = 'mydede';
//会员后台
if ($uid == '') {
$iscontrol = 'yes';
@@ -28,10 +26,8 @@ if ($uid == '') {
} else {
$ddsize = 0;
}
require_once(DEDEINC.'/channelunit.func.php');
/* 最新文档8条 */
//最新文档8条
$archives = array();
$sql = "SELECT arc.*, category.namerule, category.typedir, category.moresite, category.siteurl, category.sitepath, mem.userid
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']);
$archives[] = $row;
}
/** 调用访客记录 **/
//调用访客记录
$_vars['mid'] = $cfg_ml->M_ID;
if (empty($cfg_ml->fields['face'])) {
$cfg_ml->fields['face'] = ($cfg_ml->fields['sex'] == '女') ? 'templets/images/dfgirl.png' : 'templets/images/dfboy.png';
}
/** 我的收藏 **/
//我的收藏
$favorites = array();
$dsql->Execute('fl', "SELECT * FROM `#@__member_stow` WHERE mid='{$cfg_ml->M_ID}' LIMIT 5");
while ($arr = $dsql->GetArray('fl')) {
$favorites[] = $arr;
}
/** 有没新短信 **/
//有没新短信
$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();
$tpl = dirname(__FILE__)."/templets/index.htm";
$dpl->LoadTemplate($tpl);
$dpl->display();
}
}
}

+ 12
- 26
src/user/index_do.php View File

@@ -1,15 +1,14 @@
<?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");
if (empty($dopost)) $dopost = '';
if (empty($fmdo)) $fmdo = '';
/*********************
function check_email()
*******************/
@@ -32,10 +31,8 @@ if ($fmdo == 'sendMail') {
$mailbody .= "欢迎注册成为[{$cfg_webname}]的会员\r\n";
$mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏访问这地址:\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;
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;
@@ -53,7 +50,6 @@ if ($fmdo == 'sendMail') {
@mail($cfg_ml->fields['email'], $mailtitle, $mailbody, $headers);
}
}
ShowMsg('成功发送邮件,请稍后登录您的邮箱进行接收', '/user');
exit();
} else if ($fmdo == 'checkMail') {
@@ -82,7 +78,6 @@ if ($fmdo == 'sendMail') {
function Case_user()
*******************/
else if ($fmdo == 'user') {
//检查用户名是否存在
if ($dopost == "checkuser") {
AjaxHead();
@@ -106,7 +101,6 @@ else if ($fmdo == 'user') {
echo $msg;
exit();
}
//检查email是否存在
else if ($dopost == "checkmail") {
AjaxHead();
@@ -128,7 +122,6 @@ else if ($fmdo == 'user') {
echo $msg;
exit();
}
//引入注册页面
else if ($dopost == "regnew") {
$step = empty($step) ? 1 : intval(preg_replace("/[^\d]/", '', $step));
@@ -136,9 +129,9 @@ else if ($fmdo == 'user') {
exit();
}
/***************************
//积分换金币
function money2s() { }
***************************/
//积分换金币
function money2s() { }
***************************/
else if ($dopost == "money2s") {
CheckRank(0, 0);
if ($cfg_money_scores == 0) {
@@ -150,14 +143,12 @@ else if ($fmdo == 'user') {
ShowMsg('您没指定要兑换多少金币', '-1');
exit();
}
$needscores = $money * $cfg_money_scores;
if ($cfg_ml->fields['scores'] < $needscores) {
ShowMsg('您积分不足,不能换取这么多的金币', '-1');
exit();
}
$litmitscores = $cfg_ml->fields['scores'] - $needscores;
//保存记录
$mtime = time();
$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("UPDATE `#@__member` SET `scores`=$litmitscores, money= money + $money WHERE mid='".$cfg_ml->M_ID."' ");
//清除会员缓存
$cfg_ml->DelCache($cfg_ml->M_ID);
ShowMsg('成功兑换指定量的金币', 'operation.php');
exit();
}
}
/*********************
function login()
*******************/
@@ -200,10 +189,8 @@ else if ($fmdo == 'login') {
ShowMsg("密码不能为空", "-1", 0, 2000);
exit();
}
//检查帐号
$rs = $cfg_ml->CheckUser($userid, $pwd);
if ($rs == 0) {
ResetVdValue();
ShowMsg("用户名不存在", "index.php", 0, 2000);
@@ -228,7 +215,6 @@ else if ($fmdo == 'login') {
exit();
}
}
//退出登录
else if ($dopost == "exit") {
$cfg_ml->ExitCookie();
@@ -236,5 +222,5 @@ else if ($fmdo == 'login') {
exit();
}
} else {
ShowMsg("本页面禁止返回!", "index.php");
}
ShowMsg("本页面禁止返回", "index.php");
}

+ 1
- 1
src/user/login.php View File

@@ -12,4 +12,4 @@ if ($cfg_ml->IsLogin()) {
ShowMsg('您已经登录系统,无需重新注册', 'index.php');
exit();
}
require_once(dirname(__FILE__)."/templets/login.htm");
require_once(dirname(__FILE__)."/templets/login.htm");

+ 1
- 2
src/user/mypay.php View File

@@ -15,7 +15,6 @@ $menutype_son = 'op';
require_once(DEDEINC.'/datalistcp.class.php');
setcookie('ENV_GOBACK_URL', GetCurUrl(), time() + 3600, '/');
if (!isset($dopost)) $dopost = '';
if ($dopost == '') {
$query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc";
$dlist = new DataListCP();
@@ -29,4 +28,4 @@ if ($dopost == '') {
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功删除指定的交易记录!", "mypay.php");
exit();
}
}

+ 1
- 3
src/user/mystow.php View File

@@ -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";
$tpl = 'mystow';
}

$dsql->Execute('nn', 'SELECT indexname,stowname FROM `#@__member_stowtype`');
while ($row = $dsql->GetArray('nn')) {
$rows[] = $row;
}

$dlist = new DataListCP();
$dlist->pageSize = 20;
$dlist->SetTemplate(DEDEMEMBER."/templets/mystow.htm");
$dlist->SetSource($sql);
$dlist->Display();
$dlist->Display();

+ 2
- 3
src/user/operation.php View File

@@ -15,7 +15,6 @@ $menutype = 'mydede';
$menutype_son = 'op';
setcookie("ENV_GOBACK_URL", GetCurUrl(), time() + 3600, "/");
if (!isset($dopost)) $dopost = '';
/**
* 获取状态
*
@@ -40,6 +39,6 @@ if ($dopost == '') {
$ids = preg_replace("#[^0-9,]#", "", $ids);
$query = "DELETE FROM `#@__member_operation` WHERE aid IN($ids) AND mid='{$cfg_ml->M_ID}'";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功删除指定的交易记录!", "operation.php");
ShowMsg("成功删除指定的交易记录", "operation.php");
exit();
}
}

+ 1
- 4
src/user/pm.php View File

@@ -17,14 +17,12 @@ if ($cfg_mb_lit == 'Y') {
ShowMsg('由于系统开启了精简版会员空间,您不能向其它会员发短信息,不过您可以向他留言', '-1');
exit();
}
if (!isset($dopost)) {
$dopost = '';
}
//检查用户是否被禁言
CheckNotAllow();
$state = empty($state) ? 0 : intval($state);
if ($dopost == 'read') {
$sql = "SELECT * FROM `#@__member_friends` WHERE mid='{$cfg_ml->M_ID}' AND ftype!='-1' ORDER BY addtime DESC LIMIT 20";
$friends = array();
@@ -97,7 +95,6 @@ else {
$wsql = " `fromid` ='{$cfg_ml->M_ID}' AND folder LIKE 'outbox'";
$tname = "已发信息";
}
$query = "SELECT * FROM `#@__member_pms` WHERE $wsql ORDER BY sendtime DESC";
$dlist = new DataListCP();
$dlist->pageSize = 20;
@@ -105,4 +102,4 @@ else {
$dlist->SetTemplate(DEDEMEMBER.'/templets/pm-main.htm');
$dlist->SetSource($query);
$dlist->Display();
}
}

+ 1
- 10
src/user/resetpassword.php View File

@@ -12,21 +12,17 @@ require_once(dirname(__FILE__)."/config.php");
require_once(DEDEMEMBER."/inc/inc_pwd_functions.php");
if (empty($dopost)) $dopost = "";
$id = isset($id) ? intval($id) : 0;
if ($dopost == "") {
include(dirname(__FILE__)."/templets/resetpassword.htm");
} elseif ($dopost == "getpwd") {
//验证验证码
if (!isset($vdcode)) $vdcode = '';
$svali = GetCkVdValue();
if (strtolower($vdcode) != $svali || $svali == '') {
ResetVdValue();
ShowMsg("对不起,验证码输入错误", "-1");
exit();
}
//验证邮箱,用户名
if (empty($mail) && empty($userid)) {
showmsg('对不起,请输入用户名或邮箱', '-1');
@@ -39,7 +35,6 @@ if ($dopost == "") {
exit();
}
$member = member($mail, $userid);
//以邮件方式取回密码;
if ($type == 1) {
//判断系统邮件服务是否开启
@@ -49,7 +44,6 @@ if ($dopost == "") {
showmsg('对不起邮件服务暂未开启,请联系管理员', 'login.php');
exit();
}
//以安全问题取回密码;
} else if ($type == 2) {
if ($member['safequestion'] == 0) {
@@ -64,9 +58,7 @@ if ($dopost == "") {
$sql = "SELECT safequestion,safeanswer,userid,email FROM `#@__member` WHERE mid = '$mid'";
$row = $db->GetOne($sql);
if (empty($safequestion)) $safequestion = '';
if (empty($safeanswer)) $safeanswer = '';
if ($row['safequestion'] === $safequestion && $row['safeanswer'] === $safeanswer) {
sn($mid, $row['userid'], $row['email'], 'N');
exit();
@@ -97,7 +89,6 @@ if ($dopost == "") {
require_once(dirname(__FILE__)."/templets/resetpassword2.htm");
} elseif ($setp == 2) {
if (isset($key)) $pwdtmp = $key;
$sn = md5(trim($pwdtmp));
if ($row['pwd'] == $sn) {
if ($pwd != "") {
@@ -118,4 +109,4 @@ if ($dopost == "") {
showmsg('对不起,临时密码错误', '-1');
exit;
}
}
}

+ 2
- 3
src/user/shops_orders.php View File

@@ -13,7 +13,6 @@ include_once DEDEINC.'/datalistcp.class.php';
$menutype = 'mydede';
$menutype_son = 'op';
if (!isset($dopost)) $dopost = '';
/**
* 获取状态
*
@@ -56,7 +55,7 @@ if ($dopost == '') {
$dsql->ExecuteNoneQuery($query2);
$dsql->ExecuteNoneQuery($query3);
}
ShowMsg("成功删除指定的交易记录!", "shops_orders.php");
ShowMsg("成功删除指定的交易记录", "shops_orders.php");
exit();
}
}
}

+ 3
- 5
src/user/shops_point.php View File

@@ -17,21 +17,19 @@ if (isset($oid)) {
exit();
}
$priceCount = $row['priceCount'];
$members = $dsql->GetOne("SELECT `money` FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'");
if ($members['money'] < $priceCount) {
ShowMsg("支付失败点数不够", "-1");
exit();
}
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}'");
ShowMsg("下单,支付成功,等待商家发货", "../user/shops_products.php?oid=".$oid);
ShowMsg("下单,支付成功,等待商家发货", "../user/shops_products.php?oid=".$oid);
exit();
} else {
ShowMsg("支付失败,请联系管理员", "-1");
ShowMsg("支付失败请联系管理员", "-1");
exit();
}
} else {
exit("403 Forbidden!");
}
}

+ 2
- 7
src/user/shops_products.php View File

@@ -13,7 +13,6 @@ include_once DEDEINC.'/datalistcp.class.php';
$menutype = 'mydede';
$menutype_son = 'op';
if (!isset($dopost)) $dopost = '';
if ($dopost == '') {
$do = isset($do) ? trim($do) : '';
$oid = isset($oid) ? preg_replace("#[^-0-9A-Z]#i", "", $oid) : '';
@@ -24,7 +23,6 @@ if ($dopost == '') {
ShowMsg("已确认订单", 'shops_products.php?oid='.$oid);
exit();
}
$row = $dsql->GetOne("SELECT * FROM `#@__shops_userinfo` WHERE userid='".$cfg_ml->M_ID."' AND oid='$oid'");
if (!isset($row['oid'])) {
ShowMsg("订单不存在", -1);
@@ -44,7 +42,6 @@ if ($dopost == '') {
unset($rs);
$addsql = " AND oid='".$oid."'";
}
$sql = "SELECT * FROM `#@__shops_products` WHERE userid='".$cfg_ml->M_ID."' $addsql ORDER BY aid ASC";
$dl = new DataListCP();
$dl->pageSize = 20;
@@ -65,11 +62,10 @@ if ($dopost == '') {
$dsql->ExecuteNoneQuery($query2);
$dsql->ExecuteNoneQuery($query3);
}
ShowMsg("成功删除指定的交易记录!", "shops_products.php");
ShowMsg("成功删除指定的交易记录", "shops_products.php");
exit();
}
}
/**
* 获取状态
*
@@ -92,7 +88,6 @@ function GetSta($sta, $oid)
return '已完成';
}
}
/**
* 购物车时间
*
@@ -104,4 +99,4 @@ function carTime($oid)
global $dsql;
$row = $dsql->GetOne("SELECT stime FROM `#@__shops_orders` WHERE oid='$oid'");
return Mydate('Y-m-d h:i:s', $row['stime']);
}
}

+ 7
- 28
src/user/soft_add.php View File

@@ -23,7 +23,6 @@ require_once(DEDEMEMBER."/inc/inc_archives_functions.php");
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$menutype = 'content';

/*-------------
function _ShowForm(){ }
--------------*/
@@ -33,12 +32,10 @@ if (empty($dopost)) {
ShowMsg('模型不正确', '-1');
exit();
}

//如果限制了会员级别或类型,则允许游客投稿选项无效
if ($cInfos['sendrank'] > 0 || $cInfos['usertype'] != '') {
CheckRank(0, 0);
}

//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From `#@__arcrank` where rank='".$cInfos['sendrank']."' ");
@@ -52,21 +49,18 @@ if (empty($dopost)) {
include(DEDEMEMBER."/templets/soft_add.htm");
exit();
}

/*------------------------------
function _SaveArticle(){ }
------------------------------*/
else if ($dopost == 'save') {
$description = '';
include(DEDEMEMBER.'/inc/archives_check.php');

//生成文档ID
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");
exit();
}

//分析处理附加表数据
$inadd_f = '';
$inadd_v = '';
@@ -86,7 +80,6 @@ else if ($dopost == 'save') {
if (!isset(${$vs[0]})) {
${$vs[0]} = '';
} else if ($vs[1] == 'htmltext' || $vs[1] == 'textdata')

//HTML文本特殊处理
{
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $litpic, $keywords, $vs[1]);
@@ -100,33 +93,27 @@ else if ($dopost == 'save') {
$inadd_v .= " ,'".${$vs[0]}."' ";
}
}

//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_f) {
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1");
ShowMsg("提交表单同系统配置不相符请重新提交", "-1");
exit();
}
}

//处理图片文档的自定义属性
if ($litpic != '') {
$flag = 'p';
}
$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)) {
$gerr = $dsql->GetError();
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID' ");
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请联系管理员", "javascript:;");
exit();
}

//软件链接列表
$softurl1 = stripslashes($softurl1);
$softurl1 = str_replace(array("{dede:", "{/dede:", "}"), "#", $softurl1);
@@ -152,7 +139,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank'
}
$urls = addslashes($urls);
$softsize = $softsize.$unit;

//保存到附加表
$needmoney = @intval($needmoney);
if ($needmoney > 100) $needmoney = 100;
@@ -164,10 +150,8 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank'
ShowMsg("没找到当前模型[{$channelid}]的主表信息,无法完成操作", "javascript:;");
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)) {
$gerr = $dsql->GetError();
$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:;");
exit();
}

//增加积分
$cfg_sendarc_scores = intval($cfg_sendarc_scores);
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_sendarc_scores} WHERE mid='".$cfg_ml->M_ID."' ; ");
//更新统计
countArchives($channelid);

//生成HTML
InsertTags($tags, $arcID);
$artUrl = MakeArt($arcID, TRUE);
if ($artUrl == '') {
$artUrl = $cfg_phpurl."/view.php?aid=$arcID";
}

ClearMyAddon($arcID, $title);

//返回成功信息
$msg = "
请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布软件</a>
&nbsp;&nbsp;
<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);
$winform = $win->GetWindow("hand", "&nbsp;", FALSE);
$win->Display();
}
}

+ 5
- 15
src/user/soft_edit.php View File

@@ -17,7 +17,6 @@ require_once(DEDEMEMBER."/inc/inc_archives_functions.php");
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$menutype = 'content';
/*-------------
function _ShowForm(){ }
--------------*/
@@ -48,7 +47,7 @@ if (empty($dopost)) {
$query = "SELECT * FROM `#@__channeltype` WHERE id='".$row['channel']."'";
$cInfos = $dsql->GetOne($query);
if (!is_array($cInfos)) {
ShowMsg("读取频道配置信息出错!", "javascript:;");
ShowMsg("读取频道配置信息出错", "javascript:;");
exit();
}
$addtable = $cInfos['addtable'];
@@ -84,7 +83,6 @@ function _SaveArticle(){ }
else if ($dopost == 'save') {
$description = '';
include(DEDEMEMBER.'/inc/archives_check_edit.php');
//分析处理附加表数据
$inadd_f = '';
if (!empty($dede_addonfields)) {
@@ -105,10 +103,8 @@ else if ($dopost == 'save') {
}
$body = AnalyseHtmlBody($body, $description);
$body = HtmlReplace($body, -1);
//处理图片文档的自定义属性
if ($litpic != '') $flag = 'p';
//分析处理附加表数据
$inadd_f = '';
$inadd_v = '';
@@ -122,7 +118,6 @@ else if ($dopost == 'save') {
continue;
}
$vs = explode(',', $v);
//HTML文本特殊处理
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $litpic, $keywords, $vs[1]);
@@ -135,15 +130,13 @@ else if ($dopost == 'save') {
$inadd_f .= ",`{$vs[0]}` = '".${$vs[0]}."'";
}
}
//这里对前台提交的附加数据进行一次校验
$fontiterm = PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']), 'autofield', FALSE);
if ($fontiterm != $inadd_f) {
ShowMsg("提交表单同系统配置不相符,请重新提交", "-1");
ShowMsg("提交表单同系统配置不相符请重新提交", "-1");
exit();
}
}
//修改主档案表
$upQuery = "UPDATE `#@__archives` set
ismake='$ismake',
@@ -159,7 +152,6 @@ else if ($dopost == 'save') {
ShowMsg("更新数据库archives表时出错,请检查", "-1");
exit();
}
//软件链接列表
$urls = '';
for ($i = 1; $i <= 9; $i++) {
@@ -177,7 +169,6 @@ else if ($dopost == 'save') {
}
}
$urls = addslashes($urls);
//更新附加表
$needmoney = @intval($needmoney);
if ($needmoney > 100) $needmoney = 100;
@@ -201,7 +192,7 @@ else if ($dopost == 'save') {
introduce='$body'{$inadd_f}
WHERE aid='$aid'; ";
if (!$dsql->ExecuteNoneQuery($inQuery)) {
ShowMsg("更新数据库附加表 addonsoft 时出错,请检查原因", "-1");
ShowMsg("更新数据库附加表时出错,请检查原因", "-1");
exit();
}
}
@@ -210,9 +201,8 @@ else if ($dopost == 'save') {
if ($artUrl == '') {
$artUrl = $cfg_phpurl."/view.php?aid=$aid";
}
//返回成功信息
$msg = "  请选择您的后续操作:
$msg = "请选择您的后续操作:
<a href='soft_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新软件</a>
&nbsp;&nbsp;
<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);
$winform = $win->GetWindow("hand", "&nbsp;", FALSE);
$win->Display();
}
}

+ 6
- 6
src/user/templets/album_add.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 7
- 7
src/user/templets/album_edit.htm View File

@@ -3,13 +3,13 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<body>
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?>


+ 5
- 5
src/user/templets/archives_add.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/archives_edit.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/archives_sg_add.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/archives_sg_edit.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/article_add.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 6
- 6
src/user/templets/article_edit.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<body>
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?>


+ 5
- 5
src/user/templets/buy.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 6
- 6
src/user/templets/buy_action_payment.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<body>
<?php include(DEDEMEMBER."/templets/top_login.htm"); ?>


+ 5
- 5
src/user/templets/content_list.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<script type="text/javascript">
function viewArc(aid) {


+ 5
- 5
src/user/templets/content_sg_list.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<script type="text/javascript">
function viewArc(aid) {


+ 7
- 7
src/user/templets/edit_baseinfo.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>
@@ -158,8 +158,8 @@
<div class="input-group">
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate"
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="点击我更换图片" />
</div>
</div>


+ 5
- 5
src/user/templets/edit_email.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/edit_face.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 6
- 9
src/user/templets/footer.htm View File

@@ -13,22 +13,19 @@
</button>
</div>
<!-- /.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>
//校验是否登录
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);
if (result.code === 200) {
$("#_login").html(`
欢迎,${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").attr("disabled", "disabled");


+ 2
- 3
src/user/templets/header.htm View File

@@ -1,11 +1,10 @@
<div class="container header">
<header class="pt-3">
<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="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 name="q" type="text" class="form-control" placeholder="输入搜索关键词">
<div class="input-group-append">


+ 7
- 7
src/user/templets/index-notlogin.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>
@@ -38,8 +38,8 @@
<div class="input-group">
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate"
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="点击我更换图片" />
</div>
</div>


+ 6
- 6
src/user/templets/index.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
.member a.btn {
color: white;


+ 0
- 1
src/user/templets/info.htm View File

@@ -3,7 +3,6 @@
<a href="<?php echo $cfg_memberurl;?>/">
<img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" alt="<?php echo $cfg_ml->M_MbType; ?>的头像">
</a>
<div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span></div>
<div>
<h4><?php echo $cfg_ml->M_LoginID; ?></h4>


+ 7
- 7
src/user/templets/login.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>
@@ -38,8 +38,8 @@
<div class="input-group">
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate"
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="点击我更换图片" />
</div>
</div>


+ 5
- 5
src/user/templets/mypay.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/mystow.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/operation.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 7
- 7
src/user/templets/pm-main.htm View File

@@ -3,13 +3,13 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<script>
//阅读消息


+ 7
- 7
src/user/templets/reg-new.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>
@@ -31,8 +31,8 @@
<div class="input-group">
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate"
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="点击我更换图片" />
</div>
</div>


+ 8
- 8
src/user/templets/resetpassword.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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">
function changeAuthCode() {
var num = new Date().getTime();
@@ -81,8 +81,8 @@
<div class="input-group">
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate"
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="点击我更换图片" />
</div>
</div>


+ 6
- 6
src/user/templets/resetpassword2.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<body>
<?php include(DEDEMEMBER."/templets/top.htm"); ?>


+ 8
- 8
src/user/templets/resetpassword3.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<body>
@@ -41,8 +41,8 @@
<div class="input-group">
<input name="vdcode" placeholder="输入图形验证码" type="text" class="form-control" id="iptValidate"
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="点击我更换图片" />
</div>
</div>


+ 6
- 6
src/user/templets/shops_action_payment.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<body class="buycarpage">


+ 5
- 6
src/user/templets/shops_orders.htm View File

@@ -1,14 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/shops_products.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
</head>
<body>


+ 5
- 5
src/user/templets/soft_add.htm View File

@@ -3,11 +3,11 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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>
<script type="text/javascript">
var startNum = 2;


+ 6
- 6
src/user/templets/soft_edit.htm View File

@@ -3,12 +3,12 @@
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<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">
var startNum = 2;
function MakeUpload() {


+ 0
- 1
src/user/templets/top.htm View File

@@ -1,7 +1,6 @@
<nav class="site-nav bg-light py-2">
<div class="container">
<div class="row">
<div class="col-12 d-flex justify-content-end user" id="_login">
<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>


+ 2
- 3
src/user/templets/top_login.htm View File

@@ -1,8 +1,7 @@
<div class="container header">
<header class="py-3">
<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">
<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">
@@ -10,7 +9,7 @@
</a>
<a><?php echo $cfg_ml->M_LoginID; ?>
</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>
</a>
</div>


Loading…
Cancel
Save