Subversion Repositories ALCASAR

Rev

Rev 3235 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3235 Rev 3252
Line 143... Line 143...
143
	}
143
	}
144
	fclose($file_conf);
144
	fclose($file_conf);
145
// Get current version
145
// Get current version
146
$INSTALLEDVERSION = $conf['VERSION'];
146
$INSTALLEDVERSION = $conf['VERSION'];
147
setlocale (LC_TIME, $locale_time);
147
setlocale (LC_TIME, $locale_time);
-
 
148
$date = new DateTime();
148
$SYSTEM_DATE = strftime('%A, %e %B %Y, %T %Z');
149
$date_formatter = new IntlDateFormatter(
-
 
150
    $Langue[0],
-
 
151
    IntlDateFormatter::FULL,
-
 
152
    IntlDateFormatter::FULL,
-
 
153
    date_default_timezone_get(),
-
 
154
    IntlDateFormatter::GREGORIAN
-
 
155
);
149
$nb_users = request ('user');
156
$nb_users = request ('user');
150
$nb_groups  = request ('group');
157
$nb_groups  = request ('group');
151
$nb_online_users = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
158
$nb_online_users = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
152
 
159
 
153
// LAN Status (Is connected and has IP)
160
// LAN Status (Is connected and has IP)
Line 196... Line 203...
196
echo $l_version." : ".$INSTALLEDVERSION."<br>\n";
203
echo $l_version." : ".$INSTALLEDVERSION."<br>\n";
197
echo $l_available." : ".$AVAILABLEDVERSION."<br>\n";
204
echo $l_available." : ".$AVAILABLEDVERSION."<br>\n";
198
echo "</div><div class=\"panel-cell\">";
205
echo "</div><div class=\"panel-cell\">";
199
echo $l_users." : ".$nb_users." / ".$nb_online_users."<br>\n";
206
echo $l_users." : ".$nb_users." / ".$nb_online_users."<br>\n";
200
echo $l_groups." : ".$nb_groups."<br>\n";
207
echo $l_groups." : ".$nb_groups."<br>\n";
201
echo $l_system_date." : ".$SYSTEM_DATE."<br>\n";
208
echo $l_system_date." : ".$date_formatter->format($date)."<br>\n";
202
?>
209
?>
203
			</div>
210
			</div>
204
		</div>
211
		</div>
205
	</div>
212
	</div>
206
	<div class="panel">
213
	<div class="panel">