if(isset($Rpage) && $Rpage!=""){ $mainpage=$Rpage; $url = "?url=".$Rpage; if($lang!="") $url .= "&lang=".$lang; }else $mainpage="home.html"; ?>