diff --git a/src/admin/index.php b/src/admin/index.php index a0609c36..5330a448 100644 --- a/src/admin/index.php +++ b/src/admin/index.php @@ -16,9 +16,6 @@ if (preg_match("#PHP (.*) Development Server#", $_SERVER['SERVER_SOFTWARE'])) { } require_once(dirname(__FILE__)."/config.php"); require_once(DEDEINC.'/dedetag.class.php'); -$defaultIcoFile = DEDEDATA.'/admin/quickmenu.txt'; -$myIcoFile = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt'; -if (!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile; require(DEDEADMIN.'/inc/inc_menu_map.php'); include(DEDEADMIN.'/templets/index.htm'); exit(); \ No newline at end of file diff --git a/src/admin/index_body.php b/src/admin/index_body.php index a55c3c6a..f03ad991 100644 --- a/src/admin/index_body.php +++ b/src/admin/index_body.php @@ -11,9 +11,6 @@ require(dirname(__FILE__).'/config.php'); require(DEDEINC.'/image.func.php'); require(DEDEINC.'/dedetag.class.php'); -$defaultIcoFile = DEDEDATA.'/admin/quickmenu.txt'; -$myIcoFile = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt'; -if (!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile; //默认主页 if (empty($dopost)) { require(DEDEINC.'/inc/inc_fun_funAdmin.php'); @@ -30,92 +27,6 @@ if (empty($dopost)) { include DedeInclude('templets/index_body.htm'); exit(); } -/*----------------------- -增加新项 -function _AddNew() { } --------------------------*/ -else if ($dopost == 'addnew') { - if (empty($link) || empty($title)) { - ShowMsg("链接网址或标题不能为空", "-1"); - exit(); - } - $fp = fopen($myIcoFile, 'r'); - $oldct = trim(fread($fp, filesize($myIcoFile))); - fclose($fp); - $link = preg_replace("#['\"]#", '`', $link); - $title = preg_replace("#['\"]#", '`', $title); - $ico = preg_replace("#['\"]#", '`', $ico); - $oldct .= "\r\n"; - $myIcoFileTrue = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt'; - $fp = fopen($myIcoFileTrue, 'w'); - fwrite($fp, $oldct); - fclose($fp); - ShowMsg("成功增加一个项目", "index_body.php?".time()); - exit(); -} -/*--------------------------- -保存修改的项 -function _EditSave() { } -----------------------------*/ -else if ($dopost == 'editsave') { - $quickmenu = stripslashes($quickmenu); - $myIcoFileTrue = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt'; - $fp = fopen($myIcoFileTrue, 'w'); - fwrite($fp, $quickmenu); - fclose($fp); - ShowMsg("成功修改快捷操作项目", "index_body.php?".time()); - exit(); -} -/*--------------------------- -保存修改的项 -function _EditSave() { } -----------------------------*/ -else if ($dopost == 'movesave') { - $movedata = str_replace('\\', "", $sortorder); - $movedata = json_decode($movedata, TRUE); - $movedata = serialize($movedata); - $myIcoFileTrue = DEDEDATA.'/admin/move-'.$cuserLogin->getUserID().'.txt'; - $fp = fopen($myIcoFileTrue, 'w'); - fwrite($fp, $movedata); - fclose($fp); -} -/*----------------------------- -显示修改表单 -function _EditShow() { } ------------------------------*/ -else if ($dopost == 'editshow') { - $fp = fopen($myIcoFile, 'r'); - $oldct = trim(fread($fp, filesize($myIcoFile))); - fclose($fp); -?> -
- - - - - - - - - - - - - - -
-
修改快捷操作项
-
- -
-
-   - -
-
-GetInfoByDate($sdate); + echo json_encode(array( + "code" => 200, + "msg" => "", + "result" => $rs, + )); + exit; +} ?> \ No newline at end of file diff --git a/src/admin/templets/index.htm b/src/admin/templets/index.htm index c6116a19..2dbf7ac0 100644 --- a/src/admin/templets/index.htm +++ b/src/admin/templets/index.htm @@ -90,25 +90,6 @@ -
- -
+
+
+
+
流量统计
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
浏览次数(PV)独立访客(UV)IP访问次数
今日............
昨日............
历史累计............
+
+
+
更新消息
@@ -44,27 +100,6 @@
正在载入
-
-
-
快捷操作新增管理
-
- -
-
-
信息统计
@@ -138,9 +173,17 @@
+
+
+ +
+ +
+
+
-