2007-12-12 17:29:16 +01:00
|
|
|
<?php
|
2008-04-09 10:16:58 +02:00
|
|
|
# SemanticScuttle - Web social bookmarking
|
|
|
|
# Copyright (C) 2005 - 2006 SemanticScuttle project
|
|
|
|
# http://sourceforge.net/projects/semanticscuttle/
|
2007-12-12 17:29:16 +01:00
|
|
|
#
|
2008-04-09 10:16:58 +02:00
|
|
|
# Configuration Main File
|
2007-12-12 17:29:16 +01:00
|
|
|
# This module is to configure the main options for your site
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
2008-04-09 10:16:58 +02:00
|
|
|
#### Database Configuration ####
|
|
|
|
# dbtype: Database driver {mysql, mysqli, mysql4, oracle, postgres, sqlite, db2, firebird, mssql, mssq-odbc}
|
2007-12-12 17:29:16 +01:00
|
|
|
$dbtype = 'mysql4';
|
2008-04-09 10:16:58 +02:00
|
|
|
# dbhost: Database hostname
|
2007-12-12 17:29:16 +01:00
|
|
|
$dbhost = '127.0.0.1';
|
2008-04-09 10:16:58 +02:00
|
|
|
# dbport: Database port
|
2007-12-12 17:29:16 +01:00
|
|
|
$dbport = '3306';
|
2008-04-09 10:16:58 +02:00
|
|
|
# dbuser: Database username
|
2007-12-12 17:29:16 +01:00
|
|
|
$dbuser = 'username';
|
2008-04-09 10:16:58 +02:00
|
|
|
# dbpass: Database password
|
2007-12-12 17:29:16 +01:00
|
|
|
$dbpass = 'password';
|
2008-04-09 10:16:58 +02:00
|
|
|
# dbname: Database name
|
2007-12-12 17:29:16 +01:00
|
|
|
$dbname = 'scuttle';
|
|
|
|
|
2008-04-09 10:16:58 +02:00
|
|
|
#### System Configuration ####
|
2007-12-12 17:29:16 +01:00
|
|
|
# ONLY EDIT THE INFORMATION BELOW IF YOU KNOW WHAT YOU ARE DOING.
|
|
|
|
# sitename: The name of this site.
|
2008-04-09 10:16:58 +02:00
|
|
|
$sitename = 'SemanticScuttle';
|
2008-01-11 09:35:12 +01:00
|
|
|
# welcomeMessage: The welcome message (or tagline) of this site
|
2008-04-09 10:16:58 +02:00
|
|
|
$welcomeMessage = 'More than tags...';
|
|
|
|
# locale: The locale used (list ./locales : de_DE en_GB fr_FR it_IT lt_LT nl_NL zh_CN dk_DK es_ES hi_IN ja_JP pt_BR)
|
|
|
|
$locale = 'en_GB';
|
2008-04-11 08:52:25 +02:00
|
|
|
# admin users:
|
|
|
|
# add users as admin by: $admins = array('adminnickname', 'user1nick', 'user2nick');
|
|
|
|
$admin_users = array();
|
2008-04-09 10:20:57 +02:00
|
|
|
|
|
|
|
### display templates ###
|
2007-12-12 17:29:16 +01:00
|
|
|
# top_include: The header file.
|
2008-04-09 10:20:57 +02:00
|
|
|
$top_include = 'top.inc.php';
|
2007-12-12 17:29:16 +01:00
|
|
|
# bottom_include: The footer file.
|
2008-04-09 10:20:57 +02:00
|
|
|
$bottom_include = 'bottom.inc.php';
|
|
|
|
# sidebar block index : array ordering blocks search, users, linked, recent
|
|
|
|
$index_sidebar_blocks = array('search','users','linked','recent');
|
|
|
|
|
2007-12-12 17:29:16 +01:00
|
|
|
# shortdate: The format of short dates.
|
|
|
|
# longdate: The format of long dates.
|
|
|
|
# nofollow: true - Include rel="nofollow" attribute on
|
|
|
|
# bookmark links.
|
|
|
|
# false - Don't include rel="nofollow".
|
|
|
|
# defaultPerPage: The default number of bookmarks per page.
|
|
|
|
# -1 means no limit!
|
|
|
|
# defaultRecentDays: The number of days that bookmarks or tags should
|
|
|
|
# be considered recent.
|
|
|
|
# defaultOrderBy: The default order in which bookmarks will appear.
|
|
|
|
# Possible values are:
|
|
|
|
# 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.
|
|
|
|
# TEMPLATES_DIR: The directory where the template files should be
|
|
|
|
# loaded from (the *.tpl.php files)
|
|
|
|
# root : Set to NULL to autodetect the root url of the website
|
|
|
|
# cookieprefix : The prefix to use for the cookies on the site
|
|
|
|
# tableprefix : The table prefix used for this installation
|
|
|
|
# adminemail : Contact address for the site administrator. Used
|
|
|
|
# as the FROM address in password retrieval e-mails.
|
|
|
|
# cleanurls : true - Use mod_rewrite to hide PHP extensions
|
2008-03-12 10:24:25 +01:00
|
|
|
# (be cautious, doesn't work for all hosts)
|
|
|
|
# (you may need to modify the .htaccess file)
|
2007-12-12 17:29:16 +01:00
|
|
|
# : false - Don't hide extensions [Default]
|
|
|
|
#
|
|
|
|
# usecache : true - Cache pages when possible
|
|
|
|
# false - Don't cache at all [Default]
|
|
|
|
# dir_cache : The directory where cache files will be stored
|
|
|
|
#
|
|
|
|
# useredir : true - Improve privacy by redirecting all bookmarks
|
|
|
|
# through the address specified in url_redir
|
|
|
|
# false - Don't redirect bookmarks
|
|
|
|
# url_redir : URL prefix for bookmarks to redirect through
|
|
|
|
#
|
|
|
|
# filetypes : An array of bookmark extensions that Scuttle should
|
|
|
|
# add system tags for.
|
|
|
|
# reservedusers : An array of usernames that cannot be registered
|
2008-01-11 09:58:28 +01:00
|
|
|
#
|
|
|
|
# antispamQuestion: A question to avoid spam
|
|
|
|
# antispamAnswer: The answer to the question (users have to put exactly the same answer)
|
2008-02-13 18:34:18 +01:00
|
|
|
#
|
|
|
|
# enableCommonTagDescription : true or false
|
|
|
|
# enableCommonBookmarkDescription : true or false
|
|
|
|
#
|
2008-03-14 11:32:00 +01:00
|
|
|
# sizeSearchHistory : the number of users' searches that are saved
|
|
|
|
# 10 [Default]
|
|
|
|
# -1 Unlimited
|
2007-12-12 17:29:16 +01:00
|
|
|
|
|
|
|
$shortdate = 'd-m-Y';
|
|
|
|
$longdate = 'j F Y';
|
|
|
|
$nofollow = true;
|
|
|
|
$defaultPerPage = 10;
|
|
|
|
$defaultRecentDays = 14;
|
|
|
|
$defaultOrderBy = 'date_desc';
|
|
|
|
$TEMPLATES_DIR = dirname(__FILE__) .'/templates/';
|
|
|
|
$root = NULL;
|
|
|
|
$cookieprefix = 'SCUTTLE';
|
2008-03-05 16:50:27 +01:00
|
|
|
$tableprefix = 'sc_'; # do not use '-' (badly handeld by MySQL)
|
2007-12-12 17:29:16 +01:00
|
|
|
$adminemail = 'admin@example.org';
|
|
|
|
$cleanurls = false;
|
|
|
|
|
|
|
|
$usecache = false;
|
|
|
|
$dir_cache = dirname(__FILE__) .'/cache/';
|
|
|
|
|
|
|
|
$useredir = false;
|
|
|
|
$url_redir = 'http://www.google.com/url?sa=D&q=';
|
|
|
|
|
|
|
|
$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')
|
|
|
|
);
|
|
|
|
$reservedusers = array('all', 'watchlist');
|
|
|
|
|
2008-03-05 17:27:48 +01:00
|
|
|
$antispamQuestion = 'name of this application (no Caps)';
|
2008-03-05 16:56:54 +01:00
|
|
|
$antispamAnswer = 'semanticscuttle';
|
2008-01-11 09:58:28 +01:00
|
|
|
|
2008-02-13 18:34:18 +01:00
|
|
|
$enableCommonTagDescription = true;
|
|
|
|
$enableCommonBookmarkDescription = true;
|
|
|
|
|
2008-03-26 14:58:13 +01:00
|
|
|
# enableWebsiteThumbnails : true or false.
|
|
|
|
# According to artviper.net license, buy a license if you gain profit with your pages. (see http://www.websitethumbnail.de/)
|
|
|
|
$enableWebsiteThumbnails = true;
|
2008-03-14 11:32:00 +01:00
|
|
|
$sizeSearchHistory = 10;
|
|
|
|
|
2008-03-11 13:36:23 +01:00
|
|
|
|
2007-12-12 17:29:16 +01:00
|
|
|
include_once('debug.inc.php');
|
|
|
|
?>
|