diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-08 07:32:34 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-08 07:32:34 +0000 |
commit | 6c2fa2f020a76dcf6fda5b776653c6d2958900b7 (patch) | |
tree | 1c04d7454993aa3223ebf922393afe5e9c40fc3f /www | |
parent | 99160a8850242b6bf27f1ff6630346f7fda6ee9f (diff) | |
download | semanticscuttle-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')
56 files changed, 74 insertions, 55 deletions
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 @@ <?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'); 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'); @@ -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 @@ <?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/gsearch/index.php b/www/gsearch/index.php index ec86787..585536a 100644 --- a/www/gsearch/index.php +++ b/www/gsearch/index.php @@ -1,4 +1,4 @@ -<?php require_once '../../src/SemanticScuttle/header.php'; +<?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/history.php b/www/history.php index 42688a0..489d932 100644 --- a/www/history.php +++ b/www/history.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 */ $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); diff --git a/www/import.php b/www/import.php index 0105626..5263aba 100644 --- a/www/import.php +++ b/www/import.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/importNetscape.php b/www/importNetscape.php index dab1ba2..e23c156 100644 --- a/www/importNetscape.php +++ b/www/importNetscape.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/importStructure.php b/www/importStructure.php index 0611fee..53b1b66 100644 --- a/www/importStructure.php +++ b/www/importStructure.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/index.php b/www/index.php index 6d6f5cb..0ba4afa 100644 --- a/www/index.php +++ b/www/index.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/jsScuttle.php b/www/jsScuttle.php index 6807e4a..cc4e16d 100644 --- a/www/jsScuttle.php +++ b/www/jsScuttle.php @@ -1,7 +1,7 @@ <?php header('Content-Type: text/javascript'); $GLOBALS['saveInLastUrl'] = false; -require_once '../src/SemanticScuttle/header.php'; +require_once 'www-header.php'; require_once 'SemanticScuttle/functions.php'; $player_root = ROOT .'includes/player/'; ?> 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 @@ +<?php +/** + * Base file that every file in www/ should include. + * Loads all other SemanticScuttle files. + * + * SemanticScuttle - your social bookmark manager. + * + * PHP version 5. + * + * @category Bookmarking + * @package SemanticScuttle + * @author Benjamin Huynh-Kim-Bang <mensonge@users.sourceforge.net> + * @author Christian Weiske <cweiske@cweiske.de> + * @author Eric Dane <ericdane@users.sourceforge.net> + * @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 |