From 82a7d61a9a373f4ab2cb3cafab5a48ca49391506 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 22 Jun 2025 02:22:38 +0700 Subject: [PATCH] cancel apply patch --- public/amountattendancecard.php | 112 ---------------------------- public/amountbonus.php | 77 ------------------- public/amountupload.php | 128 -------------------------------- 3 files changed, 317 deletions(-) delete mode 100644 public/amountattendancecard.php delete mode 100644 public/amountbonus.php delete mode 100644 public/amountupload.php diff --git a/public/amountattendancecard.php b/public/amountattendancecard.php deleted file mode 100644 index e285e9c4..00000000 --- a/public/amountattendancecard.php +++ /dev/null @@ -1,112 +0,0 @@ -whereIn('class', $updateset)->forPage($page, $size)->get(['id']); - if ($users->isEmpty()) { - break; - } - foreach ($users as $user) { - $userIdArr[] = $user->id; - $messages[] = [ - 'sender' => $sender_id, - 'receiver' => $user->id, - 'added' => $dt, - 'subject' => $subject, - 'msg' => $msg, - ]; - } - \App\Models\User::query()->whereIn('id', $userIdArr)->increment('attendance_card', $amount); - \App\Models\Message::query()->insert($messages); - $page++; - } - header(sprintf("Location: %s?sent=1", $_SERVER['PHP_SELF'])); -} - -stdhead("Add Attendance card", false); -$allClass = array_chunk(\App\Models\User::$classes, 4, true); -?> -
-
-

Add attendance card to all staff members and users:

-
> - - "> - - - - - - - - - - - - - - -
Attendance card has been added and inform message has been sent.
Amount
Add to - - - - $value) {?> - - - - - -
-
-
Subject
Reason
Operator:   - - -   System - -
- > -
- -
-
- NOTE: Do not use BB codes. (NO HTML) - 100, - 2 => 1000, - 3 => 10000, -]; -$selectName = 'seed_bonus_type'; -$select = ''; - -if ($_SERVER["REQUEST_METHOD"] == "POST") -{ - if (isset($_POST['doit']) && $_POST['doit'] == 'yes') { - if (empty($_POST[$selectName]) || !isset($seedBonusAll[$_POST[$selectName]])) { - stderr("Error", "Invalid form data: $selectName."); - } - $seedBonusIncrease = $seedBonusAll[$_POST[$selectName]]; - sql_query("UPDATE users SET seedbonus = seedbonus + $seedBonusIncrease WHERE status='confirmed'"); - stderr("Bonus", "$seedBonusIncrease bonus point is sent to everyone..."); - die; - } - - if ($_POST["username"] == "" || $_POST["seedbonus"] == "" || $_POST["seedbonus"] == "") - stderr("Error", "Missing form data."); - $username = sqlesc($_POST["username"]); - $seedbonus = sqlesc($_POST["seedbonus"]); - - sql_query("UPDATE users SET seedbonus=seedbonus + $seedbonus WHERE username=$username") or sqlerr(__FILE__, __LINE__); - $res = sql_query("SELECT id FROM users WHERE username=$username"); - $arr = mysql_fetch_row($res); - if (!$arr) - stderr("Error", "Unable to update account."); - header("Location: " . get_protocol_prefix() . "$BASEURL/userdetails.php?id=".htmlspecialchars($arr[0])); - die; -} -stdhead("Update Users Upload Amounts"); -?> -

Update Users Bonus Amounts

-"; -print("\n"); -?> - - - - - - - - -
User name
Bonus
- - - - - - - - - - -
Bonus
- - -
-
-

Add upload to all staff members and users:

-
- -"> - - - - - - - - - - - - - - -
Upload amount has been added and inform message has been sent.
Amount  (in GB)
Add to - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Peasant - User - Power User - Elite User
- Crazy User - Insane User - Veteran User - Extreme User
- Ultimate User - Nexus Master - VIP - Uploader
- Moderator - Administrator - SysOp - Staff Leader  
-
Subject
Reason
Operator:   - - -  System - -
-> -
- -
-
-NOTE: Do not user BB codes. (NO HTML) -