diff --git a/sections/ajax/index.php b/sections/ajax/index.php index 0caa802a..4a131e51 100644 --- a/sections/ajax/index.php +++ b/sections/ajax/index.php @@ -11,6 +11,7 @@ enforce_login(); switch ($_GET['action']){ + // things that (may be) used on the site case 'upload_section': // Gets one of the upload forms require(SERVER_ROOT.'/sections/ajax/upload.php'); @@ -31,6 +32,10 @@ require(SERVER_ROOT.'/sections/ajax/stats.php'); break; + // things not yet used on the site + case 'torrentgroup': + require('torrentgroup.php'); + break; default: // If they're screwing around with the query string error(403); diff --git a/sections/ajax/torrentgroup.php b/sections/ajax/torrentgroup.php new file mode 100644 index 00000000..ecf285dc --- /dev/null +++ b/sections/ajax/torrentgroup.php @@ -0,0 +1,27 @@ + 'success', 'response' => array('group' => $TorrentDetails, 'torrents' => $TorrentList))); diff --git a/sections/rules/upload.php b/sections/rules/upload.php index 76466140..f2ee7aa8 100644 --- a/sections/rules/upload.php +++ b/sections/rules/upload.php @@ -594,7 +594,7 @@