ArrayIterator / sto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STO

REFERENCE

Database : 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

// 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

About

License:GNU General Public License v3.0


Languages

Language:PHP 92.7%Language:JavaScript 4.7%Language:CSS 2.5%Language:Hack 0.0%