109 lines
2.5 KiB
PHP
109 lines
2.5 KiB
PHP
<?php
|
|
#=========================
|
|
#
|
|
# name: nav.php
|
|
# version: 2.1.0
|
|
# from: 2021-01-23
|
|
# developer: 4nima
|
|
# tested with: nginx, php7
|
|
# requirements: php
|
|
#
|
|
#=========================
|
|
# dir, color settings
|
|
# used functions
|
|
# lib includes
|
|
#=========================
|
|
|
|
#> database config (database.php)
|
|
/*
|
|
define("DB_HOST", "SERVERIP");
|
|
define("DB_USER", "DBUSER");
|
|
define("DB_PASS", 'DBPW');
|
|
define("DB_NAME", "DBNAME");
|
|
*/
|
|
|
|
#> mail config (accounts.php)
|
|
/*
|
|
define(LOGIN_FAIL_TIME, time()-60*60);
|
|
define(MAIL_FROM, 'noreply@example.com');
|
|
define(MAIL_SUBJECT, 'SUBJECT');
|
|
define(MAIL_TEXT, 'MAIL');
|
|
define(MAIL_PAGE, 'LINK');
|
|
define(MAIL_FOOTER, 'FOOTER');
|
|
*/
|
|
|
|
|
|
#> Webpage Name
|
|
$webname = "Template";
|
|
|
|
#> dir path
|
|
#> server dir
|
|
$server = '';
|
|
|
|
#> backend scripts
|
|
$backendPath = $server.'sources/backend/';
|
|
|
|
#> ajax scripts
|
|
$ajaxPath = $backendPath.'ajax/';
|
|
|
|
#> frontend scripts
|
|
$frontendPath = $server.'sources/frontend/';
|
|
|
|
#> structure skripts
|
|
$structurePath = $frontendPath.'structure/';
|
|
|
|
#> JavaScript (js)
|
|
$jsPath = $server.'sources/js/';
|
|
|
|
#> Cascading Style Sheet (css)
|
|
$cssPath = $server.'sources/css/';
|
|
|
|
#> Bilder
|
|
$imgPath = $server.'sources/img/';
|
|
|
|
#> function control
|
|
$login = false;
|
|
|
|
#> color control (primary, secondary, success, warning, info, light, dark, muted, white)
|
|
#> main color one (navbar & footer)
|
|
$colorOne = "dark";
|
|
|
|
#> main color two (background)
|
|
$colorTwo = "secondary";
|
|
|
|
#> main color three
|
|
$colorThree = "light";
|
|
|
|
#> main color three (login button)
|
|
$colorSuccess = "primary";
|
|
|
|
#> main color three (logout button)
|
|
$colorFailed = "primary";
|
|
|
|
#> text colorsw
|
|
$colorText = "muted";
|
|
|
|
#> navbar style (light, dark)
|
|
$navBarSytle = "dark";
|
|
|
|
#> default Includes
|
|
include_once($backendPath.'functions.php');
|
|
|
|
#> Libs
|
|
// include_once($libPath.'database.php');
|
|
// include_once($libPath.'account.php');
|
|
|
|
#> default Objekte iniziren
|
|
// $db = new Database();
|
|
// $acc = new Account();
|
|
|
|
#> Login verarbeitung und prüfung
|
|
// include_once($backendPath.'login.php');
|
|
|
|
#> Prüfen ob ein DB eintrag gemacht werden soll und einbinden der entsprechenden Datei
|
|
/*
|
|
if (isset($_GET['new']) || isset($_GET['login'])) {
|
|
include_once($backendPath.'db_input.php');
|
|
}
|
|
*/
|