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
This commit is contained in:
cweiske 2010-02-08 07:32:34 +00:00
parent 99160a8850
commit 6c2fa2f020
58 changed files with 76 additions and 56 deletions

View File

@ -28,6 +28,7 @@ ChangeLog for SemantiScuttle
services via PEAR's Auth package services via PEAR's Auth package
- Add special header file for shell scripts (header-standalone.php) - Add special header file for shell scripts (header-standalone.php)
- Fix some problems when using mysqli database driver. - Fix some problems when using mysqli database driver.
- Make it easy to have www/ in any location one wants it to have
0.95.2 - 2010-01-16 0.95.2 - 2010-01-16

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Base file that every other file in www/ should include. * Base file that is used by shell scripts and www/www-header.php.
* *
* SemanticScuttle - your social bookmark manager. * SemanticScuttle - your social bookmark manager.
* *

View File

@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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['pagetitle'] = T_('About');
$tplVars['subtitle'] = T_('About'); $tplVars['subtitle'] = T_('About');

View File

@ -17,7 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmark2tagservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $bookmark2tagservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -21,7 +21,7 @@
/* Return a json file with list of linked tags */ /* 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 */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

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*/ /* 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 */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

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*/ /* 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 */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -21,7 +21,7 @@
/* Return a json file with list of linked tags */ /* 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 */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

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*/ /* 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 */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -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('Content-Type: text/xml; charset=UTF-8');
header('Last-Modified: '. gmdate("D, d M Y H:i:s") .' GMT'); header('Last-Modified: '. gmdate("D, d M Y H:i:s") .' GMT');
header('Cache-Control: no-cache, must-revalidate'); 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 */ /* Service creation: only useful services are created */
$bookmarkservice = SemanticScuttle_Service_Factory :: get('Bookmark'); $bookmarkservice = SemanticScuttle_Service_Factory :: get('Bookmark');

View File

@ -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("Last-Modified: ". gmdate("D, d M Y H:i:s") ." GMT");
header("Cache-Control: no-cache, must-revalidate"); header("Cache-Control: no-cache, must-revalidate");
require_once '../src/SemanticScuttle/header.php'; require_once 'www-header.php';
/* Managing all possible inputs */ /* Managing all possible inputs */
isset($_GET['url']) ? define('GET_URL', $_GET['url']): define('GET_URL', ''); isset($_GET['url']) ? define('GET_URL', $_GET['url']): define('GET_URL', '');

View File

@ -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("Last-Modified: ". gmdate("D, d M Y H:i:s") ." GMT");
header("Cache-Control: no-cache, must-revalidate"); 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 */ /* Service creation: only useful services are created */
//No specific services //No specific services

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$b2tservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<?php <?php
/* Export data with semantic format (SIOC: http://sioc-project.org/, FOAF, SKOS, Annotea Ontology) */ /* 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 header('Content-Type: text/xml; charset=utf-8'); //we change headers html defined in headers.inc.php
/* Service creation: only useful services are created */ /* Service creation: only useful services are created */

View File

@ -1,5 +1,5 @@
<?php <?php
require_once '../../src/SemanticScuttle/header.php'; require_once '../www-header.php';
// Provides HTTP Basic authentication of a user // Provides HTTP Basic authentication of a user
// and logs the user in if necessary // and logs the user in if necessary

View File

@ -1,5 +1,5 @@
<?php <?php
require_once '../../src/SemanticScuttle/header.php'; require_once '../www-header.php';
header("Content-type: text/xml"); header("Content-type: text/xml");
?> ?>
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>

View File

@ -12,7 +12,7 @@
// Force HTTP authentication // Force HTTP authentication
require_once('httpauth.inc.php'); require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php'; require_once '../www-header.php';
/* Service creation: only useful services are created */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@
// Force HTTP authentication first! // Force HTTP authentication first!
require_once('httpauth.inc.php'); require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php'; require_once '../www-header.php';
/* Service creation: only useful services are created */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -6,7 +6,7 @@
// Force HTTP authentication first! // Force HTTP authentication first!
require_once('httpauth.inc.php'); require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php'; require_once '../www-header.php';
/* Service creation: only useful services are created */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice = SemanticScuttle_Service_Factory :: get('Bookmark'); $bookmarkservice = SemanticScuttle_Service_Factory :: get('Bookmark');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -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 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 */ /* Service creation: only useful services are created */
$bookmarkservice = SemanticScuttle_Service_Factory :: get('Bookmark'); $bookmarkservice = SemanticScuttle_Service_Factory :: get('Bookmark');

View File

