Jums jāizstrādā kāda lielāk projekta prototips. Izstrādājot prototipu, paturiet prātā, ka projektam attīstoties, šo prototipu varētu vajadzēt pilnveidot.
<?php
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
error_reporting(E_ALL);
require("config.php");
require_once("Core/Helper.php");
//$config->setDbName($config->getDbName()."_".str_replace(".", "_", Helper::getClientIP()));
require_once("Core/Database.php");
require_once("Core/DatabaseService.php");
require_once("Core/ApplicationManager.php");
require_once("Core/MailService.php");
$config = new Configuration();
$dbService = new DatabaseService();
if(!$dbService->isConnected()) {
die('Could not connect to database server.');
}
if(!$dbService->isDatabaseExists($config->getDbName())) {
$dbService->createDatabase($config->getDbName());
}
$helpers = new Helper();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Loan Castle - Sergey Drozdov</title>
<link rel="stylesheet" href="scripts/bootstrap/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<div class="jumbotron">
<h1 class="display-4">Loan Castle</h1>
<p class="lead">This is a simple test project by <a href="https://sd.blackball.lv/sergey-drozdov">Sergey Drozdov</a>.</p>
<hr class="my-4">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="./">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./applications.php">Applications List</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./about.php">About</a>
</li>
</ul>
</div>
<div class="container">