Fully operational SQL
diff --git a/ajax/checkrequests.php b/ajax/checkrequests.php
new file mode 100644
index 0000000..fb6e9a6
--- /dev/null
+++ b/ajax/checkrequests.php
@@ -0,0 +1,14 @@
+<?php
+ require '../php/utils.php';
+ $user = get_users($_GET['id']);
+
+ echo '{ ';
+ $first = true;
+ foreach ($user as $prop => $value) {
+ if (!$first) echo ', ';
+ else $first = false;
+ if ($prop == "nomcomplet") echo '"'.$prop.'": "'.$value.'"';
+ else echo '"'.$prop.'": '.$value;
+ }
+ echo ' }';
+?>
diff --git a/ajax/getusers.php b/ajax/getusers.php
new file mode 100644
index 0000000..cb8520d
--- /dev/null
+++ b/ajax/getusers.php
@@ -0,0 +1,5 @@
+<?php
+ require '../php/utils.php';
+ $users = get_users(0);
+ foreach ($users as $user) echo "<option value='".$user->id."'>".$user->nomcomplet."</option>\n";
+?>
diff --git a/ajax/victiminfo.php b/ajax/victiminfo.php
new file mode 100644
index 0000000..2396bb8
--- /dev/null
+++ b/ajax/victiminfo.php
@@ -0,0 +1,9 @@
+<?php
+ require '../php/utils.php';
+ $user = get_users($_GET['userid']);
+ $victim = get_users($user->quimata);
+?>
+
+<img width="300px" src="./imgs/<?=$victim->id?>.png" />
+<h2 id="victim_name"><?=$victim->nomcomplet?></h2>
+<h3><span id="victim_curs"><?=$victim->curs?></span>-<span id="victim_grau"><?=$victim->grau?></span></h3>