· 5 years ago · Nov 16, 2019, 08:00 PM
1<?php
2 if (($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)) {exit("NOT ALLOWED");}
3
4 define('DIRECT', TRUE);
5 require_once 'functions.php';
6 $user = new user;
7 $stats = new stats;
8
9
10 $siteinfo = $odb -> query("SELECT * FROM `settings` LIMIT 1");
11 while ($show = $siteinfo -> fetch(PDO::FETCH_ASSOC)){
12 $sitename = $show['sitename'];
13 $description = $show['description'];
14 $maintaince = $show['maintaince'];
15 $siteurl = $show['url'];
16 $bitcoin = $show['bitcoin'];
17 $paypal = $show['paypal'];
18 $stripe = $show['stripe'];
19 $stripeSecretKey = $show['stripeSecretKey'];
20 $stripePubKey = $show['stripePubKey'];
21 $rotation = $show['rotation'];
22 $maxattacks = $show['maxattacks'];
23 $key = $show['key'];
24 $testboots = $show['testboots'];
25 $cloudflare = $show['cloudflare'];
26 $cbp = $show['cbp'];
27 $secretKey = $show['secretKey'];
28 $coinpayments = $show['coinpayments'];
29 $ipnSecret = $show['ipnSecret'];
30 $google_site = $show['google_site'];
31 $google_secret = $show['google_secret'];
32 $cooldown = $show['cooldown'];
33 $cooldownTime = $show['cooldownTime'];
34 }
35
36 $smtpsettings = $odb -> query("SELECT * FROM `smtpsettings` LIMIT 1");
37 while ($show = $smtpsettings -> fetch(PDO::FETCH_ASSOC)){
38 $Shost = $show['host'];
39 $SAuth = $show['auth'];
40 $Susername = $show['username'];
41 $Spassword = $show['password'];
42 $Sport = $show['port'];
43 }
44
45 $twoauth = $odb -> query("SELECT * FROM `2authsettings` LIMIT 1");
46 while ($show = $twoauth -> fetch(PDO::FETCH_ASSOC)){
47 $AuthSecret = $show['secret'];
48 }
49
50?>