2009-09-20 19:04:31 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Default configuration file for SemanticScuttle
|
|
|
|
*
|
2009-10-26 07:39:23 +01:00
|
|
|
* This file is included just before config.php.
|
2009-09-20 19:04:31 +02:00
|
|
|
* If there is something you want to change, copy the lines
|
2009-10-26 07:39:23 +01:00
|
|
|
* in your personal config.php file.
|
|
|
|
* Do not modify _this_ file!
|
2009-09-20 19:04:31 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License.
|
|
|
|
*
|
|
|
|
* @link http://sourceforge.net/projects/semanticscuttle/
|
|
|
|
*/
|
|
|
|
|
2011-03-15 07:53:39 +01:00
|
|
|
/**
|
|
|
|
* Array for defaults.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$defaults = array();
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* HTML output configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of this site.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$sitename = 'SemanticScuttle';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The welcome message on the homepage.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$welcomeMessage = 'Welcome to SemanticScuttle!'
|
|
|
|
. ' Social bookmarking for small communities.';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* HTML message appearing at the bottom of the page.
|
|
|
|
* (just above SemanticScuttle credits)
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$footerMessage = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* HTML message appearing at the top of the sidebar
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$sidebarTopMessage = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* HTML message appearing at the bottom of the sidebar
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$sidebarBottomMessage = '';
|
|
|
|
|
2011-05-25 19:43:36 +02:00
|
|
|
/**
|
|
|
|
* The HTML theme to use. With themes, you can give your semanticscuttle
|
|
|
|
* installation a new look.
|
|
|
|
*
|
|
|
|
* Themes are the folders in data/templates/
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$theme = 'default';
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* System configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SemanticScuttle root directory.
|
|
|
|
*
|
|
|
|
* Set to NULL to autodetect the root url of the website.
|
|
|
|
*
|
|
|
|
* If your installation is in a subdirectory like
|
|
|
|
* "http://www.example.com/semanticscuttle/" then
|
|
|
|
* replace NULL by your address (between "" and with trailing '/')
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$root = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Translation from locales/ folder.
|
|
|
|
*
|
|
|
|
* Examples: de_DE, en_GB, fr_FR
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$locale = 'en_GB';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If the cache shall be used (true/false)
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$usecache = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cache directory.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$dir_cache = dirname(__FILE__) . '/cache/';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Use clean urls without .php filenames.
|
|
|
|
* Requires mod_rewrite (for Apache) to be active.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$cleanurls = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show debug messages.
|
|
|
|
* This setting is recommended when setting up SemanticScuttle,
|
|
|
|
* and when hacking on it.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$debugMode = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* Database configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Database driver
|
|
|
|
*
|
|
|
|
* available:
|
|
|
|
* mysql4, mysqli, mysql, oracle, postgres, sqlite, db2, firebird,
|
|
|
|
* mssql, mssq-odbc
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$dbtype = 'mysql4';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Database hostname/IP
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2010-07-21 20:44:54 +02:00
|
|
|
$dbhost = '127.0.0.1';
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
/**
|
2009-09-21 20:03:05 +02:00
|
|
|
* Database port.
|
|
|
|
*
|
|
|
|
* When using mysqli, leave this to null
|
|
|
|
* - connecting will fail otherwise.
|
2009-09-20 19:04:31 +02:00
|
|
|
*
|
|
|
|
* @var string|integer
|
|
|
|
*/
|
2009-09-21 20:03:05 +02:00
|
|
|
$dbport = null;
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Database username
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$dbuser = 'username';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Database password
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$dbpass = 'password';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of database
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$dbname = 'scuttle';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Database table name prefix.
|
|
|
|
* Do not use "-" since this is badly handled by MySQL.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$tableprefix = 'sc_';
|
|
|
|
|
2010-02-20 12:23:07 +01:00
|
|
|
/*
|
|
|
|
* If the database needs to be switched to UTF8
|
|
|
|
* manually or not. If true, a "SET NAMES UTF8" query
|
|
|
|
* will be sent at the beginning. If you need performance,
|
|
|
|
* save this query and set it in your mysql server options.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$dbneedssetnames = true;
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* Users
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Contact address for the site administrator.
|
|
|
|
* Used as the FROM address in password retrieval e-mails.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$adminemail = 'admin@example.org';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Array of user names who have admin rights
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* <code>
|
|
|
|
* $admin_users = array('adminnickname', 'user1nick', 'user2nick');
|
|
|
|
* </code>
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$admin_users = array();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If admin users can edit or delete bookmarks belonging to other users.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$adminsCanModifyBookmarksFromOtherUsers = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If tags from other admins are proposed to each admin
|
|
|
|
* (in add/edit a bookmark page).
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$adminsAreAdvisedTagsFromOtherAdmins = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Array of usernames that cannot be registered
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$reservedusers = array('all', 'watchlist');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* Anti SPAM measures
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A question to avoid spam.
|
|
|
|
* Shown on user registration page.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @see $antispamAnswer
|
|
|
|
*/
|
|
|
|
$antispamQuestion = 'name of this application';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The answer to the antispam question
|
|
|
|
* Users have to write exactly this string.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @see $antispamQuestion
|
|
|
|
*/
|
|
|
|
$antispamAnswer = 'semanticscuttle';
|
|
|
|
|
2009-11-02 10:40:00 +01:00
|
|
|
/**
|
|
|
|
* Enable or disable user registration
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableRegistration = true;
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* Display Templates
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Directory where the template files should be loaded from.
|
|
|
|
* Template files are *.tpl.php
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$TEMPLATES_DIR = dirname(__FILE__) . '/templates/';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Header template file.
|
|
|
|
* Included before content files.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$top_include = 'top.inc.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Footer template file.
|
|
|
|
* Included after content has been generated and output.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$bottom_include = 'bottom.inc.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Ordering of sidebar blocks.
|
|
|
|
* See $menu2Tags for item of menu2
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
* @see $menu2Tags
|
|
|
|
*/
|
|
|
|
$index_sidebar_blocks = array(
|
|
|
|
'search',
|
|
|
|
'menu2',
|
|
|
|
'menu',
|
|
|
|
'users',
|
|
|
|
'recent'
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* Bookmarks
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Format for short dates.
|
|
|
|
* Used in date() calls
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @link http://php.net/date
|
|
|
|
*/
|
2010-10-09 12:14:34 +02:00
|
|
|
$shortdate = 'Y-m-d';
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Format of long dates.
|
|
|
|
* Used in date() calls.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @link http://php.net/date
|
|
|
|
*/
|
|
|
|
$longdate = 'j F Y';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Include rel="nofollow" attribute on bookmark links
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$nofollow = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default number of bookmarks per page.
|
|
|
|
* -1 means no limit.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
* @see $defaultPerPageForAdmins
|
|
|
|
*/
|
|
|
|
$defaultPerPage = 10;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default number of bookmarks per page for admins.
|
|
|
|
* -1 means no limit.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
* @see $defaultPerPage
|
|
|
|
*/
|
|
|
|
$defaultPerPageForAdmins = 10;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Number of days that bookmarks or tags are considered "recent".
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$defaultRecentDays = 14;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bookmark ordering
|
|
|
|
* (date, title, url)
|
|
|
|
* in order ascending or descending
|
|
|
|
* - date_desc - By date of entry descending.
|
|
|
|
* Latest entry first. (Default)
|
|
|
|
* - date_asc - By date of entry ascending.
|
|
|
|
* Earliest entry first.
|
|
|
|
* - title_desc - By title, descending alphabetically.
|
|
|
|
* - title_asc - By title, ascending alphabetically.
|
|
|
|
* - url_desc - By URL, descending alphabetically.
|
|
|
|
* - url_asc - By URL, ascending alphabetically.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$defaultOrderBy = 'date_desc';
|
|
|
|
|
2010-01-16 11:20:45 +01:00
|
|
|
/**
|
|
|
|
* Database field to use when sorting by date.
|
|
|
|
* Options here are 'bModified' to sort after
|
|
|
|
* modification date, and 'bDatetime' to sort
|
|
|
|
* after creation date
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$dateOrderField = 'bModified';
|
|
|
|
|
2010-01-19 21:23:23 +01:00
|
|
|
/**
|
|
|
|
* What to show instead of a description if
|
|
|
|
* a bookmark has none.
|
|
|
|
* Default is '-'. Setting this to '' will collapse
|
|
|
|
* the description row for bookmarks without
|
|
|
|
* a description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$blankDescription = '-';
|
|
|
|
|
2010-01-16 11:15:19 +01:00
|
|
|
/**
|
|
|
|
* Number of entries that are shown in
|
|
|
|
* the RSS feed by default.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$defaultRssEntries = 15;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Number of entries the RSS puts out
|
|
|
|
* at maximum.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$maxRssEntries = 100;
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
/**
|
|
|
|
* Redirect all bookmarks through $url_redir to improve privacy.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
* @see $url_redir
|
|
|
|
*/
|
|
|
|
$useredir = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* URL prefix for bookmarks to redirect through.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @see $useredir
|
|
|
|
*/
|
|
|
|
$url_redir = 'http://www.google.com/url?sa=D&q=';
|
|
|
|
|
2010-01-16 09:11:39 +01:00
|
|
|
/**
|
|
|
|
* Enable short URL service.
|
|
|
|
* Can be used to visit urls using http://example.org/go/shortname
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$shorturl = true;
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
/**
|
|
|
|
* Array of bookmark extensions that Scuttle should add system tags for.
|
|
|
|
* When adding an URL with one of the given extensions, a system
|
|
|
|
* tag is automatically assigned.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$filetypes = array(
|
|
|
|
'audio' => array('mp3', 'ogg', 'wav'),
|
|
|
|
'document' => array('doc', 'odt', 'pdf'),
|
|
|
|
'image' => array('gif', 'jpeg', 'jpg', 'png'),
|
|
|
|
'video' => array('avi', 'mov', 'mp4', 'mpeg', 'mpg', 'wmv')
|
|
|
|
);
|
|
|
|
|
2011-05-03 09:14:32 +02:00
|
|
|
/**
|
|
|
|
* Link protocols that are allowed for newly added bookmarks.
|
|
|
|
* This prevents i.e. adding javascript: links.
|
|
|
|
*
|
|
|
|
* @link http://en.wikipedia.org/wiki/URI_scheme
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$allowedProtocols = array(
|
|
|
|
'ftp', 'ftps',
|
|
|
|
'http', 'https',
|
|
|
|
'mailto', 'nntp',
|
|
|
|
'xmpp'
|
|
|
|
);
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
/**
|
|
|
|
* Enable the "common bookmark description" functionality
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableCommonBookmarkDescription = true;
|
|
|
|
|
2009-10-26 19:52:02 +01:00
|
|
|
/**
|
|
|
|
* Enable bookmark voting system
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableVoting = true;
|
2009-09-20 19:04:31 +02:00
|
|
|
|
2009-11-02 10:38:02 +01:00
|
|
|
/**
|
|
|
|
* Voting mode:
|
|
|
|
* 1 - voting badge
|
|
|
|
* 2 - voting links: hand up/down
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$votingMode = 2;
|
|
|
|
|
2009-11-02 10:42:53 +01:00
|
|
|
/**
|
|
|
|
* Hide bookmarks below a certain voting from all users.
|
|
|
|
* Null to deactivate it.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$hideBelowVoting = null;
|
|
|
|
|
2011-03-15 07:53:39 +01:00
|
|
|
/**
|
|
|
|
* Default privacy setting for bookmarks:
|
|
|
|
* 0 - Public
|
|
|
|
* 1 - Shared with Watchlist
|
|
|
|
* 2 - Private
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$defaults['privacy'] = 0;
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
|
|
|
|
/****************************
|
|
|
|
* Website Thumbnails
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable bookmark website thumbnails.
|
|
|
|
*
|
|
|
|
* According to artviper.net license, buy a license if you
|
|
|
|
* gain profit with your pages.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
* @link http://www.websitethumbnail.de/
|
|
|
|
*/
|
|
|
|
$enableWebsiteThumbnails = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* User ID from websitethumbnail.de
|
|
|
|
*
|
|
|
|
* You need to register on
|
|
|
|
* http://www.artviper.net/registerAPI.php
|
|
|
|
* in order to use thumbnails on your domain
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @link http://www.artviper.net/registerAPI.php
|
|
|
|
*/
|
|
|
|
$thumbnailsUserId = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* API key.
|
|
|
|
* Sent to you by artviper.net after registration.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$thumbnailsKey = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
* Tags
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable common tag descriptions
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableCommonTagDescription = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If everybody may edit common tag description.
|
|
|
|
* When set to false, only admins can do it.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableCommonTagDescriptionEditedByAll = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of the tag whose subtags will appear in the menu box.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @see $maxSizeMenuBlock
|
|
|
|
*/
|
|
|
|
$menuTag = 'menu';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Maximum number of items (tags) appearing in menu box.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
* @see $menuTag
|
|
|
|
*/
|
|
|
|
$maxSizeMenuBlock = 7;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of tags used by menu2 sidebar box
|
|
|
|
* Empty list = hidden menu2 box
|
|
|
|
* menu2 displays linked tags just belonging to admins.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$menu2Tags = array(
|
2009-11-16 20:17:40 +01:00
|
|
|
'menu2', 'tags', 'configurable', 'in', 'data/config.php'
|
2009-09-20 19:04:31 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
* Search
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Number of users' searches that are saved.
|
|
|
|
* 10 is default, -1 means unlimited.
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
$sizeSearchHistory = 10;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable Google Search Engine into "gsearch/" folder.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableGoogleCustomSearch = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
* Other
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables special colors on admin pages and bookmarks.
|
|
|
|
* Colors mark the difference to normal users.
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$enableAdminColors = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* FIXME: explain better
|
|
|
|
*
|
|
|
|
* Add a possible anchor (structured content) for bookmarks description field
|
|
|
|
* a simple value "xxx" (like "author") automatically associates xxx with
|
|
|
|
* [xxx][/xxx].
|
|
|
|
* A complex value "xxx"=>"yyy" (like "address") directly
|
|
|
|
* associates xxx with yyy.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$descriptionAnchors = array(
|
|
|
|
'author',
|
|
|
|
'isbn',
|
|
|
|
'address' => '[address][street][/street][city][/city][/address]'
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GoogleAnalytics tracking code.
|
|
|
|
* Empty string disables analytics.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @link https://www.google.com/analytics/
|
|
|
|
*/
|
|
|
|
$googleAnalyticsCode = null;
|
|
|
|
|
2010-01-20 00:01:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
* avahi export script
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Location of avahi service files,
|
|
|
|
* often /etc/avahi/services/
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$avahiServiceFilePath = '/etc/avahi/services/';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* File name prefix of SemanticScuttle-generated
|
|
|
|
* service files
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$avahiServiceFilePrefix = 'semanticscuttle-';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of tag that bookmarks need to have to
|
|
|
|
* get exported into avahi service files.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$avahiTagName = 'zeroconf';
|
|
|
|
|
2010-02-02 20:27:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Array of key value pairs to override service class names.
|
|
|
|
* Key is the old service name ("User"), value the new class
|
|
|
|
* name.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$serviceoverrides = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
* External user authentication
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Type of external authentication via PEAR Auth
|
|
|
|
* To use this, you also need to set
|
|
|
|
* $serviceoverrides['User'] = 'SemanticScuttle_Service_AuthUser';
|
|
|
|
*
|
|
|
|
* @link http://pear.php.net/manual/en/package.authentication.auth.intro-storage.php
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$authType = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Options for external authentication via PEAR Auth
|
|
|
|
*
|
|
|
|
* @link http://pear.php.net/manual/en/package.authentication.auth.intro.php
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
$authOptions = null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enable debugging for PEAR Authentication
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$authDebug = false;
|
2010-02-05 19:41:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Optional prefix to create email addresses from user names.
|
|
|
|
* i.e. "@example.org" to create "user@example.org" email address
|
|
|
|
* from "user" username.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$authEmailSuffix = null;
|
2010-03-28 20:03:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* URL unittests are being run against
|
|
|
|
* Has to have a trailing slash
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
$unittestUrl = null;
|
|
|
|
|
2011-04-06 08:42:26 +02:00
|
|
|
/**
|
|
|
|
* Allow "unittestMode=1" in URLs.
|
|
|
|
* Should only be enabled on development systems
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
*/
|
|
|
|
$allowUnittestMode = false;
|
|
|
|
|
2009-09-20 19:04:31 +02:00
|
|
|
?>
|