/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 16:26:16 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: gustav.hartvigsson@gmail.com-20130413162616-czheyrmtdo10v2mw
fixed a few things.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
<head>
6
6
<?php
7
7
include "php/db.php";
8
 
if($_POST['hiddenStuff'] == "Something Strange") {
 
8
if(isset($_POST[hiddenStuff]) && $_POST['hiddenStuff'] != "Something Strange") {
9
9
  $password = sha1($_POST['password']."salt");
10
10
  //If there is a $_POST that indicates that the add userscript should be run.
11
11
  $query = "";
58
58
        <form action="./adduser.php">
59
59
          <table border="0">
60
60
            <?php
61
 
              if($_SESSION['userType'] == 1 ) {
 
61
              if(isset($_SESSION['userType']) && $_SESSION['userType'] == 1 ) {
62
62
                //you are a superuser!
63
63
                //you can add other superusers.
64
64
            ?>