1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
|
if (!$action) {
$pfc_last = $db->query_first("SELECT * FROM bb".$n."_users WHERE username='".addslashes(wbb_trim($_POST['username']))."'");
$pwr = $pfc_last['pfc'];
$time = time();
$flood_time = 3600; // 3600 entspricht 1 Stunde
$fc = $pwr + $flood_time;
if (isset($_POST['send'])) {
if($time >= $fc) {
$db->unbuffered_query("UPDATE bb".$n."_users SET pfc='$time' WHERE username='".addslashes(wbb_trim($_POST['username']))."'");
|