@ -15,7 +15,7 @@
* @license GPL http://www.gnu.org/licenses/gpl.html * @license GPL http://www.gnu.org/licenses/gpl.html
* @link http://sourceforge.net/projects/semanticscuttle * @link http://sourceforge.net/projects/semanticscuttle
*/ */
require_once '../src/SemanticScuttle/header.php'; require_once 'www-header.php';
if (!$GLOBALS['shorturl']) { if (!$GLOBALS['shorturl']) {
header('HTTP/1.0 500 Internal Server Error'); header('HTTP/1.0 500 Internal Server Error');

View File

@ -1,5 +1,5 @@
<?php <?php
require_once '../../src/SemanticScuttle/header.php'; require_once '../www-header.php';
if($GLOBALS['enableGoogleCustomSearch'] == false) { if($GLOBALS['enableGoogleCustomSearch'] == false) {
echo "Google Custom Search disabled. You can enable it into the config.php file."; echo "Google Custom Search disabled. You can enable it into the config.php file.";

View File

@ -1,4 +1,4 @@
<?php require_once '../../src/SemanticScuttle/header.php'; <?php require_once '../www-header.php';
if($GLOBALS['enableGoogleCustomSearch']==false) { if($GLOBALS['enableGoogleCustomSearch']==false) {
echo "Google Custom Search disabled. You can enable it into the config.php file."; echo "Google Custom Search disabled. You can enable it into the config.php file.";

View File

@ -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 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
// No specific services // No specific services

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$tag2tagservice =SemanticScuttle_Service_Factory::get('Tag2Tag'); $tag2tagservice =SemanticScuttle_Service_Factory::get('Tag2Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -1,7 +1,7 @@
<?php <?php
header('Content-Type: text/javascript'); header('Content-Type: text/javascript');
$GLOBALS['saveInLastUrl'] = false; $GLOBALS['saveInLastUrl'] = false;
require_once '../src/SemanticScuttle/header.php'; require_once 'www-header.php';
require_once 'SemanticScuttle/functions.php'; require_once 'SemanticScuttle/functions.php';
$player_root = ROOT .'includes/player/'; $player_root = ROOT .'includes/player/';
?> ?>

View File

@ -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 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 */ /* Service creation: only useful services are created */

View File

@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
// No specific services // No specific services

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
// No specific services // No specific services

View File

@ -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 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']) { if (!$GLOBALS['enableRegistration']) {
header('HTTP/1.0 501 Not implemented'); header('HTTP/1.0 501 Not implemented');

View File

@ -19,7 +19,7 @@
* @link http://sourceforge.net/projects/semanticscuttle * @link http://sourceforge.net/projects/semanticscuttle
*/ */
require_once '../src/SemanticScuttle/header.php'; require_once 'www-header.php';
/* Service creation: only useful services are created */ /* Service creation: only useful services are created */
$bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Managing all possible inputs */
isset($_POST['terms']) ? define('POST_TERMS', $_POST['terms']): define('POST_TERMS', ''); isset($_POST['terms']) ? define('POST_TERMS', $_POST['terms']): define('POST_TERMS', '');

View File

@ -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 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 */ /* Service creation: only useful services are created */
$tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag'); $tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag'); $tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag');

View File

@ -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 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 */ /* Service creation: only useful services are created */
$tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag'); $tag2tagservice = SemanticScuttle_Service_Factory :: get('Tag2Tag');

View File

@ -15,7 +15,7 @@
* @link http://sourceforge.net/projects/semanticscuttle * @link http://sourceforge.net/projects/semanticscuttle
*/ */
require_once '../src/SemanticScuttle/header.php'; require_once 'www-header.php';
/* Service creation: only useful services are created */ /* Service creation: only useful services are created */
$b2tservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag'); $b2tservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag');

View File

@ -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 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 */ /* Service creation: only useful services are created */
$b2tservice = SemanticScuttle_Service_Factory :: get('Bookmark2Tag'); $b2tservice = SemanticScuttle_Service_Factory :: get('Bookmark2Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$tagservice = SemanticScuttle_Service_Factory :: get('Tag'); $tagservice = SemanticScuttle_Service_Factory :: get('Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$b2tservice = SemanticScuttle_Service_Factory :: get('Bookmark2Tag'); $b2tservice = SemanticScuttle_Service_Factory :: get('Bookmark2Tag');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -34,7 +34,7 @@ exit();
///////////////// /////////////////
// This part below will be executed once you comment the two lines above // 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'); $tagstatservice = SemanticScuttle_Service_Factory :: get('TagStat');
?> ?>

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

View File

@ -7,7 +7,7 @@
* *
* vote/for/123 * vote/for/123
*/ */
require_once '../src/SemanticScuttle/header.php'; require_once 'www-header.php';
if (!$GLOBALS['enableVoting']) { if (!$GLOBALS['enableVoting']) {
header('HTTP/1.0 501 Not implemented'); header('HTTP/1.0 501 Not implemented');

View File

@ -19,7 +19,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
//No specific services //No specific services

View File

@ -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 along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 */ /* Service creation: only useful services are created */
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark'); $bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');

19
www/www-header.php Normal file
View File

@ -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';
?>