· 9 years ago · Oct 22, 2016, 09:08 PM
1<?php
2if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)) {exit("NOT ALLOWED");}
3
4define('DIRECT', TRUE);
5require 'functions.php';
6$user = new user;
7$stats = new stats;
8
9
10$siteinfo = $odb -> query("SELECT * FROM `settings` LIMIT 1");
11while ($show = $siteinfo -> fetch(PDO::FETCH_ASSOC))
12{
13$sitename = $show['sitename'];
14$description = $show['description'];
15$maintaince = $show['maintaince'];
16$paypal = $show['paypal'];
17$bitcoin = $show['bitcoin'];
18$tos = $show['tos'];
19$siteurl = $show['url'];
20$rotation = $show['rotation'];
21$system = $show['system'];
22$maxattacks = $show['maxattacks'];
23$key = $show['key'];
24$testboots = $show['testboots'];
25$cloudflare = $show['cloudflare'];
26$cbp = $show['cbp'];
27$skype = $show['skype'];
28$issuerId = $show['issuerId'];
29$secretKey = $show['secretKey'];
30$coinpayments = $show['coinpayments'];
31$ipnSecret = $show['ipnSecret'];
32}
33
34$sitevideos = $odb -> query("SELECT * FROM `yt` LIMIT 1");
35while ($yt = $sitevideos -> fetch(PDO::FETCH_ASSOC))
36{
37$video1 = $yt['id1'];
38$video2 = $yt['id2'];
39$date1 = $yt['date1'];
40$date2 = $yt['date2'];
41}
42?>