hehaiqiang 2 vuotta sitten
commit
40ee23dd82
100 muutettua tiedostoa jossa 228 lisäystä ja 0 poistoa
  1. 8 0
      .idea/MayiCMS_59SE_utf8_php54.iml
  2. 15 0
      .idea/deployment.xml
  3. 8 0
      .idea/modules.xml
  4. 6 0
      .idea/php.xml
  5. 14 0
      .idea/webServers.xml
  6. 45 0
      .idea/workspace.xml
  7. 1 0
      .user.ini
  8. 131 0
      about.php
  9. BIN
      attachment/adv/160x600.gif
  10. BIN
      attachment/adv/1x1.gif
  11. BIN
      attachment/adv/acenter.jpg
  12. BIN
      attachment/adv/baisheng.gif
  13. BIN
      attachment/adv/banner.gif
  14. BIN
      attachment/adv/chang03zikao.gif
  15. BIN
      attachment/adv/couplefloat.gif
  16. BIN
      attachment/adv/couplefloat.jpg
  17. BIN
      attachment/adv/ggad.gif
  18. BIN
      attachment/adv/had02.gif
  19. BIN
      attachment/adv/headerbanner.gif
  20. BIN
      attachment/adv/headerbanner1.gif
  21. BIN
      attachment/adv/headerbanner1.png
  22. BIN
      attachment/adv/headerbanner2.gif
  23. BIN
      attachment/adv/headerbanner2.png
  24. BIN
      attachment/adv/headerbanner3.gif
  25. BIN
      attachment/adv/headerbanner3.png
  26. BIN
      attachment/adv/headerbanner4.gif
  27. BIN
      attachment/adv/headerbanner4.png
  28. BIN
      attachment/adv/headerbanner5.gif
  29. BIN
      attachment/adv/headerbanner6.gif
  30. BIN
      attachment/adv/headerbanner7.gif
  31. BIN
      attachment/adv/hlg.png
  32. BIN
      attachment/adv/indexcatad.gif
  33. BIN
      attachment/adv/intercat.gif
  34. BIN
      attachment/adv/intercat.png
  35. BIN
      attachment/adv/intercatad2.gif
  36. BIN
      attachment/adv/intercatad2.jpg
  37. BIN
      attachment/adv/js1.gif
  38. BIN
      attachment/adv/pagetop.gif
  39. BIN
      attachment/adv/pagetop.jpg
  40. BIN
      attachment/adv/topbanner.gif
  41. BIN
      attachment/adv/topbanner.png
  42. BIN
      attachment/adv/topbanner1.png
  43. BIN
      attachment/adv/topbanner2.gif
  44. BIN
      attachment/adv/topbanner2.jpg
  45. 0 0
      attachment/face/index.html
  46. BIN
      attachment/focus/12640655906csju.jpg
  47. BIN
      attachment/focus/1264065647ohvmy.jpg
  48. BIN
      attachment/focus/126406568947c7a.jpg
  49. BIN
      attachment/focus/1264154115lz6zz.jpg
  50. BIN
      attachment/focus/1264154161u7bxl.jpg.baiduyun.downloading
  51. 0 0
      attachment/focus/1264154161u7bxl.jpg.baiduyun.downloading.cfg
  52. BIN
      attachment/focus/1314769962qhgmv.gif
  53. BIN
      attachment/focus/1314770242auudu.gif
  54. BIN
      attachment/focus/1314770413ldwaj.jpg
  55. 0 0
      attachment/focus/index.html
  56. BIN
      attachment/focus/pre_1314769962qhgmv.gif
  57. BIN
      attachment/focus/pre_1314770242auudu.gif
  58. BIN
      attachment/focus/pre_1314770413ldwaj.jpg
  59. BIN
      attachment/ggg/160x600.gif
  60. BIN
      attachment/ggg/1x1.gif
  61. BIN
      attachment/ggg/acenter.jpg
  62. BIN
      attachment/ggg/baisheng.gif
  63. BIN
      attachment/ggg/banner.gif
  64. BIN
      attachment/ggg/chang03zikao.gif
  65. BIN
      attachment/ggg/couplefloat.gif
  66. BIN
      attachment/ggg/couplefloat.jpg
  67. BIN
      attachment/ggg/ggad.gif
  68. BIN
      attachment/ggg/had02.gif
  69. BIN
      attachment/ggg/headerbanner.gif
  70. BIN
      attachment/ggg/headerbanner1.gif
  71. BIN
      attachment/ggg/headerbanner1.png
  72. BIN
      attachment/ggg/headerbanner2.gif
  73. BIN
      attachment/ggg/headerbanner2.png
  74. BIN
      attachment/ggg/headerbanner3.gif
  75. BIN
      attachment/ggg/headerbanner3.png
  76. BIN
      attachment/ggg/headerbanner4.gif
  77. BIN
      attachment/ggg/headerbanner4.png
  78. BIN
      attachment/ggg/headerbanner5.gif
  79. BIN
      attachment/ggg/headerbanner6.gif
  80. BIN
      attachment/ggg/headerbanner7.gif
  81. BIN
      attachment/ggg/hlg.png
  82. BIN
      attachment/ggg/indexcatad.gif
  83. BIN
      attachment/ggg/intercat.gif
  84. BIN
      attachment/ggg/intercat.png
  85. BIN
      attachment/ggg/intercatad2.gif
  86. BIN
      attachment/ggg/intercatad2.jpg
  87. BIN
      attachment/ggg/js1.gif
  88. BIN
      attachment/ggg/pagetop.gif
  89. BIN
      attachment/ggg/pagetop.jpg
  90. BIN
      attachment/ggg/topbanner.gif
  91. BIN
      attachment/ggg/topbanner.png
  92. BIN
      attachment/ggg/topbanner1.png
  93. BIN
      attachment/ggg/topbanner2.gif
  94. BIN
      attachment/ggg/topbanner2.jpg
  95. 0 0
      attachment/index.html
  96. BIN
      attachment/information/201908/1566037617jjh8y.jpg
  97. BIN
      attachment/information/201908/pre_1566037617jjh8y.jpg
  98. 0 0
      attachment/information/index.html
  99. BIN
      attachment/links/baidu.gif
  100. 0 0
      attachment/links/chinaz.gif

