HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/public_html/aw/spelling-bee/index.php
<?php

if (empty($_GET['syl'])) $syl = 1;
else $syl = $_GET['syl'];

$nowords = false;

$words[1] = array(
				array("trudged","The man trudged through the forest."),
				array("gushed","The water gushed out of the toilet."),
				array("chores","Alexa gets a treat when her chores are done."),
				array("squirmed","Squidward squirmed in his chair"),
				array("skim","do you like two percent or skim milk?"),
				array("span","fruit flies have a very short life span"),
				array("midst","the ring of power is hidden in the midst of the forest"),
				array("dazed","Jimmy was dazed after getting hit in the head with the bowling ball"),
				array("scent","the scent of the candle was like autumn leaves"),
				array("whined","alexa whined because it was her bedtime"),
				array("hatched","Phinneus and Ferb hatched another crazy plan"),
				array("flick","Please do not flick your boogers."),
				array("grooms","Katy Perry grooms her tigers fur"),
				array("dense","we could not see through the dense fog"),
				array("gaze","the deer stared at me with a frightened gaze"),
				array("strength","Daddy showed his strength when he lifted that car out of the ditch")
			);

$words[2] = array(
				array("pleasant","It is a pleasant day!"),
				array("modeled","The woman modeled the clothes."),
				array("murmured","I couldnt hear her, she murmured."),
				array("loyal","Her loyal dog was beside her."),
				array("sunset","The sunset was beautiful"),
				array("muffin","that was a delicious muffin"),
				array("pumpkin","Ree ree calls me pumpkin"),
				array("hidden","we couldnt see the picture, it was hidden"),
				array("basket","the basket was woven with care"),
				array("conquer","Plankton would like to conquer bikini bottom"),
				array("plenty","There are plenty of Crabby Patties for everyone"),
				array("dismiss","Misses Puff will dismiss the class early"),
				array("patchwork","The quilt was a lovely patchwork of fabric"),
				array("ponder","Dad likes to ponder the deep questions of the universe"),
				array("freezing","It was freezing in the crusty crab"),
				array("equipped","Sponge Bobs kitchen was well equipped"),
				array("dancing","Visions of sugar plums were dancing in her head"),
				array("quitting","Pappy is quitting smoking"),
				array("proper","It is not proper to eat your boogers"),
				array("boarding","Sawyer went to boarding school"),
				array("certain","I was certain that my underwear was clean"),
				array("culture","The city has a unique culture"),
				array("tutor","The tutor teaches, not toots"),
				array("diverse","The buffet had a diverse array of foods"),
				array("freedom","The servant wished for freedom"),
				array("speedboat","The speedboat was very fast"),
				array("cocoa","Im coo coo for cocoa puffs"),
				array("daydream","Alexa will often daydream in class"),
				array("apply","The high school student had to apply for college"),
				array("research","Alexa wants to research the best kind of bubble gum"),
				array("hinder","the television can hinder alexa from her homework"),
				array("attain","where did you attain this old arrowhead?"),
				array("brothers","The brothers were in trouble for their prank"),
				array("shabby","the governers home wasnt too shabby"),
				array("sidewalk","the sidewalk had lots of cracks in it"),
				array("teaspoon","a teaspoon of salt can go a long way"),
				array("thumbtack","i sat on a thumbtack and it hurt like crazy!"),
				array("notebook","madison doodled hearts in her notebook"),
				array("babble","i dont understand the babies babble"),
				array("wanders","the camel wanders the desert alone"),
				array("obey","children should obey their parents and teachers"),
				array("patrol","the beach patrol protects the swimmers"),
				array("cashier","the cashier forgot to give me my change"),
				array("friendship","the friendship between the peanut butter and jelly will never end"),
				array("finished","Donna finished her donut"),
				array("children","the children worked in groups on the project"),
				array("charging","The iPad was charging on the table"),
				array("signal","Drivers must stop when a traffic signal is red."),
				array("alert","The alert warned Justin Bieber of the oncoming storm"),
				array("chatter","the childrens chatter drove the parents crazy"),
				array("conflict","The conflict between the boys was over the last ho ho"),
				array("eyebrows","Grammy accidentally shaved off Pappys eyebrows"),
				array("voyage","Sanjay and Craig went on a voyage to slurpee city"),
				array("cloudy","The weather man said it was cloudy with a chance of meatballs"),
				array("avoid","I would like to avoid the meatball storm"),
				array("banquet","the banquet had delicious cake"),
				array("famine","the famine caused many people to be very hungry"),
				array("strangers","keep away from strangers Alexa"),
				array("describe","please describe your perfect boyfriend"),
				array("destroy","Doofenschmirtz would like to destroy perry the platypus"),
				array("instruct","the doctor will instruct you how to vacuum your ear wax"),
				array("layer","Alexa wore an extra layer of clothes on the freezing cold day")
			);
			
