You are on page 1of 2

AuthSystem (v.2.

0)

Hi, thanks for buying my script! I hope you like it! If you have any issued please send me a message at
Codester or email kazy993@gmail.com.

AuthSystem is a PHP script that allows you to get authentication feature to your website. It contains login,
registration and recovery. Script also comes with Dashboard / Admin Panel where you can manage all
users , system settings and more.
For more, visit demo site at: http://kazy.skueztech.com/AuthSystem/v2/demo/

FEATURES:
- Protected against CSRF, SQL injection and Brute Force Attacks.
- Remember me function.
- E-mail verification (option to turn it off)
- Passwords are encrypted.
- Usernames, E-mails are checked by RegEx on registration.
- Settings can be easily changed in Dashboard.
- User management.
- Languages files
- Ajax jQuery
- Google reCAPTCHA v2
- Bootstarp 4

INSTALLATION:

For testing, skip (1., 2.) step.

1. Move auth folder to your root directory.


2. Add on top of your files:
require_once __DIR__ . '/auth/init.php';

3. Import authsystem.sql to your database.


4. Find init.php in auth directory. Edit app and database config.
- APP_KEY = Enter some random characters (length 50+)
- APP_URL = Path of auth directory. e.g.: http://your.domain/auth
- DB_HOST = Change if your database is on different server.
- DB_NAME = Your database name.
- DB_USER = Your database user name.
- DB_PASS = Your database password.
5. Set config.json and cache/cleanup to 777 permission.
6. App is ready. Login to admin account using: Username – admin, Password – 12345, PIN – 1111.
Note: All requests to public/index.php are rewritten in .htaccess to make URLs look nicer.

http://your.domain/auth/login => http://your.domain/auth/public/index.php?get=login

FUNCTIONS:

auth()->guard()

Add on top of the page to prevent unauthorized access.

auth()->isLoggedIn()

Returns true on logged in.

auth()->user->name

Get the user info. E.g.: auth()->user->column_name

auth()->permission()

Returns true if user is logged in with admin access.

config(site.name)

Access to config.json file.

lang(file.array_key)

Access to language files.

You might also like