forked from bjdodson/jinzora
-
Notifications
You must be signed in to change notification settings - Fork 14
/
ajax_request.php
56 lines (49 loc) · 1.85 KB
/
ajax_request.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
54
55
56
<?php define('JZ_SECURE_ACCESS','true');
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* JINZORA | Web-based Media Streamer
*
* Jinzora is a Web-based media streamer, primarily desgined to stream MP3s
* (but can be used for any media file that can stream from HTTP).
* Jinzora can be integrated into a CMS site, run as a standalone application,
* or integrated into any PHP website. It is released under the GNU GPL.
*
* Jinzora Author:
* Ross Carlson: [email protected]
* http://www.jinzora.org
* Documentation: http://www.jinzora.org/docs
* Support: http://www.jinzora.org/forum
* Downloads: http://www.jinzora.org/downloads
* License: GNU GPL <http://www.gnu.org/copyleft/gpl.html>
*
* Contributors:
* Please see http://www.jinzora.org/modules.php?op=modload&name=jz_whois&file=index
*
* Code Purpose: This page contains all the album display related functions
* Created: 9.24.03 by Ross Carlson
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
$include_path = '';
$var = explode("/",$_SERVER['PHP_SELF']);
unset($var[sizeof($var)-1]);
$web_path = implode("/",$var) . "/";
require_once('lib/general.lib.php');
//writeLogData("messages","AJAXRequest: Starting up");
require_once('jzBackend.php');
require_once('lib/Sajax.php');
if ($jukebox == "true") {
include_once("jukebox/ajax.php");
}
if ((false !== strpos($my_frontend,'..')) || (false !== strpos($my_frontend,'/'))) {
die();
}
include_once('frontend/ajax.php');
@include_once("frontend/frontends/${my_frontend}/ajax.php");
@include_once("frontend/frontends/${my_frontend}/settings.php");
//writeLogData("messages","AJAXRequest: Creating jzUSER object");
$jzUSER = new jzUser();
for ($i = 0; $i < sizeof($ajax_list); $i++) {
sajax_export($ajax_list[$i]);
}
sajax_handle_client_request();
exit;
?>