Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg/projects/

bacon-egg-pizza.php
cquiz.php
create-account.php
create-account111.php
create-quiz.php
create-quiz2.php
createaccount.php
delete-quiz.php
drop-rps-tables.php
legacy-code-rps.php
legacy-index.php
login.php
logincheck.php
newpassword-verify.php
newpassword.php
potential-code.txt
quiz-db-init.php
quizhub.php
quizhub2.php
results.php
rpsaccount-ajax-user-search.php
rpsaccount.php
rpsbetting-ajax-match-finder.php
rpsbetting.php
rpsbettingleaderboard.php
rpschangepassword.php
rpschangepassword.txt
rpsgame-ajax.php
rpsgame.php
rpsgameresults.php
rpshostnewgame.php
rpshub.php
rpsleaderboard.php
rpslib.php
rpslogin.php
rpsmaininclude.php
rpsproject/
rpsusersearch.php
table-init.php
verification.php

rpschangepassword.php

41 lines UTF-8 Windows (CRLF)
<?php
require('rpsmaininclude.php');

if (isset(
$_POST['oldpass']) && ($_POST['oldpass']!=NULL) && isset($_POST['newpass']) && ($_POST['newpass']!=NULL)){
    
changePassword($dbconn,$_POST['oldpass'],$_POST['newpass']);
}



?>


<html>
    <h1>ändra lösenord</h1>

    <form action="" method="POST">
        <table>
            <tr>
                <td>
                    nuvarande lösenord:
                </td>
                <td>
                    <input type="text" name="oldpass">
                </td>
            </tr>
            <tr>
                <td>
                    nytt lösenord:
                </td>
                <td>
                    <input type="text" name="newpass">
                </td>
            </tr>
            <tr>
                <td>
                <input type="submit">
                </td>
            </tr>
        </table>
    </form>
</html>