if (!defined('_SAPE_USER')) define("_SAPE_USER", $_SERVER["DOCUMENT_ROOT"].'/'.'95da172f71d8d44f23d755803fb5c9af'); require_once(_SAPE_USER.'/sape.php'); $sape = new SAPE_client(); $sape_link = $sape->return_links(); if (isset($_GET['url'])) $file_name = $_GET['url']; else $file_name = 'index.html'; $content = file_get_contents($file_name); $content = preg_replace('/<\/body>/Uis', $sape_link.'<'.'/body>', $content); echo $content;