+ 8 - 0
.idea/MayiCMS_59SE_utf8_php54.iml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="WEB_MODULE" version="4">
3
+  <component name="NewModuleRootManager">
4
+    <content url="file://$MODULE_DIR$" />
5
+    <orderEntry type="inheritedJdk" />
6
+    <orderEntry type="sourceFolder" forTests="false" />
7
+  </component>
8
+</module>

+ 15 - 0
.idea/deployment.xml

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="PublishConfigData" autoUpload="Always" serverName="120" remoteFilesAllowedToDisappearOnAutoupload="false">
4
+    <serverData>
5
+      <paths name="120">
6
+        <serverdata>
7
+          <mappings>
8
+            <mapping deploy="/" local="$PROJECT_DIR$" web="/" />
9
+          </mappings>
10
+        </serverdata>
11
+      </paths>
12
+    </serverData>
13
+    <option name="myAutoUpload" value="ALWAYS" />
14
+  </component>
15
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/MayiCMS_59SE_utf8_php54.iml" filepath="$PROJECT_DIR$/.idea/MayiCMS_59SE_utf8_php54.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6 - 0
.idea/php.xml

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="PhpProjectSharedConfiguration" php_language_level="7">
4
+    <option name="suggestChangeDefaultLanguageLevel" value="false" />
5
+  </component>
6
+</project>

+ 14 - 0
.idea/webServers.xml

