コード例 #1
0
//error_reporting(E_ALL ^ E_NOTICE);
//E_STRICT has become a part of E_ALL since php 5.4 only
error_reporting( (E_ALL | E_STRICT) & ~E_STRICT & ~E_NOTICE );

/// include php specific code
include("phpfunctions.php");

$useOldMysqlLib = true;

if($config["databaseType"]!="mysql" && $config["databaseType"]!="access" && $config["databaseType"]!="mssql" && $config["databaseType"]!="postgre" && $config["databaseType"]!="oracle" && $config["databaseType"]!="sqlite" && $config["databaseType"]!="firebird")
		message_error_install("Config error","Database type is not defined!","Set database type in config.php.");

if(!isset($config["locale"]))
	$config["locale"]=1033;
if(!file_exists("locales/l".$config["locale"].".php"))
	message_error_install("Config error","Locale is not defined!","Set locale in config.php.");
	
if($config["databaseType"]=="mysql")
{
	$host=$config["mysql"]["host"];
	$user=$config["mysql"]["username"];
	$pwd=$config["mysql"]["password"];
	$port=$config["mysql"]["port"];
	$sys_dbname=$config["mysql"]["dbname"];
	$config["dbType"]=0;
	include("dbconnection.my.php");
	include("dbfunctions.my.php");
	include("dbinfo.my.php");
}
elseif($config["databaseType"]=="mssql")
{
コード例 #2
0
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</form>
				</body>
			</html>
			";
		}
		else
		{
			message_error_install("Installation","You have the latest version of ReportsMaestro (v".$version.").","No need to upgrade.");
		}

	}
	else
	{
		echo "
		
	<html  lang=\"en\">
		<head>
			<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\">
			<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
			<link REL=\"stylesheet\" href=\"styles/default.css\" type=\"text/css\">
			<link REL=\"stylesheet\" href=\"styles/".$wr_pagestylepath."/style.css\" type=\"text/css\">
			<link REL=\"stylesheet\" href=\"pagestyles/login2.css\" type=\"text/css\">
		</head>