Gazelle/sections/ajax/better/index.php

39 lines
958 B
PHP
Raw Normal View History

2012-01-19 08:00:18 +00:00
<?
//Include all the basic stuff...
enforce_login();
2013-05-01 08:00:16 +00:00
if (isset($_GET['method'])) {
switch ($_GET['method']) {
2012-01-19 08:00:18 +00:00
case 'transcode':
include(SERVER_ROOT.'/sections/ajax/better/transcode.php');
break;
case 'single':
include(SERVER_ROOT.'/sections/ajax/better/single.php');
break;
case 'snatch':
include(SERVER_ROOT.'/sections/ajax/better/snatch.php');
break;
case 'artistless':
include(SERVER_ROOT.'/sections/ajax/better/artistless.php');
2013-02-22 08:00:24 +00:00
break;
2012-01-19 08:00:18 +00:00
case 'tags':
include(SERVER_ROOT.'/sections/ajax/better/tags.php');
2013-02-22 08:00:24 +00:00
break;
2012-01-19 08:00:18 +00:00
case 'folders':
include(SERVER_ROOT.'/sections/ajax/better/folders.php');
break;
case 'files':
include(SERVER_ROOT.'/sections/ajax/better/files.php');
break;
case 'upload':
include(SERVER_ROOT.'/sections/ajax/better/upload.php');
break;
default:
print json_encode(array('status' => 'failure'));
break;
}
} else {
print json_encode(array('status' => 'failure'));
}
?>