diff --git a/view/index.php b/view/index.php index f55fe69..4443340 100644 --- a/view/index.php +++ b/view/index.php @@ -8,6 +8,8 @@ $current_user = isset($_SESSION['user']) ? $_SESSION['user'] : 0; $dictionary_to_load = (isset($_GET['dict'])) ? intval($_GET['dict']) : 0; $the_public_dictionary = '"That dictionary doesn\'t exist."'; +$dictionary_name = 'ERROR'; +$dictionary_creator = 'nobody'; if ($current_user > 0 || !isset($_SESSION['loginfailures']) || (isset($_SESSION['loginlockouttime']) && time() - $_SESSION['loginlockouttime'] >= 3600)) { // If logged in, never failed, or more than 1 hour has passed, reset login failures. @@ -30,6 +32,8 @@ try { if ($queryResults) { if (num_rows($queryResults) === 1) { while ($dict = fetch($queryResults)) { + $dictionary_name = $dict['name']; + $dictionary_creator = $dict['public_name']; $the_public_dictionary = '{"name":"' . $dict['name'] . '",'; $the_public_dictionary .= '"description":"' . $dict['description'] . '",'; $the_public_dictionary .= '"createdBy":"' . $dict['public_name'] . '",'; @@ -51,7 +55,13 @@ catch (PDOException $ex) {} - Lexiconga Dictionary Builder + <?php echo $dictionary_name; ?> Dictionary on Lexiconga + + + + + +