\'Click';*/ echo' '; }else if($rand==1){ /*echo '\'Click';*/ echo' '; }else{ echo' '; } } /* Common Html for all pages */ function display_top($pagetitle){ echo' '.$pagetitle.'

'; ads2(); echo'

'.$pagetitle.'

'; } function display_top2($pagetitle){ echo' '.$pagetitle.'

'.$pagetitle.'

'; } function display_bottom(){ echo '

'; /* ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_300.php'); echo $ad_network; */ echo'
©2003-'.date("Y").' Kris Brower All Rights Reserved Privacy Policy '; } /* Formats the text before entering it into the database */ function formating($text){ $text = str_replace("", '’', $text); $text = htmlentities($text,ENT_QUOTES,'UTF-8'); $text = stripslashes($text); return $text; } function format($text){ $text = nl2br($text); $text = preg_replace ("/\[i\](.*?)\[\/i\]/si", '\\1', $text); $text = str_replace(" ","  ",$text); return $text; } function display_top_noads($pagetitle){ echo' '.$pagetitle.'

'.$pagetitle.'

'; } $t = 4; function to_int($s){ $i = 0; $new = 0; while($s[$i]){ $new = $new*100 + ord($s[$i]); $i++; } return $new; } $i = to_int($p); srand($i); function mispell($s){ if(strlen($s)>3){ $int = rand(0,6); if($int <2){ $i1 = rand(1,strlen($s)); $new = substr($s,0,$i1) . substr($s,$i1-1,1) . substr($s,$i1,strlen($s)-$i1); return $new; }else if($int==2){ $i1 = rand(1,strlen($s)-1); $new = substr($s,0,$i1-1) . substr($s,$i1,strlen($s)-$i1); return $new; }else{ $i1 = rand(1,strlen($s)); $new = substr($s,0,$i1-1) . substr($s,$i1,1) . substr($s,$i1-1,1) . substr($s,$i1+1,strlen($s)-$i1-1); return $new; } }else{ return $s; } } function synonym($s){ mysql_select_db("soccdcom_wnpromysql") or die(mysql_error()); //begin $sql = mysql_query("SELECT synset_id FROM wn_synset WHERE word='$s' AND tag_count>0 ORDER BY rand()") or die(mysql_error()); while($row = mysql_fetch_array($sql)){ foreach( $row AS $key => $val ){ $$key = stripslashes( $val ); } //begin inner $sql2 = mysql_query("SELECT word FROM wn_synset WHERE word!='$word' AND synset_id='$synset_id' AND tag_count>0 ORDER BY rand()") or die(mysql_error()); while($row2 = mysql_fetch_array($sql2)){ foreach( $row2 AS $key2 => $val2 ){ $$key2 = stripslashes( $val2 ); } return $word; } //end inner } //end return $s; } function lin($s){ $j = rand(0,10); if ($j==0){ return ''.$s.''; }else{ return $s; } } function edit($s){ $s = str_replace(' ',' ',$s); $s = str_replace(' ',' ',$s); $s = str_replace(' ',' ',$s); $temp = explode(' ',$s); $new = ''; $i = 0; while($temp[$i]||$temp[$i+1]){ $new .= " " . synonym($temp[$i]); $i++; } $s = str_replace(' ',' ',$s); $s = str_replace(' ',' ',$s); $s = str_replace(' ',' ',$s); $temp = explode(' ',$s); $new = ''; $i = 0; while($temp[$i]||$temp[$i+1]){ $j = rand(0,6); if($j ==0){ $new .= " " . mispell($temp[$i]); }else{ $new .= " " . $temp[$i]; } $i++; } $new = str_replace(' ',' ',$new); $new = str_replace(' ',' ',$new); $new = str_replace(' ',' ',$new); $temp = explode(' ',$new); $new = ''; $i = 0; while($temp[$i]||$temp[$i+1]){ $j = strlen($temp[$i]); if($j <4){ $new .= " " . lin($temp[$i]); }else{ $new .= " " . $temp[$i]; } $i++; } return $new; } mysql_select_db("soccdcom_soccersoccer"); $sql = mysql_query("SELECT id FROM sentence"); $num = mysql_num_rows($sql); $r = rand(40,70); for($i=1;$i<$r;$i++){ $id=rand(1,$num); mysql_select_db("soccdcom_soccersoccer"); $sql = mysql_query("SELECT sentence FROM sentence WHERE id='$id'"); while($row = mysql_fetch_array($sql)){ foreach( $row AS $key => $val ){ $$key = stripslashes( $val ); }} if ($t == 4){ display_top($sentence); $t = 3; } echo edit($sentence).'. '; $one = rand(3,6); if(ceil($i/$one)==($i/$one)){ echo '

'; } } display_bottom(); ?>