Skip to content

Commit

Permalink
can now fetch 'path' globally which eases the pain of includin it eve…
Browse files Browse the repository at this point in the history
…rywhere
  • Loading branch information
TimothyMee committed Apr 10, 2018
1 parent 3525059 commit 2072dda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions include/queries.php
Expand Up @@ -34,6 +34,10 @@ function __construct()

}

function getPath(){
return $path = 'http://localhost/myWork/fingerprintSample/code/';
}

function getDevice() {

$dbconn = DB::getInstance();
Expand Down
5 changes: 3 additions & 2 deletions user.php
Expand Up @@ -138,9 +138,10 @@ function user_checkregister(user_id, current) {

$finger = $queriesObject->getUserFinger($row['user_id']);
$register = '';
$path = $queriesObject->getPath();
$verification = '';
$url_register = base64_encode("http://localhost/myWork/fingerprintSample/code/register.php?user_id=".$row['user_id']);
$url_verification = base64_encode("http://localhost/myWork/fingerprintSample/code/verification.php?user_id=".$row['user_id']);
$url_register = base64_encode($path."register.php?user_id=".$row['user_id']);
$url_verification = base64_encode($path."verification.php?user_id=".$row['user_id']);

if (count($finger) == 0) {

Expand Down

0 comments on commit 2072dda

Please sign in to comment.