//header("Location: sia-install-result.php");
} else {
    //header("Location: sia-install.php?conerr=yes");
}
?>
<html>
<head>
    <title>Add Database</title>
      <link rel="stylesheet" type="text/css" href="assets/css/formcss.css">
      <link rel="stylesheet" href="assets/css/style.css" >
     <link rel="stylesheet" href="assets/css/font-awesome/css/font-awesome.min.css" />
</head>

<body class="login-index">
	<?php 
if (check_install_complete() == false && !isset($_GET['conerr'])) {
    ?>
		<div class="add-data-basefull-width">
			<div class="bg-primary1">
				<i class="fa fa-database"></i><h3 class="block-title-db">Please Add Database Details</h3> 
			</div>
			<br>
			<form action='' method="post" class="form-control ">
				<?php 
    if (isset($_GET['conerr']) && !empty($_GET['conerr']) && $_GET['conerr'] == "yes") {
        ?>
					<p style="color:red">Unable to install, Please provide correct credentials.</p>
					<?php 
    }
    ?>
				<div class="form-group">
Esempio n. 2
0
if (isset($_SESSION['login_user'])) {
    header("Location: sia-dashboard.php");
}
if (isset($_POST['username']) && !empty($_POST['username']) && isset($_POST['password']) && !empty($_POST['password'])) {
    $chk = $sia_obj->chk_login($_POST['username'], $_POST['password']);
    if ($chk == "done") {
        header("Location: sia-dashboard.php");
    } else {
        header("Location: index.php?err=err");
    }
}
if (check_install_complete() == false) {
    header("Location: sia-install.php");
    die;
}
if (mysqli_connect_errno() > 0 || check_install_complete() == false) {
    header("Location: sia-install-result.php");
}
if ($sia_obj->chk_tables() == "nou") {
    header("Location: sia-user.php");
}
if ($sia_obj->chk_tables() == false) {
    header("Location: sia-install-result.php");
}
?>
<!DOCTYPE html>
<html>
	<head>
		<title>Login For Admin</title>
		<meta charset="UTF-8">
		<link rel="stylesheet" href="<?php 
<?php

require 'sia-constants.php';
if (check_install_complete() == false) {
    header("Location: sia-install.php");
}
if ($sia_obj->chk_tables() == false) {
    header("Location: sia-install-result.php");
}
if ($sia_obj->chk_tables() == "nou") {
    header("Location: sia-user.php");
}
if (!isset($_SESSION['login_user'])) {
    header("Location: index.php");
}
/*if(mysqli_connect_errno() >0){
?>
<div class="add-data-basefull-width-error">
	<h1>Error establishing a database connection</h1>
	<hr></hr>
	<p>This either means that the username and password information in your <code>sia-config.php</code> file is incorrect or we can't contact the database server at <code>localhost</code>. This could mean your host's database server is down.</p>
	<ul>
		<li>Are you sure you have the correct username and password?</li>
		<li>Are you sure that you have typed the correct hostname?</li>
		<li>Are you sure that the database server is running?</li>
	</ul>
	<p>If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href="https://www.brainstormforce.com/contacts/" target="_blank">Brainstorm Force Support</a>.</p>
	<p></p>
</div>
<?php
die;
Esempio n. 4
0
}
if (mysqli_connect_errno() > 0 || check_install_complete() == false) {
    header("Location: sia-install-result.php");
}
?>
<html>
<head>
    <title>Add Database</title>
      <link rel="stylesheet" type="text/css" href="assets/css/formcss.css">
      <link rel="stylesheet" href="assets/css/style.css" >
     <link rel="stylesheet" href="assets/css/font-awesome/css/font-awesome.min.css" />
</head>

<body class="login-index">
	<?php 
if (check_install_complete() == false || $sia_obj->chk_tables() == "nou") {
    ?>
		<div class="add-data-basefull-width">
			<div class="container">
				<div class="bg-primary1">
					<i class="fa fa-user-plus"></i><h3 class="block-title-user" >Create User</h3>
				</div>
				<p><b>Note :</b> Please enter the user name and password to create admin login</p>
				<div class="form">
					<form action='' method="post" class="form-control ">			   
						<div class="form-group">
							<input class="form-control" type="text" name="userpname" placeholder="Name" required/>
						</div>
						<div class="form-group">
							<input class="form-control" type="email" name="email" placeholder="Email" required/>
						</div>