Made by: 000hen
Version: 1
Copyright©3ZH-Studio, Technology Network Company (3ZH-Studio TNC)
Not Update Here
This is a login system use PHP
You can get on git: git clone https://github.com/000hen/PHP-Login
First, add new databases in your MySQL server (Like this)
Second, add user (password need encrypt with MD5)
Next, change code in the "config.php".
$dbhost="localhost"; //填入資料庫位置
$dbuser="root"; //填入資料庫名稱
$dbpass="12345" //填入資料庫密碼(是'dbuser'的密碼)
$dbselect="login_sys"; //選擇資料庫
$dbtable="login"; //填入資料"表"
And finally, add others file you need add code:
require_once($_SERVER['DOCUMENT_ROOT'].'/admin/page/flf.php');
if (@$login == "1"){
//Code Here!
}else{
header("location: //".$_SERVER['DOCUMENT_ROOT']."/admin/login.php?return=$url");
}
You Need To rename the folder To "admin",and must be placed first (root folder).