New Features
- Night Mode Feature
The famous night mode feature has been implemented as promised. You can now toggle to night
mode and back
Images can be found below
Light theme
Dark theme
Dark theme again
- Installation made easier
As promised also in the previous post, the installation as been made easier, by
- Providing a DB.example.php file to help configure the database, instructions can be found in the Readme
- All files now fetch "$path" from the same source so no need to change the "$path" to your application directory path on so many files. Just change globally and all other adopts this change. More on this in the readme.
- You can also send notification with each user Log-in
To do this you need to edit the include/queries.php file..
- Edit the "message" function, shown below with your message, and the number to send the notification to. By default it takes the telephone number of the staff that logged in
- You also need to add the details of your sms service provider to the "sendMessage" function in include/queries.php. Here i used "Ebulksms.com"
function message($user_name, $time){
$dbconn = DB::getInstance();
$sql1 = "SELECT * FROM users WHERE user_name= '".$user_name."' ";
$final1 = $dbconn->pdo->prepare($sql1);
$final1->execute();
$result1 = $final1->fetch();
$to = $result1['telephone'];
$message = 'This user "'.$user_name.'"Logged in at '.$time;
return $messageStatus = $this->sendMessage('Att-System',$to,$message);
}
public function sendMessage($senderName, $phoneNumbers, $message){
$apikey = 'API_KEY';
$url = "YOUR SMS PROVIDER API";
$username = 'USER_NAME';
$flash = 0 ;
$message = stripslashes($message);
$phoneArray = explode(',', $phoneNumbers);
...............
Commits
- https://github.com/TimothyMee/attendance-system/commit/763ef572880c18012f14d28f1487b147f561e306
- https://github.com/TimothyMee/attendance-system/commit/20cc7dabc0c4c612f82fec6887c887d3a0b24554
- https://github.com/TimothyMee/attendance-system/commit/2072ddadf40eb08a8739a46fe727ce6f19e543ba
- https://github.com/TimothyMee/attendance-system/commit/9910137777584326de7fca23ae7846666249d50f
- Full History of Commits can be found here...
Todo
- build a package (finger print authentication package) that can be integrated straight into any project via composer
Previous Upload
@timothy-mee/attendance-system
Github Repository
Posted on Utopian.io - Rewarding Open Source Contributors