Subversion Repositories Applications.reseau

Rev

Rev 103 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 103 Rev 106
Line 157... Line 157...
157
	}
157
	}
Line 158... Line 158...
158
 
158
 
159
	// ajoute une entrée au log
159
	// ajoute une entrée au log
160
	protected function log() {
160
	protected function log() {
161
		$contenu = ''.
161
		$contenu = ''.
162
			date("Y-m-d h:i:s") . "\n".
162
			date("Y-m-d H:i:s") . "\n".
163
			"Pour: " . $this->serviceDestination . " <" . $this->emailDestination . ">\n".
163
			"Pour: " . $this->serviceDestination . " <" . $this->emailDestination . ">\n".
164
			"Page: " . $this->pageSource . "\n".
164
			"Page: " . $this->pageSource . "\n".
165
			"User agent: " . $_SERVER['HTTP_USER_AGENT'] . "\n".
165
			"User agent: " . $_SERVER['HTTP_USER_AGENT'] . "\n".
166
			"Contributeur: " . $this->coordonnees . "\n".
166
			"Contributeur: " . $this->coordonnees . "\n".
Line 174... Line 174...
174
	}
174
	}
Line 175... Line 175...
175
 
175
 
176
	// envoie un email
176
	// envoie un email
177
	protected function email() {
177
	protected function email() {
178
		$contenu = ''.
178
		$contenu = ''.
179
			date("Y-m-d h:i:s") . "\n".
179
			date("Y-m-d H:i:s") . "\n".
180
			"Pour: " . $this->serviceDestination . " <" . $this->emailDestination . ">\n".
180
			"Pour: " . $this->serviceDestination . " <" . $this->emailDestination . ">\n".
181
			"Page: " . $this->pageSource . "\n".
181
			"Page: " . $this->pageSource . "\n".
182
			"User agent: " . $_SERVER['HTTP_USER_AGENT'] . "\n".
182
			"User agent: " . $_SERVER['HTTP_USER_AGENT'] . "\n".
183
			"Contributeur: " . $this->coordonnees . "\n".
183
			"Contributeur: " . $this->coordonnees . "\n".