| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,60 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+require ("config.php");
|
|
| 4 |
+require ("funcsv2.php");
|
|
| 5 |
+//Check session |
|
| 6 |
+session_start(); |
|
| 7 |
+ |
|
| 8 |
+if (!$_SESSION['admin_logged_in']) |
|
| 9 |
+{
|
|
| 10 |
+ //check fails |
|
| 11 |
+ header("Location: authenticate.php?status=session");
|
|
| 12 |
+ exit(); |
|
| 13 |
+} |
|
| 14 |
+?> |
|
| 15 |
+ |
|
| 16 |
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
| 17 |
+ |
|
| 18 |
+<html> |
|
| 19 |
+<head> |
|
| 20 |
+ <title>Admin Page</title> |
|
| 21 |
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
|
| 22 |
+ <link rel="stylesheet" href="./css/style.css" type="text/css" /> |
|
| 23 |
+</head> |
|
| 24 |
+<body> |
|
| 25 |
+<h1>Admin Page</h1> |
|
| 26 |
+ |
|
| 27 |
+<a href="newtorrents.php"><img src="images/add.png" border="0" class="icon" alt="Add Torrent" title="Add Torrent" /></a><a href="newtorrents.php">Add Torrent to Tracker Database</a><br> |
|
| 28 |
+<a href="batch_upload.php"><img src="images/batch_upload.png" border="0" class="icon" alt="Batch Upload Torrents" title="Batch Upload Torrents" /></a><a href="batch_upload.php">Batch Upload Torrents</a><br> |
|
| 29 |
+<a href="edit_database.php"><img src="images/database.png" border="0" class="icon" alt="Edit Torrent in Database" title="Edit Torrent in Database" /></a><a href="edit_database.php">Edit Torrent Already in Database</a><br> |
|
| 30 |
+<a href="DumpTorrentCGI.php"><img src="images/torrent.png" border="0" class="icon" alt="Show Information on Torrent" title="Show Information on Torrent" /></a><a href="DumpTorrentCGI.php">Show Information on Torrent File</a><br> |
|
| 31 |
+<a href="index.php"><img src="images/stats.png" border="0" class="icon" alt="Tracker Statistics" title="Tracker Statistics" /></a><a href="index.php">Show Current Tracker Statistics</a><br> |
|
| 32 |
+<a href="sanity.php"><img src="images/check.png" border="0" class="icon" alt="Check for Expired Peers" title="Check for Expired Peers" /></a><a href="sanity.php">Check Tracker for Expired Peers</a><br> |
|
| 33 |
+<a href="statistics.php"><img src="images/userstats.png" border="0" class="icon" alt="User Statistics" title="User Statistics" /></a><a href="statistics.php">Detailed User Statistics from Tracker</a><br> |
|
| 34 |
+<a href="deleter.php"><img src="images/delete.png" border="0" class="icon" alt="Delete Torrent" title="Delete Torrent" /></a><a href="deleter.php">Delete Torrent from Tracker Database</a><br> |
|
| 35 |
+<a href="editconfig.php"><img src="images/edit.png" border="0" class="icon" alt="Edit Config File" title="Edit Config File" /></a><a href="editconfig.php">Edit Configuration Settings</a><br> |
|
| 36 |
+<a href="uploadstats.php"><img src="images/download.png" border="0" class="icon" alt="Upload Statistics" title="Upload Statistics" /></a><a href="uploadstats.php">Upload Statistics</a><br> |
|
| 37 |
+<a href="css.php"><img src="images/color.png" border="0" class="icon" alt="Change CSS File" title="Change CSS File" /></a><a href="css.php">Change CSS File</a><br> |
|
| 38 |
+<a href="./docs/help.html"><img src="images/help.png" border="0" class="icon" alt="Help" title="Help" /></a><a href="./docs/help.html">Help</a><br> |
|
| 39 |
+<a href="authenticate.php?status=logout"><img src="images/logout.png" border="0" class="icon" alt="Logout" title="Logout" /></a><a href="authenticate.php?status=logout">Logout</a><br> |
|
| 40 |
+ |
|
| 41 |
+<?php |
|
| 42 |
+//Check for install.php file, security risk if still available |
|
| 43 |
+if (file_exists("install.php"))
|
|
| 44 |
+{
|
|
| 45 |
+ echo errorMessage() . "Your install.php file has NOT been deleted. This is a security risk, please delete it immediately.</p>\n"; |
|
| 46 |
+} |
|
| 47 |
+ |
|
| 48 |
+if (!is_writeable("./torrents/"))
|
|
| 49 |
+{
|
|
| 50 |
+ echo errorMessage() . "The 'torrents' folder does not have write access, check the permissions.</p>\n"; |
|
| 51 |
+} |
|
| 52 |
+ |
|
| 53 |
+if (!is_writeable("./rss/"))
|
|
| 54 |
+{
|
|
| 55 |
+ echo errorMessage() . "The 'rss' folder does not have write access, check the permissions.</p>\n"; |
|
| 56 |
+} |
|
| 57 |
+ |
|
| 58 |
+?> |
|
| 59 |
+</body> |
|
| 60 |
+</html> |
|
| 0 | 61 |
\ No newline at end of file |