Attendance System .v2.0

Words
227
Reading
2 min
Listen
Play
8y

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

Attendance System .v2.0 | Ecency