CVE-2023-3852 (published 2023-07-23T22:15Z)

A vulnerability was found in OpenRapid RapidCMS up to 1.3.1. It has been declared as critical. This vulnerability affects unknown code of the file /admin/upload.php. The manipulation of the argument file leads to unrestricted upload. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The name of the patch is 4dff387283060961c362d50105ff8da8ea40bcbe. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-235204.

CVSS v3 base score: 7.2, HIGH (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)

Weakness information:
cwe_id: CWE-434
cwe_name: Unrestricted Upload of File with Dangerous Type
description: The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
extended_description: 
            
            
            
            
            
         
         

Fix information:
repo_url: https://github.com/OpenRapid/rapidcms
commit_details: repo_url: https://github.com/OpenRapid/rapidcms
author: codewyx
author_date: 2023-07-11 22:59:19+08:00
msg: 1.3.1.2
repository: repo_url: https://github.com/OpenRapid/rapidcms
repo_name: OpenRapid/rapidcms
description: 快速简单好用的CMS系统
repo_language: PHP
owner: OpenRapid
file_changes: filename: about.php
change_type: ModificationType.DELETE
diff: @@ -1,71 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-    * {
-        font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-    }
-</style>
-<div class="medium" style=" text-align:center;display: flex;gap: 47px;">
-    <img style="Border-radius:10px" width="200px" src="../../../upload/logo.png">
-    <div>
-        <div style="color:black;font-size: 20px;" class="mdui-typo">
-            <h1 style="font-weight: bold;">RapidCMS</h1>
-        </div>
-        <div style="color:black;font-size: 10px;" class="mdui-typo">
-            <h1>简单好用的官网CMS系统</h1>
-        </div>
-    </div>
-</div>
-
-<script src="../../../../../../resource/js/mtu.min.js"></script>
-<script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-</html>
\ No newline at end of file

programming_language: unknown
filename: login.php
change_type: ModificationType.RENAME
diff: @@ -1,29 +1,4 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-  
-}else{
-    Header("Location: index.php");
-}
 
 ?>
 

programming_language: HTML
filename: loginout.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,11 @@
+<?php
+//Cookie消掉
+setcookie("admin", "", time()-3600,'/');
+
+//获取返回位置
+
+      $goto="login.php";
+
+//直接返回
+echo"<script type="."\""."text/javascript"."\"".">"."window.location="."\"".$goto."\""."</script>";
+?>
\ No newline at end of file

programming_language: PHP
filename: movepass.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,41 @@
+<?php
+include("../header.php");
+
+?>
+    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+        <div class="mdui-card">
+
+            <div class="mdui-card-primary">
+                <div class="mdui-card-primary-title" style="font-size:30px">修改管理员密码</div>
+            </div>
+            <form method="post" action="run-movepass.php">
+                <m-scrollbar style="height: 300px;width:900px">
+                    <div class="mdui-card-content" style="font-size:15px;text-align:left">
+                        <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
+                            <label class="mdui-textfield-label">输入密码</label>
+                            <input class="mdui-textfield-input" name="password" type="password"
+                              required="">
+                              <div class="mdui-textfield-error">密码不能为空</div>
+                        </div>
+                        <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
+                            <label class="mdui-textfield-label">重复密码</label>
+                            <input class="mdui-textfield-input" name="password2" type="password"
+                               required="">
+                               <div class="mdui-textfield-error">重复密码不能为空</div>
+                        </div>
+                      
+                        <button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme-accent">提交</button>
+
+                    </div>
+                </m-scrollbar>
+            </form>
+        </div>
+       
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
\ No newline at end of file

programming_language: HTML
filename: run-movepass.php
change_type: ModificationType.RENAME
diff: @@ -1,9 +1,9 @@
 
 <?php
-include("../resource/variable.php");
+include("../check.php");
 
 header("Content-type:text/html;charset=utf-8");
-$json_string = file_get_contents('../install/sql-config/sql.json');
+$json_string = file_get_contents('../../install/sql-config/sql.json');
 $dataxxx = json_decode($json_string, true);
 $link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword']);
 

programming_language: PHP
filename: runlogin.php
change_type: ModificationType.RENAME
diff: @@ -1,8 +1,8 @@
 <?php
-include("../resource/variable.php");
+include("../../variable.php");
 
 header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
+$json_string = file_get_contents('../../install/sql-config/sql.json');
 $dataxxx = json_decode($json_string, true);
 $link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
 
@@ -30,7 +30,7 @@ if($link)
         }
 
 setcookie("admin", encode('admin',$password) ,time()+3600000,'/');
