/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to adduser.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-04-14 04:21:43 UTC
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: gustav.hartvigsson@gmail.com-20130414042143-d3wkqmc6yjbs9ly2
woops..

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  $output = "";
35
35
  if(isset($_FILES["image"]["tmp_name"])){
36
36
    $tmpFile = $_FILES["image"]["tmp_name"];
 
37
    //echo $_FILES["image"]["tmp_name"];
37
38
    $handle = fopen($tmpFile,"r");
38
39
    $fileSize = $_FILES['image']['size'];
 
40
    var_dump ($handle);
 
41
    //var_dump($_FILES);
 
42
    //echo $_FILES["image"]["tmp_name"];
39
43
    $output = fread($handle, filesize($tmpFile));
40
44
    $output = base64_encode ($output);
41
45
  }
 
46
  //$output = NULL;
 
47
  /*
 
48
  if ($handle) {
 
49
      while (($buffer = fgets($handle, 4096)) !== false) {
 
50
      //$buffer = str_replace("&", "&", $buffer);
 
51
      //$buffer = str_replace("<", "&lt;", $buffer);
 
52
      //$buffer = str_replace(">", "&gt;", $buffer);
 
53
      $output .= $buffer;
 
54
     }
 
55
      if (!feof($handle)) {
 
56
      $output .= "Error: unexpected fgets() fail\n";
 
57
        }
 
58
    fclose($handle);
 
59
    var_dump($output);
 
60
  }
 
61
  */
 
62
  
 
63
 
42
64
  if (isset($_SESSION['userType']) && $_POST['isSuperUser'] == true && $_SESSION['userType'] == 1) {
43
65
    $query = "INSERT INTO Users (
44
66
    loginName,
137
159
              <td> <input type="input" name="city" id="city" /> </td>
138
160
            </tr>
139
161
            <tr>
140
 
              <td> <label for="file"> Profile Image </label> </td>
 
162
              <td> <label for="file"> City </label> </td>
141
163
              <td> <input type="file" name="image" id="image" /> </td>
142
164
            </tr>
143
165
                              <tr>