2015-11-02 17:25:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< ? php 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-04 14:52:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								require_once ( 'required.php' ); 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 17:25:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-11-04 14:52:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								session_start (); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$current_user  =  isset ( $_SESSION [ 'user' ])  ?  $_SESSION [ 'user' ]  :  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								$dictionary_to_load  =  ( isset ( $_GET [ 'dict' ]))  ?  intval ( $_GET [ 'dict' ])  :  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$the_public_dictionary  =  '"That dictionary doesn\'t exist."' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$dictionary_name  =  'ERROR' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$dictionary_creator  =  'nobody' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$is_viewing  =  $dictionary_to_load  >  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$word_to_load  =  ( isset ( $_GET [ 'word' ]))  ?  intval ( $_GET [ 'word' ])  :  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$the_public_word  =  '"That word doesn\'t exist."' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$word_name  =  'ERROR' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 18:13:45 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								$announcement  =  get_include_contents ( SITE_LOCATION  .  '/announcement.php' ); 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-04 14:52:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								$notificationMessage  =  " " ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								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.
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    $_SESSION [ 'loginfailures' ]  =  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								}  else  { 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    $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. " ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    $hoverlockoutmessage  =  str_replace ( " \\ n " ,  " \n " ,  $alertlockoutmessage ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								require_once ( SITE_LOCATION  .  '/php/notificationconditiontree.php' ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								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 )  {} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 17:25:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<! DOCTYPE  html > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-25 22:41:25 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								< html > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< head > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < meta  charset = " utf-8 "  /> 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 16:11:33 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < meta  name = " viewport "  content = " width=device-width, initial-scale=1 " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < title >< ? php  echo  $dictionary_name ;  ?>  Dictionary on Lexiconga</title>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < meta  property = " og:url "  content = " http://lexicon.ga/view/?dict=<?php echo  $dictionary_to_load ; ?> "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < meta  property = " og:type "  content = " article "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < meta  property = " og:title "  content = " <?php echo  $dictionary_name ; ?> Dictionary "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < meta  property = " og:description "  content = " A Lexiconga dictionary by <?php echo  $dictionary_creator ; ?> "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < meta  property = " og:image "  content = " http://lexicon.ga/images/logo.svg "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < script > var  publicDictionary  =  < ? php  echo  $the_public_dictionary ;  ?> </script>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php  }  else  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < title > Lexiconga  Dictionary  Builder </ title > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-25 22:41:25 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < link  href = " css/styles.css "  rel = " stylesheet "  /> 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 13:35:59 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < link  href = " css/lexiconga.css "  rel = " stylesheet "  /> 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-25 22:41:25 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								</ head > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< body > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 13:35:59 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < header > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " headerPadder " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-09 13:23:18 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < a  href = " / "  id = " siteLogo " > Lexiconga  Dictionary  Builder </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 20:09:20 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < div  style = " float:right;margin: 16px 8px;font-size:12px; " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < span  id = " aboutButton "  class = " clickable "  onclick = " ShowInfo('aboutText') " > About  Lexiconga </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 20:04:44 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-04 14:52:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < div  id = " loginoutArea "  style = " font-size:12px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < ? php  if  ( $current_user  >  0 )  {   //If logged in, show the log out button. ?>
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < span  id = " accountSettings "  class = " clickable "  onclick = " ShowAccountSettings() " > Account  Settings </ span >  < a  href = " ?logout "  id = " logoutLink "  class = " clickable " > Log  Out </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < ? php  }  elseif  ( ! isset ( $_SESSION [ 'loginfailures' ])  ||  ( isset ( $_SESSION [ 'loginfailures' ])  &&  $_SESSION [ 'loginfailures' ]  <  10 ))  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < span  id = " loginLink "  class = " clickable "  onclick = " ShowInfo('loginForm') " > Log  In / Create  Account </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-04 14:52:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < ? php  }  else  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < span  id = " loginLink "  class = " clickable "  title = " <?php echo  $hoverlockoutmessage ; ?> "  onclick = " alert('<?php echo  $alertlockoutmessage ; ?>'); " > Can ' t  Login </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-04 14:52:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 13:35:59 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ header > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < contents > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( ! $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-21 13:36:25 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " announcementArea "  style = " display:<?php echo (( $announcement ) ?  " block "  :  " none " ); ?>;margin-bottom:10px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < span  id = " announcementCloseButton "  class = " clickable "  onclick = " document.getElementById('announcementArea').style.display='none'; " > Close </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " announcement " >< ? php  echo  $announcement ;  ?> </div>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  id = " notificationArea "  style = " display:<?php echo (( $notificationMessage ) ?  " block "  :  " none " ); ?>; " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-09 12:20:03 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < span  id = " notificationCloseButton "  class = " clickable "  onclick = " document.getElementById('notificationArea').style.display='none'; " > Close </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-09 17:53:01 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < div  id = " notificationMessage " >< ? php  echo  $notificationMessage ;  ?> </div>
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-09 11:45:46 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 15:53:59 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " leftColumn " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < form  id = " wordEntryForm " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  id = " formLockButton "  class = " clickable "  onclick = " ToggleWordFormLock() "  title = " Lock/unlock form from the top of the page " >& #128274;</div>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < label >< span > Word </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < input  type = " text "  id = " word "  onkeydown = " SubmitWordOnCtrlEnter(this) "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < label >< span > Pronunciation  < a  class = " clickable inline-button "  href = " /ipa_character_picker/ "  target = " _blank "  title = " IPA Character Picker backed up from http://r12a.github.io/pickers/ipa/ " > IPA  Characters </ a ></ span > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < input  type = " text "  id = " pronunciation "  onkeydown = " SubmitWordOnCtrlEnter(this) "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < label >< span > Part  of  Speech </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < select  id = " partOfSpeech "  onkeydown = " SubmitWordOnCtrlEnter(this) " ></ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < label >< span > Equivalent  Word ( s ) </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < input  type = " text "  id = " simpleDefinition "  onkeydown = " SubmitWordOnCtrlEnter(this) "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < label >< span > Explanation / Long  Definition  < span  id = " showFullScreenTextbox "  class = " clickable inline-button "  onclick = " ShowFullScreenTextbox('longDefinition', 'Explanation/Long Definition') " > Maximize </ span ></ span > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < textarea  id = " longDefinition "  onkeydown = " SubmitWordOnCtrlEnter(this) " ></ textarea > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < input  type = " hidden "  id = " editIndex "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < span  id = " errorMessage " ></ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  id = " newWordButtonArea "  style = " display: block; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < button  type = " button "  onclick = " AddWord(); return false; " > Add  Word </ button > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  id = " editWordButtonArea "  style = " display: none; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < button  type = " button "  onclick = " AddWord(); return false; " > Edit  Word </ button >  < button  type = " button "  onclick = " ClearForm(); window.scroll(savedScroll.x, savedScroll.y); return false; " > Cancel </ button > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  id = " updateConflict "  style = " display: none; " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        </ form > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 15:53:59 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-25 22:41:25 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  id = " dictionaryContainer " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < ? php  if  ( ! $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 15:53:59 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < span  id = " settingsButton "  class = " clickable "  onclick = " ShowSettings() " > Settings </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 13:35:59 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < h1  id = " dictionaryName " ></ h1 > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < ? php  if  ( $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < h4  id = " dictionaryBy " ></ h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " incompleteNotice " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 22:54:27 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < span  id = " descriptionToggle "  class = " clickable "  onclick = " ToggleDescription(); " >< ? php  if  ( $is_viewing )  {  ?> Hide<?php } else { ?>Show<?php } ?> Description</span>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " dictionaryDescription "  style = " display:<?php if ( $is_viewing )  {  ?>block<?php } else  {  ?>none<?php } ?>; " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 15:53:59 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < span  id = " searchFilterToggle "  class = " clickable "  onclick = " ToggleSearchFilter(); " >< ? php  if  ( $is_viewing )  {  ?> Hide <?php } ?>Search/Filter Options</span>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " searchFilterArea "  style = " display:<?php if ( $is_viewing )  {  ?>block<?php } else  {  ?>none<?php } ?>; " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-02 16:03:23 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < div  id = " searchArea "  style = " display:block; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < label  style = " margin-top:10px; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < span > Search </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < div  style = " display:block; " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < input  type = " text "  id = " searchBox "  onclick = " this.select(); "  onchange = " <?php Show_Dictionary_Function( $is_viewing ) ?> "  style = " display:inline; "  />& nbsp ; 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < span  class = " clickable inline-button "  onclick = " document.getElementById('searchBox').value='';<?php Show_Dictionary_Function( $is_viewing ) ?>; " > Clear  Search </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-02 16:03:23 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-26 17:37:37 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < div  id = " searchOptions " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < label  class = " searchOption " > Word  < input  type = " checkbox "  id = " searchOptionWord "  checked = " checked "  onchange = " <?php Show_Dictionary_Function( $is_viewing ) ?> "  /></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label  class = " searchOption " > Equivalent  < input  type = " checkbox "  id = " searchOptionSimple "  checked = " checked "  onchange = " <?php Show_Dictionary_Function( $is_viewing ) ?> "  /></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label  class = " searchOption " > Explanation  < input  type = " checkbox "  id = " searchOptionLong "  checked = " checked "  onchange = " <?php Show_Dictionary_Function( $is_viewing ) ?> "  /></ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-02 16:03:23 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < br  /> 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < label  class = " searchOption " > Search  Case - Sensitive  < input  type = " checkbox "  id = " searchCaseSensitive "  onchange = " <?php Show_Dictionary_Function( $is_viewing ) ?> "  /></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label  class = " searchOption "  title = " Note: Matching diacritics will appear but may not highlight. " > Ignore  Diacritics / Accents  < input  type = " checkbox "  id = " searchIgnoreDiacritics "  onchange = " <?php Show_Dictionary_Function( $is_viewing ) ?> "  /></ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-02 16:03:23 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            
							 
						 
					
						
							
								
									
										
										
										
											2016-05-26 17:37:37 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < label  style = " display:block;margin-bottom:0; " >< b > Filter  Words </ b ></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  id = " filterOptions "  style = " display:block " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  style = " display:block; " > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < span   class = " clickable inline-button "  onclick = " ToggleAllFilters(true);<?php Show_Dictionary_Function( $is_viewing ) ?>; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    Check  All 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                & nbsp ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < span   class = " clickable inline-button "  onclick = " ToggleAllFilters(false);<?php Show_Dictionary_Function( $is_viewing ) ?>; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    Uncheck  All 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2016-05-26 17:37:37 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 13:23:04 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-01-18 12:23:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < div  id = " filterWordCount " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 22:54:27 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            
							 
						 
					
						
							
								
									
										
										
										
											2015-10-25 22:41:25 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " theDictionary " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 10:28:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 17:25:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " rightColumn "  class = " googleads "  style = " float:right;width:20%;max-width:300px;min-width:200px;overflow:hidden; " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < ? php  if  ( $_GET [ 'adminoverride' ]  !=  " noadsortracking " )  {  include_once ( " php/google/adsense.php " );  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 10:28:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-26 15:50:09 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( ! $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-10-26 15:50:09 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " settingsScreen "  style = " display:none; " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 15:53:59 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < div  id = " settingsBackgroundFade "  onclick = " HideSettings() " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < div  id = " settingsOptions " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-28 15:53:59 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < span  id = " settingsScreenCloseButton "  class = " clickable "  onclick = " HideSettings() " > Close </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < h2 > Dictionary  Settings </ h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < form  id = " settingsForm " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < div  class = " settingsCol " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 11:38:41 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < div  id = " hideIfComplete " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 11:38:41 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < span > Dictionary  Name </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < input  type = " text "  id = " dictionaryNameEdit "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label >< span > Dictionary  Details  < span  id = " showFullScreenTextbox "  class = " clickable inline-button "  onclick = " ShowFullScreenTextbox('dictionaryDescriptionEdit', 'Dictionary Details') " > Maximize </ span ></ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 23:41:01 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < textarea  id = " dictionaryDescriptionEdit " ></ textarea > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-26 18:01:05 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < span > Parts  of  Speech </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < input  type = " text "  id = " dictionaryPartsOfSpeechEdit "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 11:38:41 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < span  class = " checkboxlabel " > Allow  Duplicates </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < input  type = " checkbox "  id = " dictionaryAllowDuplicates "  onchange = " ToggleCaseSensitiveOption() "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                            < span  class = " checkboxlabel " > Case - Sensitive </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                            < input  type = " checkbox "  id = " dictionaryCaseSensitive "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-07 10:40:28 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label  class = " inline " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < span  class = " checkboxlabel " > Sort  by  Equivalent  Word </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < input  type = " checkbox "  id = " dictionarySortByEquivalent "  /> 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    </ label >  < span  class = " clickable inline-button "  onclick = 'alert("By default, your dictionary is organized alphabetically by word. Checking this box will organize it by the \"Equivalent Word\" field instead");' > ? </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 11:38:41 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-07 10:40:28 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < br > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 11:38:41 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < span  class = " checkboxlabel " > Dictionary  is  Complete </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < input  type = " checkbox "  id = " dictionaryIsComplete "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-22 11:20:33 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < ? php  if  ( $current_user  >  0 )  {   //If logged in, show the log out button. ?>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label  class = " inline " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                            < span  class = " checkboxlabel " > Dictionary  is  Public </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                            < input  type = " checkbox "  id = " dictionaryIsPublic "  onchange = " TogglePublicLink() "  /> 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 18:20:16 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        </ label >  < span  class = " clickable inline-button "  onclick = 'alert("If you save your settings with this checked, your dictionary will be viewable by anyone if they have the public link.");' > ? </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-22 11:20:33 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < div  id = " publicLink " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < div  class = " settingsCol " > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 13:23:04 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < b > Total  Entries :</ b >  < i  id = " numberOfWordsInDictionary " ></ i > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label >< button  type = " button "  onclick = " ExportDictionary() "  style = " cursor:pointer; " > Export  Current  Dictionary </ button ></ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-22 11:20:33 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < ? php  if  ( $current_user  >  0 )  {   //If logged in, show the special options. ?>
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-25 16:08:24 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < label >< span > Change  Dictionaries </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-27 23:17:52 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                            < select  id = " userDictionaries "  onchange = " ChangeDictionary(); " ></ select > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-25 16:08:24 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label >< button  type = " button "  onclick = " CreateNewDictionary() "  style = " cursor:pointer; " > Create  a  New  Dictionary </ button ></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < label > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-08 13:43:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                        < button  type = " button "  onclick = " ShowInfo('importForm') " > Import ...</ button > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-30 16:08:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < ? php  if  ( $current_user  >  0 )  {   //If logged in, show the log out button. ?>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label >< button  type = " button "  onclick = " DeleteCurrentDictionary() "  style = " cursor:pointer; " > Delete  Current  Dictionary </ button ></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < ? php  }  else  {   //If logged in, show the log out button. ?>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                        < label >< button  type = " button "  onclick = " EmptyWholeDictionary() "  style = " cursor:pointer; " > Empty  Current  Dictionary </ button ></ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < div  id = " settingsSaveButtons " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < span  id = " settingsErrorMessage " ></ span >< br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < button  type = " button "  onclick = " SaveSettings(); HideSettings(); return false; " > Save  and  Close </ button > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-08 13:30:36 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < button  type = " button "  onclick = " SaveSettings(); return false; "  style = " margin-right:2px; " > Save </ button > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 16:36:24 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ form > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-26 15:50:09 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-27 13:16:23 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2016-02-26 18:01:05 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " fullScreenTextboxScreen "  style = " display:none; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " fullScreenTextboxBackgroundFade "  onclick = " HideFullScreenTextbox() " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-26 18:13:52 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < div  id = " expandedTextboxId "  style = " display:none;width:0px;height:0px; " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-26 18:01:05 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < div  id = " fullScreenTextboxPage " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < span  id = " fullScreenTextboxScreenCloseButton "  class = " clickable "  onclick = " HideFullScreenTextbox() " > Minimize </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-27 08:54:13 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < label >< span  id = " fullScreenTextboxLabel " ></ span ></ label > 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-26 18:01:05 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            < textarea  id = " fullScreenTextbox " ></ textarea > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2016-02-26 18:01:05 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 10:28:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " infoScreen "  style = " display:none; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " infoBackgroundFade "  onclick = " HideInfo() " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " infoPage " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < span  id = " infoScreenCloseButton "  class = " clickable "  onclick = " HideInfo() " > Close </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  id = " infoText " ></ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 13:35:59 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-30 16:08:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( $current_user  >  0 )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        $user_email  =  Get_User_Email ( $current_user ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  id = " accountSettingsScreen "  style = " display:none; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " accountSettingsBackgroundFade "  onclick = " HideAccountSettings() " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " accountSettingsPage " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < span  id = " accountSettingsScreenCloseButton "  class = " clickable "  onclick = " HideAccountSettings() " > Close </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  class = " settingsCol " >< form  id = " accountSettingsForm "  method = " post "  action = " ?accountsettings " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < h2 > Account  Settings </ h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < label >< span > Email </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < input  type = " email "  id = " accountSettingsEmailField "  name = " email "  value = " <?php echo  $user_email ; ?> "  onchange = " WarnEmailChange() "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < input  type = " hidden "  id = " accountSettingsPreviousEmailField "  name = " previousemail "  value = " <?php echo  $user_email ; ?> "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < div  id = " accountSettingsEmailChangeWarning "  style = " display:none;font-weight:bold;color:#dd5500;font-size:11px;margin-bottom:10px; " > If  you  change  your  email  address ,  please  note  that  you  will  no  longer  be  able  to  log  in  with  your  old  email  address ,  < ? php  echo  $user_email ;  ?> .<br>Change it back unless you are completely sure that you want to change your email address!</div>
 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 20:31:52 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < label >< span > Public  Name  < span  class = " clickable inline-button "  onclick = " ExplainPublicName() " > ? </ span ></ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                    < input  type = " text "  id = " accountSettingsPublicNameField "  name = " publicname "  value = " <?php echo Get_Public_Name_By_Id( $current_user ); ?> "  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 18:13:45 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < label  style = " display:inline; " >< b > Allow  Emails </ b > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
											        < input  type = " checkbox "  id = " createAccountAllowEmailsField "  name = " allowemails "  checked = " checked "  /> 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 20:31:52 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
											    </ label >  < span  class = " clickable inline-button "  onclick = " ExplainAllowEmails() " > ? </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < div  id = " accountSettingsError "  style = " font-weight:bold;color:red; " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < button  type = " submit "  id = " accountSettingsSubmitButton "  onclick = " ValidateAccountSettings(); return false; " > Save  Settings </ button > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < br >< br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < h2 > Reset  Your  Password </ h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < p  style = " font-size: 12px; " > Click  the  button  below  to  reload  the  page  and  show  the  Reset  Password  form .  Filling  out  this  form  will  instantly  change  your  password ,  and  you  will  need  to  log  in  using  the  new  password  from  that  point  forward .</ p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < span  id = " resetPassword "  class = " clickable "  onclick = " this.innerHTML='Loading...';LoggedInResetPassword(); "  style = " margin-top:20px; " > Reset  Password </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            </ form ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( ! $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-12 11:24:47 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  id = " loadAfterDeleteScreen "  style = " display:none; " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " loadAfterDeleteFade " ></ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < div  id = " loadAfterDeletePage " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            < div  class = " settingsCol " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < h1 > Dictionary  Deleted </ h1 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < label > Select  dictionary  to  load :< br  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                    < select  id = " loadAfterDelete "  onchange = " ChangeDictionary(this);document.getElementById('loadAfterDeleteScreen').style.display = 'none'; " ></ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                </ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                < p > Or </ p > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-07 20:31:52 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                < label >< button  type = " button "  onclick = " CreateNewDictionary();document.getElementById('loadAfterDeleteScreen').style.display = 'none'; " > Create  a  New  Dictionary </ button ></ label > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-12 11:24:47 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    </ div > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-12 11:24:47 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-11-01 13:35:59 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ contents > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 13:23:04 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < footer > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-11 18:06:47 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        Dictionary  Builder  only  guaranteed  to  work  with  most  up - to - date  HTML5  browsers .  < a  href = " https://github.com/Alamantus/DictionaryBuilder/issues "  target = " _blank " > Report  a  Problem </ a >  |  < span  class = " clickable "  onclick = " ShowInfo('termsText') "  style = " font-size:12px; " > Terms </ span >  < span  class = " clickable "  onclick = " ShowInfo('privacyText') "  style = " font-size:12px; " > Privacy </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-30 13:23:04 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ footer > 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 10:28:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    <!--  Markdown  Parser  --> 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 13:15:37 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < script  src = " js/marked.js " ></ script > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-08 13:43:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    <!--  CSV  Parser  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < script  src = " js/papaparse.js " ></ script > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-09 22:27:41 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    <!--  JSON  Search  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < script  src = " js/defiant.js " ></ script > 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    <!--  Diacritics  Removal  for  Exports  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < script  src = " js/removeDiacritics.js " ></ script > 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-11 09:54:25 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    <!--  Helper  Functions  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < script  src = " js/helpers.js " ></ script > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    <!--  Main  Functions  --> 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-02 10:28:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < script  src = " js/dictionaryBuilder.js " ></ script > 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-11 09:54:25 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    <!--  UI  Functions  --> 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-07 17:02:35 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < script  src = " js/ui.js " ></ script > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    <!--  Public  View  Functions  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < script  src = " js/publicView.js " ></ script > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-01 17:24:43 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( $_GET [ 'adminoverride' ]  !=  " noadsortracking " )  {  include_once ( " php/google/analytics.php " );  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-21 17:52:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < script > 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-08 13:43:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    var  aboutText  =  termsText  =  privacyText  =  loginForm  =  forgotForm  =  importForm  =  " Loading... " ; 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < ? php  if  ( $is_viewing )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    window . onload  =  function  ()  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ShowPublicDictionary (); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        SetPublicPartsOfSpeech (); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        GetTextFile ( " README.md " ,  " aboutText " ,  true ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        GetTextFile ( " TERMS.md " ,  " termsText " ,  true ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        GetTextFile ( " PRIVACY.md " ,  " privacyText " ,  true ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        GetTextFile ( " LOGIN.form " ,  " loginForm " ,  false ); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        GetTextFile ( " FORGOT.form " ,  " forgotForm " ,  false ); 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-08 13:43:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        GetTextFile ( " IMPORT.form " ,  " importForm " ,  false ); 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php  }  else  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2016-03-11 09:54:25 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ready ( function ()  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        Initialize (); 
							 
						 
					
						
							
								
									
										
										
										
											2016-06-06 17:41:02 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    });     
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-21 17:52:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    </ script > 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-25 22:41:25 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								</ body > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								</ html >