-
Notifications
You must be signed in to change notification settings - Fork 17
Setup instruction (1.6r)
What has changed since 1.6b?
A lot actually, including :
- JavaScript validation before submit
- Cleaner and valid HTML (Checked againts W3C)
- More customization options
And many more.
- PHP version >= 7.0
There's an update on how the system behave.
Previously, entering a custom cPanel URL on cpanel_url
key will effect the Login and Signup.
The key cpanel_url
has been renamed to login_cpanel_url
and will only effect the Login page.
The signup target MUST be where the script is installed (Ex. if the script is installed on test.com
, then signup may only target order.test.com
or securesignup.net
. This is due to limitations from the MOFH system itself.).
- Get the release here.
- Edit the config file on
/sys-auth/app/config.php
- Upload the all file to your server
- Navigate to http://your_domain/auth/login.php to test the login.
Only use this section if you had an exsisting site or if you wanted to change install location.
First, check if you had an .htacces
file on the root folder.
If you do, please make sure the RewriteEngine
is set to On
and add the following line (Preferably at the top, before the router for your site if you had any) :
RewriteRule ^auth/(.*)?$ /sys-auth/$1 [NC,L]
Thecode above will redirect all request to /auth
to the directory sys-auth
.
Please note that accessing /sys-auth
directly will cause an error of 403.
To change the install path, change the htaccess code like this :
RewriteRule ^{CUSTOM_PATH}/(.*)?$ /sys-auth/$1 [NC,L]
Change {CUSTOM_PATH} to the path you want to install to.
After changing the path, edit the config (/sys-auth/app/config.php) dl_install_path option.
Set it to your custom path and remember the front slash (/
).
Edit the config file at /sys-auth/app/config.php
.
Once done, upload it yo your server and navigate to where you've installed the script.
- Can I access this from
/sys-auth
?
No. - Can I change the text on the page?
Yes, go to/sys-auth/<FILE>
and edit it. - Where can I find the uncompiled JavaScript?
/sys-auth/app/backup
- Can I remove the backup folder on /sys-auth/app ?
Yes you can - Can I change the config file name?
Nope - Can I change the variable name?
Not recommended.. No. - What happens if I modify the code below the warning?
In case of any problems, no support will be provided.
Note :
*
indicates a wildcard.
ROOT
means the directory root where project is installed.
-
ROOT/signup.php
- does the actual signup.
You can add hooks/code here to log the signup or do something else -
ROOT/sys-auth/app/config.php
- The configuration file, a.k.a. The Core. -
ROOT/sys-auth/app/backup/*
- Backup of the site content, configs and JS. Just in case. -
ROOT/sys-auth/app/*.class.php
- A class file. Probably required to run some parts of the system. -
ROOT/sys-auth/assets/*
- The assets for the site such as JavaScript or CSS. -
ROOT/sys-auth/*.php
- A page on the system where user can interact with. -
ROOT/sys-auth/*.content
- A raw and placeholdered long text for pages like Terms or Privacy.
An open-source, free, and easy-to-use authentication system template for MOFH.
Latest Release: Version 2.1
Latest Dev: Version 2.5