Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
passwordResetCheck(); $user = new user($db); if (!$admin->admin_level(0)) { header("location: /static/401.php"); die(); } $stmt = $db->prepare("SELECT cpr, shooterId, fullname, adress, birthday, phone, email, subscriptionPaid, ownWeapon, id FROM result_users WHERE subscriptionPaid = 0 AND isDeleted != 1"); $stmt->execute(); if (isset($_POST['reset'])) { $stmt = $db->prepare("SELECT id FROM result_users WHERE subscriptionPaid = 1"); $stmt->execute(); foreach ($stmt->fetchAll() as $row) { $user->updateSubcription($row[0], 0); } $admin->redirect('/admin/subscription.php'); } if ($_POST) { if (isset($_POST['cross'])) { $user->updateSubcription($_POST['cross'], 1); } if (isset($_POST['checkmark'])) { $user->updateSubcription($_POST['checkmark'], 0); } $admin->redirect('/admin/subscription.php'); } include('../static/header.php'); ?>

Ubetalte kontingenter

admin_level(1)) { ?>
fetchAll() as $row) { $birthday = date_format(new DateTime($row[4]), 'd-m-Y'); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ($row[7] == 1) { echo ""; } else { echo ""; } echo ""; if ($row[8] != 0) { echo ""; } else { echo ""; } echo ""; echo ""; } ?>
CPR Skyttenummer Navn Adresse Fødselsdag Telefon Email Kontingent betalt Ejer våben
" . decrypt($row[0], $encryptKey) . "$row[1]$row[2]$row[3]$birthday$row[5]$row[6]
Janej