<?php
if(!function_exists('mysql_connect'))
redirect(WEB_URL."/check_server_requirements_mod_dir.php?check=mysql") ;
else
{
if(defined('MEMBERSGEAR_DB_NAME') and defined('MEMBERSGEAR_DB_USER') and defined('MEMBERSGEAR_DB_PASSWORD') and defined('MEMBERSGEAR_DB_HOST') and defined('TABLE_PREFIX') )
{
$linkid = mysql_connect(MEMBERSGEAR_DB_HOST,MEMBERSGEAR_DB_USER,MEMBERSGEAR_DB_PASSWORD);
$db_selct=mysql_select_db(stripcslashes(MEMBERSGEAR_DB_NAME), $linkid);
if($db_selct)
{
//do nothing
}
else
{
if(IsAdminDirectoryRequested_install_check() || IsMemberDirectoryRequested_install_check())
Redirect_installation_chk("../installation_error.php?status_code=1020",true);
else
Redirect_installation_chk("installation_error.php?status_code=1020",true);
}
}
else
{
if(IsAdminDirectoryRequested_install_check() || IsMemberDirectoryRequested_install_check())
Redirect_installation_chk("../installation_error.php?status_code=1020",true);
else
Redirect_installation_chk("installation_error.php?status_code=1020",true);
}
}
?>