$words[3] = array(
				array("coincidence","It is a coincidence that our birthdays are the same day."),
				array("recited","Mackenzi recited the poem"),
				array("frustrated","Mr. Salt is very frustrated."),
				array("imitated","The monkey imitated Alexa"),
				array("resistance","The mob was met with resistance from the police."),
				array("assembly","Saint Barts had a school assembly for Ronald McDonald"),
				array("autographed","Harry Styles autographed Alexas forehead"),
				array("anticipation","We waited for the Katy Perry concert with great anticipation"),
				array("happening","Hey man whats happening?"),
				array("resources","We didnt pack enough, we ran out of resources"),
				array("uniforms","Saint Barts school children wear uniforms"),
				array("literacy","A high literacy rate is important for our state"),
				array("wheelbarrow","Dads wheelbarrow is rusty"),
				array("persevere","his family persevered with his treatment"),
				array("confidence","She had high confidence that she did well on her test"),
				array("talented","Alexa is a talented singer"),
				array("invention","this invention will change the world"),
				array("disappointed","Jack was disappointed with his bad test score"),
				array("ambitious","Making the olympics is an ambitious goal for the bobsled team"),
				array("families","the families went on vacation together"),
				array("libraries","All libraries are closed for the holiday"),
				array("packages","the packages did not arrive on time"),
				array("melodies","the birds sang sweet melodies"),
				array("embarrass","parents often embarrass their children"),
				array("elevated","i couldnt reach the trophy, it was elevated on a high shelf"),
				array("collapses","if this bridge collapses we will fall into the canyon"),
				array("contribution","her contribution to the project did not go unnoticed"),
				array("initiative","alexa showed initiative when she got ready for school on her own"),
				array("sandpaper","use sandpaper to make that wood smooth"),
				array("suspicious","the man in the cape and hat was very suspicious"),
				array("demonstrate","can you demonstrate how this pencil sharpener works?"),
				array("accompany","may I accompany you to the dance?"),
				array("competent","Bob is a competent builder, he can get the job done."),
				array("ferocious","He roared a ferocious roar"),
				array("communicate","The Face time app allows us to communicate"),
				array("dominant","The girls were dominant in their big win over Saint Sebastian"),
				array("boiling","The boiling water was ready for the pasta"),
				array("reaction","Alexas reaction to the monster in the haunted house was hilarious"),
				array("generous","Her donation to Animal Friends was very generous"),
				array("agreeable","the terms of the deal were very agreeable"),
				array("curiosity","her curiosity led her into a career as a scientist"),
				array("ingredients","The cookie recipe had some unique ingredients"),
				array("momentum","Even small distractions can break your momentum when studying")
			);

$iknowit = file('iknowit.txt');		
	
$ctr = 0;

do {
	if ($syl == "s") $syl = rand(1,3);
	$wordNum = rand(0, (count($words[$syl])-1) );
	$spellWord = $words[$syl][$wordNum][0];
	$spellSent = $words[$syl][$wordNum][1];
	$ctr++;
	
	if ($ctr >= 5000) {
		$nowords = true;
		$spellSent = $spellWord = '';
		break;
	}
	
} while ( in_array($spellWord."\n", $iknowit) );


?>

