Attendance System .v2.0

in #utopian-io7 years ago (edited)

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
Screenshot from 2018-04-12 10-56-33.png

Dark theme
Screenshot from 2018-04-12 10-56-28.png

Dark theme again
Screenshot from 2018-04-12 10-56-09.png

  • Installation made easier

As promised also in the previous post, the installation as been made easier, by

  1. Providing a DB.example.php file to help configure the database, instructions can be found in the Readme
  2. 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..

  1. 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
  2. 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

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

TimothyMee/attendance-system



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for your contribution.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Hey @timothy-mee I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Congratulations @timothy-mee! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the total payout received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!