/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: Daniel Johansson
  • Date: 2013-04-13 16:52:43 UTC
  • mfrom: (22.1.1 extremedating)
  • Revision ID: maila@danieljohansson.nu-20130413165243-wq53stxea0g0oadh
Yes we can

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
<?php
7
7
include "php/db.php";
8
8
if(isset($_POST['hiddenStuff']) && $_POST['hiddenStuff'] == "Something Strange") {
9
 
  echo "Derp!";
10
9
  $password = sha1($_POST['passwd']."salt");
11
10
  //If there is a $_POST that indicates that the add userscript should be run.
12
11
  $query = "";
49
48
    '{$_POST['city']}
50
49
    );";
51
50
  }
52
 
  echo "Herp!";
 
51
  $db->exec($query);
 
52
  echo "<body> <h1> New user added! </h1> </body>"
 
53
  sleep(.5);
53
54
} else {
54
55
 
55
56
?>