-
Notifications
You must be signed in to change notification settings - Fork 23
/
jzBackend.php
79 lines (67 loc) · 2.51 KB
/
jzBackend.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php if (!defined(JZ_SECURE_ACCESS)) die ('Security breach detected.');
/**
* - 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.
*
* - Resources -
* - Jinzora Author: Ross Carlson <[email protected]>
* - Web: 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/team.html
*
* - Code Purpose -
* - This page directs 'traffic' to the proper Jinzora component.
*
* @since 01.11.05
* @author Ross Carlson <[email protected]>
* @author Ben Dodson <[email protected]>
*/
session_name('jinzora-session');
session_start();
// Override to use index.php as web-prefix. You may need to change this.
//define("JZ_URL_OVERRIDE",'/jinzora/index.php');
// This page is intended to be a one-include file to create a full Jinzora backend.
if (isset($_REQUEST['include_path']) || !isset($include_path)) {
$include_path = "";
}
@include($include_path."settings.php");
require_once($include_path."system.php");
@include($include_path."settings.php");
require_once($include_path."backend/backend.php");
// We'll need to use some general functions, like urlize:
require_once($include_path."lib/general.lib.php");
$this_page = setThisPage();
// And playlists:
require_once($include_path."playlists/class.php");
// We need services for the URL stuff:
require_once($include_path."services/class.php");
$jzSERVICES = new jzServices();
$jzSERVICES->loadStandardServices();
// Make a fake user, just in case:
if (defined('JZ_NO_USER')) {
$jzUSER = new jzUser(false);
} else {
$jzUSER = new jzUser();
}
$jzSERVICES->loadUserServices();
handleUserInit();
include_once($include_path. "frontend/icons.lib.php");
include_once($include_path. "frontend/frontends/${my_frontend}/header.php");
// Let's build a display class:
require_once($include_path."frontend/display.php");
$display = new jzDisplay(); // This is a bundle of useful display functions.
$blocks = new jzBlocks(); // Another useful bundle of functions.
$css = $jzSERVICES->cmsCSS();
$define_only = true;
include($css);
unset($define_only);
?>