##############################################################
## DCP-Portal v5.0 Global Configuration File
##############################################################
## Peron Software & Internet Services Co. Inc.
## www.peron.com.tr
## E-Mail: info@peron.com.tr (Don't use for support)
## Tel: +90 (216) 385 0201
## Fax: +90 (216) 385 1801
## Ethem Efendi Cad. Ugur Apt. No: 1/4 81080
## Erenkoy Istanbul TURKEY
##############################################################
## www.dcp-portal.org
## support@dcp-portal.org
##############################################################
## Please read ReadMe file in DOCS folder
## Please read Install file in DOCS folder for installation
## Please use our forum and FAQ database for general problems
## Forum and FAQ can be found from www.dcp-portal.org
## No support given with e-mail, phone or fax
##############################################################
// DCP-Portal version
$dcp_version = "5.0.1 SE b2";
// Folder variables
$theme_root = "$root/themes";
$theme_url = "$root_url/themes";
$image_url = "$root_url/images";
// MySQL table names
$t_adverts = "dcp5_advertisers";
$t_agenda = "dcp5_agenda";
$t_anns = "dcp5_annoucements";
$t_banned = "dcp5_banned";
$t_banners = "dcp5_banners";
$t_cats = "dcp5_cats";
$t_comments = "dcp5_comments";
$t_config = "dcp5_config";
$t_contents = "dcp5_contents";
$t_dcats = "dcp5_doc_cats";
$t_docs = "dcp5_docs";
$t_faq = "dcp5_faq";
$t_fqcats = "dcp5_faq_cats";
$t_fcats = "dcp5_file_cats";
$t_forums = "dcp5_forum_boards";
$t_forum_msg = "dcp5_forum_messages";
$t_frcats = "dcp5_forum_cats";
$t_lang = "dcp5_language";
$t_links = "dcp5_links";
$t_lcats = "dcp5_link_cats";
$t_mail = "dcp5_mail";
$t_members = "dcp5_members";
$t_msg = "dcp5_messages";
$t_news = "dcp5_news";
$t_online = "dcp5_online";
$t_poll_ans = "dcp5_poll_answers";
$t_polls = "dcp5_polls";
$t_read = "dcp5_isread";
$t_rel = "dcp5_releated";
$t_rmsg = "dcp5_read_message";
$t_themes = "dcp5_themes";
// Select site preferences
$connection = @mysql_connect($dbhost, $dbuser, $dbpass)
or die ("Can not connect to database");
$db = @mysql_select_db($dbname, $connection)
or die ("Can not select database.");
$sql = "SELECT * FROM $t_config";
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result)) {
$site_name = $row["site_name"];
$admin_mail = $row["admin_mail"];
$site_lang = $row["site_lang"];
$site_theme = $row["site_theme"];
$max_anns = $row["max_anns"];
$max_content = $row["max_content"];
$max_news = $row["max_news"];
$max_links = $row["max_links"];
$max_forum = $row["max_forum"];
$index_cols = $row["index_cols"];
}
if (!isset($user_theme)) {
$user_theme = $site_theme;
}
$sql = "SELECT * FROM $t_themes WHERE name = '$user_theme'";
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result)) {
$theme_bullet = $row["bullet"];
$light_bg = $row["light_bg"];
$subject_bg = $row["subject_bg"];
$anns_width = $row["anns_width"];
$anns_height = $row["anns_height"];
}
mysql_close($connection);
// Select the language file that will be included
if (isset($select_lang)) {
setcookie('user_lang', $select_lang, time()+2592000);
echo "";
exit;
} else if (!isset($user_lang)) {
$user_lang = $site_lang;
}
if (!file_exists("$root/languages/$user_lang/$user_lang.inc.php")) {
echo "ERROR! Selected language file could not found!
Please check site configuration or delete the cookie for $root_url if you have selected any language before.";
exit;
}
// Include language filea
include ("$root/languages/$user_lang/$user_lang.inc.php");
include ("$root/languages/$user_lang/".$user_lang."_admin.inc.php");
// Include library
include ("$root/library/lib.php");
session_start();
?>