Web Directory: Kids and Teens, School Time, Science, The Earth, Weather
Search:  

Browsing Kids and Teens, School Time, Science, The Earth, Weather Category 

"; // end str to search for on the main page $startbrws = "
"; // start str to search for when browsing $endbrws = '(.*)<\/a> - (.*)/", $curline, $info)) { $url = $info[1]; $title = $info[2]; $desc = $info[3]; if(preg_match("/(.*)
" ."

$title

$desc." ."
"; $output .= "
" ."

$title

$desc." ."
\n"; } else { $curline = preg_replace('//','
',$curline); $curline = preg_replace('/
/','
',$curline); $curline = preg_replace('/
/','
',$curline); echo $curline; $output .= $curline."\n"; } } else { $curline = preg_replace('/
/','
',$curline); $curline = preg_replace('/
/','
',$curline); $curline = preg_replace('/
/','
',$curline); echo $curline; $output .= $curline."\n"; } } } else echo $html; } else include("includes/404.php"); } else if( $searchstring != "" ) // the user is searching { mysql_query("INSERT INTO search_log VALUES(0,'".$_POST['search']."',NOW(),NOW())") or die("LINE 13:".mysql_error()); $searchurl = $searchurl . $searchstring . ($start == "" ? "" : "&start=" . $start ) . ($morecat == "" ? "" : "&morecat=" . $morecat); $fp = fopen( $searchurl, "r" ); $html = join( "\n", file( $searchurl ) ); fclose ( $fp ); if( strpos( $html, $noresult) != FALSE ) include("includes/search_no_result.php"); else { $startsrch = 'Open Directory Categories'; $endsrch = '
(.*)<\/a> - (.*)/", $curline, $info)) { $url = $info[1]; $title = $info[2]; $desc = $info[3]; if(preg_match("/(.*)
" ."
  • $title - $desc." ."
  • "; } else echo $curline; } else echo $curline; } } else echo $html; } } ?>