if (strlen($_SERVER['REQUEST_URI'])>1) {// если не главная страница... //$file=".".$_SERVER["REQUEST_URI"]."/index.html";} $file=".".$_SERVER["REQUEST_URI"];} else { $file="./index.html";} //echo $file; $content = file_get_contents($file); //$content = file_get_contents(".".$_SERVER['REQUEST_URI']); include_once($_SERVER['DOCUMENT_ROOT'].'/mainlinkkod/mainlink.php'); $o['USERNAME'] = '9D9CFBF8B81BCC596939FE85E91691C3'; $client_lnk = new MLClient($o); //echo $client_lnk->build_links(); $content = str_ireplace("", "", $content); $content = str_ireplace("