"; $title = "Galimatias Concept Oy Ab - sivukartta"; $q_drop = "SELECT * FROM www_pages ORDER BY keyword"; $r_drop = db_query($q_drop); while ($drop = mysql_fetch_array($r_drop)) { $dropdown[] = $drop; } $query = "SELECT * FROM www_pages WHERE parent='$_REQUEST[id]'"; $query = "SELECT * FROM www_pages WHERE parent='-1' LIMIT 5"; $result = db_query($query); while ($page = mysql_fetch_array($result)) { $count++; $body .= ''; //$body .= $count . ". " .$page['title'] . '  '; $body .= $page['title'] . '  '; $query2 = "SELECT * FROM www_pages WHERE parent='".$page['id']."' ORDER BY ord LIMIT 5"; $result2 = db_query($query2); $cnt2 = mysql_num_rows($result2); if ($cnt2) { $count2 = 0; while ($page2 = mysql_fetch_array($result2)) { $count2++; if ($count2 < $cnt2) { $body .= ''; } else { $body .= ''; } $body .= $count2 . ". ". $page2['title'] . '  '; $query3 = "SELECT * FROM www_pages WHERE parent='".$page2['id']."' ORDER BY ord"; $result3 = db_query($query3); $cnt3 = mysql_num_rows($result3); if ($cnt3) { $count3 = 0; while ($page3 = mysql_fetch_array($result3)) { $count3++; if ($count2 < $cnt2) { if ($count3 < $cnt3) { $body .= ''; } else { $body .= ''; } } else { if ($count3 < $cnt3) { $body .= ' '; } else { $body .= ' '; } } $body .= $count2.".".$count3 . " " . $page3['title'] . '  '; //--- $query4 = "SELECT * FROM www_pages WHERE parent='".$page3['id']."' ORDER BY ord"; $result4 = db_query($query4); $cnt4 = mysql_num_rows($result4); if ($cnt4) { $count4 = 0; while ($page4 = mysql_fetch_array($result4)) { $count4++; if ($count3 < $cnt3) { if ($count4 < $cnt4) { $body .= ''; } else { $body .= ''; } } else { /// if ($count4 < $cnt4) { $body .= '  '; } else { $body .= '  '; } /// } $body .= $count4 . ". " . $page4['title'] . '  '; } } //--- } } } } } $body .= ""; function map($address) { $str = '
Loading...
'; return($str); } function munge($address) { $address = strtolower($address); $coded = ""; $unmixedkey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@"; $inprogresskey = $unmixedkey; $mixedkey=""; $unshuffled = strlen($unmixedkey); for ($i = 0; $i <= strlen($unmixedkey); $i++) { $ranpos = rand(0,$unshuffled-1); $nextchar = $inprogresskey{$ranpos}; $mixedkey .= $nextchar; $before = substr($inprogresskey,0,$ranpos); $after = substr($inprogresskey,$ranpos+1,$unshuffled-($ranpos+1)); $inprogresskey = $before.''.$after; $unshuffled -= 1; } $cipher = $mixedkey; $shift = strlen($address); $txt = "
 

 

 

 

 

 



Tulostettava versio Kartta