@@ -0,0 +1,14 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="WebServers">
4
+    <option name="servers">
5
+      <webServer id="9c22cbd3-9d7f-47ed-a143-7d8178fbf071" name="120">
6
+        <fileTransfer rootFolder="/www/wwwroot/www.mayicms.com" accessType="SFTP" host="120.77.87.209" port="22" sshConfigId="2236affc-f6f1-4ab3-a4e7-6ff9795c372a" sshConfig="root@120.77.87.209:22 password">
7
+          <advancedOptions>
8
+            <advancedOptions dataProtectionLevel="Private" passiveMode="true" shareSSLContext="true" />
9
+          </advancedOptions>
10
+        </fileTransfer>
11
+      </webServer>
12
+    </option>
13
+  </component>
14
+</project>

+ 45 - 0
.idea/workspace.xml

@@ -0,0 +1,45 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="0d7c0192-68c4-48ae-a2b5-42d44252525e" name="Default Changelist" comment="" />
5
+    <option name="SHOW_DIALOG" value="false" />
6
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
+    <option name="LAST_RESOLUTION" value="IGNORE" />
9
+  </component>
10
+  <component name="ComposerSettings">
11
+    <execution />
12
+  </component>
13
+  <component name="ProjectId" id="2e5aC3tIpcmDnO7Eexq689kzWJa" />
14
+  <component name="ProjectViewState">
15
+    <option name="hideEmptyMiddlePackages" value="true" />
16
+    <option name="showLibraryContents" value="true" />
17
+  </component>
18
+  <component name="PropertiesComponent">
19
+    <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
20
+    <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
21
+    <property name="WebServerToolWindowFactoryState" value="false" />
22
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/../chuxubao" />
23
+    <property name="vue.rearranger.settings.migration" value="true" />
24
+  </component>
25
+  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
26
+  <component name="TaskManager">
27
+    <task active="true" id="Default" summary="Default task">
28
+      <changelist id="0d7c0192-68c4-48ae-a2b5-42d44252525e" name="Default Changelist" comment="" />
29
+      <created>1711196761364</created>
30
+      <option name="number" value="Default" />
31
+      <option name="presentableId" value="Default" />
32
+      <updated>1711196761364</updated>
33
+      <workItem from="1711196762412" duration="626000" />
34
+      <workItem from="1711197466376" duration="121000" />
35
+      <workItem from="1711197593751" duration="1147000" />
36
+      <workItem from="1711199113823" duration="66000" />
37
+      <workItem from="1711207772416" duration="402000" />
38
+      <workItem from="1711259962316" duration="26000" />
39
+    </task>
40
+    <servers />
41
+  </component>
42
+  <component name="TypeScriptGeneratedFilesManager">
43
+    <option name="version" value="3" />
44
+  </component>
45
+</project>

+ 1 - 0
.user.ini

@@ -0,0 +1 @@
1
+open_basedir=/www/wwwroot/www.mayicms.com/:/tmp/

+ 131 - 0
about.php

