"; elseif($_POST['more']=="reloadSaved") echo ""; else echo ""; if(!empty($puzzleTitle)) echo "
".$puzzleTitle."
"; ##### Print out the grid $border = ($_POST['wordList']=="bottom") ? "bottom" : "right"; $echoThis = ""; if($_POST['useLetters']) { $ch = 0; $chars = array(); for($tok=strlen($inserted)-1;$tok>=0;$tok--) { for($kot=strlen($inserted[$tok])-1;$kot>=0;$kot--) { $chars[$ch] = $inserted[$tok][$kot]; $ch++; } } $chars = array_values(array_unique($chars)); $chars = implode("",$chars); } $charsLen = strlen($chars)-1; $hideThis = "style=\"color:".$backgroundColor."\""; $hiding = 1; if($_POST['centerGrid']) { $echoThis .= "" : ""; } else { $echoThis .= ($grid[$x][$y][0]=="") ? "" : ""; } $hiding = ($hiding) ? 0 : 1; } if ($_POST['wordList']=="right") $echoThis .= ""; $echoThis .= ""; } if ($_POST['wordList']=="bottom") $echoThis .= ""; $echoThis .= "
"; } $echoThis .= "
"; $echoThis .= (!$_POST['wordsWindow'] && !$_POST['hideWords']) ? "" : "
"; for($x=1,$ran=1;$x<=$rows;$x++) { $echoThis .= ""; $hiding = ($hiding) ? 0 : 1; for($y=1;$y<=$cols;$y++,$ran++) { $random = mt_rand(0,$charsLen); if($gridWords[$x][$y]!="") { $gridWordsTemp = explode(",",$gridWords[$x][$y]); $c = count($gridWordsTemp)-1; $p=array(); $m=0; foreach($gridWordsTemp as $g) { for($q=0;$q".$ranChar."
".$gridChar."".$ranChar."".$gridChar." 
 
"; $echoThis .= ""; ##### List words on grid page if ($_POST['wordList']=="bottom") { $echoThis .= ""; $margin = "top"; } else { $margin = "left"; } if(!$_POST['hideWords'] || !$_POST['forPrint']) { if(!$_POST['wordsWindow']) { $echoThis .= ""; $echoThis .= (!$_POST['hideWords']) ? ""; } } $echoThis .= "
" : "
"; $count=count($inserted); for($x=0,$y=1;$x<$count;$x++) { $xyArrayTemp = explode(",",$xyArray[$inserted[$x]]); $c = count($xyArrayTemp)-1; $p=$u=""; foreach($xyArrayTemp as $g) { $u .= $g.","; } $u = substr($u,0,-2); for($q=0;$qdocument.write(unescape('%3C')+'span id=\"".$inserted[$x]."r\" onmousedown=\"".$xyTemp.";r(\'".$inserted[$x]."\',v);\">(?)'+unescape('%3C')+'/span>')" : ""; if($_POST['lowerCase'] && $languages[$language]!="Numbers") { $inWord = strtr($inserted[$x], ${$languages[$language]}[0], ${$languages[$language]}[1]); $inWord = strtolower($inWord); } else { $inWord = $inserted[$x]; } $echoThis .= "".$print."".$inWord."
"; $t = ($_POST['wordList']=="bottom") ? 15*$y-1 : $rows*$y-1; if($x==$t) { $echoThis .= "
"; $y++; } } $echoThis .= "
"; echo (!$_POST['forPrint'] && !$_POST['wordsWindow']) ? "\n\n\n\n" : $echoThis; #if($_POST['centerGrid']) { echo ""; } echo "\n\n
"._SAVE_TEXT.":



"._SAVE_INFO."
"; echo "
"._PAUSED."

"._PRESS_ENTER."
"; } else { header("Content-type: text/xml; charset=ISO-8859-1"); echo "\n"; echo " ".$rows." ".$cols." "; foreach($inserted as $in) { echo " ".$in." ".substr($xyArray[$in],0,-1)." "; } echo " "; for($x=1;$x<=$rows;$x++) { for($y=1;$y<=$cols;$y++) { echo ""; echo "".$x.""; echo "".$y.""; echo ($grid[$x][$y][0]=="") ? "".$chars[mt_rand(0,strlen($chars)-1)]."" : "".$grid[$x][$y][0].""; echo ""; } } echo "\n"; } } ##### List words in new window elseif ($_GET['act']=="listwords") { $tempWords = str_replace(",","",$_GET['wordlist']); if(strlen($tempWords)>$maxCharsLimit) haltError(_TOO_MANY_CHARS); unset($tempWords); echo ""; echo "
"; $sep_word = explode(",", $_GET['wordlist']); $x=1; foreach($sep_word as $word) { echo $word."
"; if($x==40) { echo "
"; $x=1; } else { $x++; } } echo "
"; } ##### Show custom grid form elseif ($_GET['act']=="customGrid") { ?>
(10-60): (10-60):







o();eventHandle();document.getElementById('_1').style.backgroundColor = 'green';"> "; for($b=1;$b<=$cols;$b++,$c++) { echo " "; } echo ""; } ?>


     





(10-60): (10-60):

:
  
  



:

".$fileStripped.""; } } closedir($dh); } } $wordlist_options = ""; if($wordlist==1 && $useMysql==1) { $link = mysql_connect($host,$username,$password); mysql_select_db($database); $sql = "SELECT * FROM FSWF_config"; $res = mysql_query($sql); while($t = mysql_fetch_assoc($res)) { $wordlist_options .= "

Postagens aleatória

mutum mg
sexta-feira, 15 de fevereiro de 2013
quarta-feira, 9 de janeiro de 2013
 
Alternar Rodapé
Topo