fix file inclusion with phar

This commit is contained in:
Christian Weiske 2011-08-16 20:02:33 +02:00
parent e6d66690d2
commit 3070f234b6
13 changed files with 14 additions and 13 deletions

View File

@ -13,7 +13,8 @@ function mapUrls($path)
return false;
}
$arMap = array(
'/www/' => '/www/index.php'
'/www/' => '/www/index.php',
'/www/gsearch/' => '/www/gsearch/index.php',
);
if (isset($arMap[$path])) {
return $arMap[$path];

View File

@ -20,7 +20,7 @@
*/
$httpContentType = 'application/json';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
/**
* Creates and returns an array of tags for the jsTree ajax loader.

View File

@ -22,7 +22,7 @@
*/
$httpContentType = 'application/json';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
$limit = 30;
$beginsWith = null;

View File

@ -22,7 +22,7 @@
*/
$httpContentType = 'application/json';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
$limit = 30;
$beginsWith = null;

View File

@ -25,7 +25,7 @@
* @link http://sourceforge.net/projects/semanticscuttle
*/
$httpContentType = 'application/json';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
$tag = isset($_GET['tag']) ? $_GET['tag'] : null;
$uId = isset($_GET['uId']) ? (int)$_GET['uId'] : 0;

View File

@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
/* Return a json file with list of tags according to current user and sort by popularity*/
$httpContentType = 'application/json';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
/* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -6,7 +6,7 @@
// Force HTTP authentication first!
//require_once('httpauth.inc.php');
$httpContentType = false;
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
if($GLOBALS['enableGoogleCustomSearch'] == false) {
echo "Google Custom Search disabled. You can enable it into the config.php file.";

View File

@ -2,7 +2,7 @@
/* Export data with semantic format (SIOC: http://sioc-project.org/, FOAF, SKOS, Annotea Ontology) */
$httpContentType = 'text/xml';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
/* Service creation: only useful services are created */
$userservice =SemanticScuttle_Service_Factory::get('User');

View File

@ -17,7 +17,7 @@
* @license GPL http://www.gnu.org/licenses/gpl.html
* @link http://sourceforge.net/projects/semanticscuttle
*/
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
/**
* Sends HTTP auth headers to the browser

View File

@ -1,6 +1,6 @@
<?php
$httpContentType = 'text/xml';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
echo '<' . '?xml version="1.0" encoding="utf-8" ?' . ">\n";
?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">

View File

@ -7,7 +7,7 @@
// Force HTTP authentication first!
//require_once('httpauth.inc.php');
$httpContentType = 'text/xml';
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -16,7 +16,7 @@
* @link http://sourceforge.net/projects/semanticscuttle
* @link http://www.google.com/cse/docs/cref.html
*/
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
if ($GLOBALS['enableGoogleCustomSearch'] == false) {
header('HTTP/1.0 403 Forbidden');

View File

@ -17,7 +17,7 @@
* @link http://sourceforge.net/projects/semanticscuttle
* @link http://www.google.com/cse/docs/cref.html
*/
require_once '../www-header.php';
require_once __DIR__ . '/../www-header.php';
if ($GLOBALS['enableGoogleCustomSearch'] == false) {
header('HTTP/1.0 403 Forbidden');