-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettinggui.php
35 lines (34 loc) · 1.27 KB
/
settinggui.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?
// ENCODE SETTING
$Cfg["hash"] = "md5";
//=================================================
// DATABASE SETTING
$Cfg["mysql"]["host"] = "localhost";
$Cfg["mysql"]["user"] = "root";
$Cfg["mysql"]["pass"] = "1234boss";
$Cfg["mysql"]["db"] = "passwordl";
//=================================================
// Decrypt SETTING
$Cfg["decrypt"]["save"] = "all";
//all = Save all Temp in database Best result on High storage capacity.
//some = Save result Temp in database Best result on low storage capacity.
//off = Don't save
$Cfg["decrypt"]["PASSWORD_MAX_LENGTH"] = "8";
$Cfg["decrypt"]["HASH_ALGO"] = $Cfg["hash"];
//=================================================
// Encrypt SETTING
$Cfg["encrypt"]["save"] = "on"; //on = save encrypt data in database , off = don't save
//Don't edit This below
//=================================================
$db = $Cfg["mysql"]["db"];
$hashl = $Cfg["decrypt"]["HASH_ALGO"];
mysql_connect($Cfg["mysql"]["host"],$Cfg["mysql"]["user"],$Cfg["mysql"]["pass"]);
mysql_query("CREATE DATABASE IF NOT EXISTS `$db` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;");
mysql_select_db($db);
mysql_query("
CREATE TABLE IF NOT EXISTS `$hashl` (
`data` varchar(100) NOT NULL,
`hash` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
");
?>