-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.example.php
54 lines (39 loc) · 1.75 KB
/
config.example.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
error_reporting(0);
// URL domain https://domain/
// if you use docker, you need set this url
# $url_server = "https://ibnux.com";
// mysql or sqlite
$dbtype = "sqlite";
// MYSQL
$dbname = 'nintendo';
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '##mysql';
// SQLITE
$dbpath = "data/base.db";
//Message of The Day
$motd = "Use as needed, download only what you want to play, so you don't get to the limit quickly. Have a Google Drive to share too? mention t.me/ibnux | donate paypal.me/ibnux";
$must_login = false;
// GOOGLE DRIVE AUTH CONFIGURATION
// https://www.iperiusbackup.net/en/how-to-enable-google-drive-api-and-get-client-credentials/
// but in OAuth consent screen, just select internal, for your own use only, if it can be selected
// i share my conf, bas364 only to make google not notify me
$client_id = "";
$client_sc = "";
$scopes = [ 'https://www.googleapis.com/auth/drive.apps.readonly'];
// ADD REDIRECT To Credential API
$redirect = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") ."://".$_SERVER['HTTP_HOST']."/import/login.php";
// END GOOGLE DRIVE AUTH CONFIGURATION
// EDIT ONLY IF LOGIN true
// only SMS Gateway with simple API
$sms_server = "https://some.sms.server/sms.php?to={phone}&msg={message}";
$msg_login_info = $_SERVER['HTTP_HOST'].' use your phone number (cth: 0812345678) as Username, password qwe, real password will be send to your phone number';
$msg_pass_send = "Password has been sent to your number";
$msg_sms_text = "Your Tinfoil Password: {{pin}}\n\nIgnore if you dont request password";
// Google drive download url
$drive_url = 'https://docs.google.com/uc?export=download&id=';
// allowed phone number for auth
$phone_country = ['62','08'];
//Delete duplicate
$delete_duplicate = true;