Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit b57ec92

Browse files
authored
Update index.php
1 parent 7265d98 commit b57ec92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
error_reporting(0);
88
session_start();
99
define('password', 'admin');
10-
$head = '<head><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Mini-FileManager</title><style>pre{border:1px solid #ddd;padding:5px;overflow:auto}table{border-collapse:collapse;width:100%;overflow:auto}th,td{padding:0.25rem;text-align:left;border-bottom:1px solid #ccc}tbody tr:nth-child(odd){background:#eee}tr:hover{background-color:#f5f5f5}</style></head>';
1110
//
1211
//
1312
//controllers functions
@@ -202,7 +201,7 @@ function get_dir(){
202201
}
203202

204203

205-
$loginTemplate = makeForm('POST',['p'=>['','Password(default admin): '],'password'=>['pass', ''],'submit'=>['login','Login']]);
204+
$loginTemplate = makeForm('POST',['p'=>['','Password: '],'password'=>['pass', ''],'submit'=>['login','Login']]);
206205
if(!login()){
207206
dd($loginTemplate);
208207
}
@@ -230,8 +229,7 @@ function get_dir(){
230229
if(get_post('upload')){
231230
upload_file(get_path(),$_FILES['file']) ? dd('upload: '. $_FILES['file']['name']) : dd('Upload Error');
232231
}
233-
echo $head.
234-
"<body>".
232+
echo "<body>".
235233
makeForm('POST',['text'=>['filename','File Name'],'submit'=>['newfile','Create']]).
236234
makeForm('POST',['text'=>['dirname','Dir Name'],'submit'=>['newdir','Create']]).
237235
makeForm('POST',['file'=>'file','submit'=>['upload','Upload']],'multipart/form-data').

0 commit comments

Comments
 (0)