services via PEAR's Auth package
- Add special header file for shell scripts (header-standalone.php)
- 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
<?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.
*
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');
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');
/* 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');
/* 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');
/* 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');
/* 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');
/* 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');
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');
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', '');
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
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');
// 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');
// 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.";
<?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 */
<?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
<?php
-require_once '../../src/SemanticScuttle/header.php';
+require_once '../www-header.php';
header("Content-type: text/xml");
?>
<?xml version="1.0" encoding="utf-8" ?>
// 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');
// 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');
// 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');
// 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');
// 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');
// 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');
// 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');
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');
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');
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');
* @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');
<?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.";
-<?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.";
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');
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
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');
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');
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');
<?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/';
?>
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 */
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
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');
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
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');
* @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');
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', '');
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');
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');
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');
* @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');
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');
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');
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');
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');
/////////////////
// 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');
?>
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');
*
* vote/for/123
*/
-require_once '../src/SemanticScuttle/header.php';
+require_once 'www-header.php';
if (!$GLOBALS['enableVoting']) {
header('HTTP/1.0 501 Not implemented');
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
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');
--- /dev/null
+<?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