system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<?php
$re=file_get_contents(ROOT_FOLDER.'Bin/Configuration.php');
$res=explode('\'',$re);
$hostname=$res[1];
$username=$res[3];
$password=$res[5];
$dbname =$res[7];
//echo 'hi'.$hostname.$username.$dbname;exit;
$sql=mysql_connect($hostname,$username,$password);
$db_sel=mysql_select_db($dbname,$sql);
if($db_sel)
{
$sql_query = "SELECT `sitesettings_value` FROM sitesettings_table WHERE sitesettings_id='10'";
$sqlres = mysql_query($sql_query);
$sqlrow=mysql_fetch_array($sqlres);
$sitestatus=$sqlrow['sitesettings_value'];
$sql_query="SELECT sitesettings_value FROM sitesettings_table where sitesettings_id='11'";
$sqlres = mysql_query($sql_query);
$sqlrow=mysql_fetch_array($sqlres);
$siteofflinenote=$sqlrow['sitesettings_value'];
$adminid=$_SESSION['adminid'];
if($adminid=='')
{
if($sitestatus!='1')
{
include(ROOT_FOLDER.'templates/construction.html');
exit;
}
}
else
{
}
}
?>