$val){$$key=$val;} error_reporting(0); include('/home/paip195869/domains/monomaniacs.nl/mysqli_open_mm.inc'); include('/home/paip195869/domains/monomaniacs.nl/public_html'.$tmm.'/inc_functies.inc'); $eqry=mysql_query("SELECT * FROM MM_Editors WHERE IP=INET_ATON('".$_SERVER['REMOTE_ADDR']."')"); $erow=mysql_fetch_array($eqry); $keywords="ktm,motor,motorcycle,supermoto,supermotard,sumo,lc4,620,625,640,660,690,sm,smr,duke,duke1,dukei,dukeii,duke2,dukeiii,duke3"; $metatitle="Monomaniacs : Single minded supermotos"; if($item){ $item=str_replace('_',' ',$item); $item=str_replace('-',' ',$item); } if($$page){ $$page=str_replace('-',' ',$$page); $$page=str_replace('_',' ',$$page); } if(!$submit){ mysql_query("UPDATE MM_Visits SET Visits=Visits+1 WHERE Page='".$page."' && Main='".$$page."' && Item='".$item."' && Editor='".$erow['Naam']."'") or die (mysql_error()); if(!mysql_affected_rows() && $$page!='palette.htm' && $item!='palette.htm'){ mysql_query("INSERT INTO MM_Visits (JaarMaand,Page,Main,Item,Editor,Visits) values (DATE_FORMAT(CURDATE(),'%Y%m'),'".$page."','".$$page."','".$item."','".$erow['Naam']."',1)") or die (mysql_error()); } } if($page){ switch($page){ case 'mpeople': $metatitle="MonoManiacs : ".ucfirst(str_replace('-',' ',$mpeople." ~ ".$item));break; case 'visuals': $metatitle="MonoManiacs : ".ucfirst(str_replace('-',' ',$visual));break; default : $metatitle="MonoManiacs : ".ucfirst(str_replace('-',' ',$page.' '.$mpeople.$visuals.' '.$item));break; } } ?>