-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
53 lines (42 loc) · 2.1 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include("files_counter.php");
include("head.php");
// Total page Visit
$Page_visit_counter_file = "PV_counter.txt";
$total_page_visit = @file_get_contents($Page_visit_counter_file,);
$total_page_visit++;
file_put_contents($Page_visit_counter_file, $total_page_visit);
// total file counts
$filecounts = "Images (" . $count_total_images . ") | Presentation (" . $count_total_ppt . ") | Documents (" . $count_total_docs . ") | Videos (" . $count_total_videos . ") | Pdf (" . $count_total_pdf . ") | Musics (" . $count_total_musics . ")" . "| Archives (" . $count_total_archive . ")";
?>
<head>
<title>Enally - Server File Manager</title>
<link href="prashant.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://use.fontawesome.com/beeac301e9.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="icon" href="assets/Fevicon.png" type="image/x-icon">
<meta charset="UTF-8">
<meta name="description" content="File sharing and managing application developed by Prashant Kr">
<meta name="keywords" content="File Sharing, Explorer, Server Filemanager, File Manager">
<meta name="author" content="Prashant Kumar">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Manage Your Files</h1>
<p><?php if ($_SESSION['UserData']['Username'] == 'prashant' || $_SESSION['UserData']['Username'] == 'amit') {
echo "Superuser Account - " . $_SESSION['UserData']['Username'];
} else {
echo 'Normal User Account';
} ?>
</p>
<div class="padding2">
<h5 class="header" id="myHeader"> <?php echo $filecounts; ?> <span style="float: right;">Total visit: <span id="totalpg"> </span></span></h5>
</div>
<div id="content">
<!-- Code is on main.php---->
<!-- All Files are loading inside this div ----->
</div>
</body>
<?php include("footer.php") ?>