summaryrefslogtreecommitdiff
path: root/www/api
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-08 07:32:34 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-08 07:32:34 +0000
commit6c2fa2f020a76dcf6fda5b776653c6d2958900b7 (patch)
tree1c04d7454993aa3223ebf922393afe5e9c40fc3f /www/api
parent99160a8850242b6bf27f1ff6630346f7fda6ee9f (diff)
downloadsemanticscuttle-6c2fa2f020a76dcf6fda5b776653c6d2958900b7.tar.gz
semanticscuttle-6c2fa2f020a76dcf6fda5b776653c6d2958900b7.tar.bz2
allow people to move www/ folder where they want it, now one just has to change www/www-header.php
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@643 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www/api')
-rw-r--r--www/api/export_csv.php2
-rw-r--r--www/api/export_gcs.php2
-rw-r--r--www/api/export_sioc.php2
-rw-r--r--www/api/httpauth.inc.php2
-rw-r--r--www/api/opensearch.php2
-rw-r--r--www/api/posts_add.php2
-rw-r--r--www/api/posts_all.php2
-rw-r--r--www/api/posts_delete.php2
-rw-r--r--www/api/posts_public.php2
-rw-r--r--www/api/posts_update.php2
-rw-r--r--www/api/tags_get.php2
-rw-r--r--www/api/tags_rename.php2
12 files changed, 12 insertions, 12 deletions
diff --git a/www/api/export_csv.php b/www/api/export_csv.php
index 04000ef..3f63692 100644
--- a/www/api/export_csv.php
+++ b/www/api/export_csv.php
@@ -3,7 +3,7 @@
// Force HTTP authentication first!
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
diff --git a/www/api/export_gcs.php b/www/api/export_gcs.php
index 72b3d14..07bc726 100644
--- a/www/api/export_gcs.php
+++ b/www/api/export_gcs.php
@@ -5,7 +5,7 @@
// Force HTTP authentication first!
//require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
if($GLOBALS['enableGoogleCustomSearch'] == false) {
echo "Google Custom Search disabled. You can enable it into the config.php file.";
diff --git a/www/api/export_sioc.php b/www/api/export_sioc.php
index 4b0898e..ff1d1c0 100644
--- a/www/api/export_sioc.php
+++ b/www/api/export_sioc.php
@@ -1,7 +1,7 @@
<?php
/* Export data with semantic format (SIOC: http://sioc-project.org/, FOAF, SKOS, Annotea Ontology) */
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
header('Content-Type: text/xml; charset=utf-8'); //we change headers html defined in headers.inc.php
/* Service creation: only useful services are created */
diff --git a/www/api/httpauth.inc.php b/www/api/httpauth.inc.php
index 8ae6bed..0e3a66d 100644
--- a/www/api/httpauth.inc.php
+++ b/www/api/httpauth.inc.php
@@ -1,5 +1,5 @@
<?php
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
// Provides HTTP Basic authentication of a user
// and logs the user in if necessary
diff --git a/www/api/opensearch.php b/www/api/opensearch.php
index 2facb03..68d094c 100644
--- a/www/api/opensearch.php
+++ b/www/api/opensearch.php
@@ -1,5 +1,5 @@
<?php
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
header("Content-type: text/xml");
?>
<?xml version="1.0" encoding="utf-8" ?>
diff --git a/www/api/posts_add.php b/www/api/posts_add.php
index 4cece23..c919ee7 100644
--- a/www/api/posts_add.php
+++ b/www/api/posts_add.php
@@ -12,7 +12,7 @@
// Force HTTP authentication
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
diff --git a/www/api/posts_all.php b/www/api/posts_all.php
index 286d3b3..f53f363 100644
--- a/www/api/posts_all.php
+++ b/www/api/posts_all.php
@@ -6,7 +6,7 @@
// Force HTTP authentication first!
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
diff --git a/www/api/posts_delete.php b/www/api/posts_delete.php
index 9e2781a..88e2584 100644
--- a/www/api/posts_delete.php
+++ b/www/api/posts_delete.php
@@ -8,7 +8,7 @@
// Force HTTP authentication first!
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
diff --git a/www/api/posts_public.php b/www/api/posts_public.php
index ca63f44..0c93ca2 100644
--- a/www/api/posts_public.php
+++ b/www/api/posts_public.php
@@ -6,7 +6,7 @@
// Force HTTP authentication first!
//require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
diff --git a/www/api/posts_update.php b/www/api/posts_update.php
index 9eb5dbd..9152f26 100644
--- a/www/api/posts_update.php
+++ b/www/api/posts_update.php
@@ -6,7 +6,7 @@
// Force HTTP authentication first!
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
diff --git a/www/api/tags_get.php b/www/api/tags_get.php
index 23dfd2a..85684d4 100644
--- a/www/api/tags_get.php
+++ b/www/api/tags_get.php
@@ -6,7 +6,7 @@
// Force HTTP authentication first!
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');
diff --git a/www/api/tags_rename.php b/www/api/tags_rename.php
index a8e281c..59ba8a4 100644
--- a/www/api/tags_rename.php
+++ b/www/api/tags_rename.php
@@ -6,7 +6,7 @@
// Force HTTP authentication first!
require_once('httpauth.inc.php');
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
/* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');