-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathresserver.php
29 lines (22 loc) · 967 Bytes
/
resserver.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
<?php
/**
* Implementation of a very simple resource server.
*
* As a parameter, receives the name of a resource and it will take
* care of fetching it.
*/
if (!defined( "PLOG_CLASS_PATH" )) {
define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
}
include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
// the functionality of the old ressever.php file have been moved
// to the action ResourceServerAction and ResourceServerView for better
// integration with the reset of the framework. This file has been kept
// here for compatibility reasons and it is still referenced in all urls
// generated internally that point to resources so please DO NOT REMOVE IT!
$_REQUEST["op"] = "ResourceServer";
$config =& Config::getConfig();
$indexPage = $config->getValue( "script_name", "index.php" );
lt_include( PLOG_CLASS_PATH.$indexPage );
?>