Browse code

Import from the old rivettracker git repository at sourceforge (amisaph/amisapphire branch)

Clarissa Walker (ami-sapphire) authored on 2014/01/24 14:02:23
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,44 @@
1
+<?php
2
+require ("config.php");
3
+require ("funcsv2.php");
4
+//Check session
5
+session_start();
6
+
7
+if (!$_SESSION['admin_logged_in'])
8
+{
9
+	//check fails
10
+	header("Location: authenticate.php?status=session");
11
+	exit();
12
+}
13
+?>
14
+
15
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
16
+<html><head><title>Torrent Information</title>
17
+	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
18
+	<link rel="stylesheet" href="./css/style.css" type="text/css" />
19
+</head><body>
20
+<?php
21
+require_once("torrent_functions.php");
22
+?>
23
+<table width="50%" border=0><tr><td>
24
+This script parses a torrent file and displays detailed information about it.
25
+</td></tr>
26
+</table><br>
27
+<form enctype="multipart/form-data" method="POST" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>">
28
+Torrent file: <input type="file" name="torrent" size="40"><br>
29
+<br>
30
+OR
31
+<br><br>
32
+Torrent URL: <input type=text name="url" size="50"><br><br>
33
+Output type: <select name="output">
34
+<option value="-1">Auto-detect
35
+<option value="0">Classic (raw)
36
+<option value="1">.torrent file
37
+<option value="2">/scrape
38
+<option value="3">/announce
39
+</select><br><br>
40
+<input type="submit" value="Decode">
41
+</form>
42
+
43
+<a href="admin.php"><img src="images/admin.png" border="0" class="icon" alt="Admin Page" title="Admin Page" /></a><a href="admin.php">Return to Admin Page</a>
44
+</body></html>