<?php
/*********************************************************************
*
* WapSite powered by CsC Portal. WapSite[tm] is module of CsC Portal.
*
* (C) 2004. CsC Portal. All rights reserved.
*
* http://cscp.cs-centar.net | http://www.cs-centar.net
*
********************************************************************/
// File: wap_db.php
// Desc: Use to define some simple functions, ex. db connect, admin user and pass, etc.
// Written on: 21.04.2004
$AdminName = " "; // define administrator name
$AdminUserName = " "; // define admin user name
$AdminPassword = " "; // define admin password
$AdminEmail = " "; // define admin email
$AdminPanel = "admin"; // define path to the admin panel [without / at the end]
$PortalDir = "wap_site"; // define path to the portal [without / at the end]
$SiteUrl = " "; // define full site address, ex. http://www.mysite.com
$SiteName = " "; // define what will shell be display as site name
$ContactEmail = " "; // define which email address will be used for contact address
$SupportEmail = " "; // define which email address will be used for support address
$Copyright = " "; // define site copyright, set by user
$Poweredby = "Powered by CsC Portal."; // define powered by message (please don't remove this!)
$db_host = " "; // define host name (default: localhost)
$db_username = " "; // define database username
$db_password = " "; // define database password
$db_name = " "; // define database name
// connecting to see which language is default [ DO NOT EDIT BELOW ANYTHING ]
define("HOST", "$db_host"); // define host name (default: localhost)
define("USER", "$db_username"); // define database username
define("PASSWORD", "$db_password"); // define database password
define("DATABASE", "$db_name"); // define database name
$LangFiles = array(
"1" => "<option>eng</option>",
"2" => "<option>ser</option>"
);
$LangCount = "2";
$db=mysql_connect(HOST, USER, PASSWORD); // connecting to the database
mysql_select_db(DATABASE, $db);
$language_1_set = mysql_query("SELECT * from cscp_wap_options WHERE id = 'panel'", $db);
if ($language_1_set) {
$language_set_f = mysql_fetch_row($language_1_set);
$SiteLang = $language_set_f[1];
include("lang/$language_set_f[1].php");
} else {
}
?>