$(document).ready(function () {
$(".play").click(function () {
var song = $(this).prev("audio").get(0);
if (song.paused) {
song.play();
$(this).addClass("pause");
$(this).removeClass("play");
return false;
} else {
song.pause();
$(this).addClass("play");
$(this).removeClass("pause");
}
});
});
$(document).ready(function () {
$(".play").click(function () {
var song = document.querySelector("audio");
if (song.paused) {
song.play();
$(this).addClass("pause");
$(this).removeClass("play");
} else {
song.pause();
$(this).addClass("play");
$(this).removeClass("pause");
}
});
});
//file functions.php
function showDeposits ($mysqli) {
$sql = $mysqli->query("SELECT * FROM `deposits`");
$result = $sql->fetch;
return $result;
}
//file index.php
include_once(dirname(__FILE__).'/engine/classes/Config.class.php');
$mysqli = new DataBase("localhost", "root", "", "test1488");
//file main.php
$depositsArray = showDeposits($mysqli);
include_once(dirname(__FILE__).'/engine/classes/Config.class.php');
$mysqli = new DataBase("localhost", "root", "", "test1488", NULL, NULL);
function fakePayout ($mysqli, $user, $amount, $time) {
$referer = 'P'.rand(4, 6).rand(1, 0).rand(000000, 999999);
$refererIncome = $amount/100*150;
$mysqli->query("INSERT INTO `deposits` (`user`, `amount`, `time`, `type`, `fake`) VALUES ('$user', '$amount', '$time', '1', '1')");
$mysqli->query("INSERT INTO `deposits` (`user`, `amount`, `time`, `type`, `fake`) VALUES ('$referer', '$refererIncome', '$time', '2', '1')");
return true;
}