Subversion Repositories Applications.reseau

Rev

Rev 10 | Rev 15 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 12
Line 110... Line 110...
110
		if (isset($_POST['action']) && $_POST['action'] != '') {
110
		if (isset($_POST['action']) && $_POST['action'] != '') {
111
			$this->action = $_POST['action'];
111
			$this->action = $_POST['action'];
112
		}
112
		}
113
		// contenu du formulaire
113
		// contenu du formulaire
114
		if (isset($_POST['description']) && $_POST['description'] != '') {
114
		if (isset($_POST['description']) && $_POST['description'] != '') {
115
			$this->description = $_POST['description'];
115
			$this->description = stripslashes($_POST['description']);
116
		}
116
		}
117
		if (isset($_POST['gravite']) && $_POST['gravite'] != '') {
117
		if (isset($_POST['gravite']) && $_POST['gravite'] != '') {
118
			$this->gravite = $_POST['gravite'];
118
			$this->gravite = $_POST['gravite'];
119
		}
119
		}
120
		if (isset($_POST['navigateur']) && $_POST['navigateur'] != '') {
120
		if (isset($_POST['navigateur']) && $_POST['navigateur'] != '') {
121
			$this->navigateur = $_POST['navigateur'];
121
			$this->navigateur = stripslashes($_POST['navigateur']);
122
		}
122
		}
123
		if (isset($_POST['systeme']) && $_POST['systeme'] != '') {
123
		if (isset($_POST['systeme']) && $_POST['systeme'] != '') {
124
			$this->systeme = $_POST['systeme'];
124
			$this->systeme = stripslashes($_POST['systeme']);
125
		}
125
		}
126
		if (isset($_POST['coordonnees']) && $_POST['coordonnees'] != '') {
126
		if (isset($_POST['coordonnees']) && $_POST['coordonnees'] != '') {
127
			$this->coordonnees = $_POST['coordonnees'];
127
			$this->coordonnees = stripslashes($_POST['coordonnees']);
128
		}
128
		}
129
	}
129
	}
Line 130... Line 130...
130
 
130
 
131
	// ajoute une entrée au log
131
	// ajoute une entrée au log
Line 159... Line 159...
159
		$contenu .= "Description:\n  " . str_replace("\n", "\n  ", $this->description);
159
		$contenu .= "Description:\n  " . str_replace("\n", "\n  ", $this->description);
Line 160... Line 160...
160
 
160
 
161
		$entetes = 'Content-Type: text/plain; charset="utf-8" ';
161
		$entetes = 'Content-Type: text/plain; charset="utf-8" ';
Line 162... Line 162...
162
		$entetes .= 'Content-Transfer-Encoding: 8bit';
162
		$entetes .= 'Content-Transfer-Encoding: 8bit';
163
 
163
 
Line 164... Line 164...
164
		$sujet = "[Remarque] - " . substr($this->description, 0, 25) .
164
		$sujet = substr($this->description, 0, 25) .
165
			"..." . " (" . ($this->coordonnees == '' ? 'inconnu' : $this->coordonnees) . ")";
165
			"..." . " (" . ($this->coordonnees == '' ? 'inconnu' : $this->coordonnees) . ")";
166
 
166