From 6c2fa2f020a76dcf6fda5b776653c6d2958900b7 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 8 Feb 2010 07:32:34 +0000 Subject: 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 --- www/about.php | 2 +- www/admin.php | 2 +- www/ajax/getadminlinkedtags.php | 2 +- www/ajax/getadmintags.php | 2 +- www/ajax/getcontacttags.php | 2 +- www/ajax/getlinkedtags.php | 2 +- www/ajax/gettags.php | 2 +- www/ajaxDelete.php | 2 +- www/ajaxGetTitle.php | 2 +- www/ajaxIsAvailable.php | 2 +- www/alltags.php | 2 +- www/api/export_csv.php | 2 +- www/api/export_gcs.php | 2 +- www/api/export_sioc.php | 2 +- www/api/httpauth.inc.php | 2 +- www/api/opensearch.php | 2 +- www/api/posts_add.php | 2 +- www/api/posts_all.php | 2 +- www/api/posts_delete.php | 2 +- www/api/posts_public.php | 2 +- www/api/posts_update.php | 2 +- www/api/tags_get.php | 2 +- www/api/tags_rename.php | 2 +- www/bookmarkcommondescriptionedit.php | 2 +- www/bookmarks.php | 2 +- www/edit.php | 2 +- www/go.php | 2 +- www/gsearch/context.php | 2 +- www/gsearch/index.php | 2 +- www/history.php | 2 +- www/import.php | 2 +- www/importNetscape.php | 2 +- www/importStructure.php | 2 +- www/index.php | 2 +- www/jsScuttle.php | 2 +- www/login.php | 2 +- www/password.php | 2 +- www/populartags.php | 2 +- www/profile.php | 2 +- www/register.php | 2 +- www/rss.php | 2 +- www/search.php | 2 +- www/tag2tagadd.php | 2 +- www/tag2tagdelete.php | 2 +- www/tag2tagedit.php | 2 +- www/tagcommondescriptionedit.php | 2 +- www/tagdelete.php | 2 +- www/tagedit.php | 2 +- www/tagrename.php | 2 +- www/tags.php | 2 +- www/upgrade.php | 2 +- www/users.php | 2 +- www/vote.php | 2 +- www/watch.php | 2 +- www/watchlist.php | 2 +- www/www-header.php | 19 +++++++++++++++++++ 56 files changed, 74 insertions(+), 55 deletions(-) create mode 100644 www/www-header.php (limited to 'www') diff --git a/www/about.php b/www/about.php index 9644320..9bd37b0 100644 --- a/www/about.php +++ b/www/about.php @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; $tplVars['pagetitle'] = T_('About'); $tplVars['subtitle'] = T_('About'); diff --git a/www/admin.php b/www/admin.php index 6014670..1dc21bd 100644 --- a/www/admin.php +++ b/www/admin.php @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ $bookmark2tagservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag'); diff --git a/www/ajax/getadminlinkedtags.php b/www/ajax/getadminlinkedtags.php index 2b1c3ac..6abc067 100644 --- a/www/ajax/getadminlinkedtags.php +++ b/www/ajax/getadminlinkedtags.php @@ -21,7 +21,7 @@ /* Return a json file with list of linked tags */ -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/ajax/getadmintags.php b/www/ajax/getadmintags.php index 00e8906..db62fc7 100644 --- a/www/ajax/getadmintags.php +++ b/www/ajax/getadmintags.php @@ -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*/ -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/ajax/getcontacttags.php b/www/ajax/getcontacttags.php index 4ddc493..85ef1ae 100644 --- a/www/ajax/getcontacttags.php +++ b/www/ajax/getcontacttags.php @@ -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*/ -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/ajax/getlinkedtags.php b/www/ajax/getlinkedtags.php index 621d1c4..6de272b 100644 --- a/www/ajax/getlinkedtags.php +++ b/www/ajax/getlinkedtags.php @@ -21,7 +21,7 @@ /* Return a json file with list of linked tags */ -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/ajax/gettags.php b/www/ajax/gettags.php index 3a4a393..3672832 100644 --- a/www/ajax/gettags.php +++ b/www/ajax/gettags.php @@ -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*/ -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/ajaxDelete.php b/www/ajaxDelete.php index be9ed51..467e20e 100644 --- a/www/ajaxDelete.php +++ b/www/ajaxDelete.php @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA header('Content-Type: text/xml; charset=UTF-8'); header('Last-Modified: '. gmdate("D, d M Y H:i:s") .' GMT'); header('Cache-Control: no-cache, must-revalidate'); -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/ajaxGetTitle.php b/www/ajaxGetTitle.php index 5d36b72..6caa742 100644 --- a/www/ajaxGetTitle.php +++ b/www/ajaxGetTitle.php @@ -23,7 +23,7 @@ header('Content-Type: text/xml; charset=UTF-8'); header("Last-Modified: ". gmdate("D, d M Y H:i:s") ." GMT"); header("Cache-Control: no-cache, must-revalidate"); -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Managing all possible inputs */ isset($_GET['url']) ? define('GET_URL', $_GET['url']): define('GET_URL', ''); diff --git a/www/ajaxIsAvailable.php b/www/ajaxIsAvailable.php index 139061c..3390569 100644 --- a/www/ajaxIsAvailable.php +++ b/www/ajaxIsAvailable.php @@ -23,7 +23,7 @@ header('Content-Type: text/xml; charset=UTF-8'); header("Last-Modified: ". gmdate("D, d M Y H:i:s") ." GMT"); header("Cache-Control: no-cache, must-revalidate"); -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ //No specific services diff --git a/www/alltags.php b/www/alltags.php index 7a6157b..43ad1cb 100644 --- a/www/alltags.php +++ b/www/alltags.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/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 @@ 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'); diff --git a/www/bookmarkcommondescriptionedit.php b/www/bookmarkcommondescriptionedit.php index 6e39a9a..d182dd0 100644 --- a/www/bookmarkcommondescriptionedit.php +++ b/www/bookmarkcommondescriptionedit.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/bookmarks.php b/www/bookmarks.php index 8424edb..e356750 100644 --- a/www/bookmarks.php +++ b/www/bookmarks.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/edit.php b/www/edit.php index ba4ae89..fbea163 100644 --- a/www/edit.php +++ b/www/edit.php @@ -20,7 +20,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/go.php b/www/go.php index cc6d666..3d271c4 100644 --- a/www/go.php +++ b/www/go.php @@ -15,7 +15,7 @@ * @license GPL http://www.gnu.org/licenses/gpl.html * @link http://sourceforge.net/projects/semanticscuttle */ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; if (!$GLOBALS['shorturl']) { header('HTTP/1.0 500 Internal Server Error'); diff --git a/www/gsearch/context.php b/www/gsearch/context.php index 8b419da..d714ec1 100644 --- a/www/gsearch/context.php +++ b/www/gsearch/context.php @@ -1,5 +1,5 @@ diff --git a/www/login.php b/www/login.php index 18d055f..2a61224 100644 --- a/www/login.php +++ b/www/login.php @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ diff --git a/www/password.php b/www/password.php index 3a822c4..77a58ce 100644 --- a/www/password.php +++ b/www/password.php @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ // No specific services diff --git a/www/populartags.php b/www/populartags.php index 06813e9..5b69b86 100644 --- a/www/populartags.php +++ b/www/populartags.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/profile.php b/www/profile.php index 0c2776e..35864db 100644 --- a/www/profile.php +++ b/www/profile.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ // No specific services diff --git a/www/register.php b/www/register.php index 5a12573..c01939a 100644 --- a/www/register.php +++ b/www/register.php @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; if (!$GLOBALS['enableRegistration']) { header('HTTP/1.0 501 Not implemented'); diff --git a/www/rss.php b/www/rss.php index 9315d5d..7f706d5 100644 --- a/www/rss.php +++ b/www/rss.php @@ -19,7 +19,7 @@ * @link http://sourceforge.net/projects/semanticscuttle */ -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/search.php b/www/search.php index 11c382c..3cff550 100644 --- a/www/search.php +++ b/www/search.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Managing all possible inputs */ isset($_POST['terms']) ? define('POST_TERMS', $_POST['terms']): define('POST_TERMS', ''); diff --git a/www/tag2tagadd.php b/www/tag2tagadd.php index 166a0d3..cf8a639 100644 --- a/www/tag2tagadd.php +++ b/www/tag2tagadd.php @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ $tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag'); diff --git a/www/tag2tagdelete.php b/www/tag2tagdelete.php index af639b3..c1e52cd 100644 --- a/www/tag2tagdelete.php +++ b/www/tag2tagdelete.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ $tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag'); diff --git a/www/tag2tagedit.php b/www/tag2tagedit.php index 9ee7b96..a652d8a 100644 --- a/www/tag2tagedit.php +++ b/www/tag2tagedit.php @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ $tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag'); diff --git a/www/tagcommondescriptionedit.php b/www/tagcommondescriptionedit.php index 0616740..979eca2 100644 --- a/www/tagcommondescriptionedit.php +++ b/www/tagcommondescriptionedit.php @@ -15,7 +15,7 @@ * @link http://sourceforge.net/projects/semanticscuttle */ -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/tagdelete.php b/www/tagdelete.php index 1d2ce5e..1a237d4 100644 --- a/www/tagdelete.php +++ b/www/tagdelete.php @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/tagedit.php b/www/tagedit.php index 8b27b7d..af490a7 100644 --- a/www/tagedit.php +++ b/www/tagedit.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ $tagservice = SemanticScuttle_Service_Factory :: get('Tag'); diff --git a/www/tagrename.php b/www/tagrename.php index 7222acf..b07d49d 100644 --- a/www/tagrename.php +++ b/www/tagrename.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/tags.php b/www/tags.php index fed4510..a4e6555 100644 --- a/www/tags.php +++ b/www/tags.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/upgrade.php b/www/upgrade.php index 10a63ff..e9d9643 100644 --- a/www/upgrade.php +++ b/www/upgrade.php @@ -34,7 +34,7 @@ exit(); ///////////////// // This part below will be executed once you comment the two lines above ///////////////// -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; $tagstatservice = SemanticScuttle_Service_Factory :: get('TagStat'); ?> diff --git a/www/users.php b/www/users.php index 72f5a3d..a357b56 100644 --- a/www/users.php +++ b/www/users.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/vote.php b/www/vote.php index 20e77fc..0f33d75 100644 --- a/www/vote.php +++ b/www/vote.php @@ -7,7 +7,7 @@ * * vote/for/123 */ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; if (!$GLOBALS['enableVoting']) { header('HTTP/1.0 501 Not implemented'); diff --git a/www/watch.php b/www/watch.php index 64dd316..07d4127 100644 --- a/www/watch.php +++ b/www/watch.php @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; /* Service creation: only useful services are created */ //No specific services diff --git a/www/watchlist.php b/www/watchlist.php index b92fb9c..ded6782 100644 --- a/www/watchlist.php +++ b/www/watchlist.php @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ -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/www-header.php b/www/www-header.php new file mode 100644 index 0000000..430cd9b --- /dev/null +++ b/www/www-header.php @@ -0,0 +1,19 @@ + + * @author Christian Weiske + * @author Eric Dane + * @license GPL http://www.gnu.org/licenses/gpl.html + * @link http://sourceforge.net/projects/semanticscuttle + */ +require_once '../src/SemanticScuttle/header.php'; +?> \ No newline at end of file -- cgit v1.2.3