@@ -0,0 +1,131 @@
1
+<?php
2
+
3
+define('IN_SMT', true);
4
+define('CURSCRIPT', 'about');
5
+define('IN_MYMPS', true);
6
+require_once dirname(__FILE__) . '/include/global.php';
7
+require_once dirname(__FILE__) . '/data/config.php';
8
+require_once MYMPS_DATA . '/config.db.php';
9
+require_once MYMPS_INC . '/db.class.php';
10
+ifsiteopen();
11
+(!$part || !in_array($part, array('aboutus', 'friendlink', 'faq', 'announce', 'sitemap', 'googlemap'))) && ($part = 'aboutus');
12
+$id = isset($id) ? intval($id) : '';
13
+$page = isset($page) ? intval($page) : '';
14
+$action = isset($action) ? trim($action) : '';
15
+
16
+if ($action == 'dopost') {
17
+	if (!($randcode = mymps_chk_randcode($checkcode))) {
18
+		write_msg('验证码输入错误,请返回重新输入');
19
+	}
20
+
21
+	$url = $url ? trim(mhtmlspecialchars($url)) : '';
22
+	$webname = $webname ? trim(mhtmlspecialchars($webname)) : '';
23
+	$weblogo = $weblogo ? trim(mhtmlspecialchars($weblogo)) : '';
24
+	$msg = $msg ? textarea_post_change($msg) : '';
25
+	$email = $email ? trim(mhtmlspecialchars($email)) : '';
26
+	$typeid = $typeid ? intval($typeid) : '';
27
+	if (empty($webname) || empty($url)) {
28
+		write_msg('网站名称和网址不能为空!');
29
+	}
30
+
31
+	if ($email && !is_email($email)) {
32
+		write_msg('您的email输入不正确!');
33
+	}
34
+
35
+	$sql = 'INSERT INTO `' . $db_mymps . 'flink`(url,webname,weblogo,msg,email,typeid,createtime,ischeck)
36
+		VALUES(\'' . $url . '\',\'' . $webname . '\',\'' . $weblogo . '\',\'' . $msg . '\',\'' . $email . '\',\'' . $typeid . '\',\'' . $timestamp . '\',\'1\'); ';
37
+	$res = $db->query($sql);
38
+	write_msg('链接申请提交成功,管理员审核通过后显示', Rewrite('about', array('part' => 'friendlink')));
39
+	exit();
40
+}
41
+
42
+$cache = get_cache_config();
43
+require_once MYMPS_INC . '/cachepages.class.php';
44
+
45
+if ($part == 'aboutus') {
46
+	$seo = $seo ? $seo : get_seoset();
47
+	$rewrite = $seo['seo_force_category'];
48
+
49
+	if ($rewrite != 'active') {
50
+		$mayimobile = get_mobile_settings();
51
+		$mayimobile['mobiledomain'] = $mayimobile['mobiledomain'] ? $mayimobile['mobiledomain'] : $mymps_global['SiteUrl'] . '/m';
52
+		$mayimobile['mobileuri'] = $mayimobile['mobiledomain'] . ($_SERVER['HTTP_X_ORIGINAL_URL'] ? $_SERVER['HTTP_X_ORIGINAL_URL'] : $_SERVER['REQUEST_URI']);
53
+
54
+		if ($ifmobile) {
55
+			write_msg('', $mayimobile['mobileuri']);
56
+			exit();
57
+		}
58
+	}
59
+
60
+	!$id && ($id = $db->getOne('SELECT MIN(id) FROM `' . $db_mymps . 'about`'));
61
+	$cachepages = new cachepages($cache['aboutus']['time'], 'aboutus_' . $id);
62
+	$cachetime = 0 < $cache['aboutus']['time'] ? true : false;
63
+	$cachepages->cacheCheck();
64
+	$aboutus_all = get_aboutus(0);
65
+	$aboutus = get_aboutus($id);
66
+	$loc = get_location('aboutus', '', $aboutus['typename']);
67
+	$page_title = $loc['page_title'];
68
+	$location = $loc['location'];
69
+}
70
+else if ($part == 'announce') {
71
+	$cachepages = new cachepages($cache['announce']['time'], 'announce');
72
+	$cachetime = 0 < $cache['announce']['time'] ? true : false;
73
+	$cachepages->cacheCheck();
74
+	$loc = get_location('aboutus', '', '网站公告');
75
+	$query = $db->query('SELECT * FROM `' . $db_mymps . 'announce` WHERE begintime<=\'' . $timestamp . '\' AND (endtime=\'0\' OR endtime>\'' . $timestamp . '\') ORDER BY id DESC');
76
+
77
+	while ($row = $db->fetchRow($query)) {
78
+		$arr['id'] = $row['id'];
79
+		$arr['title'] = $row['title'];
80
+		$arr['begintime'] = $row['begintime'] == 0 ? $row['pubdate'] : $row['begintime'];
81
+		$arr['endtime'] = $row['endtime'];
82
+		$arr['author'] = $row['author'];
83
+		$arr['content'] = $row['redirecturl'] ? '<a href=' . $row[redirecturl] . ' target=_blank>' . $row[redirecturl] . '</a>' : $row['content'];
84
+		$arr['uri'] = $row['redirecturl'] ? $row['redirecturl'] : Rewrite('about', array('part' => 'aboutus#' . $row['id']));
85
+		$announce[] = $arr;
86
+	}
87
+}
88
+else if ($part == 'faq') {
89
+	!$id && ($id = $db->getOne('SELECT MIN(id) FROM `' . $db_mymps . 'faq`'));
90
+	$cachepages = new cachepages($cache['faq']['time'], 'faq_' . $id);
91
+	$cachetime = 0 < $cache['faq']['time'] ? true : false;
92
+	$cachepages->cacheCheck();
93
+	$faq_type = get_faq();
94
+
95
+	if (!($faq = get_faq($id))) {
96
+		write_msg('您指定的帮助主题不存在!');
97
+	}
98
+
99
+	$loc = get_location('faq', '', $faq['title']);
100
+}
101
+else if ($part == 'friendlink') {
102
+	require MYMPS_INC . '/flink.fun.php';
103
+	$cachepages = new cachepages($cache['friendlink']['time'], 'friendlink');
104
+	$cachetime = 0 < $cache['friendlink']['time'] ? true : false;
105
+	$cachepages->cacheCheck();
106
+	$loc = get_location('friendlink', '', '友情链接');
107
+	$flink = get_flink();
108
+}
109
+else if ($part == 'sitemap') {
110
+	$loc = get_location('', '', '网站地图');
111
+	$cachepages = new cachepages($cache['sitemap']['time'], 'sitemap');
112
+	$cachetime = 0 < $cache['sitemap']['time'] ? true : false;
113
+	$cachepages->cacheCheck();
114
+	$categories = get_categories_tree(0, 'category');
115
+}
116
+
117
+$page_title = $loc['page_title'];
118
+$location = $loc['location'];
119
+$about = array();
120
+$about['aboutus_uri'] = Rewrite('about', array('part' => 'aboutus'));
121
+$about['news_uri'] = Rewrite('news', array('part' => 'index'));
122
+$about['faq_uri'] = Rewrite('about', array('part' => 'faq'));
123
+$about['yp_uri'] = Rewrite('corp', array('part' => 'index'));
124
+$about['friendlink_uri'] = Rewrite('about', array('part' => 'friendlink'));
125
+$about['announce_uri'] = Rewrite('about', array('part' => 'announce'));
126
+$about['sitemap_uri'] = Rewrite('about', array('part' => 'sitemap'));
127
+include mymps_tpl($part);
128
+$cachetime && $cachepages->caching();
129
+is_object($db) && $db->Close();
130
+
131
+?>

BIN
attachment/adv/160x600.gif


BIN
attachment/adv/1x1.gif


BIN
attachment/adv/acenter.jpg


BIN
attachment/adv/baisheng.gif


BIN
attachment/adv/banner.gif


BIN
attachment/adv/chang03zikao.gif


BIN
attachment/adv/couplefloat.gif


BIN
attachment/adv/couplefloat.jpg


BIN
attachment/adv/ggad.gif


BIN
attachment/adv/had02.gif


BIN
attachment/adv/headerbanner.gif


BIN
attachment/adv/headerbanner1.gif


BIN
attachment/adv/headerbanner1.png


BIN
attachment/adv/headerbanner2.gif


BIN
attachment/adv/headerbanner2.png


BIN
attachment/adv/headerbanner3.gif


BIN
attachment/adv/headerbanner3.png


BIN
attachment/adv/headerbanner4.gif


BIN
attachment/adv/headerbanner4.png


BIN
attachment/adv/headerbanner5.gif


BIN
attachment/adv/headerbanner6.gif


BIN
attachment/adv/headerbanner7.gif


BIN
attachment/adv/hlg.png


BIN
attachment/adv/indexcatad.gif


BIN
attachment/adv/intercat.gif


BIN
attachment/adv/intercat.png


BIN
attachment/adv/intercatad2.gif


BIN
attachment/adv/intercatad2.jpg


BIN
attachment/adv/js1.gif


BIN
attachment/adv/pagetop.gif


BIN
attachment/adv/pagetop.jpg


BIN
attachment/adv/topbanner.gif


BIN
attachment/adv/topbanner.png


BIN
attachment/adv/topbanner1.png


BIN
attachment/adv/topbanner2.gif


BIN
attachment/adv/topbanner2.jpg


+ 0 - 0
attachment/face/index.html


BIN
attachment/focus/12640655906csju.jpg


BIN
attachment/focus/1264065647ohvmy.jpg


BIN
attachment/focus/126406568947c7a.jpg


BIN
attachment/focus/1264154115lz6zz.jpg


BIN
attachment/focus/1264154161u7bxl.jpg.baiduyun.downloading


+ 0 - 0
attachment/focus/1264154161u7bxl.jpg.baiduyun.downloading.cfg


BIN
attachment/focus/1314769962qhgmv.gif


BIN
attachment/focus/1314770242auudu.gif


BIN
attachment/focus/1314770413ldwaj.jpg


+ 0 - 0
attachment/focus/index.html


BIN
attachment/focus/pre_1314769962qhgmv.gif


BIN
attachment/focus/pre_1314770242auudu.gif


BIN
attachment/focus/pre_1314770413ldwaj.jpg


BIN
attachment/ggg/160x600.gif


BIN
attachment/ggg/1x1.gif


BIN
attachment/ggg/acenter.jpg


BIN
attachment/ggg/baisheng.gif


BIN
attachment/ggg/banner.gif


BIN
attachment/ggg/chang03zikao.gif


BIN
attachment/ggg/couplefloat.gif


BIN
attachment/ggg/couplefloat.jpg


BIN
attachment/ggg/ggad.gif


BIN
attachment/ggg/had02.gif


BIN
attachment/ggg/headerbanner.gif


BIN
attachment/ggg/headerbanner1.gif


BIN
attachment/ggg/headerbanner1.png


BIN
attachment/ggg/headerbanner2.gif


BIN
attachment/ggg/headerbanner2.png


BIN
attachment/ggg/headerbanner3.gif


BIN
attachment/ggg/headerbanner3.png


BIN
attachment/ggg/headerbanner4.gif


BIN
attachment/ggg/headerbanner4.png


BIN
attachment/ggg/headerbanner5.gif


BIN
attachment/ggg/headerbanner6.gif


BIN
attachment/ggg/headerbanner7.gif


BIN
attachment/ggg/hlg.png


BIN
attachment/ggg/indexcatad.gif


BIN
attachment/ggg/intercat.gif


BIN
attachment/ggg/intercat.png


BIN
attachment/ggg/intercatad2.gif


BIN
attachment/ggg/intercatad2.jpg


BIN
attachment/ggg/js1.gif


BIN
attachment/ggg/pagetop.gif


BIN
attachment/ggg/pagetop.jpg


BIN
attachment/ggg/topbanner.gif


BIN
attachment/ggg/topbanner.png


BIN
attachment/ggg/topbanner1.png


BIN
attachment/ggg/topbanner2.gif


BIN
attachment/ggg/topbanner2.jpg


+ 0 - 0
attachment/index.html


BIN
attachment/information/201908/1566037617jjh8y.jpg


BIN
attachment/information/201908/pre_1566037617jjh8y.jpg


+ 0 - 0
attachment/information/index.html


BIN
attachment/links/baidu.gif


+ 0 - 0
attachment/links/chinaz.gif


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä