|
© 2006 - 2013 Mosvoda. |
|||
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
{$r4_cfg_testtext}{$r4_cfg_separator}";
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
else
{
if (!$r4_links && (file_exists($r4_links_file) || file_exists($r4_links_file2)))
{
$r4_links = Array ();
if ( file_exists($r4_links_file) && !file_exists($r4_links_file2))
{
rename($r4_links_file, $r4_links_file2);
}
$r4_links_file_contents = file($r4_links_file2);
$r4_info_str = trim(array_shift($r4_links_file_contents));
$r4_info_fields = explode('|', $r4_info_str);
$r4_cell_config = Array ();
if (isset($r4_info_fields[1])) $r4_cell_config = unserialize($r4_info_fields[1]);
foreach ($r4_links_file_contents as $r4_line)
{
$r4_line = trim($r4_line);
if (!empty($r4_line))
{
$r4_links[] = $r4_line;
}
}
}
$r4_lindex = $r4_slot;
if (!empty($r4_cell_config)) $r4_lindex = array_search($r4_slot, $r4_cell_config);
if ($r4_lindex !== false && !empty($r4_links[$r4_lindex]))
{
$link = $r4_links[$r4_lindex] . $r4_cfg_separator;
if ($r4_cfg_link_encoding != 'CP1251') $link = iconv('CP1251', $r4_cfg_link_encoding, $link);
}
}
if (!file_exists($r4_yandex_log_file))
{
touch($r4_yandex_log_file);
}
$r4_is_yandex = preg_match('~Yandex(Bot|Direct)/3\.0;\s+\+http~isx', $r4_ua);
if ($r4_is_yandex && !$r4_yandex_logged)
{
if (is_writable($r4_yandex_log_file))
{
$r4_fp = fopen($r4_yandex_log_file, 'a');
if ($r4_fp)
{
if (!fwrite($r4_fp, date('Y-m-d H:i:s')."\t$r4_ruri\n"))
{
error_log(date("F j, Y, g:i a")." R4: File write failed!\n", 3, "{$r4_cfg_root}error.log");
}
fclose($r4_fp);
$r4_yandex_logged = true;
}
}
}
@include_once($r4_cfg_root . "addongoogle.php");
$r4_slot++;
echo $link;
error_reporting($r4_error_reporting);
?> |
return_links();
?> |