protected function generateFileHeader()
	{
		$head = array();

		// Build the log file header.

		// If the no php flag is not set add the php die statement.
		if (empty($this->options['text_file_no_php']))
		{
			// Blank line to prevent information disclose: https://bugs.php.net/bug.php?id=60677
			$head[] = '#';
			$head[] = '#<?php die(\'Forbidden.\'); ?>';
		}

		$head[] = '#Date: ' . gmdate('Y-m-d H:i:s') . ' UTC';
		$head[] = '';

		// Prepare the fields string
		$head[] = '#Fields: ' . strtolower(str_replace('}', '', str_replace('{', '', $this->format)));
		$head[] = '';

		return implode("\n", $head);
	}
protected function generateFileHeader()
	{
		$head = array();

		// Build the log file header.

		// If the no php flag is not set add the php die statement.
		if (empty($this->options['text_file_no_php']))
		{
			// Blank line to prevent information disclose: https://bugs.php.net/bug.php?id=60677
			$head[] = '#';
			$head[] = '#<?php die(\'Forbidden.\'); ?>';
		}

		$head[] = '#Date: ' . gmdate('Y-m-d H:i:s') . ' UTC';
		$head[] = '';

		// Prepare the fields string
		$head[] = '#Fields: ' . strtolower(str_replace('}', '', str_replace('{', '', $this->format)));
		$head[] = '';

		return implode("\n", $head);
	}
protected function generateFileHeader ( ) { $ head = array ( ) ; // Build the log file header. // If the no php flag is not set add the php die statement. if ( empty ( $ this -> options [ 'text_file_no_php' ] ) ) { // Blank line to prevent information disclose: https://bugs.php.net/bug.php?id=60677 $ head [ ] = '#' ; $ head [ ] = '#<?php die(\'Forbidden.\'); ?>' ; } $ head [ ] = '#Date: ' . gmdate ( 'Y-m-d H:i:s' ) . ' UTC' ; $ head [ ] = '' ; // Prepare the fields string $ head [ ] = '#Fields: ' . strtolower ( str_replace ( '}' , '' , str_replace ( '{' , '' , $ this -> format ) ) ) ; $ head [ ] = '' ; return implode ( "\n" , $ head ) ; }
Method to generate the log file header.

@return  string  The log file header

@since   1.0
Method to generate the log file header .