HEX
Server: Apache/2.4.6 (CloudLinux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16
System: Linux s1.gigspace.ru 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
User: samok164 (6070)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /var/www/samok164/data/www2/culture-style.ru/rzgn/addongoogle.php
<?php


	$r4_google_log_file = "{$r4_cfg_root}seenbygoogle.rzg";
	
	if (!file_exists($r4_google_log_file))
		touch($r4_google_log_file);
	
	$r4_is_google = preg_match('~GoogleBot~isx', $r4_ua);
	
	if ($r4_is_google)
	{
		if (is_writable($r4_google_log_file))
		{
			$r4_fp = fopen($r4_google_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);
			}
		}
	}