mroe changes, moving to language file

This commit is contained in:
2015-02-24 15:37:29 -05:00
parent dfd64ba4f9
commit 16b87fafe4
9 changed files with 62 additions and 73 deletions

View File

@@ -1,9 +1,25 @@
<?php
// Languages
function lang($phrase){
static $lang = array(
'NO_PUNCHES' => 'You have no recorded punches',
'OUT' => 'Out',
'IN' => 'In',
'SINCE' => 'since',
'PUNCH_STATUS' => 'Punch Status',
'SERVER_TIME' => 'Server Time',
'QUICK_PUNCH_PARAGRAPH' => 'Click below to immediately punch your time. You may enter notes for your administrator to review.',
'YOU_HAVE_BEEN_PUNCHED' => 'You have been punched',
'QUICK_PUNCH' => 'Quick Punch'
);
return $lang[$phrase];
}
// Current Time
$timenow = date('Y-m-d H:i:s');
// Get user list for users management page
function listUsers($yaptc_db) {
$stmt = $yaptc_db->query("SELECT users.id as userid, users.username as username, users.email as email, users.created as created, users.firstname as firstname, users.lastname as lastname, users.usertype as usertypeid, usertypes.typename as usertype