| Server IP : 167.235.67.158 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/bc.the-word.com/airdrops/ |
Upload File : |
<?php
include('functions.php');
$mysqli = connect_to_db();
if(isset($_POST['crew3_app_name']) && isset($_POST['name'])) {
try {
if(!$mysqli->query("INSERT INTO Airdrops VALUES (NULL, '" . $_POST['name'] . "', '" . $_POST['crew3_app_name'] . "')"))
die(json_encode(array('success' => false, 'error' => $mysqli->error)));
} catch(Exception $e) {
die(json_encode(array('success' => false, 'error' => $mysqli->error)));
}
die(json_encode(array('success' => true)));
}
$dbAirdrops = $mysqli->query('SELECT * FROM Airdrops');
$airdrops = array();
while($airdrop = $dbAirdrops->fetch_object()) {
$airdrops[] = array('name' => $airdrop->Name, 'crew3_app_name' => $airdrop->Crew3_App_Name);
}
die(json_encode(array('data' => $airdrops)));