An RFID-based system for monitoring the computer laboratory.
This system has 3 parts
RFID Reader is needed to use the programs
-
Install XAMMP
-
Configure XAMMP
- Configure Apache to allow external access
- Open this file: C:\xampp\apache\conf\extra\httpd-xampp.conf
- Find this section: <Directory "C:/xampp/phpMyAdmin"> AllowOverride AuthConfig Require local
- Replace Require local with this: Require all granted
- Allow remote connections to MySQL
- Open my.ini C:\xampp\mysql\bin\my.ini
- Find this line: bind-address=127.0.0.1
- Comment it out or change it to: #bind-address=127.0.0.1
- Grant access
- To external IPs
CREATE USER 'root'@'%' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;
- To your other computer’s with same network
- change "192.168.1" to your local subnet, you can get it using ipconfig
CREATE USER 'root'@'192.168.1.%' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.%' WITH GRANT OPTION; FLUSH PRIVILEGES;
- To external IPs
- Configure Apache to allow external access
-
Creating Database and Tables
- Start the Apache and MySQL in the Xampp Control Panel
- Open a browser the search “http://localhost/phpmyadmin/”
- Click “New->SQL” then paste this code:
CREATE DATABASE IF NOT EXISTS pums CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE pums; -- Credentials CREATE TABLE cred ( user VARCHAR(100) NOT NULL, password VARCHAR(100) NOT NULL ); INSERT INTO cred (user, password) VALUES ('admin', '123456'); -- PC Log History CREATE TABLE log_history_pc ( id INT AUTO_INCREMENT PRIMARY KEY, school_id VARCHAR(100) NOT NULL, name VARCHAR(100) NOT NULL, date VARCHAR(100) NOT NULL, time_in VARCHAR(100) NOT NULL, time_out VARCHAR(100) NOT NULL, room VARCHAR(100) NOT NULL, pc_name VARCHAR(100) NOT NULL, file_name VARCHAR(100) NOT NULL, file_content TEXT NOT NULL ); -- Room Log History CREATE TABLE log_history_room ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, date VARCHAR(100) NOT NULL, time_in VARCHAR(100) NOT NULL, time_out VARCHAR(100) NOT NULL, room_name VARCHAR(100) NOT NULL, school_id VARCHAR(100) NOT NULL ); -- Registered Students CREATE TABLE registered_students ( uid VARCHAR(100) PRIMARY KEY, name VARCHAR(100) NOT NULL, school_id VARCHAR(100) NOT NULL, gender VARCHAR(100) NOT NULL ); -- Registered Teachers CREATE TABLE registered_teachers ( uid VARCHAR(100) PRIMARY KEY, name VARCHAR(100) NOT NULL, school_id VARCHAR(100) NOT NULL, gender VARCHAR(100) NOT NULL );
-
Open Computer Laboratory Monitoring App
- using "123456" as defualt password
- Install PC User Monitoring App
- Install Door Accessing Logging