30
29
if(isset($_POST['hiddenStuff']) && $_POST['hiddenStuff'] == "Something Strange") {
32
31
//If there is a $_POST that indicates that the add userscript should be run.
35
34
if(isset($_FILES["image"]["tmp_name"])){
36
35
$tmpFile = $_FILES["image"]["tmp_name"];
37
37
$handle = fopen($tmpFile,"r");
38
38
$fileSize = $_FILES['image']['size'];
39
42
$output = fread($handle, filesize($tmpFile));
40
43
$output = base64_encode ($output);
42
63
if (isset($_SESSION['userType']) && $_POST['isSuperUser'] == true && $_SESSION['userType'] == 1) {
43
64
$query = "INSERT INTO Users (