/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-13 23:15:23 UTC
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: gustav.hartvigsson@gmail.com-20130413231523-43e2ubbnrmk80g51
Fixed the gawd damn get_image.php thingies...

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  $password = sha1($_POST['passwd']."salt");
12
12
  //If there is a $_POST that indicates that the add userscript should be run.
13
13
  $query = "";
14
 
  $tmpFile = $_FILES["image"]["tmp_name"];
15
 
  $handle = fopen($tmpFile,"r");
16
 
  $fileSize = $_FILES['image']['size'];
17
 
  var_dump ($handle);
18
 
  //var_dump($_FILES);
19
 
  //echo $_FILES["image"]["tmp_name"];
20
 
  $output = $content = fread($handle, filesize($tmpFile));
21
 
  $output = base64_encode ($output);
 
14
  $output = "";
 
15
  if(!isset($_FILES["image"]["tmp_name"])){
 
16
    $tmpFile = $_FILES["image"]["tmp_name"];
 
17
    $handle = fopen($tmpFile,"r");
 
18
    $fileSize = $_FILES['image']['size'];
 
19
    var_dump ($handle);
 
20
    //var_dump($_FILES);
 
21
    //echo $_FILES["image"]["tmp_name"];
 
22
    $output = $content = fread($handle, filesize($tmpFile));
 
23
    $output = base64_encode ($output);
 
24
  }
22
25
  //$output = NULL;
23
26
  /*
24
27
  if ($handle) {