fix file inclusion with phar
This commit is contained in:
parent
e6d66690d2
commit
3070f234b6
@ -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];
|
||||
|
@ -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.
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
$httpContentType = 'application/json';
|
||||
require_once '../www-header.php';
|
||||
require_once __DIR__ . '/../www-header.php';
|
||||
|
||||
$limit = 30;
|
||||
$beginsWith = null;
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
$httpContentType = 'application/json';
|
||||
require_once '../www-header.php';
|
||||
require_once __DIR__ . '/../www-header.php';
|
||||
|
||||
$limit = 30;
|
||||
$beginsWith = null;
|
||||
|
@ -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;
|
||||
|
@ -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');
|
||||
|
@ -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.";
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
@ -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/">
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user