-Header("Location: index.php");
+Header("Location: ../index.php");
 
 
       }else{ 

programming_language: PHP
filename: article-add-run.php
change_type: ModificationType.DELETE
diff: @@ -1,44 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-    $timenow = date('Y-m-d H:i:s');
-    $cont2=rawurlencode(htmlspecialchars($_POST["content"]));
-      $str='INSERT INTO `rapidcmspage`(`id`, `title`, `content`, `time`, `categoryid`) VALUES ("'.$_POST["id"].'","'.rawurlencode($_POST["title"]).'","'.$cont2.'","'.$timenow.'","'.$_POST["categoryid"].'")';
-
-	  $result=mysqli_query($link,$str);
-    sendalert("增加成功！");
-     
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: article-chat-delete.php
change_type: ModificationType.DELETE
diff: @@ -1,42 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-
-      $str="DELETE FROM `rapidcmschat` WHERE id='".$_GET["id"]."'";
-	  $result=mysqli_query($link,$str);
-      echo "<script>window.opener=null;window.open('','_self');window.close();</script>";
-    
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: article-del.php
change_type: ModificationType.DELETE
diff: @@ -1,41 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-
-      $str="DELETE FROM `rapidcmspage` WHERE id='".$_GET["id"]."'";
-	  $result=mysqli_query($link,$str);
-      sendalert("删除成功！请刷新");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: article-edit-run.php
change_type: ModificationType.DELETE
diff: @@ -1,44 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-    $timenow = date('Y-m-d H:i:s');
-    $cont2=rawurlencode(htmlspecialchars($_POST["content"]));
-       
-    $str='  UPDATE `rapidcmspage` SET `title`="'.rawurlencode($_POST["title"]).'",`content`="'.$cont2.'",`time`="'.$timenow.'" WHERE `id`="'.$_POST["id"].'"';
-
-	  $result=mysqli_query($link,$str);
-      sendalert("修改成功！");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: article-add-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,22 @@
+<?php
+include("../check.php");
+
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+    $timenow = date('Y-m-d H:i:s');
+    $cont2=rawurlencode(htmlspecialchars($_POST["content"]));
+      $str='INSERT INTO `rapidcmspage`(`id`, `title`, `content`, `time`, `categoryid`) VALUES ("'.$_POST["id"].'","'.rawurlencode($_POST["title"]).'","'.$cont2.'","'.$timenow.'","'.$_POST["categoryid"].'")';
+	  $result=mysqli_query($link,$str);
+    sendalert("增加成功！");
+     
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: article-add.php
change_type: ModificationType.RENAME
diff: @@ -1,27 +1,5 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
+include("../check.php");
 ?>
 
 <!DOCTYPE html>
@@ -37,7 +15,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
     <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
     <link rel="stylesheet" href="../../../../resource/css/style.css">
     <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
+
 
     <style>
         .editor {
@@ -65,8 +43,16 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
         <span class="mdui-typo-title">RapidCMS 管理后台</span>
     </div>
 
-    <? include("drawer.php"); ?>
-    <script>
+
+    <? include("../drawer.php"); ?>
+
+    <style>
+        * {
+            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+        }
+    </style>
+   
+   <script>
         function randomString(length, ) {
             var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
             var result = '';
@@ -81,11 +67,6 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
             resetnum()
         }
     </script>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card">
@@ -122,14 +103,14 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
                             header("Content-type:text/html;charset=utf-8");
                             $table_name = "rapidcmscategory";
 
-                            $json_string = file_get_contents('../install/sql-config/sql.json');
+                            $json_string = file_get_contents('../../install/sql-config/sql.json');
                             $data = json_decode($json_string, true);
                             $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
                             $sql = 'select * from `' . $table_name . '` ORDER BY num DESC';
                             $res = mysqli_query($conn, $sql);
                             $colums = mysqli_num_fields($res);
                             while ($row = mysqli_fetch_row($res)) {
-                                echo '<option value="' . $row[0] . '">' . $row[1] . '</option>';
+                                echo '<option value="' . $row[0] . '">' .  urldecode($row[1]) . '</option>';
                             }
                             ?>
                         </select>
@@ -157,7 +138,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
         </div>
 
     </div>
-    <script src="mdui-editor/js/editor.js"></script>
+    <script src="../src/mdui-editor/js/editor.js"></script>
     <script>
         function sub1(){
             document.getElementById("area").innerHTML= document.getElementById("content").innerHTML;
@@ -166,7 +147,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
         var editor = new Editor('#toolbar', '#content', {
             autoSave: true,
             imageUploadUrl: 'upload.php',
-            imageUploadSuffix: ['png'],
+            imageUploadSuffix: ['png','jpg','gif','jpeg'],
         });
     </script>
     <script src="../../../../../../resource/js/mtu.min.js"></script>

programming_language: HTML
filename: article-chat-delete.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,20 @@
+<?php
+include("../check.php");
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+
+      $str="DELETE FROM `rapidcmschat` WHERE id='".$_GET["id"]."'";
+	  $result=mysqli_query($link,$str);
+      echo "<script>window.opener=null;window.open('','_self');window.close();</script>";
+    
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: article-chat.php
change_type: ModificationType.RENAME
diff: @@ -1,30 +1,5 @@
      <?php
-
-use PhpMyAdmin\Charsets;
-
-        include("../resource/variable.php");
-        function encode($string = '', $skey = 'cxphp')
-        {
-            $strArr = str_split(base64_encode($string));
-            $strCount = count($strArr);
-            foreach (str_split($skey) as $key => $value)
-                $key < $strCount && $strArr[$key] .= $value;
-            return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-        }
-
-        define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-        define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-        $json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-        $dataxxx = json_decode($json_string, true);
-        $link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-        $sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-        $result = mysqli_query($link, $sql);
-        $pass = mysqli_fetch_row($result);
-        $pa = $pass[0];
-
-        if ($_COOKIE["admin"] != encode('admin', $pa)) {
-            Header("Location: login.php");
-        }
+        include("../check.php");
         ?>
 
      <!DOCTYPE html>
@@ -40,11 +15,8 @@ use PhpMyAdmin\Charsets;
          <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
          <link rel="stylesheet" href="../../../../resource/css/style.css">
          <link rel="stylesheet" href="../../../../../template/default/theme.css">
-         
 
-         <link rel="stylesheet" href="http://kindeditor.net/ke4/themes/default/default.css" />
-         <script charset="utf-8" src="http://kindeditor.net/ke4/kindeditor-min.js"></script>
-         <script charset="utf-8" src="http://kindeditor.net/ke4/lang/zh-CN.js"></script>
+
          <script>
              var editor;
              KindEditor.ready(function(K) {
@@ -58,12 +30,12 @@ use PhpMyAdmin\Charsets;
      </head>
 
      <body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
+         <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
+             <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
+             <span class="mdui-typo-title">RapidCMS 管理后台</span>
+         </div>
 
-    <? include("drawer.php"); ?>
+         <? include("../drawer.php"); ?>
 
          <script>
              function randomString(length, ) {
@@ -72,8 +44,6 @@ use PhpMyAdmin\Charsets;
                  for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
                  return result;
              }
-
-
          </script>
          <script>
              function copyText(text) {
@@ -107,7 +77,7 @@ use PhpMyAdmin\Charsets;
                  font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
              }
          </style>
-         <div class="mdui-container"  id="page-question" style="margin:auto;">
+         <div class="mdui-container" id="page-question" style="margin:auto;">
 
 
 
@@ -119,34 +89,33 @@ use PhpMyAdmin\Charsets;
                 error_reporting(0);
                 header("Content-type:text/html;charset=utf-8");
                 $table_name = "rapidcmschat";
-                define('BASE_PATH2', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-                define('BASE_PATH3', str_replace('\\', '/', realpath(dirname(BASE_PATH2) . '/')) . "/");
-                $json_string = file_get_contents(BASE_PATH3 . '/install/sql-config/sql.json');
+
+                $json_string = file_get_contents('../../install/sql-config/sql.json');
                 $data = json_decode($json_string, true);
                 $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
                 $sql = 'select * from `' . $table_name . '` WHERE articleid="' . $_GET["id"] . '" ORDER BY time DESC';
                 $res = mysqli_query($conn, $sql);
                 $colums = mysqli_num_fields($res);
                 $row = mysqli_num_rows($res);
-         
-                    echo '<div class="mdui-card answers">          <h1  style="text-align:center;">
+
+                echo '<div class="mdui-card answers">          <h1  style="text-align:center;">
                     此文章下所有评论</h1>  ';
-        
+
 
                 while ($row = mysqli_fetch_row($res)) {
-                    echo '<div class="item" id="chat_'.$row[0].'"><div class="mc-user-line"><div class="mc-user-popover"><a class="avatar user-popover-trigger"><i class="mdui-list-item-icon mdui-icon material-icons">people</i></a>    ';
+                    echo '<div class="item" id="chat_' . $row[0] . '"><div class="mc-user-line"><div class="mc-user-popover"><a class="avatar user-popover-trigger"><i class="mdui-list-item-icon mdui-icon material-icons">people</i></a>    ';
                     echo '<a class="username user-popover-trigger mdui-text-color-theme-text">' . $row[1] . '</a>    ';
                     echo '<div class="more"><span class="time mdui-text-color-theme-secondary" >' . $row[4] . '</span></div>';
-                    echo '</div></div><div class="content mdui-typo"><p>' . $row[2] . '</p>';
+                    echo '</div></div><div class="content mdui-typo"><p>' . urldecode($row[2]) . '<div class="mdui-typo-caption-opacity">点赞数：' . $row[3] . '</div></p>';
                     echo '</div><div class="actions"><div class="mc-vote">    ';
-                      echo '</div><div class="flex-grow"></div><div class="mc-options-button">    ';
+                    echo '</div><div class="flex-grow"></div><div class="mc-options-button">    ';
                     echo '<button mdui-menu="{target: \'#attr_' . $row[0] . '\',position:\'top\',align:\'right\',covered:false}" class="mdui-btn mdui-btn-icon mdui-text-color-theme-icon mdui-ripple"><i class="mdui-icon material-icons">more_vert</i></button>    ';
                     echo '<ul class="mdui-menu " id="attr_' . $row[0] . '" style="top: 7px; left: 597px; transform-origin: 100% 100%; position: absolute;">    ';
-                    echo '<li class="mdui-menu-item"><a onclick="copyText(\'' . $row[0] . '\')" class="mdui-ripple">复制评论ID</a></li><li class="mdui-menu-item"><a target="_blank" onclick="document.getElementById(\'chat_'.$row[0].'\').style.display=\'none\';" href="article-chat-delete.php?id='.$row[0].'" class="mdui-ripple">删除评论</a></li></ul></div></div></div>    ';
+                    echo '<li class="mdui-menu-item"><a onclick="copyText(\'' . $row[0] . '\')" class="mdui-ripple">复制评论ID</a></li><li class="mdui-menu-item"><a target="_blank" onclick="document.getElementById(\'chat_' . $row[0] . '\').style.display=\'none\';" href="article-chat-delete.php?id=' . $row[0] . '" class="mdui-ripple">删除评论</a></li></ul></div></div></div>    ';
                 }
 
-                    echo '</div>';
-             
+                echo '</div>';
+
 
                 ?>
 

programming_language: PHP
filename: article-del.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,19 @@
+<?php
+include("../check.php");
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+
+      $str="DELETE FROM `rapidcmspage` WHERE id='".$_GET["id"]."'";
+	  $result=mysqli_query($link,$str);
+      sendalert("删除成功！请刷新");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: article-edit-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,22 @@
+<?php
+include("../check.php");
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+    $timenow = date('Y-m-d H:i:s');
+    $cont2=rawurlencode(htmlspecialchars($_POST["content"]));
+       
+    $str='  UPDATE `rapidcmspage` SET `title`="'.rawurlencode($_POST["title"]).'",`content`="'.$cont2.'",`time`="'.$timenow.'" WHERE `id`="'.$_POST["id"].'"';
+
+	  $result=mysqli_query($link,$str);
+      sendalert("修改成功！");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: article-edit.php
change_type: ModificationType.RENAME
diff: @@ -1,27 +1,5 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
+include("../check.php");
 ?>
 
 <!DOCTYPE html>
@@ -66,7 +44,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
     </div>
 
 
-    <? include("drawer.php"); ?>
+    <? include("../drawer.php"); ?>
 
     <style>
         * {
@@ -101,7 +79,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
                             error_reporting(0);
                             header("Content-type:text/html;charset=utf-8");
                             $table_name = "rapidcmspage";
-                            $json_string = file_get_contents('../install/sql-config/sql.json');
+                            $json_string = file_get_contents('../../install/sql-config/sql.json');
                             $data = json_decode($json_string, true);
                             $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
                             $sql = 'select * from `' . $table_name . '` WHERE `id`= \''.$_GET["id"].'\'';
@@ -109,7 +87,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
                             $res = mysqli_query($conn, $sql);
                             $colums = mysqli_num_fields($res);
                             while ($row = mysqli_fetch_row($res)) {
-                                echo $row[1];
+                                echo urldecode($row[1]);
                             }
 
                             ?>" type="text" name="title" required="">
@@ -125,7 +103,7 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
                             error_reporting(0);
                             header("Content-type:text/html;charset=utf-8");
                             $table_name = "rapidcmscategory";
-                            $json_string = file_get_contents('../install/sql-config/sql.json');
+                            $json_string = file_get_contents('../../install/sql-config/sql.json');
                             $data = json_decode($json_string, true);
                             $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
                             $sql = 'select * from `' . $table_name . '` ORDER BY num DESC';
@@ -133,9 +111,9 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
                             $colums = mysqli_num_fields($res);
                             while ($row = mysqli_fetch_row($res)) {
                                 if ($row[0] == $cat3) {
-                                    echo '<option selected="selected" value="' . $row[0] . '">' . $row[1] . '</option>';
+                                    echo '<option selected="selected" value="' . $row[0] . '">' . urldecode($row[1]) . '</option>';
                                 } else {
-                                    echo '<option value="' . $row[0] . '">' . $row[1] . '</option>';
+                                    echo '<option value="' . $row[0] . '">' .  urldecode($row[1]) . '</option>';
                                 }
                             }
                             ?>
@@ -166,16 +144,16 @@ if ($_COOKIE["admin"] != encode('admin', $pa)) {
         </div>
 
     </div>
-    <script src="mdui-editor/js/editor.js"></script>
+    <script src="../src/mdui-editor/js/editor.js"></script>
     <script>
-        function sub1() {
-            document.getElementById("area").innerHTML = document.getElementById("content").innerHTML;
+        function sub1(){
+            document.getElementById("area").innerHTML= document.getElementById("content").innerHTML;
             document.getElementById("form").submit()
         }
         var editor = new Editor('#toolbar', '#content', {
             autoSave: true,
             imageUploadUrl: 'upload.php',
-            imageUploadSuffix: ['png'],
+            imageUploadSuffix: ['png','jpg','gif','jpeg'],
         });
     </script>
     <script src="../../../../../../resource/js/mtu.min.js"></script>

programming_language: PHP
filename: article.php
change_type: ModificationType.RENAME
diff: @@ -1,54 +1,7 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
+include("../header.php");
 
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <script type="text/javascript" language="javascript"> 
+?>  <script type="text/javascript" language="javascript"> 
 function confirmAct() 
 { 
   if(confirm('确定要删除吗?')) 
@@ -59,11 +12,6 @@ function confirmAct()
 } 
 
 </script> 
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card" style="overflow:scroll">
@@ -90,7 +38,7 @@ function confirmAct()
                             <?php
                             $table_name = "rapidcmspage";
 
-                            $json_string = file_get_contents('../install/sql-config/sql.json');
+                            $json_string = file_get_contents('../../install/sql-config/sql.json');
                             $data = json_decode($json_string, true);
                             $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
                             $sql = 'select * from `' . $table_name . '`';
@@ -100,7 +48,7 @@ function confirmAct()
                                 echo "<tr>";
                                 echo "</tr>";
                                 echo "<td>$row[0]</td>";
-                                echo "<td>$row[1]</td>";
+                                echo "<td>".urldecode($row[1])."</td>";
                                 echo "<td>$row[3]</td>";
                                 echo "<td>$row[4]</td>";
                                 echo '<td><a href="article-edit.php?id='.$row[0].'&name='.urlencode($row[1]).'"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a>';

programming_language: PHP
filename: run-tool.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,30 @@
+<?php
+include("../check.php");
+$data1 = array();
+if ($_POST["tool"] == "on") {
+    $data1['tool'] = "true";
+} else {
+    $data1['tool'] = "false";
+}
+$data1['kind'] = $_POST["kind"];
+if ($_POST["kind"] == "one") {
+    $data1['content'] = '<center><p id="hitokoto"><a style="color:#000000" href="#" id="hitokoto_text">获取中...</a></p></center><script>fetch(\'https://v1.hitokoto.cn\').then(response => response.json()).then(data => {const hitokoto = document.querySelector(\'#hitokoto_text\');hitokoto.href = \'https://hitokoto.cn/?uuid=\' + data.uuid;
+        if (data.from_who == null) {
+        hitokoto.innerHTML = "「 " + data.hitokoto + " 」<br>——" + data.from;
+        }else {
+        hitokoto.innerHTML = "「 " + data.hitokoto + " 」<br>——" + data.from_who + "「" + data.from + "」"
+        }}).catch(console.error)
+        </script>';
+} else if ($_POST["kind"] == "time") {
+    $data1['content'] = '<center><a  id="time_is_link" rel="nofollow" style="display:none"></a><span id="China_z43d" style="font-size:25px;"></span><script src="https://widget.time.is/t.js"></script><script>time_is_widget.init({China_z43d:{}});</script></center>';
+} else {
+    $data1['content'] = $_POST["content"];
+}
+
+
+$json_string1 = json_encode($data1);
+$filename1 = '../../resource/config/tool.json';
+$fp1 = fopen($filename1, "w");
+$len1 = fwrite($fp1, $json_string1);
+fclose($fp1);
+echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"tool.php\"</script>";

programming_language: PHP
filename: tool.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,78 @@
+<?php
+include("../header.php");
+
+?>
+
+<div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+    <div class="mdui-card">
+
+        <div class="mdui-card-primary">
+            <div class="mdui-card-primary-title" style="font-size:30px">小组件设置</div>
+        </div>
+        <form method="post" action="run-tool.php">
+            <m-scrollbar style="height: 620px;width:900px">
+                <div class="mdui-card-content" style="font-size:15px;text-align:left">
+
+                    <label class="mdui-switch">
+                        开启小组件&nbsp;&nbsp;&nbsp;
+                        <input <?
+                                if ($data_tool["tool"]  == "true") {
+                                    echo " checked='true'";
+                                }
+                                ?> name="tool" type="checkbox" />
+                        <i class="mdui-switch-icon"></i>
+                    </label> <br>
+                    <label class="mdui-textfield-label">选择小组件</label>
+                    <select class="mdui-select" name="kind" id="kind" onchange="kindmove()" mdui-select>
+                        <?
+
+                        if ($data_tool["kind"] == "one") {
+                            echo ' <option value="one" selected>一言</option>';
+                            echo '   <option value="time" >时间</option>';
+                            echo '   <option value="write" >自定义</option>';
+                        } else if ($data_tool["kind"] == "time") {
+                            echo ' <option value="one" >一言</option>';
+                            echo '   <option value="time" selected>时间</option>';
+                            echo '   <option value="write" >自定义</option>';
+                        } else {
+                            echo ' <option value="one" >一言</option>';
+                            echo '   <option value="time" >时间</option>';
+                            echo '   <option value="write" selected>自定义</option>';
+                        }
+                        ?>
+
+
+                    </select> <br> <br>
+                    <div id="con" style="display:none" class="mdui-textfield  mdui-textfield-has-bottom ">
+                        <label class="mdui-textfield-label">输入内容</label>
+
+
+                        <textarea rows="7" class="mdui-textfield-input" name="content" type="text" required=""><? echo $data_tool["content"]; ?></textarea>
+                    </div>
+                    <br>
+                    <button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme-accent">提交</button>
+
+                </div>
+            </m-scrollbar>
+        </form>
+    </div>
+
+</div>
+<script>
+    function kindmove() {
+        if (document.getElementById("kind").value == "write") {
+            document.getElementById("con").style.display = "inline";
+        } else {
+            document.getElementById("con").style.display = "none";
+        }
+    }
+    window.onload = () => {
+        kindmove()
+    }
+</script>
+<script src="../../../../../../resource/js/mtu.min.js"></script>
+<script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: upload.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,28 @@
+<?php
+function isImage($imgPath){
+if($imgPath=="jpg"||$imgPath=="png"||$imgPath=="gif"||$imgPath=="jpeg"){
+return true;
+}else{
+  return false;
+}
+}
+
+$fileInfo = $_FILES['file'];
+$name = $fileInfo['name'];
+$pathname = pathinfo($name)["extension"];
+$filename =  pathinfo($name, PATHINFO_FILENAME);
+$filePath = $fileInfo['tmp_name'];
+if(isImage($pathname)==false){
+  exit;
+}
+ //$name = iconv('utf-8', 'gb2312', $filename);
+  $str = rand();
+  $path = "../../upload/upload_" . md5($str) . "." . $pathname;
+  move_uploaded_file($filePath, $path);
+  echo json_encode([
+    "code" => 0,
+    "data" => [
+      "url" => $path,
+      "name" => $name
+    ]
+  ]);
\ No newline at end of file

programming_language: PHP
filename: cate-add-run.php
change_type: ModificationType.DELETE
diff: @@ -1,42 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-
-      $str='INSERT INTO `rapidcmscategory`(`id`, `name`, `pic`, `num`) VALUES ("'.$_POST["id"].'","'.rawurlencode($_POST["name"]).'","'.$_POST["pic"].'",'.$_POST["num"].')';
-
-	  $result=mysqli_query($link,$str);
-      sendalert("增加成功！");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: cate-add.php
change_type: ModificationType.DELETE
diff: @@ -1,121 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-<script>
-    function randomString(length,) {
-        var chars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
-    var result = '';
-    for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
-    return result;
-}
-function resetnum(){
-    document.getElementById("ranid").value=randomString(10);
-}
-window.onload = function () {
-    resetnum()
-}
-
-
-    </script>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-        <div class="mdui-card">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px">分类设置</div>
-            </div>
-           
-                <m-scrollbar style="height: 800px;width:900px;text-align:left ">
-                <div id="login" class="mc-account mc-login mdui-dialog mdui-dialog-open " style="overflow: hidden;z-index:999;display: block; top: 150.104px; height: 700px;">
-                <button class="mdui-btn mdui-btn-icon close" onclick="window.location.href='category.php'"><i class="mdui-icon material-icons">close</i></button>
- 
-<div class="mdui-dialog-title">新增</div>
-<form method="post" action="cate-add-run.php">
-
-    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
-        <label class="mdui-textfield-label">唯一ID（10位字符）</label>
-    <input class="mdui-textfield-input" style="width:90%" type="text" name="id" id="ranid" value="onload" required="">
-  <i   style="cursor:pointer;position: absolute;left: 92%" onclick="resetnum(10)" class="mdui-icon material-icons">&#xe5d5;</i>
-</div>
-    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
-        <label class="mdui-textfield-label">名称</label>
-    <input class="mdui-textfield-input" type="text" name="name" required=""></div>
-    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
-        <label class="mdui-textfield-label">图标ID（在MDUI中获取&#XXXX;）</label>
-    <input class="mdui-textfield-input" style="width:90%" type="text" name="pic" required="">
-    <i   style="cursor:pointer;position: absolute;left: 92%" onclick="window.open('https://www.mdui.org/docs/material_icon')" class="mdui-icon material-icons">&#xe250;</i>
-    </div>
-    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
-        <label class="mdui-textfield-label">权重（大的在前面）</label>
-    <input class="mdui-textfield-input" type="number" name="num" required=""></div>
-
-    <div class="actions mdui-clearfix">
-       <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button>
-    </div>
-</form>
-</div>
-                </m-scrollbar>
-  
-        </div>
-
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
-
-
-

programming_language: unknown
filename: cate-del.php
change_type: ModificationType.DELETE
diff: @@ -1,41 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-
-      $str="DELETE FROM `rapidcmscategory` WHERE id='".$_GET["id"]."'";
-	  $result=mysqli_query($link,$str);
-      sendalert("删除成功！请刷新");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: cate-edit-run.php
change_type: ModificationType.DELETE
diff: @@ -1,42 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-  
-      $str='  UPDATE `rapidcmscategory` SET `name`="'.rawurlencode($_POST["name"]).'",`pic`="'.$_POST["pic"].'",`num`='.$_POST["num"].' WHERE `id`="'.$_POST["id"].'"';
-        echo $str;
-	  $result=mysqli_query($link,$str);
-      sendalert("修改成功！");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: cate-add-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,21 @@
+<?php
+include("../check.php");
+
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+
+      $str='INSERT INTO `rapidcmscategory`(`id`, `name`, `pic`, `num`) VALUES ("'.$_POST["id"].'","'.rawurlencode($_POST["name"]).'","'.$_POST["pic"].'",'.$_POST["num"].')';
+
+	  $result=mysqli_query($link,$str);
+      sendalert("增加成功！");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: cate-add.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,71 @@
+<?php
+include("../header.php");
+
+?>
+
+
+<script>
+    function randomString(length, ) {
+        var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+        var result = '';
+        for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
+        return result;
+    }
+
+    function resetnum() {
+        document.getElementById("ranid").value = randomString(10);
+    }
+    window.onload = function() {
+        resetnum()
+    }
+</script>
+<div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+    <div class="mdui-card">
+
+        <div class="mdui-card-primary">
+            <div class="mdui-card-primary-title" style="font-size:30px">分类设置</div>
+        </div>
+
+        <m-scrollbar style="height: 800px;width:900px;text-align:left ">
+            <div id="login" class="mc-account mc-login mdui-dialog mdui-dialog-open " style="overflow: hidden;z-index:999;display: block; top: 150.104px; height: 700px;">
+                <button class="mdui-btn mdui-btn-icon close" onclick="window.location.href='category.php'"><i class="mdui-icon material-icons">close</i></button>
+
+                <div class="mdui-dialog-title">新增</div>
+                <form method="post" action="cate-add-run.php">
+
+                    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
+                        <label class="mdui-textfield-label">唯一ID（10位字符）</label>
+                        <input class="mdui-textfield-input" style="width:90%" type="text" name="id" id="ranid" value="onload" required="">
+                        <i style="cursor:pointer;position: absolute;left: 92%" onclick="resetnum(10)" class="mdui-icon material-icons">&#xe5d5;</i>
+                    </div>
+                    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
+                        <label class="mdui-textfield-label">名称</label>
+                        <input class="mdui-textfield-input" type="text" name="name" required="">
+                    </div>
+                    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
+                        <label class="mdui-textfield-label">图标ID（在MDUI中获取&#XXXX;）</label>
+                        <input class="mdui-textfield-input" style="width:90%" type="text" name="pic" required="">
+                        <i style="cursor:pointer;position: absolute;left: 92%" onclick="window.open('https://www.mdui.org/docs/material_icon')" class="mdui-icon material-icons">&#xe250;</i>
+                    </div>
+                    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
+                        <label class="mdui-textfield-label">权重（大的在前面）</label>
+                        <input class="mdui-textfield-input" type="number" name="num" required="">
+                    </div>
+
+                    <div class="actions mdui-clearfix">
+                        <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button>
+                    </div>
+                </form>
+            </div>
+        </m-scrollbar>
+
+    </div>
+
+</div>
+
+<script src="../../../../../../resource/js/mtu.min.js"></script>
+<script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
\ No newline at end of file

programming_language: HTML
filename: cate-del.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,20 @@
+<?php
+include("../check.php");
+
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+
+      $str="DELETE FROM `rapidcmscategory` WHERE id='".$_GET["id"]."'";
+	  $result=mysqli_query($link,$str);
+      sendalert("删除成功！请刷新");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: cate-edit-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,21 @@
+<?php
+include("../check.php");
+
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+  
+      $str='  UPDATE `rapidcmscategory` SET `name`="'.rawurlencode($_POST["name"]).'",`pic`="'.$_POST["pic"].'",`num`='.$_POST["num"].' WHERE `id`="'.$_POST["id"].'"';
+      
+	  $result=mysqli_query($link,$str);
+      sendalert("修改成功！");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: cate-edit.php
change_type: ModificationType.RENAME
diff: @@ -1,35 +1,14 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH2',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH3',str_replace('\\','/',realpath(dirname(BASE_PATH2).'/'))."/");
-$json_string = file_get_contents(BASE_PATH3.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
+include("../header.php");
 
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
 ?>
+
         <?php
 error_reporting(0);
 header("Content-type:text/html;charset=utf-8");
 $table_name = "rapidcmscategory";
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
+
+$json_string = file_get_contents('../../install/sql-config/sql.json');
 $data = json_decode($json_string, true);
 $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
 $sql = 'select * from `'.$table_name .'` WHERE id="'.$_GET["id"].'"';
@@ -42,35 +21,7 @@ while ($row = mysqli_fetch_row($res)) {
 }
 
 ?>
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
 
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card">

programming_language: PHP
filename: category.php
change_type: ModificationType.RENAME
diff: @@ -1,53 +1,10 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
+include("../header.php");
 
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
 ?>
 
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
 
-    <? include("drawer.php"); ?>
-    <script type="text/javascript" language="javascript"> 
+<script type="text/javascript" language="javascript"> 
 function confirmAct() 
 { 
   if(confirm('确定要删除吗?')) 
@@ -58,11 +15,6 @@ function confirmAct()
 } 
 
 </script> 
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card" style="overflow:scroll">
@@ -88,7 +40,7 @@ function confirmAct()
 
                     <?php
                     $table_name = "rapidcmscategory";
-                    $json_string = file_get_contents('../install/sql-config/sql.json');
+                    $json_string = file_get_contents('../../install/sql-config/sql.json');
                     $data = json_decode($json_string, true);
                     $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
                     $sql = 'select * from `' . $table_name . '`';
@@ -98,7 +50,7 @@ function confirmAct()
                        echo "<tr>";
                         echo "</tr>";
                         echo "<td>$row[0]</td>";
-                        echo "<td>$row[1]</td>";
+                        echo "<td>".urldecode($row[1])."</td>";
                         echo "<td><i class='mdui-list-item-icon mdui-icon material-icons'>$row[2]</i></td>";
                         echo "<td>$row[3]</td>";
                         echo '<td><a href="cate-edit.php?id='.$row[0].'"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a>';

programming_language: PHP
filename: check.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,24 @@
+<?php
+include("../../resource/variable.php");
+function encode($string = '', $skey = 'cxphp')
+{
+    $strArr = str_split(base64_encode($string));
+    $strCount = count($strArr);
+    foreach (str_split($skey) as $key => $value)
+        $key < $strCount && $strArr[$key] .= $value;
+    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
+}
+
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
+$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
+$result = mysqli_query($link, $sql);
+$pass = mysqli_fetch_row($result);
+$pa = $pass[0];
+
+if ($_COOKIE["admin"] != encode('admin', $pa)) {
+    Header("Location: ../admin_user/login.php");
+}
+
+?>
\ No newline at end of file

programming_language: PHP
filename: mail.php
change_type: ModificationType.RENAME
diff: @@ -1,58 +1,4 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple  mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
+<? include("../header.php"); ?>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card">

programming_language: PHP
filename: rewrite.php
change_type: ModificationType.RENAME
diff: @@ -1,57 +1,4 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary:79, 55, 139; --color-accent: 79, 55, 139;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
+<? include("../header.php"); ?>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card">

programming_language: HTML
filename: run-close.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,19 @@
+<?php
+include("../check.php");
+
+$data1 = array();
+if($_POST["close"]=="on"){
+    $data1['close'] = "true";
+}else{
+    $data1['close'] = "false";
+}
+$data1['template'] = $data_index["template"];
+$data1['version'] = $data_index["version"];
+$data1['rewrite'] = $data_index["rewrite"];
+
+$json_string1 = json_encode($data1);
+$filename1 = '../../resource/config/index.json';
+$fp1 = fopen($filename1, "w");
+$len1 = fwrite($fp1, $json_string1);
+fclose($fp1);
+echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"server.php\"</script>";
\ No newline at end of file

programming_language: PHP
filename: run-mail.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,20 @@
+<?php
+include("../check.php");
+
+$data1 = array();
+if($_POST["logonwithmail"]=="on"){
+    $data1['logonwithmail'] = "true";
+}else{
+    $data1['logonwithmail'] = "false";
+}
+$data1['smtp'] = $_POST["smtp"];
+$data1['secure'] = $_POST["secure"];
+$data1['port'] = $_POST["port"];
+$data1['username'] = $_POST["username"];
+$data1['password'] = $_POST["password"];
+$json_string1 = json_encode($data1);
+$filename1 = '../../resource/config/mail.json';
+$fp1 = fopen($filename1, "w");
+$len1 = fwrite($fp1, $json_string1);
+fclose($fp1);
+echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"mail.php\"</script>";
\ No newline at end of file

programming_language: PHP
filename: run-rewrite.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,19 @@
+<?php
+include("../check.php");
+
+$data1 = array();
+if($_POST["rewrite"]=="on"){
+    $data1['rewrite'] = "true";
+}else{
+    $data1['rewrite'] = "false";
+}
+$data1['template'] = $data_index["template"];
+$data1['version'] = $data_index["version"];
+$data1['close'] = $data_index["close"];
+
+$json_string1 = json_encode($data1);
+$filename1 = '../../resource/config/index.json';
+$fp1 = fopen($filename1, "w");
+$len1 = fwrite($fp1, $json_string1);
+fclose($fp1);
+echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"rewrite.php\"</script>";

programming_language: PHP
filename: run-setting.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,16 @@
+<?php
+include("../check.php");
+$data1 = array();
+$data1['headname'] = $_POST["headname"];
+$data1['title'] = $_POST["title"];
+$data1['icon'] =  $data_header["icon"];
+$data1['description'] = $_POST["description"];
+$data1['keywords'] = $_POST["keywords"];
+$data1['introduce'] = $_POST["introduce"];
+$data1['con'] = $_POST["con"];
+$json_string1 = json_encode($data1);
+$filename1 = '../../resource/config/header.json';
+$fp1 = fopen($filename1, "w");
+$len1 = fwrite($fp1, $json_string1);
+fclose($fp1);
+echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"setting.php\"</script>";
\ No newline at end of file

programming_language: PHP
filename: server.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,34 @@
+<? include("../header.php"); ?>
+    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+
+        <div class="mdui-card" style="width:900px">
+
+            <div class="mdui-card-primary">
+                <div class="mdui-card-primary-title" style="font-size:30px">网站服务设置</div>
+            </div>
+            <form method="post" action="run-close.php">
+            <div class="mdui-card-content" style="font-size:15px;text-align:left">
+            <label class="mdui-switch">
+                            启用网页维护&nbsp;&nbsp;&nbsp;
+                            <input <?
+                                    if ($data_index["close"]  == "true") {
+                                        echo " checked='true'";
+                                    }
+                                    ?> name="close" type="checkbox" />
+                            <i class="mdui-switch-icon"></i>
+                        </label> 
+                        <br> <br>
+                        <button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme-accent">确认</button>
+                  
+            </div>
+            </form>
+        </div>
+        <br>
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
\ No newline at end of file

programming_language: HTML
filename: setting.php
change_type: ModificationType.RENAME
diff: @@ -1,57 +1,5 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
+<? include("../header.php"); ?>
 
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary:79, 55, 139; --color-accent: 79, 55, 139;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
     <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
 
         <div class="mdui-card">

programming_language: PHP
filename: uploadicon.php
change_type: ModificationType.RENAME
diff: @@ -1,5 +1,5 @@
 <?php
-include("../resource/variable.php");
+include("../check.php");
 
 $fileInfo = $_FILES['file'];
 $name = $fileInfo['name'];
@@ -43,7 +43,7 @@ if (isImg($fileInfo['tmp_name']))
   //$name = iconv('utf-8', 'gb2312', $filename);
   $str = rand();
   $path1 = "upload/upload_" . md5($str) . "." . $pathname;
-  $path = "../" . $path1;
+  $path = "../../" . $path1;
   move_uploaded_file($filePath, $path);
 
 
@@ -56,12 +56,12 @@ if (isImg($fileInfo['tmp_name']))
   $data1['introduce'] = $data_header["introduce"];
   $data1['con'] = $data_header["con"];
   $json_string1 = json_encode($data1);
-  $filename1 = '../resource/config/header.json';
+  $filename1 = '../../resource/config/header.json';
   $fp1 = fopen($filename1, "w");
   $len1 = fwrite($fp1, $json_string1);
   fclose($fp1);
 
-  sendalert("上传成功");
+  echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"setting.php\"</script>";
 
 }
 

programming_language: PHP
filename: download-plugin.php
change_type: ModificationType.DELETE
diff: @@ -1,100 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../plugin/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div class="medium" style=" text-align:center;display: flex">
-
-        <div>
-            <div style="color:black;font-size: 20px;" class="mdui-typo">
-                <h1 style="font-weight: bold;">插件获取</h1>
-                <h5>插件名称：<?php echo $_GET["name"]; ?> </h5>
-                
-                <br>
-
-
-                <?php
-
-$arrContextOptions=array(
-    "ssl"=>array(
-        "verify_peer"=>false,
-        "verify_peer_name"=>false,
-    ),
-);  
-file_put_contents("../plugin/".$_GET["name"].".zip", file_get_contents("http://cdn.jsdelivr.net/gh/codewyx/cmscdn/plugin/".$_GET["name"].".zip", false, stream_context_create($arrContextOptions)));
-            
-                require_once('pclzip.lib.php');
-
-                $zip = new PclZip("../plugin/".$_GET["name"].".zip");
-                $result = $zip->extract(PCLZIP_OPT_PATH, "../plugin/");
-                if ($result == 0) {
-                    echo '<br>输入错误';
-                    unlink("../plugin/" . $_GET["name"] . ".zip");
-                } else {
-                    echo '<br>导入成功';
-                    unlink("../plugin/" . $_GET["name"] . ".zip");
-                }
-
-                ?>
-            </div>
-
-        </div>
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: download-template.php
change_type: ModificationType.DELETE
diff: @@ -1,100 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div class="medium" style=" text-align:center;display: flex">
-
-        <div>
-            <div style="color:black;font-size: 20px;" class="mdui-typo">
-                <h1 style="font-weight: bold;">模板获取</h1>
-                <h5>模板名称：<?php echo $_GET["name"]; ?> </h5>
-                
-                <br>
-
-
-                <?php
-
-$arrContextOptions=array(
-    "ssl"=>array(
-        "verify_peer"=>false,
-        "verify_peer_name"=>false,
-    ),
-);  
-file_put_contents("../template/".$_GET["name"].".zip", file_get_contents("http://cdn.jsdelivr.net/gh/codewyx/cmscdn/".$_GET["name"].".zip", false, stream_context_create($arrContextOptions)));
-            
-                require_once('pclzip.lib.php');
-
-                $zip = new PclZip("../template/" .$_GET["name"].".zip");
-                $result = $zip->extract(PCLZIP_OPT_PATH, "../template/");
-                if ($result == 0) {
-                    echo '<br>输入错误';
-                    unlink("../template/" . $_GET["name"] . ".zip");
-                } else {
-                    echo '<br>导入成功';
-                    unlink("../template/" . $_GET["name"] . ".zip");
-                }
-
-                ?>
-            </div>
-
-        </div>
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: drawer.php
change_type: ModificationType.MODIFY
diff: @@ -1,7 +1,7 @@
 
 <div style="color:black;" class="mdui-drawer mdui-drawer-open mc-drawer" id="drawer">
     <ul class="mdui-list">
-        <a href="index.php">
+        <a href="../../admin/index.php">
             <li class="mdui-list-item mdui-ripple" style="font-size:15px!important">
                 <i class="mdui-list-item-icon mdui-icon material-icons">&#xe88a;</i>
                 <div class="mdui-list-item-content" style="font-size:15px!important">首页</div>
@@ -19,17 +19,17 @@
                     </li>
                 </div>
                 <div class="mdui-collapse-item-body mdui-list">
-                <a href="setting.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">基本设置</a>
-                <a href="server.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">服务设置</a>
-                <a href="mail.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">邮件设置</a>
-                <a href="rewrite.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">伪静态设置</a>
+                <a href="../../admin/config/setting.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">基本设置</a>
+                <a href="../../admin/config/server.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">服务设置</a>
+                <a href="../../admin/config/mail.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">邮件设置</a>
+                <a href="../../admin/config/rewrite.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">伪静态设置</a>
                 </div>
             </div>
         </div>
 
         <div class="mdui-divider"></div>
 
-        <a href="user.php">
+        <a href="../../admin/user/user.php">
             <li class="mdui-list-item mdui-ripple" style="font-size:15px!important">
             <i class="mdui-list-item-icon mdui-icon material-icons">&#xe853;</i>
                 <div class="mdui-list-item-content" style="font-size:15px!important">用户</div>
@@ -47,8 +47,8 @@
                     </li>
                 </div>
                 <div class="mdui-collapse-item-body mdui-list">
-                <a href="category.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">查看分类</a>
-                <a href="cate-add.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">新增分类</a>
+                <a href="../../admin/category/category.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">查看分类</a>
+                <a href="../../admin/category/cate-add.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">新增分类</a>
                 </div>
             </div>
         </div>
@@ -65,21 +65,21 @@
                     </li>
                 </div>
                 <div class="mdui-collapse-item-body mdui-list">
-                <a href="article.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">查看文章</a>
-                <a href="article-add.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">新增文章</a>
-                <a href="tool.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">小组件</a>
+                <a href="../../admin/article/article.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">查看文章</a>
+                <a href="../../admin/article/article-add.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">新增文章</a>
+                <a href="../../admin/article/tool.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">小组件</a>
                 </div>
             </div>
         </div>
 
-        <a href="temp.php">
+        <a href="../../admin/function/temp.php">
             <li class="mdui-list-item mdui-ripple" style="font-size:15px!important">
                 <i class="mdui-list-item-icon mdui-icon material-icons">&#xeb3f;</i>
                 <div class="mdui-list-item-content" style="font-size:15px!important">模板</div>
             </li>
         </a>
         
-        <a href="plugin.php">
+        <a href="../../admin/function/plugin.php">
             <li class="mdui-list-item mdui-ripple" style="font-size:15px!important">
                 <i class="mdui-list-item-icon mdui-icon material-icons">&#xe8b0;</i>
                 <div class="mdui-list-item-content" style="font-size:15px!important">插件</div>
@@ -87,12 +87,24 @@
         </a>
 
         <div class="mdui-divider"></div>
-        <a href="movepass.php">
-            <li class="mdui-list-item mdui-ripple" style="font-size:15px!important">
-                <i class="mdui-list-item-icon mdui-icon material-icons">&#xe22b;</i>
-                <div class="mdui-list-item-content" style="font-size:15px!important">修改密码</div>
-            </li>
-        </a>
+        <div class="mdui-collapse" mdui-collapse>
+            <div class="mdui-collapse-item">
+                <div class="mdui-collapse-item-header">
+                    <li class="mdui-collapse-item-header mdui-list-item mdui-ripple" style="font-size:15px!important">
+                    <i class="mdui-list-item-icon mdui-icon material-icons">assignment_ind</i>
+                        <div class="mdui-list-item-content" style="font-size:15px!important">账户</div>
+                        <div class="mdui-collapse-item-arrow">
+                            <i class="mdui-collapse-item-arrow mdui-icon material-icons">keyboard_arrow_down</i>
+                        </div>
+                    </li>
+                </div>
+                <div class="mdui-collapse-item-body mdui-list">
+                <a href="../../admin/admin_user/movepass.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">修改密码</a>
+                <a href="../../admin/admin_user/loginout.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">退出登录</a>
+                </div>
+            </div>
+        </div>
+
         <div class="mdui-collapse" mdui-collapse>
             <div class="mdui-collapse-item">
                 <div class="mdui-collapse-item-header">
@@ -105,17 +117,17 @@
                     </li>
                 </div>
                 <div class="mdui-collapse-item-body mdui-list">
-                <a href="update.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">检查更新</a>
-                <a href="plus.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">高级功能</a>
-                <a href="about.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">关于</a>
+                <a href="../../admin/system/update.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">检查更新</a>
+                <a href="../../admin/function/plus.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">高级功能</a>
+                <a href="../../admin/system/about.php" style="padding-left: 72px;" class="mdui-list-item mdui-ripple">关于</a>
                 </div>
             </div>
         </div>
-
+      
     </ul>
     <div class="mdui-typo" style="   padding: 20px 16px;">
         <h4> <small>© 2023 RapidTeam</small><br> <small>Powered by RapidTeam
             </small></h4>
 
     </div>
-</div>
\ No newline at end of file
+</div>

programming_language: HTML
filename: download-plugin.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,48 @@
+<?php
+include("../header.php");
+
+?>
+    <div class="medium" style=" text-align:center;display: flex">
+
+        <div>
+            <div style="color:black;font-size: 20px;" class="mdui-typo">
+                <h1 style="font-weight: bold;">插件获取</h1>
+                <h5>插件名称：<?php echo $_GET["name"]; ?> </h5>
+                
+                <br>
+
+
+                <?php
+
+$arrContextOptions=array(
+    "ssl"=>array(
+        "verify_peer"=>false,
+        "verify_peer_name"=>false,
+    ),
+);  
+file_put_contents("../../plugin/".$_GET["name"].".zip", file_get_contents("http://cdn.jsdelivr.net/gh/codewyx/cmscdn/plugin/".$_GET["name"].".zip", false, stream_context_create($arrContextOptions)));
+            
+require_once('../src/pclzip.lib.php');
+
+                $zip = new PclZip("../plugin/".$_GET["name"].".zip");
+                $result = $zip->extract(PCLZIP_OPT_PATH, "../plugin/");
+                if ($result == 0) {
+                    echo '<br>输入错误';
+                    unlink("../../plugin/" . $_GET["name"] . ".zip");
+                } else {
+                    echo '<br>导入成功';
+                    unlink("../../plugin/" . $_GET["name"] . ".zip");
+                }
+
+                ?>
+            </div>
+
+        </div>
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: download-template.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,48 @@
+<?php
+include("../header.php");
+
+?>
+    <div class="medium" style=" text-align:center;display: flex">
+
+        <div>
+            <div style="color:black;font-size: 20px;" class="mdui-typo">
+                <h1 style="font-weight: bold;">模板获取</h1>
+                <h5>模板名称：<?php echo $_GET["name"]; ?> </h5>
+                
+                <br>
+
+
+                <?php
+
+$arrContextOptions=array(
+    "ssl"=>array(
+        "verify_peer"=>false,
+        "verify_peer_name"=>false,
+    ),
+);  
+file_put_contents("../../template/".$_GET["name"].".zip", file_get_contents("http://cdn.jsdelivr.net/gh/codewyx/cmscdn/".$_GET["name"].".zip", false, stream_context_create($arrContextOptions)));
+            
+                require_once('../src/pclzip.lib.php');
+
+                $zip = new PclZip("../../template/" .$_GET["name"].".zip");
+                $result = $zip->extract(PCLZIP_OPT_PATH, "../template/");
+                if ($result == 0) {
+                    echo '<br>输入错误';
+                    unlink("../../template/" . $_GET["name"] . ".zip");
+                } else {
+                    echo '<br>导入成功';
+                    unlink("../../template/" . $_GET["name"] . ".zip");
+                }
+
+                ?>
+            </div>
+
+        </div>
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: plugin-del.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,19 @@
+<?php
+include("../check.php");
+function removeDir($dirName)
+{
+    if (!is_dir($dirName)) {
+        return false;
+    }
+    $handle = @opendir($dirName);
+    while (($file = @readdir($handle)) !== false) {
+        if ($file != '.' && $file != '..') {
+            $dir = $dirName . '/' . $file;
+            is_dir($dir) ? removeDir($dir) : @unlink($dir);
+        }
+    }
+    closedir($handle);
+    @rmdir($dirName);
+}
+removeDir('../../plugin/' . $_GET["id"]);
+echo "<script type='text/javascript'>window.location.href='plugin.php'</script>";
\ No newline at end of file

programming_language: PHP
filename: plugin-move.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,28 @@
+<?php
+include("../check.php");
+$json_string=file_get_contents('../../plugin/'. $_GET["id"]."/version.json");
+$row = json_decode($json_string, true);
+if($row["use"]==true){
+    $data = array();
+    $data['key'] =$row["key"];
+    $data['name'] = $row["name"];
+    $data['version'] = $row["version"];
+    $data['author'] = $row["author"];
+    $data['use'] = false;
+    $json_string = json_encode($data);
+    
+    file_put_contents('../../plugin/'. $_GET["id"]."/version.json", $json_string);
+
+   }else{
+    $data = array();
+    $data['key'] =$row["key"];
+    $data['name'] = $row["name"];
+    $data['version'] = $row["version"];
+    $data['author'] = $row["author"];
+    $data['use'] = true;
+    $json_string = json_encode($data);
+    
+    file_put_contents('../../plugin/'. $_GET["id"]."/version.json", $json_string);
+   }
+   echo "<script type='text/javascript'>window.location.href='plugin.php'</script>"
+?>
\ No newline at end of file

programming_language: PHP
filename: plugin.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,120 @@
+<?php
+include("../header.php");
+
+?>
+<script type="text/javascript" language="javascript">
+    function confirmAct() {
+        if (confirm('确定要删除插件吗?')) {
+            return true;
+        }
+        return false;
+    }
+
+    function confirmAct1() {
+        if (confirm('确定要禁用插件吗?')) {
+            return true;
+        }
+        return false;
+    }
+
+    function confirmAct2() {
+        if (confirm('确定要启用插件吗?')) {
+            return true;
+        }
+        return false;
+    }
+</script>
+<div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+    <div class="mdui-card" style="overflow:scroll">
+
+        <div class="mdui-card-primary">
+            <div class="mdui-card-primary-title" style="font-size:30px;">插件设置</div>
+
+        </div>
+        <div class="mdui-divider"></div> <br>
+        <m-scrollbar style="height: 650px;width:900px;">
+
+            <form method="get" action="download-plugin.php" style="text-align:left;padding:0 0 0 250px">
+                <div style="  display: flex;gap: 47px;">
+
+                    <div>输入Key加载插件：<input style="width:300px" class="mdui-textfield-input" name="name" type="text" value="" required=""> </div>
+                    <div><button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button><br><br>
+                    </div>
+
+
+
+
+                </div>
+            </form>
+            <br>
+            <div class="mdui-divider"></div> <br>
+            <div style="width:90%;position: absolute;left: 50%;    transform: translateX(-50%  );" class="mdui-table-fluid">
+
+                <table class="mdui-table">
+                    <thead>
+                        <tr>
+                            <th>ID-Key</th>
+                            <th>名称</th>
+                            <th>版本</th>
+                            <th>作者</th>
+                            <th>状态</th>
+                            <th class="mdui-table-col-numeric"> </th>
+                        </tr>
+                    </thead>
+                    <tbody>
+
+                        <?php
+
+
+
+
+                        $file = scandir("../../plugin");
+
+                        for ($i = 2; $i < count($file); $i++) {
+                            if ($file[$i] == ".gitkeep") {
+                            } else {
+                                $json_string = file_get_contents('../../plugin/' . $file[$i] . "/version.json");
+                                $row = json_decode($json_string, true);
+                                echo "<tr>";
+                                echo "</tr>";
+                                echo "<td>" . $row["key"] . "</td>";
+                                echo "<td>" . $row["name"] . "</td>";
+                                echo "<td>" . $row["version"] . "</td>";
+                                echo "<td>" . $row["author"] . "</td>";
+                                if ($row["use"] == true) {
+                                    echo "<td style='color:green'><strong>启用</strong></td>";
+                                    echo '<td><a target="_blank" href="' . '../../plugin/' . $file[$i] . "/setting.php" . '"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a>';
+                                    echo '<a onclick="return confirmAct1();" href="plugin-move.php?id=' . $file[$i] . '"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe644;</i></button></a>';
+                                } else {
+                                    echo "<td style='color:red'><strong>禁用</strong></td>";
+                                    echo '<td><a target="_blank" href="' . '../../plugin/' . $file[$i] . "/setting.php" . '"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a>';
+                                    echo '<a onclick="return confirmAct2();" href="plugin-move.php?id=' . $file[$i] . '"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe86c;</i></button></a>';
+                                }
+
+
+                                echo '<a onclick="return confirmAct();" href="plugin-del.php?id=' . $file[$i] . '"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe872;</i></button></a>&nbsp;';
+
+                                echo "</td>";
+                            }
+                        }
+
+
+
+                        ?>
+
+
+                    </tbody>
+                </table>
+            </div>
+        </m-scrollbar>
+
+    </div>
+
+</div>
+
+<script src="../../../../../../resource/js/mtu.min.js"></script>
+<script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: plus-back-run.php
change_type: ModificationType.RENAME
diff: @@ -2,29 +2,7 @@
 deldir('./backzip/');
 rmdir('./backzip/');
 
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
+include("../check.php");
 $ran12 = rand() * 10;
 $dir = './backup/';
 mkdir($dir);
@@ -34,7 +12,7 @@ chmod($dir, 0755);
 header("Content-type:text/html;charset=utf-8");
 
 
-$json_string = file_get_contents(BASE_PATH1 . 'install/sql-config/sql.json');
+$json_string = file_get_contents('../../install/sql-config/sql.json');
 $data = json_decode($json_string, true);
 $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
 $sql = 'select * from `rapidcmschat` ORDER BY time DESC';
@@ -119,7 +97,7 @@ rmdir('./backzip/');
 $dir1 = 'backzip';
 mkdir($dir1);
 chmod($dir1, 0755);
-copydir("../resource/config", $dir . "config");
+copydir("../../resource/config", $dir . "config");
 
 
 

programming_language: PHP
filename: plus-back-upload-sql.php
change_type: ModificationType.RENAME
diff: @@ -1,6 +1,7 @@
 <?php
-include("../resource/variable.php");
-require_once('pclzip.lib.php');
+
+include("../check.php");
+require_once('../src/pclzip.lib.php');
 
 
 $json_string = file_get_contents('../install/sql-config/sql.json');

programming_language: PHP
filename: plus-back-upload.php
change_type: ModificationType.RENAME
diff: @@ -1,5 +1,5 @@
 <?php
-require_once('pclzip.lib.php');
+require_once('../src/pclzip.lib.php');
 $fileInfo = $_FILES['file'];
 $name = $fileInfo['name'];
 $pathname = pathinfo($name)["extension"];

programming_language: PHP
filename: plus-shark-run.php
change_type: ModificationType.RENAME
diff: @@ -1,9 +1,10 @@
 <?php
-include("../resource/variable.php");
+
+include("../check.php");
 error_reporting(0);
 header("Content-type:text/html;charset=utf-8");
 $table_name = "sk_content";
-$json_string = file_get_contents('../install/sql-config/sql.json');
+$json_string = file_get_contents('../../install/sql-config/sql.json');
 $data = json_decode($json_string, true);
 $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
 $sql = 'select * from `' . $table_name . '`';

programming_language: PHP
filename: plus-shark.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,37 @@
+<?php
+include("../header.php");
+
+?>
+    <br><br>
+    <div style=" position:  relative;left:15%">
+        <div class="mdui-card" style="width:70%;height:300px; ">
+            <div class="mdui-card-primary" style="text-align:center;">
+                <div class="mdui-card-primary-title" style="font-size:30px">从SharkCMS迁移数据</div>
+            </div>
+            <br>
+            <label class="mdui-textfield-label">&nbsp;&nbsp;&nbsp;选择导入方式</label>
+            &nbsp;&nbsp;&nbsp;
+            <label class="mdui-radio">
+                <input type="radio" name="group1" checked />
+                <i class="mdui-radio-icon"></i>
+                从本程序所在数据库导入
+            </label>
+
+            <label class="mdui-radio">
+                <input type="radio" name="group1" disabled />
+                <i class="mdui-radio-icon"></i>
+                从其他数据库导入（暂不支持）
+            </label>
+            <br>  <br>
+            &nbsp;&nbsp;&nbsp;<a href="plus-shark-run.php"><button name="sub" class="mdui-btn mdui-btn-raised mdui-text-color-black action-btn">一键导入文章</button></a>
+       
+        </div>
+    </div>
+    <br>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+
+</html>
\ No newline at end of file

programming_language: HTML
filename: plus.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,40 @@
+<?php
+include("../header.php");
+
+?>
+    <br><br>
+    <div style=" position:  relative;left:15%">
+        <div class="mdui-card" style="width:70%;height:300px; ">
+            <div class="mdui-card-primary" style="text-align:center;">
+                <div class="mdui-card-primary-title" style="font-size:30px">数据设置</div>
+            </div>
+            <div class="mdui-tab" mdui-tab>
+                <a href="#move1" class="mdui-ripple">备份数据</a>
+                <a href="#move2" class="mdui-ripple">导入备份</a>
+           <a href="#move3" class="mdui-ripple">迁移数据</a> 
+            </div>
+            <div id="move1" class="mdui-p-a-2">
+            <label class="mdui-textfield-label">备份系统数据，树立安全意识</label>
+               
+                <a href="plus-back-run.php"><button name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">备份数据</button></a>
+           </div>
+            <div id="move2" class="mdui-p-a-2">
+            <label class="mdui-textfield-label">配置文件暂不支持，请解压后手动复制粘贴</label>
+            
+           <!--    <form enctype="multipart/form-data" id="fileupdateform" method="post" action="plus-back-upload-sql.php"><button for="file" onclick="document.getElementById('file').click()" type="button" style="color:black" class="mdui-btn mdui-btn-raised  action-btn">导入.sql文件</button><br>                    <input style="display: none;" onchange="document.getElementById('fileupdateform').submit()"   name="file"  id="file" type="file" required=""></form>
+    --></div>
+           <div id="move3" class="mdui-p-a-2">
+            <label class="mdui-textfield-label">迁移其他数据，便捷导入内容</label>
+                   <a href="plus-shark.php"><button name="sub" class="mdui-btn mdui-btn-raised mdui-text-color-black action-btn">从SharkCMS迁移数据</button></a>
+       
+            </div>
+         </div>
+    </div>
+    <br>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+
+</html>
\ No newline at end of file

programming_language: HTML
filename: temp-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,13 @@
+<?php
+include("../check.php");
+$data1 = array();
+$data1['template'] = $_POST["template"];
+$data1['version'] = $data_index["version"];
+$data1['rewrite'] = $data_index["rewrite"];
+$data1['close'] = $data_index["close"];
+$json_string1 = json_encode($data1);
+$filename1 = '../../resource/config/index.json';
+$fp1 = fopen($filename1, "w");
+$len1 = fwrite($fp1, $json_string1);
+fclose($fp1);
+sendalert("修改成功！");
\ No newline at end of file

programming_language: PHP
filename: temp.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,55 @@
+<?php
+include("../header.php");
+
+?>
+    <div style=" position:  relative;left:25%;top:10%">
+
+
+        <div class="mdui-card" style="width:600px">
+
+            <div class="mdui-card-primary">
+                <div class="mdui-card-primary-title" style="font-size:30px">设置模板</div>
+            </div>
+            <m-scrollbar style="font-size:15px;height: 400px">
+                <div class="mdui-card-content" style="font-size:18px;text-align:left">
+                    当前模板：<? echo $data_index["template"] ?>
+                    &nbsp;&nbsp;&nbsp;          &nbsp;&nbsp;&nbsp;          &nbsp;&nbsp;     <a  target="_blank" href="../../../../template/<? echo $data_index["template"] ?>/setting.php"><button type="button" style="color:black" class="mdui-btn mdui-btn-raised  action-btn">模板单独设置</button></a><br><br>
+                    <form method="post" action="temp-run.php"> 切换模板：
+                        <select class="mdui-select" name="template" mdui-select>
+
+
+
+                            <?php
+
+                            $file = scandir("../../template");
+
+                            for ($i = 2; $i < count($file); $i++) {
+                                echo '  <option value="' . $file[$i] . '">' . $file[$i] . '</option>';
+                            }
+                            ?></select>
+                        &nbsp;&nbsp;&nbsp;
+                        <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button><br><br>
+                    </form>
+                    <form method="get" action="download-template.php"> 输入Key加载模板：
+                      <div style="display: inline;">  
+                    <input style="width:300px" class="mdui-textfield-input" name="name" type="text"
+                                value="" required="">
+                                <br>
+                        <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button><br><br>
+                        </div>
+                    </form>
+                    <a  target="_blank" href="https://www.yuque.com/rapid/cms/yo0y1er0vg6rl86g"><button type="button" style="color:black" class="mdui-btn mdui-btn-raised  action-btn">进入文档获取模板</button><br><br></a>
+                     
+
+                </div>
+            </m-scrollbar>
+
+        </div>
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: header.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,30 @@
+<? include("check.php"); ?>
+
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+    <meta charset="utf-8">
+    <title>RapidCMS管理后台</title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width,initial-scale=1">
+    <link rel="shortcut icon"" href=" ../../../resource/img/icon.png" type="image/x-icon" />
+    <link rel="stylesheet" href="../../../../resource/css/mdui.min.css" />
+    <link rel="stylesheet" href="../../../resource/css/mtu.min.css">
+    <link rel="stylesheet" href="../../../resource/css/style.css">
+    <link rel="stylesheet" href="../../../template/default/theme.css">
+    
+</head>
+
+<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary:79, 55, 139; --color-accent: 79, 55, 139;">
+    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
+        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
+        <span class="mdui-typo-title">RapidCMS 管理后台</span>
+    </div>
+
+    <? include("../drawer.php"); ?>
+    <style>
+        * {
+            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+        }
+    </style>
\ No newline at end of file

programming_language: HTML
filename: index.php
change_type: ModificationType.MODIFY
diff: @@ -9,9 +9,7 @@ function encode($string = '', $skey = 'cxphp')
     return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
 }
 
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
+$json_string = file_get_contents('../install/sql-config/sql.json');
 $dataxxx = json_decode($json_string, true);
 $link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
 $sql = "select password from `rapidcmsadmin` where username=\"admin\"";
@@ -20,7 +18,7 @@ $pass = mysqli_fetch_row($result);
 $pa = $pass[0];
 
 if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: ./login.php");
+    Header("Location: admin_user/login.php");
 }
 
 ?>

programming_language: PHP
filename: movepass.php
change_type: ModificationType.DELETE
diff: @@ -1,91 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary:79, 55, 139; --color-accent: 79, 55, 139;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-        <div class="mdui-card">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px">修改管理员密码</div>
-            </div>
-            <form method="post" action="run-movepass.php">
-                <m-scrollbar style="height: 300px;width:900px">
-                    <div class="mdui-card-content" style="font-size:15px;text-align:left">
-                        <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
-                            <label class="mdui-textfield-label">输入密码</label>
-                            <input class="mdui-textfield-input" name="password" type="password"
-                              required="">
-                              <div class="mdui-textfield-error">密码不能为空</div>
-                        </div>
-                        <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom ">
-                            <label class="mdui-textfield-label">重复密码</label>
-                            <input class="mdui-textfield-input" name="password2" type="password"
-                               required="">
-                               <div class="mdui-textfield-error">重复密码不能为空</div>
-                        </div>
-                      
-                        <button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme-accent">提交</button>
-
-                    </div>
-                </m-scrollbar>
-            </form>
-        </div>
-       
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: plugin-del.php
change_type: ModificationType.DELETE
diff: @@ -1,42 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-
-function removeDir($dirName)
-{
-    if (!is_dir($dirName)) {
-        return false;
-    }
-    $handle = @opendir($dirName);
-    while (($file = @readdir($handle)) !== false) {
-        if ($file != '.' && $file != '..') {
-            $dir = $dirName . '/' . $file;
-            is_dir($dir) ? removeDir($dir) : @unlink($dir);
-        }
-    }
-    closedir($handle);
-    @rmdir($dirName);
-}
-removeDir('../plugin/' . $_GET["id"]);
-echo "<script type='text/javascript'>window.location.href='plugin.php'</script>";
\ No newline at end of file

programming_language: unknown
filename: plugin-move.php
change_type: ModificationType.DELETE
diff: @@ -1,50 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-$json_string=file_get_contents('../plugin/'. $_GET["id"]."/version.json");
-$row = json_decode($json_string, true);
-if($row["use"]==true){
-    $data = array();
-    $data['key'] =$row["key"];
-    $data['name'] = $row["name"];
-    $data['version'] = $row["version"];
-    $data['author'] = $row["author"];
-    $data['use'] = false;
-    $json_string = json_encode($data);
-    
-    file_put_contents('../plugin/'. $_GET["id"]."/version.json", $json_string);
-
-   }else{
-    $data = array();
-    $data['key'] =$row["key"];
-    $data['name'] = $row["name"];
-    $data['version'] = $row["version"];
-    $data['author'] = $row["author"];
-    $data['use'] = true;
-    $json_string = json_encode($data);
-    
-    file_put_contents('../plugin/'. $_GET["id"]."/version.json", $json_string);
-   }
-   echo "<script type='text/javascript'>window.location.href='plugin.php'</script>"
-?>
\ No newline at end of file

programming_language: unknown
filename: plugin.php
change_type: ModificationType.DELETE
diff: @@ -1,174 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <script type="text/javascript" language="javascript">
-        function confirmAct() {
-            if (confirm('确定要删除插件吗?')) {
-                return true;
-            }
-            return false;
-        }
-
-        function confirmAct1() {
-            if (confirm('确定要禁用插件吗?')) {
-                return true;
-            }
-            return false;
-        }
-
-        function confirmAct2() {
-            if (confirm('确定要启用插件吗?')) {
-                return true;
-            }
-            return false;
-        }
-    </script>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-        <div class="mdui-card" style="overflow:scroll">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px;">插件设置</div>
-
-            </div> 
-            <div class="mdui-divider"></div> <br>
-            <m-scrollbar style="height: 650px;width:900px;">
-          
-            <form method="get" action="download-plugin.php" style="text-align:left;padding:0 0 0 250px">
-                    <div style="  display: flex;gap: 47px;">
-
-                        <div>输入Key加载插件：<input style="width:300px" class="mdui-textfield-input" name="name" type="text" value="" required=""> </div>
-                        <div><button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button><br><br>
-                        </div>
-
-
-
-
-                    </div>
-                </form>
-                <br>
-                <div class="mdui-divider"></div>  <br>
-                <div style="width:90%;position: absolute;left: 50%;    transform: translateX(-50%  );" class="mdui-table-fluid">
-
-                    <table class="mdui-table">
-                        <thead>
-                            <tr>
-                                <th>ID-Key</th>
-                                <th>名称</th>
-                                <th>版本</th>
-                                <th>作者</th>
-                                <th>状态</th>
-                                <th class="mdui-table-col-numeric"> </th>
-                            </tr>
-                        </thead>
-                        <tbody>
-
-                            <?php
-
-
-
-
-                            $file = scandir("../plugin");
-
-                            for ($i = 2; $i < count($file); $i++) {
-                                if($file[$i]==".gitkeep"){
-                                    
-                                }else{
-                                    $json_string = file_get_contents('../plugin/' . $file[$i] . "/version.json");
-                                    $row = json_decode($json_string, true);
-                                    echo "<tr>";
-                                    echo "</tr>";
-                                    echo "<td>" . $row["key"] . "</td>";
-                                    echo "<td>" . $row["name"] . "</td>";
-                                    echo "<td>" . $row["version"] . "</td>";
-                                    echo "<td>" . $row["author"] . "</td>";
-                                    if ($row["use"] == true) {
-                                        echo "<td style='color:green'><strong>启用</strong></td>";
-                                        echo '<td><a target="_blank" href="' . '../plugin/' . $file[$i] . "/setting.php" . '"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a>';
-                                        echo '<a onclick="return confirmAct1();" href="plugin-move.php?id=' . $file[$i] . '"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe644;</i></button></a>';
-                                    } else {
-                                        echo "<td style='color:red'><strong>禁用</strong></td>";
-                                        echo '<td><a target="_blank" href="' . '../plugin/' . $file[$i] . "/setting.php" . '"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a>';
-                                        echo '<a onclick="return confirmAct2();" href="plugin-move.php?id=' . $file[$i] . '"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe86c;</i></button></a>';
-                                    }
-    
-    
-                                    echo '<a onclick="return confirmAct();" href="plugin-del.php?id=' . $file[$i] . '"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe872;</i></button></a>&nbsp;';
-    
-                                    echo "</td>";
-                                }
-                         
-                            }
-
-
-
-                            ?>
-
-
-                        </tbody>
-                    </table>
-                </div>
-            </m-scrollbar>
-
-        </div>
-
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: plus-shark.php
change_type: ModificationType.DELETE
diff: @@ -1,87 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <br><br>
-    <div style=" position:  relative;left:15%">
-        <div class="mdui-card" style="width:70%;height:300px; ">
-            <div class="mdui-card-primary" style="text-align:center;">
-                <div class="mdui-card-primary-title" style="font-size:30px">从SharkCMS迁移数据</div>
-            </div>
-            <br>
-            <label class="mdui-textfield-label">&nbsp;&nbsp;&nbsp;选择导入方式</label>
-            &nbsp;&nbsp;&nbsp;
-            <label class="mdui-radio">
-                <input type="radio" name="group1" checked />
-                <i class="mdui-radio-icon"></i>
-                从本程序所在数据库导入
-            </label>
-
-            <label class="mdui-radio">
-                <input type="radio" name="group1" disabled />
-                <i class="mdui-radio-icon"></i>
-                从其他数据库导入（暂不支持）
-            </label>
-            <br>  <br>
-            &nbsp;&nbsp;&nbsp;<a href="plus-shark-run.php"><button name="sub" class="mdui-btn mdui-btn-raised mdui-text-color-black action-btn">一键导入文章</button></a>
-       
-        </div>
-    </div>
-    <br>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: plus.php
change_type: ModificationType.DELETE
diff: @@ -1,90 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <br><br>
-    <div style=" position:  relative;left:15%">
-        <div class="mdui-card" style="width:70%;height:300px; ">
-            <div class="mdui-card-primary" style="text-align:center;">
-                <div class="mdui-card-primary-title" style="font-size:30px">数据设置</div>
-            </div>
-            <div class="mdui-tab" mdui-tab>
-                <a href="#move1" class="mdui-ripple">备份数据</a>
-                <a href="#move2" class="mdui-ripple">导入备份</a>
-           <a href="#move3" class="mdui-ripple">迁移数据</a> 
-            </div>
-            <div id="move1" class="mdui-p-a-2">
-            <label class="mdui-textfield-label">备份系统数据，树立安全意识</label>
-               
-                <a href="plus-back-run.php"><button name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">备份数据</button></a>
-           </div>
-            <div id="move2" class="mdui-p-a-2">
-            <label class="mdui-textfield-label">配置文件暂不支持，请解压后手动复制粘贴</label>
-            
-           <!--    <form enctype="multipart/form-data" id="fileupdateform" method="post" action="plus-back-upload-sql.php"><button for="file" onclick="document.getElementById('file').click()" type="button" style="color:black" class="mdui-btn mdui-btn-raised  action-btn">导入.sql文件</button><br>                    <input style="display: none;" onchange="document.getElementById('fileupdateform').submit()"   name="file"  id="file" type="file" required=""></form>
-    --></div>
-           <div id="move3" class="mdui-p-a-2">
-            <label class="mdui-textfield-label">迁移其他数据，便捷导入内容</label>
-                   <a href="plus-shark.php"><button name="sub" class="mdui-btn mdui-btn-raised mdui-text-color-black action-btn">从SharkCMS迁移数据</button></a>
-       
-            </div>
-         </div>
-    </div>
-    <br>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: run-close.php
change_type: ModificationType.DELETE
diff: @@ -1,40 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-$data1 = array();
-if($_POST["close"]=="on"){
-    $data1['close'] = "true";
-}else{
-    $data1['close'] = "false";
-}
-$data1['template'] = $data_index["template"];
-$data1['version'] = $data_index["version"];
-$data1['rewrite'] = $data_index["rewrite"];
-
-$json_string1 = json_encode($data1);
-$filename1 = '../resource/config/index.json';
-$fp1 = fopen($filename1, "w");
-$len1 = fwrite($fp1, $json_string1);
-fclose($fp1);
-sendalert("修改成功！");
\ No newline at end of file

programming_language: unknown
filename: run-mail.php
change_type: ModificationType.DELETE
diff: @@ -1,41 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-$data1 = array();
-if($_POST["logonwithmail"]=="on"){
-    $data1['logonwithmail'] = "true";
-}else{
-    $data1['logonwithmail'] = "false";
-}
-$data1['smtp'] = $_POST["smtp"];
-$data1['secure'] = $_POST["secure"];
-$data1['port'] = $_POST["port"];
-$data1['username'] = $_POST["username"];
-$data1['password'] = $_POST["password"];
-$json_string1 = json_encode($data1);
-$filename1 = '../resource/config/mail.json';
-$fp1 = fopen($filename1, "w");
-$len1 = fwrite($fp1, $json_string1);
-fclose($fp1);
-sendalert("修改成功！");
\ No newline at end of file

programming_language: unknown
filename: run-rewrite.php
change_type: ModificationType.DELETE
diff: @@ -1,40 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-$data1 = array();
-if($_POST["rewrite"]=="on"){
-    $data1['rewrite'] = "true";
-}else{
-    $data1['rewrite'] = "false";
-}
-$data1['template'] = $data_index["template"];
-$data1['version'] = $data_index["version"];
-$data1['close'] = $data_index["close"];
-
-$json_string1 = json_encode($data1);
-$filename1 = '../resource/config/index.json';
-$fp1 = fopen($filename1, "w");
-$len1 = fwrite($fp1, $json_string1);
-fclose($fp1);
-sendalert("修改成功！");
\ No newline at end of file

programming_language: unknown
filename: run-setting.php
change_type: ModificationType.DELETE
diff: @@ -1,38 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-$data1 = array();
-$data1['headname'] = $_POST["headname"];
-$data1['title'] = $_POST["title"];
-$data1['icon'] =  $data_header["icon"];
-$data1['description'] = $_POST["description"];
-$data1['keywords'] = $_POST["keywords"];
-$data1['introduce'] = $_POST["introduce"];
-$data1['con'] = $_POST["con"];
-$json_string1 = json_encode($data1);
-$filename1 = '../resource/config/header.json';
-$fp1 = fopen($filename1, "w");
-$len1 = fwrite($fp1, $json_string1);
-fclose($fp1);
-sendalert("修改成功");

programming_language: unknown
filename: run-tool.php
change_type: ModificationType.DELETE
diff: @@ -1,50 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-$data1 = array();
-if($_POST["tool"]=="on"){
-    $data1['tool'] = "true";
-}else{
-    $data1['tool'] = "false";
-}
-$data1['kind'] = $_POST["kind"];
-if ($_POST["kind"] == "one") {
-    $data1['content'] = '<center><p id="hitokoto"><a style="color:#000000" href="#" id="hitokoto_text">获取中...</a></p></center><script>fetch(\'https://v1.hitokoto.cn\').then(response => response.json()).then(data => {const hitokoto = document.querySelector(\'#hitokoto_text\');hitokoto.href = \'https://hitokoto.cn/?uuid=\' + data.uuid;
-        if (data.from_who == null) {
-        hitokoto.innerHTML = "「 " + data.hitokoto + " 」<br>——" + data.from;
-        }else {
-        hitokoto.innerHTML = "「 " + data.hitokoto + " 」<br>——" + data.from_who + "「" + data.from + "」"
-        }}).catch(console.error)
-        </script>';
-} else {
-    $data1['content'] = $_POST["content"];
-}
-
-
-$json_string1 = json_encode($data1);
-$filename1 = '../resource/config/tool.json';
-$fp1 = fopen($filename1, "w");
-$len1 = fwrite($fp1, $json_string1);
-fclose($fp1);
-echo "<script type=" . "\"" . "text/javascript" . "\"" . ">" . "window.location=\"tool.php\"</script>";

programming_language: unknown
filename: server.php
change_type: ModificationType.DELETE
diff: @@ -1,87 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary:79, 55, 139; --color-accent: 79, 55, 139;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-
-        <div class="mdui-card" style="width:900px">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px">网站服务设置</div>
-            </div>
-            <form method="post" action="run-close.php">
-            <div class="mdui-card-content" style="font-size:15px;text-align:left">
-            <label class="mdui-switch">
-                            启用网页维护&nbsp;&nbsp;&nbsp;
-                            <input <?
-                                    if ($data_index["close"]  == "true") {
-                                        echo " checked='true'";
-                                    }
-                                    ?> name="close" type="checkbox" />
-                            <i class="mdui-switch-icon"></i>
-                        </label> 
-                        <br> <br>
-                        <button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme-accent">确认</button>
-                  
-            </div>
-            </form>
-        </div>
-        <br>
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: about.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,21 @@
+<?php
+include("../header.php");
+
+?>
+<div class="medium" style=" text-align:center;display: flex;gap: 47px;">
+    <img style="Border-radius:10px" width="200px" src="../../../upload/logo.png">
+    <div>
+        <div style="color:black;font-size: 20px;" class="mdui-typo">
+            <h1 style="font-weight: bold;">RapidCMS</h1>
+        </div>
+        <div style="color:black;font-size: 10px;" class="mdui-typo">
+            <h1>简单好用的官网CMS系统</h1>
+        </div>
+    </div>
+</div>
+
+<script src="../../../../../../resource/js/mtu.min.js"></script>
+<script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+</html>
\ No newline at end of file

programming_language: HTML
filename: update-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,48 @@
+<?php
+include("../header.php");
+
+?>
+    <div class="medium" style=" text-align:center;display: flex">
+
+        <div>
+            <div style="color:black;font-size: 20px;" class="mdui-typo">
+                <h1 style="font-weight: bold;">版本更新</h1>
+                <h5>正在更新中，版本：<?php echo $_GET["version"]; ?> </h5>
+
+                <br>
+
+
+                <?php
+
+                $arrContextOptions = array(
+                    "ssl" => array(
+                        "verify_peer" => false,
+                        "verify_peer_name" => false,
+                    ),
+                );
+                file_put_contents("../../upload/" . $_GET["version"] . ".zip", file_get_contents("http://cdn.jsdelivr.net/gh/codewyx/cmscdn/version/" . $_GET["version"] . ".zip", false, stream_context_create($arrContextOptions)));
+
+                require_once('../src/pclzip.lib.php');
+
+                $zip = new PclZip("../../upload/" . $_GET["version"] . ".zip");
+                $result = $zip->extract(PCLZIP_OPT_PATH, "../");
+                if ($result == 0) {
+                    echo '<br>更新失败';
+                    unlink("../../upload/" . $_GET["version"] . ".zip");
+                } else {
+                    echo '<br>更新成功';
+                    unlink("../../upload/" . $_GET["version"] . ".zip");
+                }
+
+                ?>
+            </div>
+
+        </div>
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: update.php
change_type: ModificationType.RENAME
diff: @@ -1,58 +1,7 @@
 <?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
+include("../header.php");
 
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
 ?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
     <div style=" position:  relative;left:15%">
     <br><br>
         <div class="mdui-card" style="width:70%;height:300px; ">

programming_language: HTML
filename: temp-run.php
change_type: ModificationType.DELETE
diff: @@ -1,35 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-$data1 = array();
-$data1['template'] = $_POST["template"];
-$data1['version'] = $data_index["version"];
-$data1['rewrite'] = $data_index["rewrite"];
-$data1['close'] = $data_index["close"];
-$json_string1 = json_encode($data1);
-$filename1 = '../resource/config/index.json';
-$fp1 = fopen($filename1, "w");
-$len1 = fwrite($fp1, $json_string1);
-fclose($fp1);
-sendalert("修改成功！");
\ No newline at end of file

programming_language: unknown
filename: temp.php
change_type: ModificationType.DELETE
diff: @@ -1,106 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style=" position:  relative;left:25%;top:10%">
-
-
-        <div class="mdui-card" style="width:600px">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px">设置模板</div>
-            </div>
-            <m-scrollbar style="font-size:15px;height: 400px">
-                <div class="mdui-card-content" style="font-size:18px;text-align:left">
-                    当前模板：<? echo $data_index["template"] ?>
-                    &nbsp;&nbsp;&nbsp;          &nbsp;&nbsp;&nbsp;          &nbsp;&nbsp;     <a  target="_blank" href="../../../../template/<? echo $data_index["template"] ?>/setting.php"><button type="button" style="color:black" class="mdui-btn mdui-btn-raised  action-btn">模板单独设置</button></a><br><br>
-                    <form method="post" action="temp-run.php"> 切换模板：
-                        <select class="mdui-select" name="template" mdui-select>
-
-
-
-                            <?php
-
-                            $file = scandir("../template");
-
-                            for ($i = 2; $i < count($file); $i++) {
-                                echo '  <option value="' . $file[$i] . '">' . $file[$i] . '</option>';
-                            }
-                            ?></select>
-                        &nbsp;&nbsp;&nbsp;
-                        <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button><br><br>
-                    </form>
-                    <form method="get" action="download-template.php"> 输入Key加载模板：
-                      <div style="display: inline;">  
-                    <input style="width:300px" class="mdui-textfield-input" name="name" type="text"
-                                value="" required="">
-                                <br>
-                        <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">确认</button><br><br>
-                        </div>
-                    </form>
-                    <a  target="_blank" href="https://www.yuque.com/rapid/cms/yo0y1er0vg6rl86g"><button type="button" style="color:black" class="mdui-btn mdui-btn-raised  action-btn">进入文档获取模板</button><br><br></a>
-                     
-
-                </div>
-            </m-scrollbar>
-
-        </div>
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: tool.php
change_type: ModificationType.DELETE
diff: @@ -1,121 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-deep-purple mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary:79, 55, 139; --color-accent: 79, 55, 139;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-        <div class="mdui-card">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px">小组件设置</div>
-            </div>
-            <form method="post" action="run-tool.php">
-                <m-scrollbar style="height: 620px;width:900px">
-                    <div class="mdui-card-content" style="font-size:15px;text-align:left">
-
-                        <label class="mdui-switch">
-                            开启小组件&nbsp;&nbsp;&nbsp;
-                            <input <?
-                                    if ($data_tool["tool"]  == "true") {
-                                        echo " checked='true'";
-                                    }
-                                    ?> name="tool" type="checkbox" />
-                            <i class="mdui-switch-icon"></i>
-                        </label> <br>
-                        <label class="mdui-textfield-label">选择小组件</label>
-                        <select class="mdui-select" name="kind" id="kind" onchange="kindmove()" mdui-select>
-                            <?
-
-                            if ($data_tool["kind"] == "one") {
-                                echo ' <option value="one" selected>一言</option>';
-                                echo '   <option value="write" >自定义</option>';
-                            } else {
-                                echo ' <option value="one" >一言</option>';
-                                echo '   <option value="write" selected>自定义</option>';
-                            }
-                            ?>
-
-
-                        </select> <br> <br>
-                        <div id="con" style="display:none" class="mdui-textfield  mdui-textfield-has-bottom ">
-                            <label class="mdui-textfield-label">输入内容</label>
-
-
-                            <textarea rows="7" class="mdui-textfield-input" name="content" type="text" required=""><? echo $data_tool["content"]; ?></textarea>
-                        </div>
-                        <br>
-                        <button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-theme-accent">提交</button>
-
-                    </div>
-                </m-scrollbar>
-            </form>
-        </div>
-
-    </div>
-    <script>
-        function kindmove(){
-if(document.getElementById("kind").value=="write"){
-    document.getElementById("con").style.display="inline";
-}else{
-    document.getElementById("con").style.display="none";
-}
-        }
-        window.onload=()=>{
-            kindmove()
-        }
-    </script>
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: update-run.php
change_type: ModificationType.DELETE
diff: @@ -1,100 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div class="medium" style=" text-align:center;display: flex">
-
-        <div>
-            <div style="color:black;font-size: 20px;" class="mdui-typo">
-                <h1 style="font-weight: bold;">版本更新</h1>
-                <h5>正在更新中，版本：<?php echo $_GET["version"]; ?> </h5>
-
-                <br>
-
-
-                <?php
-
-                $arrContextOptions = array(
-                    "ssl" => array(
-                        "verify_peer" => false,
-                        "verify_peer_name" => false,
-                    ),
-                );
-                file_put_contents("../upload/" . $_GET["version"] . ".zip", file_get_contents("http://cdn.jsdelivr.net/gh/codewyx/cmscdn/version/" . $_GET["version"] . ".zip", false, stream_context_create($arrContextOptions)));
-
-                require_once('pclzip.lib.php');
-
-                $zip = new PclZip("../upload/" . $_GET["version"] . ".zip");
-                $result = $zip->extract(PCLZIP_OPT_PATH, "../");
-                if ($result == 0) {
-                    echo '<br>更新失败';
-                    unlink("../upload/" . $_GET["version"] . ".zip");
-                } else {
-                    echo '<br>更新成功';
-                    unlink("../upload/" . $_GET["version"] . ".zip");
-                }
-
-                ?>
-            </div>
-
-        </div>
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: upload.php
change_type: ModificationType.DELETE
diff: @@ -1,18 +0,0 @@
-<?php
-$fileInfo=$_FILES['file'];
-$name=$fileInfo['name'];
-$pathname = pathinfo($name)["extension"];
-$filename =  pathinfo($name, PATHINFO_FILENAME); 
-$filePath=$fileInfo['tmp_name'];
-//$name = iconv('utf-8', 'gb2312', $filename);
-$str=rand(); 
-
-$path="../upload/upload_".md5($str).".".$pathname;
-move_uploaded_file($filePath,$path);
-echo json_encode([
-  "code" => 0,
-  "data" => [
-    "url" => $path,
-    "name" => $name
-  ]
- ]);

programming_language: unknown
filename: user-del.php
change_type: ModificationType.DELETE
diff: @@ -1,42 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-//测试
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-
-      $str="DELETE FROM `rapidcmsuser` WHERE username='".$_GET["username"]."'";
-	  $result=mysqli_query($link,$str);
-      sendalert("删除成功！");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: user-move-run.php
change_type: ModificationType.DELETE
diff: @@ -1,42 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-header ( "Content-type:text/html;charset=utf-8" );
-$json_string = file_get_contents('../install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
-
-if($link)
-{
-    $select=mysqli_select_db($link,$dataxxx['dbname']);
-  if($select)
-  {
-    $password1=md5(sha1(md5($_POST["password"])));
-      $str="UPDATE `rapidcmsuser` SET `password`= '".$password1."' WHERE username='".$_POST["username"]."'";
-
-	  $result=mysqli_query($link,$str);
-    sendalert("修改成功！");
-  }
-}
-?>
\ No newline at end of file

programming_language: unknown
filename: user-move.php
change_type: ModificationType.DELETE
diff: @@ -1,97 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
-define('BASE_PATH1',str_replace('\\','/',realpath(dirname(BASE_PATH).'/'))."/");
-$json_string = file_get_contents(BASE_PATH1.'/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin',$pa)) {
-    Header("Location: login.php"); 
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-        <div class="mdui-card">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px">用户设置</div>
-            </div>
-           
-                <m-scrollbar style="height: 650px;width:900px;text-align:left ">
-                <div id="login" class="mc-account mc-login mdui-dialog mdui-dialog-open " style="overflow: hidden;z-index:999;display: block; top: 150.104px; height: 540.792px;">
-                <button class="mdui-btn mdui-btn-icon close" onclick="window.location.href='user.php'"><i class="mdui-icon material-icons">close</i></button>
- 
-<div class="mdui-dialog-title">修改用户密码</div>
-<form method="post" action="user-move-run.php">
-<div style="display:none" class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom "><label class="mdui-textfield-label">用户名</label><input class="mdui-textfield-input" value="<?echo $_GET["username"]?>"  name="username" type="text" >
-        <div class="mdui-textfield-error">账号不能为空</div>
-    </div>
-    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom "><label class="mdui-textfield-label">用户名</label><input class="mdui-textfield-input" value="<?echo $_GET["username"]?>" type="text" disabled="true">
-        <div class="mdui-textfield-error">账号不能为空</div>
-    </div>
-    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom"><label class="mdui-textfield-label">新密码</label><input class="mdui-textfield-input" name="password" type="password" required="">
-        <div class="mdui-textfield-error">密码不能为空</div>
-    </div>
-    <div class="actions mdui-clearfix">
-       <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">修改</button>
-    </div>
-</form>
-</div>
-                </m-scrollbar>
-  
-        </div>
-
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
-
-
-

programming_language: unknown
filename: user.php
change_type: ModificationType.DELETE
diff: @@ -1,108 +0,0 @@
-<?php
-include("../resource/variable.php");
-function encode($string = '', $skey = 'cxphp')
-{
-    $strArr = str_split(base64_encode($string));
-    $strCount = count($strArr);
-    foreach (str_split($skey) as $key => $value)
-        $key < $strCount && $strArr[$key] .= $value;
-    return str_replace(array('=', '+', '/'), array('O0O0O', 'o000o', 'oo00o'), join('', $strArr));
-}
-
-define('BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
-define('BASE_PATH1', str_replace('\\', '/', realpath(dirname(BASE_PATH) . '/')) . "/");
-$json_string = file_get_contents(BASE_PATH1 . '/install/sql-config/sql.json');
-$dataxxx = json_decode($json_string, true);
-$link = mysqli_connect($dataxxx['server'], $dataxxx['dbusername'], $dataxxx['dbpassword'], $dataxxx['dbname']);
-$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
-$result = mysqli_query($link, $sql);
-$pass = mysqli_fetch_row($result);
-$pa = $pass[0];
-
-if ($_COOKIE["admin"] != encode('admin', $pa)) {
-    Header("Location: login.php");
-}
-?>
-
-<!DOCTYPE html>
-<html lang="zh-cn">
-
-<head>
-    <meta charset="utf-8">
-    <title>RapidCMS管理后台</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1">
-    <link rel="shortcut icon"" href=" ../../../../../resource/img/icon.png" type="image/x-icon" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mdui.min.css" />
-    <link rel="stylesheet" href="../../../../../../resource/css/mtu.min.css">
-    <link rel="stylesheet" href="../../../../resource/css/style.css">
-    <link rel="stylesheet" href="../../../../../template/default/theme.css">
-    
-</head>
-
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-deep-purple mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
-        <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
-        <span class="mdui-typo-title">RapidCMS 管理后台</span>
-    </div>
-
-    <? include("drawer.php"); ?>
-
-    <style>
-        * {
-            font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-        }
-    </style>
-    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
-
-        <div class="mdui-card" style="overflow:scroll">
-
-            <div class="mdui-card-primary">
-                <div class="mdui-card-primary-title" style="font-size:30px;">用户设置</div>
-            </div>
-           
-                <m-scrollbar style="height: 650px;width:900px;">
-                    <div style="width:80%;position: absolute;left: 50%;    transform: translateX(-50%  );"  class="mdui-table-fluid">
-                        <table class="mdui-table">
-                            <thead>
-                                <tr>
-                                    <th>用户名</th>
-                                    <th>用户状态</th>
-                                    <th  class="mdui-table-col-numeric"> </th>
-                                </tr>
-                            </thead>
-                            <tbody>
-
-                    <?php
-                    $table_name = "rapidcmsuser";
-                    $json_string = file_get_contents('../install/sql-config/sql.json');
-                    $data = json_decode($json_string, true);
-                    $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
-                    $sql = 'select * from `' . $table_name . '`';
-                    $res = mysqli_query($conn, $sql);
-                    $colums = mysqli_num_fields($res);
-                    while ($row = mysqli_fetch_row($res)) {
-                       echo "<tr>";
-                        echo "</tr>";
-                        echo "<td>$row[0]</td>";
-                        echo "<td>$row[2]</td>";
-                        echo '<td ><a href="user-del.php?username='.$row[0].'"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe872;</i></button></a>&nbsp;&nbsp;&nbsp;&nbsp;';
-                        echo '<a href="user-move.php?username='.$row[0].'"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a></td>';
-                    }
-                    ?>
-                                  
-                               
-                            </tbody>
-                        </table>
-                    </div>
-                </m-scrollbar>
-  
-        </div>
-
-    </div>
-
-    <script src="../../../../../../resource/js/mtu.min.js"></script>
-    <script src="../../../../../../resource/js/mdui.min.js"></script>
-</body>
-
-</html>
\ No newline at end of file

programming_language: unknown
filename: user-del.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,20 @@
+<?php
+include("../check.php");
+
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+
+      $str="DELETE FROM `rapidcmsuser` WHERE username='".$_GET["username"]."'";
+	  $result=mysqli_query($link,$str);
+      sendalert("删除成功！");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: user-move-run.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,21 @@
+<?php
+include("../check.php");
+
+header ( "Content-type:text/html;charset=utf-8" );
+$json_string = file_get_contents('../../install/sql-config/sql.json');
+$dataxxx = json_decode($json_string, true);
+$link=mysqli_connect($dataxxx['server'],$dataxxx['dbusername'],$dataxxx['dbpassword']);
+
+if($link)
+{
+    $select=mysqli_select_db($link,$dataxxx['dbname']);
+  if($select)
+  {
+    $password1=md5(sha1(md5($_POST["password"])));
+      $str="UPDATE `rapidcmsuser` SET `password`= '".$password1."' WHERE username='".$_POST["username"]."'";
+
+	  $result=mysqli_query($link,$str);
+    sendalert("修改成功！");
+  }
+}
+?>
\ No newline at end of file

programming_language: PHP
filename: user-move.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,47 @@
+<?php
+include("../header.php");
+
+?>
+
+    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+        <div class="mdui-card">
+
+            <div class="mdui-card-primary">
+                <div class="mdui-card-primary-title" style="font-size:30px">用户设置</div>
+            </div>
+           
+                <m-scrollbar style="height: 650px;width:900px;text-align:left ">
+                <div id="login" class="mc-account mc-login mdui-dialog mdui-dialog-open " style="overflow: hidden;z-index:999;display: block; top: 150.104px; height: 540.792px;">
+                <button class="mdui-btn mdui-btn-icon close" onclick="window.location.href='user.php'"><i class="mdui-icon material-icons">close</i></button>
+ 
+<div class="mdui-dialog-title">修改用户密码</div>
+<form method="post" action="user-move-run.php">
+<div style="display:none" class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom "><label class="mdui-textfield-label">用户名</label><input class="mdui-textfield-input" value="<?echo $_GET["username"]?>"  name="username" type="text" >
+        <div class="mdui-textfield-error">账号不能为空</div>
+    </div>
+    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom "><label class="mdui-textfield-label">用户名</label><input class="mdui-textfield-input" value="<?echo $_GET["username"]?>" type="text" disabled="true">
+        <div class="mdui-textfield-error">账号不能为空</div>
+    </div>
+    <div class="mdui-textfield mdui-textfield-floating-label mdui-textfield-has-bottom"><label class="mdui-textfield-label">新密码</label><input class="mdui-textfield-input" name="password" type="password" required="">
+        <div class="mdui-textfield-error">密码不能为空</div>
+    </div>
+    <div class="actions mdui-clearfix">
+       <button type="submit" name="sub" class="mdui-btn mdui-btn-raised mdui-color-theme action-btn">修改</button>
+    </div>
+</form>
+</div>
+                </m-scrollbar>
+  
+        </div>
+
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
+
+
+

programming_language: PHP
filename: user.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,58 @@
+<?php
+include("../header.php");
+
+?>
+
+    <div style="    position: absolute;left: 60%;top:10%;text-align:center;    transform: translateX(-50%  );">
+
+        <div class="mdui-card" style="overflow:scroll">
+
+            <div class="mdui-card-primary">
+                <div class="mdui-card-primary-title" style="font-size:30px;">用户设置</div>
+            </div>
+           
+                <m-scrollbar style="height: 650px;width:900px;">
+                    <div style="width:80%;position: absolute;left: 50%;    transform: translateX(-50%  );"  class="mdui-table-fluid">
+                        <table class="mdui-table">
+                            <thead>
+                                <tr>
+                                    <th>用户名</th>
+                                    <th>用户状态</th>
+                                    <th  class="mdui-table-col-numeric"> </th>
+                                </tr>
+                            </thead>
+                            <tbody>
+
+                    <?php
+                    $table_name = "rapidcmsuser";
+                    $json_string = file_get_contents('../../install/sql-config/sql.json');
+                    $data = json_decode($json_string, true);
+                    $conn = mysqli_connect($data['server'], $data['dbusername'], $data['dbpassword'], $data['dbname']);
+                    $sql = 'select * from `' . $table_name . '`';
+                    $res = mysqli_query($conn, $sql);
+                    $colums = mysqli_num_fields($res);
+                    while ($row = mysqli_fetch_row($res)) {
+                       echo "<tr>";
+                        echo "</tr>";
+                        echo "<td>$row[0]</td>";
+                        echo "<td>$row[2]</td>";
+                        echo '<td ><a href="user-del.php?username='.$row[0].'"><button class="mdui-btn mdui-btn-icon mdui-ripple"><i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe872;</i></button></a>&nbsp;&nbsp;&nbsp;&nbsp;';
+                        echo '<a href="user-move.php?username='.$row[0].'"><button class="mdui-btn mdui-btn-icon mdui-ripple">   <i style="color:#6E6E6E" class="mdui-icon material-icons">&#xe3c9;</i></button></a></td>';
+                    }
+                    ?>
+                                  
+                               
+                            </tbody>
+                        </table>
+                    </div>
+                </m-scrollbar>
+  
+        </div>
+
+    </div>
+
+    <script src="../../../../../../resource/js/mtu.min.js"></script>
+    <script src="../../../../../../resource/js/mdui.min.js"></script>
+</body>
+
+</html>
\ No newline at end of file

programming_language: PHP
filename: install.json
change_type: ModificationType.MODIFY
diff: @@ -0,0 +1 @@
+{"lock":"install"}
\ No newline at end of file

programming_language: SQL
filename: index.json
change_type: ModificationType.MODIFY
diff: @@ -1 +1 @@
-{"close":"false","template":"default","version":"1.3.1","rewrite":"false"}
\ No newline at end of file
+{"template":"default","version":"1.3.1","rewrite":"false","close":"false"}
\ No newline at end of file

programming_language: SQL
filename: tool.json
change_type: ModificationType.MODIFY
diff: @@ -1 +1 @@
-{"tool":"true","kind":"one","content":"<center><p id=\"hitokoto\"><a style=\"color:#000000\" href=\"#\" id=\"hitokoto_text\">\u83b7\u53d6\u4e2d...<\/a><\/p><\/center><script>fetch('https:\/\/v1.hitokoto.cn').then(response => response.json()).then(data => {const hitokoto = document.querySelector('#hitokoto_text');hitokoto.href = 'https:\/\/hitokoto.cn\/?uuid=' + data.uuid;\r\n        if (data.from_who == null) {\r\n        hitokoto.innerHTML = \"\u300c \" + data.hitokoto + \" \u300d<br>\u2014\u2014\" + data.from;\r\n        }else {\r\n        hitokoto.innerHTML = \"\u300c \" + data.hitokoto + \" \u300d<br>\u2014\u2014\" + data.from_who + \"\u300c\" + data.from + \"\u300d\"\r\n        }}).catch(console.error)\r\n        <\/script>"}
\ No newline at end of file
+{"tool":"true","kind":"time","content":"<center><a  id=\"time_is_link\" rel=\"nofollow\" style=\"display:none\"><\/a><span id=\"China_z43d\" style=\"font-size:25px;\"><\/span><script src=\"https:\/\/widget.time.is\/t.js\"><\/script><script>time_is_widget.init({China_z43d:{}});<\/script><\/center>"}
\ No newline at end of file

programming_language: SQL
filename: article.php
change_type: ModificationType.MODIFY
diff: @@ -1,4 +1,9 @@
 <?php include("menu.php") ?>
+<style>
+    * {
+        font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+    }
+</style>
 <div class="mdui-container" style="margin:auto;">
 
 
@@ -27,7 +32,7 @@
             <?php
             if ($data_tool["tool"] == "true") {
                 echo '<div class="mdui-card mdui-card-shadow question"> <br>';
-                echo ' <div class="mdui-typo" style="padding: 10px;">'.$data_tool["content"].'</div><br></div><br>';
+                echo ' <div class="mdui-typo" style="padding: 10px;">' . $data_tool["content"] . '</div><br></div><br>';
             }
             ?>
             <script>

programming_language: PHP
filename: category.php
change_type: ModificationType.MODIFY
diff: @@ -1,4 +1,9 @@
 <?php include("menu.php") ?>
+<style>
+    * {
+        font-family: "MiSans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+    }
+</style>
 <div class="mdui-container" style="margin:auto;overflow:auto;">
 
 

programming_language: PHP
filename: menu.php
change_type: ModificationType.MODIFY
diff: @@ -1,5 +1,5 @@
-<body class=" mdui-appbar-with-toolbar mdui-theme-accent-indigo mdui-theme-primary-indigo mdui-text-color-white mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
-    <div class="mdui-toolbar mdui-color-theme mdui-text-color-white mdui-appbar mdui-appbar-fixed mdui-headroom">
+<body class=" mdui-appbar-with-toolbar mdui-theme-accent-white  mdui-theme-primary-white mdui-text-color-black mdui-drawer-body-left" style="--color-primary: 63, 81, 181; --color-accent: 63, 81, 181;">
+    <div class="mdui-toolbar mdui-color-white mdui-text-color-black mdui-appbar mdui-appbar-fixed mdui-headroom">
         <button class="drawer mdui-btn mdui-btn-icon mdui-ripple" mdui-drawer="{target: '#drawer', swipe: true}"><i class="mdui-icon material-icons">menu</i></button>
         <span class="mdui-typo-title"><? echo $data_header["title"]; ?></span>
         <div class="mdui-toolbar-spacer"></div>

programming_language: PHP