- Removed redirection after save
- Show most recent page of results on index, rather than most recent day
- Minor code style updates
- Shameless self-aggrandising
Signed-off-by: Marcus Campbell <marcus.campbell@gmail.com>
51 files changed:
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2010 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2010 Marcus Campbell
+http://scuttle.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2005 - 2010 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2005 - 2010 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2005 - 2010 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2005 - 2010 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2006 - 2010 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2006 - 2010 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2010 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
+
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
-$tagservice =& ServiceFactory::getServiceInstance('TagService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
-$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
+$tagservice =& ServiceFactory::getServiceInstance('TagService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
+$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
-list($url, $user) = explode('/', $_SERVER['PATH_INFO']);
+@list($url, $user) = explode('/', $_SERVER['PATH_INFO']);
if (!$user) {
header('Location: '. createURL('populartags'));
exit;
if (!$user) {
header('Location: '. createURL('populartags'));
exit;
function authenticate() {
header('WWW-Authenticate: Basic realm="del.icio.us API"');
header('HTTP/1.0 401 Unauthorized');
function authenticate() {
header('WWW-Authenticate: Basic realm="del.icio.us API"');
header('HTTP/1.0 401 Unauthorized');
- die("Use of the API calls requires authentication.");
+ die(T_('Use of the API calls requires authentication.'));
}
if (!isset($_SERVER['PHP_AUTH_USER'])) {
}
if (!isset($_SERVER['PHP_AUTH_USER'])) {
// - No support for 'replace' variable
// Force HTTP authentication
// - No support for 'replace' variable
// Force HTTP authentication
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Get all the bookmark's passed-in information
if (isset($_REQUEST['url']) && (trim($_REQUEST['url']) != ''))
// Get all the bookmark's passed-in information
if (isset($_REQUEST['url']) && (trim($_REQUEST['url']) != ''))
// Error out if there's no address or description
if (is_null($url) || is_null($description)) {
// Error out if there's no address or description
if (is_null($url) || is_null($description)) {
} else {
// We're good with info; now insert it!
if ($bookmarkservice->bookmarkExists($url, $userservice->getCurrentUserId()))
} else {
// We're good with info; now insert it!
if ($bookmarkservice->bookmarkExists($url, $userservice->getCurrentUserId()))
- $added = $bookmarkservice->addBookmark($url, $description, $extended, $status, $tags, $dt, true);
+ $added = $bookmarkservice->addBookmark($url, $description, $extended, $status, $tags, $dt, TRUE);
}
// Set up the XML file and output the result.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<result code="'. ($added ? 'done' : 'something went wrong') .'" />';
}
// Set up the XML file and output the result.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<result code="'. ($added ? 'done' : 'something went wrong') .'" />';
-?>
\ No newline at end of file
// - doesn't include the filtered tag as an attribute on the root element (we do)
// Force HTTP authentication first!
// - doesn't include the filtered tag as an attribute on the root element (we do)
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
-?>
\ No newline at end of file
// by tag).
// Force HTTP authentication first!
// by tag).
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<dates tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<dates tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
-foreach($bookmarks['bookmarks'] as $row) {
+foreach ($bookmarks['bookmarks'] as $row) {
$thisdate = gmdate('Y-m-d', strtotime($row['bDatetime']));
if ($thisdate != $lastdate && $lastdate != NULL) {
echo "\t<date count=\"". $count .'" date="'. $lastdate ."\" />\r\n";
$count = 1;
$thisdate = gmdate('Y-m-d', strtotime($row['bDatetime']));
if ($thisdate != $lastdate && $lastdate != NULL) {
echo "\t<date count=\"". $count .'" date="'. $lastdate ."\" />\r\n";
$count = 1;
- } else {
- $count = $count + 1;
}
$lastdate = $thisdate;
}
echo "</dates>";
}
$lastdate = $thisdate;
}
echo "</dates>";
-?>
\ No newline at end of file
// - doesn't set the Content-Type to text/xml (we do).
// Force HTTP authentication first!
// - doesn't set the Content-Type to text/xml (we do).
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Note that del.icio.us only errors out if no URL was passed in; there's no error on attempting
// to delete a bookmark you don't have.
// Error out if there's no address
if (is_null($_REQUEST['url'])) {
// Note that del.icio.us only errors out if no URL was passed in; there's no error on attempting
// to delete a bookmark you don't have.
// Error out if there's no address
if (is_null($_REQUEST['url'])) {
- $deleted = false;
-} else {
+ $deleted = FALSE;
+}
+else {
$bookmark = $bookmarkservice->getBookmarkByAddress($_REQUEST['url']);
$bid = $bookmark['bId'];
$delete = $bookmarkservice->deleteBookmark($bid);
$bookmark = $bookmarkservice->getBookmarkByAddress($_REQUEST['url']);
$bid = $bookmark['bId'];
$delete = $bookmarkservice->deleteBookmark($bid);
}
// Set up the XML file and output the result.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<result code="'. ($deleted ? 'done' : 'something went wrong') .'" />';
}
// Set up the XML file and output the result.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<result code="'. ($deleted ? 'done' : 'something went wrong') .'" />';
-?>
\ No newline at end of file
// - Uses today, instead of the last bookmarked date, if no date is specified
// Force HTTP authentication first!
// - Uses today, instead of the last bookmarked date, if no date is specified
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<posts'. (is_null($dtstart) ? '' : ' dt="'. $dtstart .'"') .' tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<posts'. (is_null($dtstart) ? '' : ' dt="'. $dtstart .'"') .' tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
-foreach($bookmarks['bookmarks'] as $row) {
+foreach ($bookmarks['bookmarks'] as $row) {
if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))
$description = '';
else
if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))
$description = '';
else
-?>
\ No newline at end of file
// Set default and max number of posts
$countDefault = 15;
// Set default and max number of posts
$countDefault = 15;
// Force HTTP authentication first!
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<posts tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<posts tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
-foreach($bookmarks['bookmarks'] as $row) {
+foreach ($bookmarks['bookmarks'] as $row) {
if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))
$description = '';
else
if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))
$description = '';
else
-?>
\ No newline at end of file
// - doesn't set the Content-Type to text/xml (we do).
// Force HTTP authentication first!
// - doesn't set the Content-Type to text/xml (we do).
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Get the posts relevant to the passed-in variables.
$bookmarks =& $bookmarkservice->getBookmarks(0, 1, $userservice->getCurrentUserId());
// Get the posts relevant to the passed-in variables.
$bookmarks =& $bookmarkservice->getBookmarks(0, 1, $userservice->getCurrentUserId());
-$currentuser = $userservice->getCurrentUser();
-$currentusername = $currentuser[$userservice->getFieldName('username')];
-
// Set up the XML file and output all the tags.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
// Set up the XML file and output all the tags.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
-foreach($bookmarks['bookmarks'] as $row) {
+foreach ($bookmarks['bookmarks'] as $row) {
echo '<update time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) .'" />';
}
echo '<update time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) .'" />';
}
-?>
\ No newline at end of file
// - tags can't have spaces
// Force HTTP authentication first!
// - tags can't have spaces
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
-$tagservice =& ServiceFactory::getServiceInstance('TagService');
+$tagservice =& ServiceFactory::getServiceInstance('TagService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
// Get the tags relevant to the passed-in variables.
$userservice =& ServiceFactory::getServiceInstance('UserService');
// Get the tags relevant to the passed-in variables.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo "<tags>\r\n";
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo "<tags>\r\n";
-foreach($tags as $row) {
- echo "\t<tag count=\"". $row['bCount'] .'" tag="'. filter(convertTag($row['tag'], 'out'), 'xml') ."\" />\r\n";
+foreach ($tags as $row) {
+ echo "\t<tag count=\"". $row['bCount'] .'" tag="'. filter(convertTag($row['tag'], 'out'), 'xml') ."\" />\r\n";
-?>
\ No newline at end of file
// - oddly, returns an entirely different result (<result></result>) than the other API calls.
// Force HTTP authentication first!
// - oddly, returns an entirely different result (<result></result>) than the other API calls.
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
-$tagservice =& ServiceFactory::getServiceInstance('TagService');
+$tagservice =& ServiceFactory::getServiceInstance('TagService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
// Get the tag info.
if (isset($_REQUEST['old']) && (trim($_REQUEST['old']) != ''))
$userservice =& ServiceFactory::getServiceInstance('UserService');
// Get the tag info.
if (isset($_REQUEST['old']) && (trim($_REQUEST['old']) != ''))
- $old = trim($_REQUEST['old']);
+ $old = trim($_REQUEST['old']);
if (isset($_REQUEST['new']) && (trim($_REQUEST['new']) != ''))
if (isset($_REQUEST['new']) && (trim($_REQUEST['new']) != ''))
- $new = trim($_REQUEST['new']);
+ $new = trim($_REQUEST['new']);
if (is_null($old) || is_null($new)) {
if (is_null($old) || is_null($new)) {
- $renamed = false;
-} else {
- // Rename the tag.
- $result = $tagservice->renameTag($userservice->getCurrentUserId(), $old, $new, true);
- $renamed = $result;
+ $renamed = FALSE;
+}
+else {
+ // Rename the tag.
+ $result = $tagservice->renameTag($userservice->getCurrentUserId(), $old, $new, TRUE);
+ $renamed = $result;
}
// Set up the XML file and output the result.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<result>'. ($renamed ? 'done' : 'something went wrong') .'</result>';
}
// Set up the XML file and output the result.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
echo '<result>'. ($renamed ? 'done' : 'something went wrong') .'</result>';
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2010 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
-$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
+$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
$templatename = 'editbookmark.tpl';
} else {
$address = trim($_POST['address']);
$templatename = 'editbookmark.tpl';
} else {
$address = trim($_POST['address']);
// If the bookmark exists already, edit the original
if ($bookmarkservice->bookmarkExists($address, $currentUserID)) {
$bookmark =& $bookmarkservice->getBookmarkByAddress($address);
header('Location: '. createURL('edit', $bookmark['bId']));
exit();
// If the bookmark exists already, edit the original
if ($bookmarkservice->bookmarkExists($address, $currentUserID)) {
$bookmark =& $bookmarkservice->getBookmarkByAddress($address);
header('Location: '. createURL('edit', $bookmark['bId']));
exit();
// If it's new, save it
} else {
$title = trim($_POST['title']);
// If it's new, save it
} else {
$title = trim($_POST['title']);
$tplVars['msg'] = '<script type="text/javascript">window.close();</script>';
} else {
$tplVars['msg'] = T_('Bookmark saved');
$tplVars['msg'] = '<script type="text/javascript">window.close();</script>';
} else {
$tplVars['msg'] = T_('Bookmark saved');
- // Redirection option
- if ($GLOBALS['useredir']) {
- $address = $GLOBALS['url_redir'] . $address;
- }
- header('Location: '. $address);
}
} else {
$tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.');
}
} else {
$tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.');
// Cache output if existing copy has expired
$cacheservice->End($hash);
}
// Cache output if existing copy has expired
$cacheservice->End($hash);
}
######################################################################
# SCUTTLE: Online social bookmarks manager
######################################################################
######################################################################
# SCUTTLE: Online social bookmarks manager
######################################################################
-# Copyright (c) 2005 - 2010 Scuttle project
+# Copyright (c) 2005 - 2010 Marcus Campbell
# http://scuttle.org/
#
# This module is to configure the main options for your site
# http://scuttle.org/
#
# This module is to configure the main options for your site
# filetypes : An array of bookmark extensions that Scuttle should
# add system tags for.
# reservedusers : An array of usernames that cannot be registered
# filetypes : An array of bookmark extensions that Scuttle should
# add system tags for.
# reservedusers : An array of usernames that cannot be registered
-# url_blacklist : Array of regex patterns. User is banned and existing
-# bookmarks are hidden if a match is found.
# email_whitelist : Array of regex patterns. Used to whitelist addresses that
# may otherwise match the blacklist.
# email_blacklist : Array of regex patterns. Registration is blocked if a
# email_whitelist : Array of regex patterns. Used to whitelist addresses that
# may otherwise match the blacklist.
# email_blacklist : Array of regex patterns. Registration is blocked if a
$bottom_include = 'bottom.inc.php';
$shortdate = 'd-m-Y';
$longdate = 'j F Y';
$bottom_include = 'bottom.inc.php';
$shortdate = 'd-m-Y';
$longdate = 'j F Y';
$defaultPerPage = 10;
$defaultRecentDays = 14;
$defaultOrderBy = 'date_desc';
$defaultPerPage = 10;
$defaultRecentDays = 14;
$defaultOrderBy = 'date_desc';
$cookieprefix = 'SCUTTLE';
$tableprefix = 'sc_';
$adminemail = 'admin@example.org';
$cookieprefix = 'SCUTTLE';
$tableprefix = 'sc_';
$adminemail = 'admin@example.org';
$dir_cache = dirname(__FILE__) .'/cache/';
$dir_cache = dirname(__FILE__) .'/cache/';
$url_redir = 'http://www.google.com/url?sa=D&q=';
$filetypes = array(
$url_redir = 'http://www.google.com/url?sa=D&q=';
$filetypes = array(
<?php
// Turn debugging on
<?php
// Turn debugging on
-define('SCUTTLE_DEBUG',true);
+define('SCUTTLE_DEBUG', TRUE);
// generic debugging function
// Sample:
// generic debugging function
// Sample:
error_log("SCUTTLE_DEBUG disabled");
}
}
error_log("SCUTTLE_DEBUG disabled");
}
}
-?>
\ No newline at end of file
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
-$bookmarkservice = & ServiceFactory :: getServiceInstance('BookmarkService');
-$templateservice = & ServiceFactory :: getServiceInstance('TemplateService');
-$userservice = & ServiceFactory :: getServiceInstance('UserService');
+$bookmarkservice = & ServiceFactory::getServiceInstance('BookmarkService');
+$templateservice = & ServiceFactory::getServiceInstance('TemplateService');
+$userservice = & ServiceFactory::getServiceInstance('UserService');
// Header variables
$tplVars['subtitle'] = T_('Edit Bookmark');
// Header variables
$tplVars['subtitle'] = T_('Edit Bookmark');
ini_set('display_errors', '1');
ini_set('mysql.trace_mode', '0');
ini_set('display_errors', '1');
ini_set('mysql.trace_mode', '0');
-error_reporting(E_ALL ^ E_NOTICE);
-
-define('DEBUG', true);
+error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE);
session_start();
require_once dirname(__FILE__) .'/services/servicefactory.php';
session_start();
require_once dirname(__FILE__) .'/services/servicefactory.php';
$root = $protocol .'://'. $_SERVER['HTTP_HOST'] . $root;
}
$root = $protocol .'://'. $_SERVER['HTTP_HOST'] . $root;
}
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tplVars = array();
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tplVars = array();
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2010 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
-$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
+$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
-if (isset($_GET['action'])){
- if ($_GET['action'] == "logout") {
- $userservice->logout($path);
- $tplvars['msg'] = T_('You have now logged out');
- }
+if (isset($_GET['action']) && 'logout' == $_GET['action']) {
+ $userservice->logout($path);
+ $tplvars['msg'] = T_('You have now logged out');
// Pagination
$perpage = getPerPageCount();
// Pagination
$perpage = getPerPageCount();
-if (isset($_GET['page']) && intval($_GET['page']) > 1) {
- $page = $_GET['page'];
- $start = ($page - 1) * $perpage;
-} else {
- $page = 0;
- $start = 0;
-}
-
-$dtend = date('Y-m-d H:i:s', strtotime('tomorrow'));
-$dtstart = date('Y-m-d H:i:s', strtotime($dtend .' -'. $defaultRecentDays .' days'));
-$tplVars['page'] = $page;
-$tplVars['start'] = $start;
+$tplVars['page'] = 0;
+$tplVars['start'] = 0;
$tplVars['popCount'] = 30;
$tplVars['sidebar_blocks'] = array('recent');
$tplVars['range'] = 'all';
$tplVars['pagetitle'] = T_('Store, share and tag your favourite links');
$tplVars['subtitle'] = T_('Recent Bookmarks');
$tplVars['popCount'] = 30;
$tplVars['sidebar_blocks'] = array('recent');
$tplVars['range'] = 'all';
$tplVars['pagetitle'] = T_('Store, share and tag your favourite links');
$tplVars['subtitle'] = T_('Recent Bookmarks');
-$tplVars['bookmarkCount'] = $start + 1;
-$bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, NULL, NULL, NULL, getSortOrder(), NULL, $dtstart, $dtend);
+$tplVars['bookmarkCount'] = 1;
+$bookmarks =& $bookmarkservice->getBookmarks(0, $perpage, NULL, NULL, NULL, getSortOrder(), NULL);
$tplVars['total'] = $bookmarks['total'];
$tplVars['bookmarks'] =& $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('tags', '%2$s');
$tplVars['total'] = $bookmarks['total'];
$tplVars['bookmarks'] =& $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('tags', '%2$s');
// Cache output if existing copy has expired
$cacheservice->End($hash);
}
// Cache output if existing copy has expired
$cacheservice->End($hash);
}
-?>
\ No newline at end of file
# Scuttle de-DE Translation
# Scuttle de-DE Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Ogee <ogee@ogee.de>
#
# This file is distributed under the same license as the Scuttle package.
# Ogee <ogee@ogee.de>
#
# Scuttle dk-DK Translation
# Scuttle dk-DK Translation
-# Copyright (C) 2006 Scuttle project
+# Copyright (C) 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Nicki Brøchner <nicki.brochner@gmail.com>
#
# This file is distributed under the same license as the Scuttle package.
# Nicki Brøchner <nicki.brochner@gmail.com>
#
# Scuttle en-GB Translation
# Scuttle en-GB Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Marcus Campbell <marcus.campbell@gmail.com>
#
# This file is distributed under the same license as the Scuttle package.
# Marcus Campbell <marcus.campbell@gmail.com>
#
# Scuttle es-ES Translation
# Scuttle es-ES Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Francisco Portero <fportero@serbinario.com>
#
# This file is distributed under the same license as the Scuttle package.
# Francisco Portero <fportero@serbinario.com>
#
# Scuttle fr-FR Translation
# Scuttle fr-FR Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# <toony.sf@chezouam.net>
# nitram <nitram@no-log.org>
# This file is distributed under the same license as the Scuttle package.
# <toony.sf@chezouam.net>
# nitram <nitram@no-log.org>
# Scuttle hi-IN Translation
# Scuttle hi-IN Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Debashish Chakrabarty <debashish @ gmail.com>
# Ravishankar Shrivastava <raviratlami@yahoo.com>
# This file is distributed under the same license as the Scuttle package.
# Debashish Chakrabarty <debashish @ gmail.com>
# Ravishankar Shrivastava <raviratlami@yahoo.com>
# Scuttle it-IT Translation
# Scuttle it-IT Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# <upcome@gmail.com>
#
# This file is distributed under the same license as the Scuttle package.
# <upcome@gmail.com>
#
# Scuttle ja-JP Translation
# Scuttle ja-JP Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Tadashi Jokagi <elf2000@users.sourceforge.net>, 2005-2006.
#
# This file is distributed under the same license as the Scuttle package.
# Tadashi Jokagi <elf2000@users.sourceforge.net>, 2005-2006.
#
# Scuttle lt-LT Translation
# Scuttle lt-LT Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Audrius Radzevičius <audrius@gmail.com>
#
# This file is distributed under the same license as the Scuttle package.
# Audrius Radzevičius <audrius@gmail.com>
#
# Scuttle nl-NL Translation
# Scuttle nl-NL Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# <alley@ilikeu2.nl>
#
# This file is distributed under the same license as the Scuttle package.
# <alley@ilikeu2.nl>
#
# Scuttle pt-BR Translation
# Scuttle pt-BR Translation
-# Copyright (C) 2006 Scuttle project
+# Copyright (C) 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Marcelo Jorge Vieira (metal) <metal@alucinados.com>, 2006.
#
# This file is distributed under the same license as the Scuttle package.
# Marcelo Jorge Vieira (metal) <metal@alucinados.com>, 2006.
#
# Scuttle zh-CN Translation
# Scuttle zh-CN Translation
-# Copyright (C) 2005 - 2006 Scuttle project
+# Copyright (C) 2005 - 2006 Marcus Campbell
# This file is distributed under the same license as the Scuttle package.
# Yanni Zheng <ynzheng@gmail.com>
#
# This file is distributed under the same license as the Scuttle package.
# Yanni Zheng <ynzheng@gmail.com>
#
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+require_once 'header.inc.php';
+$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tplVars = array();
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tplVars = array();
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2005 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2005 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tplVars = array();
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tplVars = array();
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (C) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (C) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tagservice =& ServiceFactory::getServiceInstance('TagService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$tagservice =& ServiceFactory::getServiceInstance('TagService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (C) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (C) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
Scuttle 0.8.0
http://scuttle.org/
Scuttle 0.8.0
http://scuttle.org/
-Copyright (C) 2004 - 2010 Scuttle project
+Copyright (C) 2004 - 2010 Marcus Campbell
Available under the GNU General Public License
============
Available under the GNU General Public License
============
$posteduser = trim(utf8_strtolower($_POST['username']));
$postedpass = trim($_POST['password']);
$postedconf = trim($_POST['passconf']);
$posteduser = trim(utf8_strtolower($_POST['username']));
$postedpass = trim($_POST['password']);
$postedconf = trim($_POST['passconf']);
+ $postedmail = trim($_POST['email']);
// Check token
if (!isset($_SESSION['token']) || $_POST['token'] != $_SESSION['token']) {
$tplVars['error'] = T_('Form could not be authenticated. Please try again.');
}
// Check token
if (!isset($_SESSION['token']) || $_POST['token'] != $_SESSION['token']) {
$tplVars['error'] = T_('Form could not be authenticated. Please try again.');
}
+ // Check elapsed time
+ if (!isset($_SESSION['token_time']) || time() - $_SESSION['token_time'] < 1) {
+ $tplVars['error'] = T_('Form was submitted too quickly. Please wait before trying again.');
+ }
+
// Check if form is incomplete
// Check if form is incomplete
- elseif (!$posteduser || !$postedpass || !($_POST['email'])) {
+ elseif (!$posteduser || !$postedpass || !$postedmail) {
$tplVars['error'] = T_('You <em>must</em> enter a username, password and e-mail address.');
}
$tplVars['error'] = T_('You <em>must</em> enter a username, password and e-mail address.');
}
}
// Check if e-mail address is blocked
}
// Check if e-mail address is blocked
- elseif ($userservice->isBlockedEmail($_POST['email'])) {
+ elseif ($userservice->isBlockedEmail($postedmail)) {
$tplVars['error'] = T_('This e-mail address is not permitted.');
}
// Check if e-mail address is valid
$tplVars['error'] = T_('This e-mail address is not permitted.');
}
// Check if e-mail address is valid
- elseif (!$userservice->isValidEmail($_POST['email'])) {
+ elseif (!$userservice->isValidEmail($postedmail)) {
$tplVars['error'] = T_('E-mail address is not valid. Please try again.');
}
// Register details
$tplVars['error'] = T_('E-mail address is not valid. Please try again.');
}
// Register details
- elseif ($userservice->addUser($posteduser, $_POST['password'], $_POST['email'])) {
+ elseif ($userservice->addUser($posteduser, $_POST['password'], $postedmail)) {
// Log in with new username
$login = $userservice->login($posteduser, $_POST['password']);
if ($login) {
// Log in with new username
$login = $userservice->login($posteduser, $_POST['password']);
if ($login) {
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (C) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (C) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$cacheservice =& ServiceFactory::getServiceInstance('CacheService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
if ($userservice->isLoggedOn()) {
if ($userservice->isLoggedOn()) {
- $currentUser = $userservice->getCurrentUser();
- $currentUsername = $currentUser[$userservice->getFieldName('username')];
- $logged_on = true;
+ $currentUser = $userservice->getCurrentUser();
+ $currentUsername = $currentUser[$userservice->getFieldName('username')];
+ $logged_on = TRUE;
}
if ($logged_on || isset($user)) {
?>
<td><?php echo T_('Search' /* Search ... for */); ?></td>
<td>
<select name="range">
}
if ($logged_on || isset($user)) {
?>
<td><?php echo T_('Search' /* Search ... for */); ?></td>
<td>
<select name="range">
- <?php
- if (!in_array($range, array($currentUsername, 'all', 'watchlist'))) {
- ?>
+ <?php if (!in_array($range, array($currentUsername, 'all', 'watchlist')) && $user != $currentUsername): ?>
<option value="<?php echo $user ?>"<?php echo $selectUser; ?>><?php echo T_("this user's bookmarks"); ?></option>
<?php
<option value="<?php echo $user ?>"<?php echo $selectUser; ?>><?php echo T_("this user's bookmarks"); ?></option>
<?php
if ($logged_on) {
?>
<option value="<?php echo $currentUsername; ?>"<?php echo $selectMy; ?>><?php echo T_('my bookmarks'); ?></option>
if ($logged_on) {
?>
<option value="<?php echo $currentUsername; ?>"<?php echo $selectMy; ?>><?php echo T_('my bookmarks'); ?></option>
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2005 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2005 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
// POST
if (isset($_POST['terms'])) {
// POST
if (isset($_POST['terms'])) {
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$tagservice = & ServiceFactory :: getServiceInstance('TagService');
$templateservice = & ServiceFactory :: getServiceInstance('TemplateService');
$userservice = & ServiceFactory :: getServiceInstance('UserService');
$tagservice = & ServiceFactory :: getServiceInstance('TagService');
$templateservice = & ServiceFactory :: getServiceInstance('TemplateService');
$userservice = & ServiceFactory :: getServiceInstance('UserService');
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$tagservice = & ServiceFactory :: getServiceInstance('TagService');
$templateservice = & ServiceFactory :: getServiceInstance('TemplateService');
$userservice = & ServiceFactory :: getServiceInstance('UserService');
$tagservice = & ServiceFactory :: getServiceInstance('TagService');
$templateservice = & ServiceFactory :: getServiceInstance('TemplateService');
$userservice = & ServiceFactory :: getServiceInstance('UserService');
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
<?php
/***************************************************************************
Copyright (c) 2005 - 2010 Marcus Campbell
<?php
/***************************************************************************
Copyright (c) 2005 - 2010 Marcus Campbell
-http://sourceforge.net/projects/scuttle/
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
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('header.inc.php');
+require_once 'header.inc.php';
$userservice =& ServiceFactory::getServiceInstance('UserService');
@list($url, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL;
$userservice =& ServiceFactory::getServiceInstance('UserService');
@list($url, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL;
<?php
/***************************************************************************
<?php
/***************************************************************************
-Copyright (c) 2004 - 2006 Scuttle project
-http://sourceforge.net/projects/scuttle/
+Copyright (c) 2004 - 2006 Marcus Campbell
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
http://scuttle.org/
This program is free software; you can redistribute it and/or modify
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
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('header.inc.php');
+require_once 'header.inc.php';
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
$templateservice =& ServiceFactory::getServiceInstance('TemplateService');