ok now this is it. stupid mistakes - need a break. this one works.

This commit is contained in:
Josh North 2017-05-12 11:12:29 -04:00
parent 351b9c3eeb
commit 61ce24efef
9 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,7 @@
$timenow = date('Y-m-d H:i:s');
// This Version
$yaptc_version = 'yaptc_v1.0-alpha3';
$yaptc_version = 'yaptc_v1.0-alpha4';
// Timezone from config
date_default_timezone_set("$yaptc_timezone");

0
mysql.sql → inc/mysql.sql Executable file → Normal file
View File

View File

@ -2,6 +2,8 @@
session_start();
if(file_exists("config.inc.php")){
require_once("config.inc.php");
require_once($yaptc_lang);
}else{
echo "Configuration file not found - please complete setup before continuing.";
exit;

View File

@ -45,8 +45,6 @@ endif;
<button class="btn btn-lg btn-primary btn-block" type="submit" name="login"><?php echo lang('LOGIN'); ?></button>
</form>
<?php echo lang('LOGIN'); ?>
</div>
<!-- ********** END CONTENT ********** -->

View File

@ -1,6 +1,8 @@
<?php
session_start();
require_once("config.inc.php");
require_once($yaptc_lang);
require_once($yaptc_inc . "functions.inc.php");
$yaptc_pagename = lang('LOGOUT');
$yaptc_pageicon = '<i class="fa fa-sign-out"></i> ';

View File

@ -1,6 +1,8 @@
<?php
session_start();
require_once("config.inc.php");
require_once($yaptc_lang);
require_once($yaptc_inc . "functions.inc.php");
$yaptc_pagename = lang('PUNCH_EDITOR');
$yaptc_pageicon = '<i class="fa fa-clock-o"></i> ';

View File

@ -1,6 +1,8 @@
<?php
session_start();
require_once("config.inc.php");
require_once($yaptc_lang);
require_once($yaptc_inc . "functions.inc.php");
$yaptc_pagename = lang('ACCOUNT');
$yaptc_pageicon = '<i class="fa fa-cog"></i> ';

View File

@ -1,6 +1,8 @@
<?php
session_start();
require_once("config.inc.php");
require_once($yaptc_lang);
require_once($yaptc_inc . "functions.inc.php");
$yaptc_pagename = "Reports";
$yaptc_pageicon = '<i class="fa fa-newspaper-o"></i> ';

View File

@ -1,6 +1,8 @@
<?php
session_start();
require_once("config.inc.php");
require_once($yaptc_lang);
require_once($yaptc_inc . "functions.inc.php");
$yaptc_pagename = lang('USERS');
$yaptc_pageicon = '<i class="fa fa-users"></i> ';