<html>
<head>
	<title>3rd Grade Spelling Bee</title>
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
	
	<style type="text/css">
		body {
			font-family: 'Comic Sans MS';
		}
		.word-bg {
			background: url(rainbow-wheel.jpg) bottom center;
			font-size: 88px;
			font-weight: bold;
			text-align: center;
			padding:60px 0;
			cursor:pointer;
		}
		.word-text {
			visibility: hidden;
			display: inline-block;
		}
		.sentence { display:none; }
		iframe { width:1px; height:1px; border:0; }
		button { font-size:20px;font-weight:bold;padding:10px 30px; }
	</style>
	
	<script type="text/javascript">
		$(document).ready(function() {
		
			//$('#iframe-sent').attr('src', 'http://alanwaldron.com/spelling-bee/blank.html' );
			
			$('.word-bg').click(
				function() {
                if ($('.word-text').css('visibility')=='hidden'){
                    $('.word-text').css('visibility', 'visible');
                } else {
                    $('.word-text').css('visibility', 'hidden');
                }}
			);
			
			$('#iknowthisone').click(
				function() {
					var knowit = confirm("Are you sure you don't want to see this word again?");
					if (knowit) {
						$('#loader').load('http://alanwaldron.com/spelling-bee/iknowit.php?w=<?=$spellWord?>');
					}
				}
			);
			
			$('#iframe-sent').delay(2000).queue(function(next) { $('#iframe-sent')
				.attr('src', 'http://translate.google.com/translate_tts?tl=en&q=<?=urlencode($spellSent)?>'); next(); });
				
			$('#play-word').click(function() {
				$('#iframe-word').attr('src', $('#iframe-word').attr('src') );			
			});
			
			$('#play-sent').click(function() {
				$('#iframe-sent').attr('src', 'http://translate.google.com/translate_tts?tl=en&q=<?=urlencode($spellSent)?>' );
			});
			    
		});
	</script>

</head>

<h1>Spelling Bee!</h1>

	<?php if ($nowords): ?>
		<h2>There are no words to show you! You know them all!!</h2>

				<button id="next1" onclick="window.location.href='/spelling-bee?syl=1'">1 Syllable Word</button><br/>
				<br/><button id="next2" onclick="window.location.href='/spelling-bee?syl=2'">2 Syllable Word</button><br/>
				<br/><button id="next3" onclick="window.location.href='/spelling-bee?syl=3'">3+ Syllable Word</button>
				<!-- <br/><button id="next4" onclick="window.location.href='/spelling-bee?syl=s'">Surprise Me!</button> -->

	<?php else: ?>
	
		<div class="word-bg">
			<div class="word-text"><?=$spellWord?></div>
		</div>
	
		<center>
		<p>
		<table>
		<tr><td>Hear Word:</td><td>Hear Sentence:</td><td>Next Word:</td></tr>
		<tr><td valign="top"><button id="play-word">Word</button></td>
			<td valign="top"><button id="play-sent" style="">Sentence</button></td>
			<td valign="top"><button id="next1" onclick="window.location.href='/spelling-bee?syl=1'">1 Syllable Word</button>
				<br/><button id="next2" onclick="window.location.href='/spelling-bee?syl=2'">2 Syllable Word</button>
				<br/><button id="next3" onclick="window.location.href='/spelling-bee?syl=3'">3+ Syllable Word</button>
				<!-- <br/><button id="next4" onclick="window.location.href='/spelling-bee?syl=s'">Surprise Me!</button> -->
			</td>
		</tr>
		</table>
		
		<br/><br/><br/>
		
			<a href="#" id="iknowthisone">I know this one, don't show it to me again.</a>
			<iframe id="iframe-word" src="http://translate.google.com/translate_tts?tl=en&q=<?=$spellWord?>&#8221"></iframe>
			<iframe id="iframe-sent" src="http://alanwaldron.com/spelling-bee/blank.html"></iframe>
			<br/><br/><br/>
		</center>
	
	<?php endif; ?>

	<div id="loader"></div>
</html>

<?php



?>