/lenasys/trunk

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

« back to all changes in this revision

Viewing changes to DuggaSys/changePassword/index.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-03 13:01:15 UTC
  • mfrom: (9.5.1 lenasys)
  • mto: (12.2.1 lenasys)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: galaxyabstractor@gmail.com-20130403130115-x7g17k3yvlmdtm83
Merged Victor

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        
10
10
        //Passwordchangingcode
11
11
        if(isset($_POST['changePasswordSubmit'])) {
12
 
                $pdo = new PDO('mysql:dbname=dsystem;host=wwwlab.iki.his.se', 'dbsk', 'Tomten2009'); //ADD NEW USER WITH LESS PRIVILEGES?
13
 
                $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
 
12
                include '../../php/dbconnect.php';
14
13
                $queryString = "SELECT Student.ssn FROM Student WHERE Student.loginName=:LOGIN AND Student.passw=:PASSW;";
15
14
 
16
15
                $stmt = $pdo->prepare($queryString);