require 'include/databaseinfo.php';
$sql=mysqli_connect($dbhost,$dbuser,$dbpass);
if(!$sql) {
echo "
Unable to Establish Connection to the Server
";
exit();
}
$db_sel=// mysqli_select_db not needed($dbname,$sql);
if(!$db_sel) {
echo "Unable to Connect to the Database
";
exit();
}
mysql_query("set sql_mode=''");
?>
$queryaa="select * from home_announcements where id=1";
$tabaa=mysql_query($queryaa);
if($rowaa=mysqli_fetch_array($tabaa))
{
$font_color=$rowaa['font_color'];
$back_color=$rowaa['back_color'];
$border_color=$rowaa['border_color'];
$registrationaa=$rowaa['site_announcements'];
if($registrationaa!=""){
echo "
";
}}
$lang_query="select * from language where auto=1";
$lang_result=mysql_query($lang_query);
$lang_row=mysqli_fetch_array($lang_result);
$defaultlang =$lang_row['filename'];
$temid=$_SESSION['temid'];
$temp_query="select * from templates where template='yes'";
$temp_result=mysql_query($temp_query);
$temp_row=mysqli_fetch_array($temp_result);
$tfold =$temp_row['folder'];
$logo =$temp_row['logo'];
require "language/$defaultlang";
require "language/emails/$defaultlang";
?> $title="$lang_221";
require 'templates/'.$tfold.'/header.php';?>
require 'templates/'.$tfold.'/home.php';
?>
require 'templates/'.$tfold.'/footer.php';?>