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
As promised also in the previous post, the installation as been made easier, by
To do this you need to edit the include/queries.php file..
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);
...............
@timothy-mee/attendance-system