-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquick.php
More file actions
37 lines (34 loc) · 861 Bytes
/
quick.php
File metadata and controls
37 lines (34 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
require_once "global/functions/apicalls.php";
$config = require_once "config.php";
if(isset($_GET['doirm'])){
$user = $_GET['doirm'];
$putfields= '{"accessIDFK": 4}';
$result = putCall($config->api_url . "users/" . $user, $putfields);
if(is_numeric($result)){
echo "promoted<br>";
} else {
echo "error<br>";
}
}
if(isset($_GET['bannew'])){
$user = $_GET['bannew'];
$putfields= '{"accessIDFK": 1}';
$result = putCall($config->api_url . "users/" . $user, $putfields);
if(is_numeric($result)){
echo "banned<br>";
} else {
echo "error<br>";
}
}
if(isset($_GET['doguest'])){
$user = $_GET['doguest'];
$putfields= '{"accessIDFK": 2}';
$result = putCall($config->api_url . "users/" . $user, $putfields);
if(is_numeric($result)){
echo "Guest<br>";
} else {
echo "error<br>";
}
}
echo '<a href="' . $config->app_url . '">Home</a>';