Hi, . Welcome to our site.
    Your role is .
    Your certificate hash is ";?>.
    Download certificate here : .
    
    ";
 echo "| Username | Role | Certificate hash | 
";
class TableRows extends RecursiveIteratorIterator {
    function __construct($it) {
        parent::__construct($it, self::LEAVES_ONLY);
    }
    function current() {
        return "" . parent::current(). " | ";
    }
    function beginChildren() {
        echo "";
    }
    function endChildren() {
        echo "
" . "\n";
    }
}
// Include config file
require_once "config.php";
$servername = DB_SERVER;
$dbname = DB_USERNAME;
$username = DB_PASSWORD;
$password = DB_NAME;
try {
    $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    $stmt = $conn->prepare("SELECT username, role, hash FROM user_pjpb");
    $stmt->execute();
    // set the resulting array to associative
    $result = $stmt->setFetchMode(PDO::FETCH_ASSOC);
    foreach(new TableRows(new RecursiveArrayIterator($stmt->fetchAll())) as $k=>$v) {
        echo $v;
    }
}
catch(PDOException $e) {
    echo "Error: " . $e->getMessage();
}
$conn = null;
echo "
 
";
    
    
    }
    
    
    ?>
    
    
        Reset Your Password
        Sign Out of Your Account