Subversion Repositories ALCASAR

Rev

Rev 847 | Rev 912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 847 Rev 872
Line 207... Line 207...
207
			
207
			
208
			if ($res){
208
			if ($res){
209
				$connection_history.= "<ul>";
209
				$connection_history.= "<ul>";
210
				while(($row = @da_sql_fetch_array($res,$config))){
210
				while(($row = @da_sql_fetch_array($res,$config))){
211
					$connected = "";
211
					$connected = "";
212
					$start_conn = date_create($row[acctstarttime]);
212
					$start_conn = date_create($row['acctstarttime']);
213
					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (";
213
					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (";
214
					if ($row[acctstoptime] == "") {
214
					if ($row['acctstoptime'] == "") {
215
						$connected = $l_connected;
215
						$connected = $l_connected;
216
					}else{
216
					}else{
217
						$connected = secondsToDuration($row[acctsessiontime]);
217
						$connected = secondsToDuration($row['acctsessiontime']);
218
					}
218
					}
219
					$connection_history.= "$connected)</li>";
219
					$connection_history.= "$connected)</li>";
220
//					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
220
//					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
221
				}
221
				}
222
				$connection_history.="</ul>";
222
				$connection_history.="</ul>";
Line 229... Line 229...
229
			$res_2 = @da_sql_query($link_2,$config,$sql_2); // on affiche pas les erreurs
229
			$res_2 = @da_sql_query($link_2,$config,$sql_2); // on affiche pas les erreurs
230
			$a_connection = "";
230
			$a_connection = "";
231
			if ($res_2){
231
			if ($res_2){
232
				while(($row_2 = @da_sql_fetch_array($res_2,$config))){
232
				while(($row_2 = @da_sql_fetch_array($res_2,$config))){
233
					$a_connected = 1;
233
					$a_connected = 1;
234
					if ($row_2[acctstoptime] == "") $a_connected = $a_connected + 1;
234
					if ($row_2['acctstoptime'] == "") $a_connected = $a_connected + 1;
235
				}
235
				}
236
				if ($a_connected > 1){
236
				if ($a_connected > 1){
237
					$a_connection = $l_a_connection." ".$a_connected." ".$l_a_connection_time;
237
					$a_connection = $l_a_connection." ".$a_connected." ".$l_a_connection_time;
238
				}
238
				}
239
			}
239
			}