https://github.com/foridpathan/codeigniter-ajax-admin-theme-with-dynamic-menu
Full functional Ajax Admin Theme with Codeigniter 4
https://github.com/foridpathan/codeigniter-ajax-admin-theme-with-dynamic-menu
ajax codeigniter javascript json lock-screen php user-registration
Last synced: 6 months ago
JSON representation
Full functional Ajax Admin Theme with Codeigniter 4
- Host: GitHub
- URL: https://github.com/foridpathan/codeigniter-ajax-admin-theme-with-dynamic-menu
- Owner: foridpathan
- License: mit
- Created: 2020-02-03T11:19:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-20T11:47:10.000Z (over 5 years ago)
- Last Synced: 2025-04-02T21:44:15.670Z (9 months ago)
- Topics: ajax, codeigniter, javascript, json, lock-screen, php, user-registration
- Language: JavaScript
- Size: 19 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: license.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Codeigniter Ajax LobiAdmin Theme with dynamic menu
Full functional Ajax Admin Theme with Codeigniter 4. Completely functional user registration, login and lock screen system.
## Features
* User Registration
* User Login
* Auto-lock screen after 2 minutes
* Dynamic multiple menus
* Also whole features of [LobiAdmin](https://lobianijs.com/lobiadmin/version/1.0/ajax/#dashboard)
## Installation
* Download and unzip all files.
* Create a database and import **cl_ajax.sql.zip** file
* Run this application using your localhost or simply run command `php spark serve`
* Login username `admin` and passwork `123456`
## More information
Auto-lock screen code
```javascript
$(function() {
function timeChecker() {
setInterval(function() {
var storedTimeStamp = sessionStorage.getItem("lastTimeStamp");
timeCompare(storedTimeStamp);
}, 3000);
}
function timeCompare(timeString) {
var maxMinutes = 1; //GREATER THEN 1 MIN.
var currentTime = new Date();
var pastTime = new Date(timeString);
var timeDiff = currentTime - pastTime;
var minPast = Math.floor((timeDiff / 60000));
if (minPast > maxMinutes) {
sessionStorage.removeItem("lastTimeStamp");
window.location = baseURL + "users/autoLogout";
return false;
} else {
//JUST ADDED AS A VISUAL CONFIRMATION
console.log(currentTime + " - " + pastTime + " - " + minPast + " min past");
}
}
if (typeof(Storage) !== "undefined") {
$(document).mousemove(function() {
var timeStamp = new Date();
sessionStorage.setItem("lastTimeStamp", timeStamp);
});
timeChecker();
}
});
```
### If there any qoery feel free to contact us:
foridpathan45@gmail.com
# Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DY4DT7AUX9S5L&source=url)