0; $word_to_load = (isset($_GET['word'])) ? intval($_GET['word']) : 0; $the_public_word = '"That word doesn\'t exist."'; $word_name = 'ERROR'; $announcement = get_include_contents(SITE_LOCATION . '/announcement.php'); $notificationMessage = ""; 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. $_SESSION['loginfailures'] = 0; } else { $alertlockoutmessage = "You failed logging in 10 times. To prevent request flooding and hacking attempts, you may not log in or create an account for 1 hour.\\n\\nThe last time this page was loaded, you had been locked out for " . time_elapsed(time() - $_SESSION['loginlockouttime']) . "\\n\\nRefresh the page once the hour has passed."; $hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage); } require_once(SITE_LOCATION . '/php/notificationconditiontree.php'); if ($is_viewing) { $query = "SELECT `d`.`id`, `d`.`name`, `d`.`description`, `u`.`public_name`, `d`.`words`, `d`.`parts_of_speech`, `d`.`is_complete` "; $query .= "FROM `dictionaries` AS `d` LEFT JOIN `users` AS `u` ON `d`.`user`=`u`.`id` WHERE `d`.`is_public`=1 AND `d`.`id`=" . $dictionary_to_load . ";"; $dbconnection = new PDO('mysql:host=' . DATABASE_SERVERNAME . ';dbname=' . DATABASE_NAME . ';charset=utf8', DATABASE_USERNAME, DATABASE_PASSWORD); $dbconnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $dbconnection->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $dbconnection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); try { $queryResults = $dbconnection->prepare($query); $queryResults->execute(); 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'] . '",'; $the_public_dictionary .= '"words":' . $dict['words'] . ','; $the_public_dictionary .= '"settings":{'; $the_public_dictionary .= '"partsOfSpeech":"' . $dict['parts_of_speech'] . '",'; $the_public_dictionary .= '"isComplete":' . (($dict['is_complete'] == 1) ? 'true' : 'false') . '},'; $the_public_dictionary .= '}'; } } } } catch (PDOException $ex) {} } ?> <?php echo $dictionary_name; ?> Dictionary on Lexiconga Lexiconga Dictionary Builder
About Lexiconga
0) { //If logged in, show the log out button. ?> Account Settings Log Out Log In/Create Account Can't Login
;margin-bottom:10px;"> Close
;"> Close
🔒
Settings

HideShow Description
Hide Search/Filter Options
Check All   Uncheck All
0) { $user_email = Get_User_Email($current_user); ?>