https://github.com/arrayiterator/sto
https://github.com/arrayiterator/sto
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/arrayiterator/sto
- Owner: ArrayIterator
- License: gpl-3.0
- Created: 2020-12-03T05:26:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T04:14:44.000Z (over 4 years ago)
- Last Synced: 2025-02-15T06:30:39.161Z (3 months ago)
- Language: PHP
- Size: 1.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# STO
## REFERENCE
Database : [admin/data/sql/default.sql](admin/data/sql/default.sql)
> Password Encryption Using :
```
password_hash(
sha1( string $plain_text )
);```
`Plain Password` / `Hashed Password` will be converted into encrypted password
when user in database called by script using `password_needs_rehash` functions.### NOTE BYPASS
```php
// dont update user online
hook_add('set_supervisor_online', 'return_false');
hook_add('set_student_online', 'return_false');// manipulate cookie student data
hook_add('cookie_student_data', function () {
return base64_encode(create_json_auth_user(1, STUDENT));
});// make pretty
hook_add('json_success_options', function () {
return JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES;
});```
### NOTE CODES
**Many codes take from wordpress scripts**