2007-12-12 17:29:16 +01:00
<?php
2009-09-20 11:35:37 +02:00
# SemanticScuttle Configuration main file </config.inc.php.dist>
2008-04-09 10:16:58 +02:00
# http://sourceforge.net/projects/semanticscuttle/
2007-12-12 17:29:16 +01: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.
2009-05-22 12:05:25 +02:00
# FIRST CONFIGURATION ? The most important variables are $root if you want to install SemanticScuttle into a subdirectory and database variables ($dbtype, $dbhost, $dbuser, $dbpass, $dbname, $tableprefix). You can define Admin users with $admin_users variable.
# Don't forget to put $debugMode to "false" when installation is finished.
2007-12-12 17:29:16 +01:00
2008-05-12 21:28:09 +02:00
#### System ####
$sitename = 'SemanticScuttle'; #The name of this site.
2009-02-11 10:18:14 +01:00
$welcomeMessage = 'Welcome to SemanticScuttle! Social bookmarking for small communities.'; # The welcome message of this site
2009-03-15 16:52:37 +01:00
$footerMessage = ''; #HTML message appearing at the bottom of the page (just above SemanticScuttle credits)
$sidebarTopMessage = ''; #HTML message appearing at the top of the sidebar
$sidebarBottomMessage = ''; #HTML message appearing at the bottom of the sidebar
2009-03-05 10:23:36 +01:00
$root = NULL; # Set to NULL to autodetect the root url of the website. If your installation is into a subdirectory like "http://www.example.com/semanticscuttle/" then replace NULL by your address (between "" and with final '/');
2008-05-12 21:28:09 +02:00
$locale = 'en_GB'; #locale used in /locales/ {de_DE en_GB fr_FR ...}
$usecache = false; # use cache ? {true,false}
$dir_cache = dirname(__FILE__) .'/cache/'; # directory where cache files will be stored
$cleanurls = false; # Use mod_rewrite to hide PHP extensions {true,false[default]}
2008-05-17 15:11:08 +02:00
# be cautious, doesn't work for all hosts, you may need to modify the .htaccess file
2009-05-22 12:05:25 +02:00
$debugMode = true; # if true, show debug messages
2007-12-12 17:29:16 +01:00
2008-05-12 21:28:09 +02:00
#### Database ####
$dbtype = 'mysql4'; # Database driver {mysql, mysqli, mysql4, oracle, postgres, sqlite, db2, firebird, mssql, mssq-odbc}
$dbhost = '127.0.0.1'; # Database hostname
$dbport = '3306'; # Database port
$dbuser = 'username'; # Database username
$dbpass = 'password'; # Database password
$dbname = 'scuttle'; # Database name
2008-05-13 07:51:32 +02:00
$tableprefix = 'sc_'; # table prefix used for this installation. Do not use '-' (badly handeld by MySQL)
2008-04-09 10:20:57 +02:00
2008-05-12 21:28:09 +02:00
### Users ###
$adminemail = 'admin@example.org'; # Contact address for the site administrator. Used as the FROM address in password retrieval e-mails.
2008-11-13 15:38:04 +01:00
$admin_users = array(''); # admin users = array('adminnickname', 'user1nick', 'user2nick');
2009-02-16 17:31:44 +01:00
$adminsCanModifyBookmarksFromOtherUsers = true; # 'true' if admin users can edit or delete bookmarks belonging to other users. Else 'false'.
2009-02-17 14:15:06 +01:00
$adminsAreAdvisedTagsFromOtherAdmins = false; # 'true' if tags from other admins are proposed to each admin (in add/edit a bookmark page). Else 'false'.
2008-05-12 21:28:09 +02:00
$reservedusers = array('all', 'watchlist'); # array of usernames that cannot be registered
# Antispam
2009-02-27 11:57:08 +01:00
$antispamQuestion = 'name of this application'; # antispamQuestion: A question to avoid spam
2008-05-12 21:28:09 +02:00
$antispamAnswer = 'semanticscuttle'; # antispamAnswer: The answer to the question (users have to put exactly the same answer)
### Display Templates ###
$TEMPLATES_DIR = dirname(__FILE__) .'/templates/'; #directory where the template files (*.tpl.php) should be loaded from
$top_include = 'top.inc.php'; # header file
$bottom_include = 'bottom.inc.php'; # footer file
2009-01-06 15:22:10 +01:00
$index_sidebar_blocks = array('search','menu2','menu','users','recent'); # sidebar blocks order (see below $menu2Tags for item of menu2)
2008-05-12 21:28:09 +02:00
### Bookmarks ###
$shortdate = 'd-m-Y'; # format of short dates.
$longdate = 'j F Y'; # format of long dates.
$nofollow = true; # include rel="nofollow" attribute on bookmark links ? {true,false}
$defaultPerPage = 10; # default number of bookmarks per page (-1 means no limit)
2009-05-19 17:59:55 +02:00
$defaultPerPageForAdmins = 10; # default number of bookmarks per page for admins (-1 means no limit)
2008-05-12 21:28:09 +02:00
$defaultRecentDays = 14; # number of days that bookmarks or tags should be considered recent.
# bookmarks order by (date, title, url) in order ascending or descending
2007-12-12 17:29:16 +01:00
# 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.
$defaultOrderBy = 'date_desc';
2008-05-12 21:28:09 +02:00
$useredir = false; # redirect all bookmarks through the address specified in url_redir to improve privacy
$url_redir = 'http://www.google.com/url?sa=D&q='; # URL prefix for bookmarks to redirect through
# filetypes : array of bookmark extensions that Scuttle should add system tags for
2007-12-12 17:29:16 +01:00
$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')
);
2008-05-12 21:28:09 +02:00
$enableCommonBookmarkDescription = true; # enableCommonBookmarkDescription {true,false}
2008-11-13 15:38:04 +01:00
### Website Thumbnails ###
$enableWebsiteThumbnails = false; # enableWebsiteThumbnails {true|false}
2008-03-26 14:58:13 +01:00
# According to artviper.net license, buy a license if you gain profit with your pages. (see http://www.websitethumbnail.de/)
2008-11-13 15:38:04 +01:00
$thumbnailsUserId = ''; #you need to register on http://www.artviper.net/registerAPI.php in order to register your domain
$thumbnailsKey = ''; #then artviper.net send you a UserId and a secretKey
2008-03-14 11:32:00 +01:00
2008-04-17 10:02:09 +02:00
2008-05-12 21:28:09 +02:00
### Tags ###
$enableCommonTagDescription = true; # enableCommonTagDescription {true, false}
2009-02-09 15:05:21 +01:00
$enableCommonTagDescriptionEditedByAll = true; #true mean everybody can edit common description. Else just the admins can do it.
2008-05-12 21:28:09 +02:00
$menuTag = 'menu'; # name of the tag whose subtags will appear into the menu box
$maxSizeMenuBlock = 7; # maximum number of items (tags) appearing into menu box
2009-05-26 16:18:20 +02:00
$menu2Tags = array('menu2', 'tags', 'configurable', 'in', 'configincphp'); # list of tags used by menu2 sidebar box (void list = hidden menu2 box). menu2 displays linked tags just belonging to admins.
2008-05-12 21:28:09 +02:00
2009-01-07 16:13:16 +01:00
### Search ###
2008-05-12 21:28:09 +02:00
$sizeSearchHistory = 10; # number of users' searches that are saved {1..10[Default]..-1[Unlimited]}
2008-06-01 15:17:54 +02:00
$enableGoogleCustomSearch = true; #Enable Google Search Engine into "gsearch/" folder
2008-03-11 13:36:23 +01:00
2009-01-07 16:13:16 +01:00
### Other ###
$enableAdminColors = true; #Enables special colors on admin pages and bookmarks marking the difference with normal user.
2009-01-12 14:45:49 +01:00
$descriptionAnchors = array("author", "isbn", "address"=>"[address][street][/street][city][/city][/address]"); #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") direclty associates xxx with yyy.
2009-02-10 15:13:02 +01:00
$googleAnalyticsCode = ''; #Allow GoogleAnalytics tracker https://www.google.com/analytics/
2007-12-12 17:29:16 +01:00
?>