Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 37 → Rev 40

/gestion/admin/network.php
0,0 → 1,181
<?php
/* written by steweb57 */
 
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_network_title = "Configuration réseau";
$l_network_title1 = "Gestion de la configuration réseau";
$l_eth0_legend = "Eth0 (Interface connectée à Internet)";
$l_eth1_legend = "Eth1 (Réseau de consultation)";
$l_internet_legend = "INTERNET";
$l_ip_adr = "Adresse IP";
$l_ip_mask = "Masque";
$l_ip_router = "Passerelle";
$l_ip_public = "Adresse IP public";
$l_ip_dns1 = "DNS1";
$l_ip_dns2 = "DNS2";
} else {
$l_network_title = "Network configuration";
$l_network_title1 = "Network configuration managment";
$l_eth0_legend = "Eth0 (Internet connected interface)";
$l_eth1_legend = "Eth1 (Private network)";
$l_internet_legend = "INTERNET";
$l_ip_adr = "IP Address";
$l_ip_mask = "Mask";
$l_ip_router = "Router";
$l_ip_public = "Public IP address";
$l_ip_dns1 = "DNS1 :";
$l_ip_dns2 = "DNS2";
}
 
/********************************************************************
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
*********************************************************************/
 
define ("ALCASAR_CHILLI", "/etc/chilli/config");
define ("ALCASAR_ETH0", "/etc/sysconfig/network-scripts/default-ifcfg-eth0");
define ("ALCASAR_ETH1", "/etc/sysconfig/network-scripts/ifcfg-eth1");
 
/********************************************************************
* TEST DES FICHIERS DE CONFIGURATION *
*********************************************************************/
 
//Test de présence et des droits en lecture des fichiers de configuration.
if (!file_exists(ALCASAR_CHILLI)){
exit("Fichier de configuration ".ALCASAR_CHILLI." non présent");
}
if (!file_exists(ALCASAR_ETH0)){
exit("Fichier de configuration ".ALCASAR_ETH0." non présent");
}
if (!file_exists(ALCASAR_ETH0)){
exit("Fichier de configuration ".ALCASAR_ETH1." non présent");
}
if (!is_readable(ALCASAR_ETH0)){
exit("Vous n'avez pas les droits de lecture sur le fichier ".ALCASAR_ETH0);
}
if (!is_readable(ALCASAR_ETH0)){
exit("Vous n'avez pas les droits de lecture sur le fichier ".ALCASAR_ETH1);
}
 
/********************************************************************
* Lecture du fichier ALCASAR_CHILLI *
*********************************************************************/
//Lecture du fichier ALCASAR_ETH0
$ouvre=fopen(ALCASAR_CHILLI,"r");
if ($ouvre){
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if (strpos($tampon,"=")!==false){
$tmp = explode("=",$tampon);
$chilli[$tmp[0]] = $tmp[1];
}
}
}else{
exit("Erreur d'ouverture du fichier ".ALCASAR_CHILLI);
}
fclose($ouvre);
 
/********************************************************************
* Lecture du fichier ALCASAR_ETH0 *
*********************************************************************/
 
//Lecture du fichier ALCASAR_ETH0
$ouvre=fopen(ALCASAR_ETH0,"r");
if ($ouvre){
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if (strpos($tampon,"=")!==false){
$tmp = explode("=",$tampon);
$eth0[$tmp[0]] = $tmp[1];
}
}
}else{
exit("Erreur d'ouverture du fichier ".ALCASAR_ETH0);
}
fclose($ouvre);
 
/********************************************************************
* Lecture du fichier ALCASAR_ETH1 *
*********************************************************************/
 
//Lecture du fichier ALCASAR_ETH1
$ouvre=fopen(ALCASAR_ETH1,"r");
if ($ouvre){
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if (strpos($tampon,"=")!==false){
$tmp = explode("=",$tampon);
$eth1[$tmp[0]] = $tmp[1];
}
}
}else{
exit("Erreur d'ouverture du fichier ".ALCASAR_ETH1);
}
fclose($ouvre);
 
 
/********************************************************************
* Recherche IP public *
*********************************************************************/
$IP_PUB = exec ("wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1");
 
 
 
/************************
* TO DO *
*************************/
//modification de la conf réseau, cmd : ifconfig eth0 .....
//synchro de la modification réseau dans les différentes couches d'alcasar
//gestion du dhcp (affichage,modification, ajout @static)
 
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><!-- written by steweb57 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $l_network_title; ?></title>
<link rel="stylesheet" href="../css/style.css" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo $l_network_title1; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<fieldset>
<legend><?php echo $l_eth0_legend; ?></legend>
<table>
<tr><td><?php echo $l_ip_adr." : </td><td>".$eth0["IPADDR"];?></td></tr>
<tr><td><?php echo $l_ip_mask." : </td><td>".$eth0["NETMASK"];?></td></tr>
<tr><td><?php echo $l_ip_router." : </td><td>".$eth0["GATEWAY"];?></td></tr>
</table>
</fieldset>
<br />
<fieldset>
<legend><?php echo $l_eth1_legend; ?></legend>
<table>
<tr><td><?php echo $l_ip_adr." : </td><td>".$eth1["IPADDR"];?></td></tr>
<tr><td><?php echo $l_ip_mask." : </td><td>".$eth1["NETMASK"];?></td></tr>
</table>
</fieldset>
<br />
<fieldset>
<legend><?php echo $l_internet_legend; ?></legend>
<table>
<tr><td><?php echo $l_ip_public." : </td><td>".$IP_PUB;?></td></tr>
<tr><td><?php echo $l_ip_dns1." : </td><td>".$eth0["DNS1"];?></td></tr>
<tr><td><?php echo $l_ip_dns2." : </td><td>".$eth0["DNS2"];?></td></tr>
</table>
</fieldset>
<br />
</td></tr>
</table>
</body>
</html>
/gestion/admin/ldap.php
0,0 → 1,334
<?php
/* written by steweb57 */
/****************************************************************
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
*****************************************************************/
 
define ("ALCASAR_RADIUS_SITE", "/etc/raddb/sites-available/alcasar");
define ("ALCASAR_RADIUS_MODULE_LDAP", "/etc/raddb/modules/ldap");
 
/********************************************************
* TEST DES FICHIERS DE CONFIGURATION *
*********************************************************/
 
//Test de présence et des droits en lecture des fichiers de configuration.
if (!file_exists(ALCASAR_RADIUS_SITE)){
exit("Fichier ".ALCASAR_RADIUS_SITE." non présent");
}
if (!file_exists(ALCASAR_RADIUS_MODULE_LDAP)){
exit("Fichier ".ALCASAR_RADIUS_MODULE_LDAP." non présent");
}
if (!is_readable(ALCASAR_RADIUS_SITE)){
exit("Vous n'avez pas les droits d'écriture sur le fichier ".ALCASAR_RADIUS_SITE);
}
if (!is_readable(ALCASAR_RADIUS_MODULE_LDAP)){
exit("Vous n'avez pas les droits d'écriture sur le fichier ".ALCASAR_RADIUS_MODULE_LDAP);
}
 
/********************************************************
* VARIABLES DE FORMULAIRE *
*********************************************************/
 
if (isset($_GET['erreur'])&&(!($_GET['erreur']==""))) $erreur = $_GET['erreur']; else $erreur = false;//valeur de $erreur non controlée car ne sert qu'un afficher un msg.
if (isset($_GET['update'])&&($_GET['update']=="ok")) $update = true; else $update = false;
 
$message = "";
if ((bool)$erreur){
$message = "<div align=\"center\"><br />";
$message.="<strong><font color=\"red\">".$erreur."</font></strong><br />";
$message.="<br /></div>";
}else{
if ($update){
$message = "<div align=\"center\"><br />";
$message.="<strong><font color=\"red\">Mise à jour des paramètres ldap réalisé avec succès</font><br /></strong>";
$message.="<br /></div>";
}
}
 
/****************************************************************
* VARIABLES RESULTATS *
*****************************************************************/
//Création des variables nécessaires
//variables ldap
$ldap = "";
$ldap_server = ""; //IP ou nom DNS du seveur LDAP (ou AD)
//par défaut : server = "ldap.your.domain"
$ldap_identity = ""; //nom d'utilisateur qui intérroge le ldap (vide = anonyme)
//par défaut : # identity = "cn=admin,o=My Org,c=UA"
$ldap_password = ""; //mot de passe de l'utilisateur intérrogeant le ldap
//par défaut : # password = mypass
$ldap_basedn = ""; //DN de base ou l'on recherchera les utilisateurs
//par défaut : basedn = "o=My Org,c=UA"
$ldap_filter = ""; //permet entre autre de déterminer l'attribut utilisé pour la recherche d'un utilisateur dans LDAP
//attribut uid pour un ldap standard, samaccountname pour AD
//par défaut : filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
$ldap_base_filter = ""; //
//par défaut : # base_filter = "(objectclass=radiusprofile)"
 
 
/********************************************************
* Fichier ALCASAR_RADIUS_SITE *
*********************************************************/
//variables pour le parcourt des fichiers
//$ouvre : fichier ouvert
//$tampon : ligne en cours
//
//Lecture du fichier /etc/raddb/sites-available/alcasar
$continue = true;
$ouvre=fopen(ALCASAR_RADIUS_SITE,"r");
if ($ouvre){
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if ((preg_match('`^([\s#]*ldap[\s]*)$`',$tampon))&&$continue){
//Récupération dans la section authorise de la ligne ldap
//valeur : ldap = authentification ldap authorisée
//valeur : #ldap = authentification ldap non authorisée
//section authenticat utile ?
//section post-auth non utilisée
$ldap = trim($tampon);
$continue = false;//arret de la boucle lorsque l'on trouve le premier élément "ldap" dans le fichier
}
}
}else{
exit("Erreur d'ouverture du fichier /etc/raddb/sites-available/alcasar");
}
fclose($ouvre);
 
/****************************************************************
* Fichier ALCASAR_RADIUS_MODULE_LDAP *
*****************************************************************/
//Lecture du fichier /etc/raddb/modules/ldap
$ouvre=fopen(ALCASAR_RADIUS_MODULE_LDAP,"r");
if ($ouvre){
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if (preg_match('`^([\s#]*server(\s*)=)`',$tampon)){
//if (preg_match('`^((\s*)(#*)(\s*)server\b(\s*)=)`i',$tampon)){
//Récupération de la ligne contenant le paramettre ldap server
$ldap_server = ltrim($tampon);
} elseif (preg_match('`^([\s#]*identity(\s*)=)`',$tampon)){
//Récupération de la ligne contenant le paramettre ldap identity
$ldap_identity = ltrim($tampon);
} elseif (preg_match('`^([\s#]*password(\s*)=)`',$tampon)){
//Récupération de la ligne contenant le paramettre ldap password
$ldap_password = ltrim($tampon);
} elseif (preg_match('`^([\s#]*basedn(\s*)=)`',$tampon)){
//Récupération de la ligne contenant le paramettre ldap basedn
$ldap_basedn = ltrim($tampon);
} elseif (preg_match('`^([\s#]*filter(\s*)=)`',$tampon)){
//Récupération de la ligne contenant le paramettre ldap filter
$ldap_filter = ltrim($tampon);
} elseif (preg_match('`^([\s#]*base_filter(\s*)=)`',$tampon)){
//Récupération de la ligne contenant le paramettre ldap base_filter
$ldap_base_filter = ltrim($tampon);
}
}
}else{
exit("Erreur d'ouverture du fichier /etc/raddb/modules/ldap");
}
fclose($ouvre);
 
//mise en forme des parametres ldap récupérés
//A FAIRE : test de contrôle des valeurs $tmp[O] pour être sur d'avoir les bonnes lignes du fichier de conf !!!
 
//pas de test de la variable ldap car tester dans la comparaison du formulaire ci-dessous (si $ldap = "ldap" authentification LDAP activée, elle est désactivé).
$tmp = explode("=",$ldap_server,2);
$ldap_server = str_replace("\"","",$tmp[1]); //suppression des " dans la chaine
$ldap_server = trim($ldap_server); //suppression des espaces avant et après la chaine
 
$tmp = explode("=",$ldap_identity,2);
$ldap_identity = str_replace("\"","",$tmp[1]); //suppression des " dans la chaine
$ldap_identity = trim($ldap_identity); //suppression des espaces avant et après la chaine
 
$tmp = explode("=",$ldap_password,2);
$ldap_password = str_replace("\"","",$tmp[1]); //suppression des " dans la chaine
$ldap_password = trim($ldap_password); //suppression des espaces avant et après la chaine
 
$tmp = explode("=",$ldap_basedn,2);
$ldap_basedn = str_replace("\"","",$tmp[1]); //suppression des " dans la chaine
$ldap_basedn = trim($ldap_basedn); //suppression des espaces avant et après la chaine
 
$tmp = explode("=",$ldap_filter,3);
$ldap_filter = str_replace("\"","",$tmp[1]); //suppression des " dans la chaine
$ldap_filter = trim($ldap_filter); //suppression des espaces avant et après la chaine
$ldap_filter = str_replace("(","",$ldap_filter);//suppression du ( dans la chaine
 
$tmp = explode("=",$ldap_base_filter,2);
$ldap_base_filter = str_replace("\"","",$tmp[1]); //suppression des " dans la chaine
$ldap_base_filter = trim($ldap_base_filter); //suppression des espaces avant et après la chaine
 
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_ldap_title = "Authentification externe : LDAP";
$l_ldap_legend = "Authentification LDAP";
$l_ldap_auth_enable_label = "Activer l'authentification LDAP:";
$l_ldap_YES = "OUI";
$l_ldap_NO = "NON";
$l_ldap_server_label = "Nom du serveur LDAP:";
$l_ldap_server_text = "Nom ou IP du serveur LDAP éventuel.";
$l_ldap_base_dn_label = "DN de la base LDAP:";
$l_ldap_base_dn_text = "DN est le 'Distinguished Name', il situe les informations utilisateurs, exemple: 'o=Mon entreprise, c=FR'.";
$l_ldap_filter_label = "Identifiant LDAP:";
$l_ldap_filter_text = "Clé utilisée pour la recherche d'un identifiant de connexion, exemple: 'uid', 'sn', etc. Pour un AD mettre 'sAMAccountName'.";
$l_ldap_base_filter_label = "Filtre de l'utilisateur LDAP:";
$l_ldap_base_filter_text = "Sur option, vous pouvez en plus limiter les objets recherchés avec des filtres additionnels. Par exemple 'objectClass=posixGroup' aurait comme conséquence l'utilisation de '(&amp;(uid=username)(objectClass=posixGroup))'";
$l_ldap_user_label = "Utilisateur LDAP dn:";
$l_ldap_user_text = "Laissez vide pour utiliser un accès invité. Si renseigné, il se connectera au serveur LDAP en tant qu'un utilisateur spécifié, exemple: 'uid=Utilisateur,ou=MonUnité,o=MaCompagnie,c=FR'. Requis pour les serveurs possédant un Active Directory.";
$l_ldap_password_label = "Mot de passe LDAP:";
$l_ldap_password_text = "Laissez vide pour un accès invité. Sinon, indiquez le mot de passe de connexion. Requis pour les serveurs possédant un Active Directory.";
$l_ldap_submit = "Enregistrer";
$l_ldap_reset = "Annuler";
} else {
$l_ldap_title = "External authentication : LDAP";
$l_ldap_legend = "LDAP authentication";
$l_ldap_auth_enable_label = "Use LDAP authentication :";
$l_ldap_YES = "YES";
$l_ldap_NO = "NO";
$l_ldap_server_label = "LDAP server name:";
$l_ldap_server_text = "This is the hostname or IP address of the LDAP server.";
$l_ldap_base_dn_label = "LDAP base dn:";
$l_ldap_base_dn_text = "This is the 'Distinguished Name', locating the user information, e.g. 'o=My Company,c=US'.";
$l_ldap_filter_label = "LDAP uid:";
$l_ldap_filter_text = "This is the key under which to search for a given login identity, e.g. 'uid', 'sn', etc.. For AD use 'sAMAccountName'.";
$l_ldap_base_filter_label = "LDAP user filter:";
$l_ldap_base_filter_text = "Optionally you can further limit the searched objects with additional filters. For example 'objectClass=posixGroup' would result in the use of '(&amp;(uid=username)(objectClass=posixGroup))'";
$l_ldap_user_label = "LDAP user dn:";
$l_ldap_user_text = "Leave blank to use anonymous binding. If filled uses the specified distinguished name on login attempts to find the correct user, e.g. 'uid=Username,ou=MyUnit,o=MyCompany,c=US'. Required for Active Directory Servers.";
$l_ldap_password_label = "LDAP password:";
$l_ldap_password_text = "Leave blank to use anonymous binding. Else fill in the password for the above user. Required for Active Directory Servers.";
$l_ldap_submit = "Save";
$l_ldap_reset = "Reset";
}
/********************************
* TO DO *
*********************************/
//internationnalisation à mettre en haut du fichier pour internationnaliser les erreurs de script!
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><!-- written by steweb57 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $l_ldap_title; ?></title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="../css/ldap.css" type="text/css">
<script language="javascript">
function testLdapActif(){
//List des ID des éléments à désactiver
var listToDisables = new Array("ldap_server","ldap_dn","ldap_filter","ldap_base_filter","ldap_user","ldap_password");
 
if (document.getElementById("auth_enable").value == "1"){
for (var i=0;i<listToDisables.length;i++){
document.getElementById(listToDisables[i]).style.backgroundColor ="#ffffff";
document.getElementById(listToDisables[i]).disabled = false;
}
} else {
for (var i=0;i<listToDisables.length;i++){
document.getElementById(listToDisables[i]).style.backgroundColor ="#c0c0c0";
document.getElementById(listToDisables[i]).disabled = true;
}
}
}
</script>
</head>
<body onLoad="testLdapActif();">
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><th><?php echo $l_ldap_legend; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width=1 height=2></td></tr>
</table>
<table width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<form name="config_ldap" method="post" action="update_ldap.php">
<fieldset>
<legend><?php echo $message; ?></legend>
<dl>
<dt>
<label for="auth_enable"><?php echo $l_ldap_auth_enable_label; ?></label>
</dt>
<dd>
<select id="auth_enable" name="auth_enable" onchange="testLdapActif();">
<?php if ($ldap == "ldap") {
echo "<option value=\"1\" selected=\"selected\">$l_ldap_YES</option>";
echo "<option value=\"0\">$l_ldap_NO</option>";
}else{
echo "<option value=\"1\">$l_ldap_YES</option>";
echo "<option value=\"0\" selected=\"selected\">$l_ldap_NO</option>";
}?>
</select>
</dd>
</dl>
<dl>
<dt>
<label for="ldap_server"><?php echo $l_ldap_server_label; ?></label>
<br />
<?php echo $l_ldap_server_text; ?></dt>
<dd>
<input id="ldap_server" size="40" name="ldap_server" value="<?php echo htmlspecialchars($ldap_server); ?>"/>
</dd>
</dl>
<dl>
<dt>
<label for="ldap_dn"><?php echo $l_ldap_base_dn_label; ?></label>
<br />
<?php echo $l_ldap_base_dn_text; ?></dt>
<dd>
<input id="ldap_dn" size="40" name="ldap_base_dn" value="<?php echo htmlspecialchars($ldap_basedn); ?>" />
</dd>
</dl>
<dl>
<dt>
<label for="ldap_filter"><?php echo $l_ldap_filter_label; ?></label>
<br />
<?php echo $l_ldap_filter_text; ?></dt>
<dd>
<input id="ldap_filter" size="40" name="ldap_filter" value="<?php echo htmlspecialchars($ldap_filter); ?>" />
</dd>
</dl>
<dl>
<dt>
<label for="ldap_base_filter"><?php echo $l_ldap_base_filter_label; ?></label>
<br />
<?php echo $l_ldap_base_filter_text; ?></dt>
<dd>
<input id="ldap_base_filter" size="40" name="ldap_base_filter" value="<?php echo htmlspecialchars($ldap_base_filter); ?>" />
</dd>
</dl>
<dl>
<dt>
<label for="ldap_user"><?php echo $l_ldap_user_label; ?></label>
<br />
<?php echo $l_ldap_user_text; ?></dt>
<dd>
<input id="ldap_user" size="40" name="ldap_user" value="<?php echo htmlspecialchars($ldap_identity); ?>" />
</dd>
</dl>
<dl>
<dt>
<label for="ldap_password"><?php echo $l_ldap_password_label; ?></label>
<br />
<?php echo $l_ldap_password_text; ?></dt>
<dd>
<input id="ldap_password" type="password" size="40" name="ldap_password" value="<?php echo htmlspecialchars($ldap_password);?>" />
</dd>
</dl>
<p>
<input id="submit" type="submit" value="<?php echo $l_ldap_submit; ?>" name="submit" />
 
<input id="reset" type="reset" value="<?php echo $l_ldap_reset; ?>" name="reset" />
</p>
 
</fieldset>
</form>
<br />
</td></tr>
</table>
</body>
</html>
/gestion/admin/auth_exceptions.php
0,0 → 1,221
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy - 3abtux -->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>Exceptions</TITLE>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<body>
<?
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_trusted_sites = "Sites Internet de confiance";
$l_trusted_sites_explain1 = "Entrez ici les noms de site ou d'URLs Internet pouvant &ecirc;tre joints sans authentification";
$l_trusted_sites_explain2 = "Entrez un noms par ligne";
$l_trusted_sites_list = "Liste de sites Internet de confiance";
$l_trusted_urls_list = "Liste d'URLs Internet de confiance";
$l_trusted_mac = "&Eacute;quipements de confiance";
$l_trusted_mac_explain1 = "Entrez ici les adresses MAC des &eacute;quipements autorisés à joindre Internet sans authentification";
$l_trusted_mac_explain2 = "Entrez une adresse MAC par ligne";
$l_trusted_mac_list = "Liste des adresses MAC de confiance";
$l_submit = "Enregistrer";
}
else {
$l_trusted_sites = "Trusted Internet sites";
$l_trusted_sites_explain1 = "Enter name of Internet sites or URLS that could be joined without authentication";
$l_trusted_sites_explain2 = "Enter one name per line";
$l_trusted_sites_list = "Trusted Internet sites list";
$l_trusted_urls_list = "Trusted Internet URLs list";
$l_trusted_mac = "Trusted Equipments";
$l_trusted_mac_explain1 = "Enter MAC address of equipments that could contact Internet without authentification";
$l_trusted_mac_explain2 = "Enter one Mac address per line";
$l_trusted_mac_list = "Trusted MAC addresses list";
$l_submit = "Submit";
}
if (isset($_POST['choix'])){
switch ($_POST['choix'])
{
case 'MAJ_UAMALLOWED' :
$nb_domain=0;
$tab_domains = explode ("\n", $_POST['trusted_domains']);
$fichier=fopen("/etc/chilli/alcasar-uamdomain","w+");
fputs ($fichier, "HS_UAMDOMAINS=\"");
foreach ($tab_domains as $domain ){
$tr_domain=trim($domain);
$nb_domain++;
if ($tr_domain != ""){
if ($nb_domain>1) fputs ($fichier, ",".$tr_domain);
else fputs ($fichier, $tr_domain);
}
}
fputs ($fichier, "\"");
fclose($fichier);
unset($_POST['trusted_domains']);
unset($nb_domain);
$nb_url=0;
$tab_urls = explode ("\n", $_POST['trusted_urls']);
$fichier=fopen("/etc/chilli/alcasar-uamallowed","w+");
fputs ($fichier, "HS_UAMALLOW=\"");
foreach ($tab_urls as $url ){
$tr_url=trim($url);
$nb_url++;
if ($tr_url != ""){
if ($nb_url>1) fputs ($fichier, ",".$tr_url);
else fputs ($fichier, $tr_url);
}
}
fputs ($fichier, "\"");
fclose($fichier);
unset($_POST['trusted_urls']);
unset($nb_url);
exec ("sudo service chilli restart");
unset ($_POST['choix']);
break;
case 'MAJ_MACALLOWED' :
$nb_mac=0;
$tab_macs = explode ("\n", $_POST['trusted_macs']);
$fichier=fopen("/etc/chilli/alcasar-macallowed","w+");
fputs ($fichier, "HS_MACALLOW=\"");
foreach ($tab_macs as $macs ){
$tr_macs=trim($macs);
$nb_mac++;
if ($tr_macs != ""){
if ($nb_mac>1) fputs ($fichier, ",".$tr_macs);
else fputs ($fichier, $tr_macs);
}
}
fputs ($fichier, "\"");
fclose($fichier);
unset($_POST['trusted_macs']);
unset($nb_mac);
exec ("sudo service chilli restart");
unset ($_POST['choix']);
break;
}
}
?>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo $l_trusted_sites ;?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center><?php
echo "$l_trusted_sites_explain1 <BR>";
echo "$l_trusted_sites_explain2" ;
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";?>
<TABLE cellspacing=2 cellpadding=3 border=1>
<tr><td width=50% height=100% align=center>
<H3><?php echo $l_trusted_sites_list ;?></H3>
exemple1 : www.domain1.org<BR>
exemple2 : domain2.net<BR>
<?php
echo "<textarea name='trusted_domains' rows=5 cols=40>";
$trusted_domains_file="/etc/chilli/alcasar-uamdomain";
$ouvre=fopen($trusted_domains_file,"r");
if ($ouvre)
{
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
$domains = substr($tampon,15,-1);
$tab_domains = explode (",", $domains);
foreach ($tab_domains as $domain ){
if ($domain != "\"") echo $domain."\n";
}
}
}
else {
echo "failed to open $trusted_domains_file";
}
fclose($ouvre);
echo "</textarea>";
?>
</td>
<td width=50% height=100% align=center>
<H3><?php echo $l_trusted_urls_list ;?></H3>
exemple1 : www.domain3.net/admin/index.htm<BR>
exemple2 : domain4.org/~polux/index.html<BR>
<?php
echo "<textarea name='trusted_urls' rows=5 cols=40>";
$trusted_urls_file="/etc/chilli/alcasar-uamallowed";
$ouvre=fopen($trusted_urls_file,"r");
if ($ouvre)
{
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
$urls = substr($tampon,13,-1);
$tab_urls = explode (",", $urls);
foreach ($tab_urls as $url ){
if ($url != "\"") echo $url."\n";
}
}
}
else {
echo "failed to open $trusted_urls_file";
}
fclose($ouvre);
echo "</textarea>";
?>
</td></tr>
</TABLE>
<input type='hidden' name='choix' value='MAJ_UAMALLOWED'>
<input type='submit' value='<?php echo $l_submit ;?>'>
</FORM>
</td></tr>
</TABLE>
</TABLE>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo $l_trusted_mac ;?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center><?php
echo "$l_trusted_mac_explain1 <BR>";
echo "$l_trusted_mac_explain2";
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";?>
<TABLE cellspacing=2 cellpadding=3 border=1>
<tr><td width=60% height=100% align=center>
<H3><?php echo $l_trusted_mac_list ;?></H3>
exemple : 12-2f-36-a4-df-43<BR>
<?php
echo "<textarea name='trusted_macs' rows=5 cols=40>";
$trusted_macs_file="/etc/chilli/alcasar-macallowed";
$ouvre=fopen($trusted_macs_file,"r");
if ($ouvre)
{
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
$macs = substr($tampon,13,-1);
$tab_macs = explode (",", $macs);
foreach ($tab_macs as $macs ){
if ($macs != "\"") echo $macs."\n";
}
}
}
else {
echo "failed to open $trusted_macs_file";
}
fclose($ouvre);
echo "</textarea>";
?>
</td></tr>
</TABLE>
<input type='hidden' name='choix' value='MAJ_MACALLOWED'>
<input type='submit' value='<?php echo $l_submit ;?>'>
</FORM>
</td></tr>
</TABLE>
</BODY>
</HTML>
/gestion/admin/web_filter2.php
0,0 → 1,96
<?php
function echo_file ($filename)
{
if (file_exists($filename))
{
if (filesize($filename) != 0)
{
$pointeur=fopen($filename,"r");
$tampon = fread($pointeur, filesize($filename));
fclose($pointeur);
echo $tampon;
}
}
else
{
echo "erreur d'ouverture du fichier $filename";
}
}
?>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><th>
<?
echo "$l_main_bl";
echo_file ("/var/www/html/VERSION-BL");
echo ")";
?>
</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<BR><FORM action='/admin/web_filter.php' method=POST>
<input type='hidden' name='choix' value='MAJ_bl'>
<?php
echo "<input type='submit' value='$l_download'>";
echo " ($l_warning)";
?>
</FORM>
</td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><th><?echo "$l_secondary_bl";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<FORM action='/admin/web_filter.php' method='POST'>
<TABLE cellspacing=2 cellpadding=3 border=1>
<tr><td width=50% height=100% align=center>
<H3>Liste des noms de domaine interdits</H3>
Entrez ici des noms de domaine inconnus de la liste noire principale<BR>
et que vous d&eacute;sirez bloquer<BR>
Entrez un nom de domaine par ligne (exemple : domaine.org)
<textarea name='OSSI_bl_domains' rows=5 cols=40>
<?php
echo_file ("/etc/dansguardian/lists/blacklists/ossi/domains");
?>
</textarea>
</td><td width=50% height=100% align=center>
<H3>Liste des noms de domaine r&eacute;abilit&eacute;s</H3>
Entrez ici des noms de domaine bloqu&eacute;s par la liste noire principale<BR>
que vous d&eacute;sirez r&eacute;habiliter<BR>
Entrez un nom de domaine par ligne (exemple : domaine2.org)
<textarea name='OSSI_wl_domains' rows=5 cols=40>
<?php
echo_file ("/etc/dansguardian/lists/exceptionsitelist");
?>
</textarea>
</td></tr>
<tr><td width=50% height=100% align=center>
<H3>Liste des URLs interdites</H3>
Entrez ici des URLs inconnues de la liste noire principale<BR>
que vous d&eacute;sirez bloquer<BR>
Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)
<textarea name='OSSI_bl_urls' rows=5 cols=40>
<?php
echo_file ("/etc/dansguardian/lists/blacklists/ossi/urls");
?>
</textarea>
</td><td width=50% height=100% align=center>
<H3>Liste des URLs r&eacute;abilit&eacute;s</H3>
Entrez ici des URLs bloqu&eacute;es par la liste noire principale<BR>
que vous d&eacute;sirez r&eacute;habiliter<BR>
Entrez une URL par ligne (exemple : www.domaine2.org/perso/index.htm)
<textarea name='OSSI_wl_urls' rows=5 cols=40>
<?php
echo_file ("/etc/dansguardian/lists/exceptionurllist");
?>
</textarea>
</td></tr>
</TABLE>
<input type='hidden' name='choix' value='MAJ_OSSI'>
<input type='submit' value='Enregistrer les modifications'>
</FORM>
</td></tr>
</TABLE>
/gestion/admin/filter_exceptions.php
0,0 → 1,115
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy -->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>ALCASAR Filter Exceptions</TITLE>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<body>
<?
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_exception_IP = "Exception au filtrage";
$l_exception_txt="Entrez ici les adresses IP des stations du réseau de consultation ne subissant pas de filtrage<BR>Entrez une adresse IP par ligne";
$l_submit = "Enregistrer";
}
else {
$l_exception_IP = "Network filtering exceptions";
$l_exception_txt="Put here the stations IP address that won't be filtered<BR>Put one IP per row";
$l_submit = "Submit";
}
if (isset($_POST['choix'])){
switch ($_POST['choix'])
{
case 'IP_exceptions' :
// réencodage iso + format unix + rc fin de ligne (ouf...)
$ip_list = str_replace("\r\n", "\n", utf8_decode($_POST['exception_list']));
if ($ip_list[strlen($ip_list)-1] != "\n") { $ip_list[strlen($ip_list)]="\n";} ;
unset($_POST['exception_list']);
$pointeur = fopen("/etc/dansguardian/dansguardian.conf", "r");
$result = false;
if ($pointeur)
{
while (!feof($pointeur))
{
$ligne = fgets($pointeur);
if (preg_match("/^reportinglevel = 3/", $ligne, $r))
{
$result = true;
break;
}
}
}
fclose($pointeur);
if ($result)
{
$fichier=fopen("/etc/dansguardian/lists/exceptioniplist", "w+");
fputs($fichier,$ip_list);
fclose($fichier);
exec ("sudo /usr/local/sbin/alcasar-bl.sh -reload");
}
$pointeur = fopen("/usr/local/bin/alcasar-iptables.sh", "r");
$result = False ;
if ($pointeur)
{
while (!feof($pointeur))
{
$ligne = fgets($pointeur);
if (preg_match('/^FILTERING="yes"/', $ligne, $r))
{
$result = True ;
break;
}
}
}
fclose($pointeur);
if ($result)
{
$fichier=fopen("/usr/local/etc/alcasar-filter-exceptions", "w+");
fputs($fichier, $ip_list);
fclose($fichier);
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
}
break;
}
}
?>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo $l_exception_IP ;?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<TABLE width=70% border=0>
<?php
echo "<form action='$_SERVER[PHP_SELF]' method='POST'>";
echo " $l_exception_txt";
echo "<BR><textarea name='exception_list' rows=5 cols=40>";
$filename="/usr/local/etc/alcasar-filter-exceptions";
if (file_exists($filename))
{
if (filesize($filename) != 0)
{
$pointeur=fopen($filename,"r");
$tampon = fread($pointeur, filesize($filename));
fclose($pointeur);
echo $tampon;
}
}
else
{
echo "erreur d'ouverture du fichier $filename";
}
echo "</textarea><BR>";
?>
<input type='hidden' name='choix' value='IP_exceptions'>
<input type='submit' value='Enregistrer les modifications'></CENTER>
</FORM>
</td></tr>
</TABLE>
</BODY>
</HTML>
/gestion/admin/net_filter.php
0,0 → 1,131
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy -->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>Network Filter</TITLE>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<body>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
<?
$services_list="/usr/local/etc/alcasar-services";
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_title = "Filtrage réseau";
$l_netfilter_on="Le filtrage réseau est actuellement activé";
$l_netfilter_off="Le filtrage réseau est actuellement désactivé";
$l_switch_on="Activer le filtrage r&eacute;seau";
$l_switch_off="Désactiver le filtrage réseau";
$l_comment_on="(choisissez les protocoles que vous voulez autoriser)";
$l_comment_off="(les usagers authentifiés peuvent exploiter tous les protocoles réseau)";
$l_protocols="Protocoles autorisés";
$l_error_open_file="Erreur d'ouverture du fichier";
$l_proto_port="Protocole / port";
$l_enabled="Autorisé";
$l_save_modif="Enregistrer les modifications";
}
else {
$l_title = "Network Filter";
$l_netfilter_on="Actually, the network filter is enable";
$l_netfilter_off="Actually, the network filter is disable";
$l_switch_on="Switch the Network Filter on";
$l_switch_off="Switch the Network Filter off";
$l_comment_on="(choose the authorized network protocols)";
$l_comment_off="(all the network protocols are allowed for authenticated users)";
$l_protocols="Authorize protocols";
$l_error_open_file="Error opening the file";
$l_proto_port="Protocol / port";
$l_enabled="Enable";
$l_save_modif="Save modifications";
}
echo "
<tr><th>$l_title</th></tr>
<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1 height=2></td></tr>
</TABLE>";
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
switch ($choix)
{
case 'NF_On' :
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
break;
case 'NF_Off' :
exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
break;
case 'change' :
$tab=file($services_list);
if ($tab)
{
//on active|désactive les protocoles
$pointeur=fopen($services_list,"w+");
foreach ($tab as $ligne)
{
$proto_f=explode(" ", $ligne);
$name_svc1=trim($proto_f[0],"#");
$actif = False;
foreach ($_POST as $key => $value)
{
if (strstr($key,'chk-'))
{
$name_svc2 = str_replace('chk-','',$key);
if ($name_svc1 == $name_svc2)
{
$actif = True;
break;
}
}
}
if (! $actif)
{
$line="#$name_svc1 $proto_f[1]";
}
else { $line="$name_svc1 $proto_f[1]";}
fputs($pointeur,$line);
}
fclose($pointeur);
}
else {echo "$l_error_open_file $services_list";}
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
break;
}
echo "<TABLE width=\"100%\" border=1 cellspacing=0 cellpadding=1>";
echo "<tr><td valign=\"middle\" align=\"left\">";
$pointeur = fopen("/usr/local/bin/alcasar-iptables.sh", "r");
$result = False ;
if ($pointeur)
{
while (!feof($pointeur))
{
$ligne = fgets($pointeur);
if (preg_match('/^FILTERING="yes"/', $ligne, $r))
{
$result = True ;
break;
}
}
}
fclose($pointeur);
if ($result)
{
echo "<CENTER><H3>$l_netfilter_on</H3>$l_comment_on</CENTER>";
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
echo "<input type=hidden name='choix' value=\"NF_Off\">";
echo "<input type=submit value=\"$l_switch_off\">";
}
else
{
echo "<CENTER><H3>$l_netfilter_off</H3>$l_comment_off</CENTER>";
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
echo "<input type=hidden name='choix' value=\"NF_On\">";
echo "<input type=submit value=\"$l_switch_on\">";
}
echo "</FORM>";
echo "</td></tr>";
echo "</TABLE>";
if ($result) require ('net_filter2.php');
?>
</BODY>
</HTML>
/gestion/admin/net_filter2.php
0,0 → 1,42
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><th><?echo "$l_protocols";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<table width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<form action='net_filter.php' method='POST'>
<table cellspacing=2 cellpadding=3 border=1>
<?
echo "<tr><th>$l_proto_port<th>$l_enabled</tr>";
// On ouvre le fichier de filtrage de protocoles
$pointeur=fopen($services_list,"r");
if ($pointeur)
{
while (!feof ($pointeur))
{
$ligne=fgets($pointeur, 4096);
if ($ligne)
{
$proto=explode(" ", $ligne);
$name_svc=trim($proto[0],"#");
echo "<tr><td>$name_svc / $proto[1]";
echo "<td><input type='checkbox' name='chk-$name_svc'";
// si la ligne est commentée -> protocole non autorisé
if (preg_match('/^#/',$ligne, $r)) {
echo ">";}
else {
echo "checked>";}
}
}
}
else {
echo "$l_error_open_file $services_list";
}
fclose($pointeur);
?>
</td></tr></table>
<input type='hidden' name='choix' value='change'>
<input type='submit' value='<?echo"$l_save_modif";?>'>
</form>
</td></tr>
</table>
/gestion/admin/web_filter.php
0,0 → 1,117
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy -->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>ALCASAR WEB filtering</TITLE>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<body>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
<?
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_title = "Filtrage WEB";
$l_webfilter_on="Le filtrage WEB est actuellement activé";
$l_webfilter_off="Le filtrage WEB est actuellement désactivé";
$l_switch_on="Activer le filtrage WEB";
$l_switch_off="Désactiver le filtrage WEB";
$l_comment_on="(la consultation WEB est filtrée selon les critères définis ci-dessous)";
$l_comment_off="(la consultation WEB est autorisée sans restriction)";
$l_main_bl="Liste noire principale (version actuelle : ";
$l_download="Télécharger la dernière version";
$l_warning="<B>Attention</B> : ce téléchargement dure plusieurs minutes.";
$l_secondary_bl="Liste noire et liste blanche secondaires";
}
else {
$l_title = "WEB Filter";
$l_webfilter_on="Actually, the WEB filter is on";
$l_webfilter_off="Actually, the WEB filter is off";
$l_switch_on="Switch the WebFilter on";
$l_switch_off="Switch the WebFilter off";
$l_comment_on="(The WEB consultation is filtered as defined below)";
$l_comment_off="(The WEB consultation is allowed without any restriction)";
$l_main_bl="Main blacklist (current version : ";
$l_download="Download the last version";
$l_warning="<B>Be carefull</B> : this download is estimate to fiew minutes.";
$l_secondary_bl="Secondary blacklist and whitelist";
}
echo "
<tr><th>$l_title</th></tr>
<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1 height=2></td></tr>
</TABLE>";
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
switch ($choix)
{
case 'BL_On' :
exec ("sudo /usr/local/sbin/alcasar-bl.sh -on");
break;
case 'BL_Off' :
exec ("sudo /usr/local/sbin/alcasar-bl.sh -off");
break;
case 'MAJ_bl' :
exec ("sudo /usr/local/sbin/alcasar-bl.sh -download");
break;
case 'MAJ_OSSI' :
$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
fputs($fichier, $_POST['OSSI_bl_domains']);
fclose($fichier);
unset($_POST['OSSI_bl_domains']);
$fichier=fopen("/etc/dansguardian/lists/exceptionsitelist","w+");
fputs($fichier, $_POST['OSSI_wl_domains']);
fclose($fichier);
unset($_POST['OSSI_wl_domains']);
$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/urls","w+");
fputs($fichier, $_POST['OSSI_bl_urls']);
fclose($fichier);
unset($_POST['OSSI_bl_urls']);
$fichier=fopen("/etc/dansguardian/lists/exceptionurllist","w+");
fputs($fichier, $_POST['OSSI_wl_urls']);
fclose($fichier);
unset($_POST['OSSI_wl_urls']);
exec ("sudo /usr/local/sbin/alcasar-bl.sh -reload");
break;
}
?>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<?php
$pointeur = fopen("/etc/dansguardian/dansguardian.conf", "r");
$result = false;
if ($pointeur)
{
while (!feof($pointeur))
{
$ligne = fgets($pointeur);
if (preg_match("/^reportinglevel = 3/", $ligne, $r))
{
$result = true;
break;
}
}
}
fclose($pointeur);
if ($result)
{
echo "<CENTER><H3>$l_webfilter_on</H3>$l_comment_on</CENTER>";
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
echo "<input type=hidden name='choix' value=\"BL_Off\">";
echo "<input type=submit value=\"$l_switch_off\">";
}
else
{
echo "<CENTER><H3>$l_webfilter_off</H3>$l_comment_off</CENTER>";
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
echo "<input type=hidden name='choix' value=\"BL_On\">";
echo "<input type=submit value=\"$l_switch_on\">";
}
echo "</FORM>";
echo "</td></tr>";
echo "</TABLE>";
if ($result) require ('web_filter2.php');
?>
</BODY>
</HTML>
/gestion/admin/services.php
0,0 → 1,190
<?php
//-------------------------------
// Fonctions
//-------------------------------
 
// Fonction de test de connectivité internet
function internetTest(){
$host = "www.google.fr";
$port = "80";
//var $num; //non utilisé
//var $error; //non utilisé
if (! $sock = @fsockopen($host, $port, $num, $error, 5)) {
return false;
} else {
fclose($sock);
return true;
}
}
 
// Fonction de test du filtrage
function filtrageTest($file, $search_regex){
$pointeur = fopen($file,"r");
$result = false;
if ($pointeur)
{
while (!feof($pointeur))
{
$ligne = fgets($pointeur);
if (preg_match($search_regex, $ligne, $r))
{
$result = true;
break;
}
}
}
fclose($pointeur);
return $result;
}
 
//fonction pour faire une action (start,stop,restart) sur un service
function serviceExec($service, $action){
if (($action == "start")||($action == "stop")||($action == "restart")){
exec("sudo /sbin/service $service $action",$retval, $retstatus);
return $retstatus;
} else {
return false;
}
}
//fonction définissant le status d'un service
//(en fonction de la présence d'un mot clé dans la valeur de status)
function checkServiceStatus($service, $strMatch){
$response = false;
exec("sudo /sbin/service $service status",$retval);
foreach( $retval as $val ) {
if (strpos($val,$strMatch)){
$response = true;
break;
}
}
return $response;
}
 
//-------------------------------
// Les actions sur un service
//-------------------------------
//sécurité sur les actions à réaliser
$autorizeService = array("radiusd","chilli","dansguardian","mysqld","squid","named","sshd");
$autorizeAction = array("start","stop","restart");
 
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
$execStatus = serviceExec($_GET['service'], $_GET['action']);
// execStatus non exploité
}
}
//-------------------------------
//recherche du status des services
//-------------------------------
$serviceStatus = array();
 
$serviceStatus['radiusd'] = checkServiceStatus("radiusd","pid");
$serviceStatus['chilli'] = checkServiceStatus("chilli","pid");
$serviceStatus['dansguardian'] = checkServiceStatus("dansguardian","pid");
$serviceStatus['mysqld'] = checkServiceStatus("mysqld","OK");
$serviceStatus['squid'] = checkServiceStatus("squid","pid");
$serviceStatus['named'] = checkServiceStatus("named","up");
$serviceStatus['sshd'] = checkServiceStatus("sshd","pid");
 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- written by steweb57 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Services</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<?php
# choice of language
$Language = "en";
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2));}
if ($Language == 'fr'){
$l_service = "Services";
$l_service_internet = "Lien Internet";
$l_netfilter="Filtrage r&eacute;seau";
$l_webfilter="Filtrage WEB";
$l_enable = "actif";
$l_disable = "inactif";
$l_service_title = "Nom du services";
$l_service_start = "D&eacute;marrer";
$l_service_stop = "Arr&ecirc;ter";
$l_service_restart = "Red&eacute;marrer";
$l_service_status = "Status";
$l_service_action = "Actions";
$l_service_status_img_ok = "D&eacute;marr&eacute;";
$l_service_status_img_ko = "Arr&ecirc;t&eacute;";
}
else {
$l_service = "Services";
$l_service_internet = "Internet connexion";
$l_netfilter = "Network filter";
$l_webfilter="WEB filter";
$l_enable = "enable";
$l_disable = "disable";
$l_service_title = "Name of service";
$l_service_start = "Start";
$l_service_stop = "Stop";
$l_service_restart = "Restart";
$l_service_status = "Status";
$l_service_action = "Actions";
$l_service_status_img_ok = "Started";
$l_service_status_img_ko = "Stopped";
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo $l_service;?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td> </tr>
</table>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<?php
if (InternetTest()){
echo "<h1><img src='/images/state_ok.gif'> $l_service_internet : <font color='green'>$l_enable</font></h1>";
} else {
echo "<h1><img src='/images/state_error.gif'> $l_service_internet : <font color='red'>$l_disable</font></h1>";
}
if (filtrageTest("/usr/local/bin/alcasar-iptables.sh", "/^FILTERING=\"yes\"/")){
echo "<h1><img src='/images/state_ok.gif'> $l_netfilter : <font color='green'>$l_enable</font></h1>";
} else {
echo "<h1><img src='/images/state_error.gif'> $l_netfilter : <font color='red'>$l_disable</font></h1>";
}
if (filtrageTest("/etc/dansguardian/dansguardian.conf","/^reportinglevel = 3/")){
echo "<h1><img src='/images/state_ok.gif'> $l_webfilter : <font color='green'>$l_enable</font></h1>";
} else {
echo "<h1><img src='/images/state_error.gif'> $l_webfilter : <font color='red'>$l_disable</font></h1>";
}
?>
</td></tr>
</table>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><th><?php echo $l_service_status;?></th><th><?php echo $l_service_title;?></th><th colspan="3"><?php echo $l_service_action;?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td><td><img src="/images/pix.gif" width="1" height="2"></td><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
<TR align="center">
<?php foreach( $serviceStatus as $serviceName => $statusOK ) { ?>
<tr>
<?php if ($statusOK) { ?>
<td><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
<td><?php echo $serviceName ;?></td>
<td width="30" align="center">---</td>
<td width="30" align="center"><a href="services.php?action=stop&service=<?php echo $serviceName;?>"><?php echo $l_service_stop;?></a></td>
<td width="30" align="center"><a href="services.php?action=restart&service=<?php echo $serviceName;?>"><?php echo $l_service_restart;?></a></td>
<?php } else { ?>
<td><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
<td><?php echo $serviceName ;?></td>
<td width="30" align="center"><a href="services.php?action=start&service=<?php echo $serviceName;?>"><?php echo $l_service_start;?></a></td>
<td width="30" align="center">---</td>
<td width="30" align="center">---</td>
<?php } ?>
</tr>
<?php } ?>
</td></tr></table>
</table>
</body>
</html>
/gestion/admin/activity.php
0,0 → 1,115
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy -->
<head>
<META HTTP-EQUIV="Refresh" CONTENT="30">
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<title>&Eacute;tat du r&eacute;seau</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<?
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_activity = "Activit&eacute; sur le r&eacute;seau de consultation";
$l_ip_adr = "Adresse IP";
$l_mac_adr = "Adresse MAC";
$l_user = "Usager";
$l_mac_allowed = "@MAC autoris&eacute;e";
$l_action = "Action";
$l_dissociate = "Dissocier";
$l_disconnect = "D&eacute;connecter";
$l_refresh = "Cette page est rafraichie toutes les 30 secondes";
}
else {
$l_activity = "Activity on the consultation LAN";
$l_ip_adr = "IP Adress";
$l_mac_adr = "MAC Adress";
$l_user = "User";
$l_mac_allowed = "@MAC allowed";
$l_action = "Action";
$l_dissociate = "Dissociate";
$l_disconnect = "Disconnect";
$l_refresh = "This frame is refreshed every 30'";
}
echo "
<tr><th>$l_activity</th></tr>
<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=\"1\"
height=\"2\"></td></tr>
</TABLE>";
if (isset($_POST['action'])){
switch ($_POST['action']){
case 'user_unconnect' :
exec ("sudo /usr/local/sbin/alcasar-logout.sh $_POST[user]");
unset ($_POST['user']);
unset ($_POST['choix']);
break;
case 'mac_unconnect' :
exec ("sudo /usr/sbin/chilli_query logout $_POST[mac_addr]");
unset ($_POST['mac_addr']);
unset ($_POST['choix']);
break;
}
}
?>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<center>
<? echo "$l_refresh";?>
<table border=1 width="80%" bordercolordark="#ffffe0" bordercolorlight="#000000" width="100%" cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr bgcolor="#d0ddb0">
<? echo "
<th>#</th>
<th>$l_ip_adr</th>
<th>$l_mac_adr</th>
<th>$l_user</th>
<th>$l_action</th>
</tr>";
$output = array(); $nb_ligne = 0;
exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output);
while (list(,$ligne) = each($output)){
$detail = explode (" ", $ligne);
$nb_ligne ++;
echo "<FORM action='activity.php' method=POST>";
echo "<TR>";
echo "<TD>"; echo $nb_ligne; echo "</TD>";
echo "<TD>"; echo $detail[1]; echo "</TD>";
echo "<TD>"; echo $detail[0]; echo "</TD>";
echo "<TD>";
# station authorisée
if ($detail[4] == "1"){
# par @MAC
if ($detail[5] == "-"){
echo "$l_mac_allowed</TD><TD>&nbsp;";}
# par usager authentifié
else {
echo "<a href=\"/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"Editer l'utilisateur $detail[5]\">$detail[5]</a>";
echo "</TD>";
echo "<TD>";
echo "<INPUT type='hidden' name='action' value='mac_unconnect'>";
echo "<INPUT type='hidden' name='user' value='$detail[5]'>";
echo "<INPUT type='hidden' name='mac_addr' value='$detail[0]'>";
echo "<INPUT type=submit value='$l_disconnect'>";
}
}
# station sans usager connecté
else {
echo "&nbsp;";
echo "</TD>";
echo "<TD>";
echo "<INPUT type='hidden' name='action' value='mac_unconnect'>";
echo "<INPUT type='hidden' name='mac_addr' value='$detail[0]'>";
echo "<INPUT type='submit' value='$l_dissociate'>";
}
echo "</TD></TR></FORM>";
}
?>
</td></tr>
</table>
</td></tr>
</table>
</html>
/gestion/admin/logo.php
0,0 → 1,66
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- Written by Rexy -->
<HEAD>
<TITLE>Modif logo organisme</TITLE>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<SCRIPT language="javascript" type="text/javascript">
function rafraichissement(cadre1, val1)
{
eval(cadre1+".location='"+val1+"'");
}
</SCRIPT>
</HEAD>
<body>
<?php
if(isset($_FILES['logo']))
{
unset($result);
$taille_max = 100000;
$destination = '/var/www/html/images/organisme.png';
$extension = strstr($_FILES['logo']['name'], '.');
if ($extension != '.png')
{
$result = 'Veuillez s&eacute;lectionner un fichier de type png !';
}
elseif (file_exists($_FILES['logo']['tmp_name']) and filesize($_FILES['logo']['tmp_name']) > $taille_max)
{
$result = 'La taille du fichier doit &ecirc;tre inf&eacute;rieur &agrave; 100Ko !';
}
if (!isset($result))
{
move_uploaded_file($_FILES['logo']['tmp_name'], $destination);
}
}
?>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Personnalisation du logo d'organisme</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<CENTER><H3>Logo actuel : <img src="/images/organisme.png" width="90"><BR>
Vous pouvez s&eacute;lectionnez un nouveau logo :</H3></CENTER>
<FORM action="logo.php" method=POST ENCTYPE="multipart/form-data">
<input type="file" name="logo">
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
<input type="submit" value="Envoyer">
</FORM>
<?php
if (isset($result))
{
echo '<H3>'; echo $result; echo '</H3><BR>';
}
?>
<CENTER>Attention</CENTER>
- le logo que vous choisissez doit &ecirc;tre un fichier au format libre 'PNG'.<BR>
- la taille de ce fichier doit &ecirc;tre inf&eacute;rieure &agrave; 100Ko<BR>
- rafra&icirc;chissez les pages du navigateur pour voir le r&eacute;sultat<BR>
</TD></TR>
</TABLE>
</td></tr>
</TABLE>
</BODY>
</HTML>
/gestion/admin/update_ldap.php
0,0 → 1,240
<?php
/* written by steweb57 */
/********************************************************************
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
*********************************************************************/
 
define ("ALCASAR_RADIUS_SITE", "/etc/raddb/sites-available/alcasar");
define ("ALCASAR_RADIUS_MODULE_LDAP", "/etc/raddb/modules/ldap");
 
/********************************************************************
* FONCTION ERREUR *
*********************************************************************/
 
function erreur($er){
header('Location:ldap.php?erreur=$er');
exit();
}
 
/********************************************************************
* VARIABLES DE FORMULAIRE *
*********************************************************************/
 
//variables pour le parcourt des fichiers
// - $ouvre : fichier ouvert
// - $tampon : ligne en cours
//autres variables utilisées
// - $fichier : fichier temporaire utilisé pour la mise à jours des fichiers de configuration
// - les variables contennant les données de formulaire
 
//Récupération des variables de formulaire
if (isset($_POST['auth_enable'])) $auth_enable = $_POST['auth_enable']; else erreur('Erreur de variable auth_enable');
if ($auth_enable == "1"){ //test $auth_enable
if (isset($_POST['ldap_server'])) $ldap_server = $_POST['ldap_server']; else erreur('Erreur de variable ldap_server');
if (isset($_POST['ldap_base_dn'])) $ldap_base_dn = $_POST['ldap_base_dn']; else erreur('Erreur de variable ldap_base_dn');
if (isset($_POST['ldap_filter'])) $ldap_filter = $_POST['ldap_filter']; else erreur('Erreur de variable ldap_filter');
if (isset($_POST['ldap_base_filter'])) $ldap_base_filter = $_POST['ldap_base_filter']; else erreur('Erreur de variable ldap_base_filter');
if (isset($_POST['ldap_user'])) $ldap_user = $_POST['ldap_user']; else erreur('Erreur de variable ldap_user');
if (isset($_POST['ldap_password'])) $ldap_password = $_POST['ldap_password']; else erreur('Erreur de variable ldap_password');
} //test $auth_enable
 
/********************************************************************
* TEST DES FICHIERS DE CONFIGURATION *
*********************************************************************/
 
//Test de présence et des droits en modification des fichiers de configuration.
if (!file_exists(ALCASAR_RADIUS_SITE)){
exit("Fichier de configuration du virtual-host 'alcasar' de freeradius non présent");
}
if (!file_exists(ALCASAR_RADIUS_MODULE_LDAP)){
exit("Fichier de configuration du module ldap pour freeradius non présent");
}
if (!is_writable(ALCASAR_RADIUS_SITE)){
exit("Vous n'avez pas les droits d'écriture sur le fichier /etc/raddb/sites-available/alcasar");
}
if (!is_writable(ALCASAR_RADIUS_MODULE_LDAP)){
exit("Vous n'avez pas les droits d'écriture sur le fichier /etc/raddb/modules/ldap");
}
 
/********************************************************************
* VARIABLES TEMPORAIRES *
*********************************************************************/
//création des nouveaux fichiers de configuration
//Initialisation de $fichier
$fichier = "";
 
//variables de test pour la section autorize
$section_autorize = false; // indique si on est dans la section autorize
$num_section_autorize = 0; // indique si on se situe dans une sous section (pouvant avoir un parametre ldap ???)
$nb_ldap = 0; // indique si le paramtre ldap n'est pas saisie deux fois (y compris les commentaires)
//variables de test pour la section authenticate
$section_authenticate = false; // indique si on est dans la section authenticate
$section_authenticate_section_ldap = false; // indique si on se situe dans la sous section Auth-Type LDAP
$section_authenticate_section_ldap_1 = false; // indique si Auth-Type LDAP déjà configuré
$section_authenticate_section_ldap_2 = false; // indique si parametre ldap de Auth-Type LDAP déjà configuré
$section_authenticate_section_ldap_3 = false; // indique si la fin de Auth-Type LDAP déjà configuré
$num_section_authenticate = 0;
 
/********************************************************************
* Fichier ALCASAR_RADIUS_SITE *
*********************************************************************/
 
//Lecture du fichier /etc/raddb/sites-available/alcasar et création d'une nouvelle version du fichier.
$continue = true;
$ouvre=fopen(ALCASAR_RADIUS_SITE,"r");
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if ((!$section_autorize) && (preg_match('`^([\s]*authorize[\s]*{[\s]*)$`',$tampon))){ //test si on est dans la section authorize
$section_autorize = true;
}
if ((!$section_authenticate) && (preg_match('`^([\s]*authenticate[\s]*{[\s]*)$`',$tampon))){ //on est dans la section authenticate
$section_authenticate = true;
}
/********************************************************************
* SECTION AUTHORIZE *
*********************************************************************/
if ($section_autorize){ //on est dans la section authorize
if ((preg_match('`^([\s[:alnum:]-_]*{[\s]*)$`',$tampon)) && (!preg_match('`^([\s]*authorize[\s]*{[\s]*)$`',$tampon))){ //on trouve des sous sections non commentées
$num_section_autorize = $num_section_autorize + 1;
$fichier = $fichier.$tampon;
} elseif ((preg_match('`^([\s#]*ldap[\s]*)$`',$tampon))&&($num_section_autorize == 0)){ // conf du parametre ldap uniquement si l'on n'est pas dans une sous section!
//Récupération dans la section authorise de la ligne ldap
//valeur : ldap = authentification ldap authorisée
//valeur : #ldap = authentification ldap non authorisée
if (($auth_enable == "1") && ($nb_ldap ==0)){
$fichier = $fichier."ldap\n";
}else{
$fichier = $fichier."# ldap\n";
}
$nb_ldap = $nb_ldap + 1;//calcule si le parametre ldap n'est pas présent plusieurs fois.
} elseif (preg_match('`^([\s]*}[\s]*)$`',$tampon)){ //une section se termine
if ($num_section_autorize == 0){ // fin de la section authorize
$section_autorize = false;
} else { // on referme une sous section
$num_section_autorize = $num_section_autorize - 1;
}
$fichier = $fichier.$tampon;
} else {
$fichier = $fichier.$tampon;
}
//fin de section authorize
} elseif (($section_authenticate)){ //on est dans la section authenticate
/********************************************************************
* SECTION AUTHENTICATE *
*********************************************************************/
// pas de test de sous-section!
//on recherhe la section ldap
## Auth-Type LDAP {
# ldap
## }
if (preg_match('`^([\s#]*Auth-Type[\s]*LDAP[\s]{[\s]*)$`',$tampon)) { // test si on est dans la sous section Auth-Type LDAP (commentée ou non !)
$section_authenticate_section_ldap = true;
if (($auth_enable == "1") && (!$section_authenticate_section_ldap_1)){
$fichier = $fichier."Auth-Type LDAP { \n";
} else {
$fichier = $fichier."# Auth-Type LDAP { \n";
}
$section_authenticate_section_ldap_1 = true; // Auth-Type LDAP { est traité, les prochaines occurences trouvées seront tous mis en commentaire
} else {
if ($section_authenticate_section_ldap){ // on est dans la section Auth-Type LDAP
if (preg_match('`^([\s#]*ldap[\s]*)$`',$tampon)){ //parametre ldap
if (($auth_enable == "1") && (!$section_authenticate_section_ldap_2)){
$fichier = $fichier."ldap\n";
} else {
$fichier = $fichier."# ldap\n";
}
$section_authenticate_section_ldap_2 = true; // le parametre ldap est traité, les prochaines occurences trouvées seront tous mis en commentaire
} elseif (preg_match('`^([\s#]*}[\s]*)$`',$tampon)){ //fin de section Auth-Type LDAP (le premier #} ou } trouvé dans la section Auth-Type LDAP indique la fin de la section)
if (($auth_enable == "1") && (!$section_authenticate_section_ldap_3)){
$fichier = $fichier."}\n";
} else {
$fichier = $fichier."# }\n";
}
$section_authenticate_section_ldap_3 = true; // } de fin de section Auth-Type LDAP est traité, les prochaines occurences trouvées seront tous mis en commentaire //!inutile
$section_authenticate_section_ldap = false; //inutile de continuer de parcourir la section Auth-Type LDAP
$section_authenticate = false; //inutile de continuer de parcourir la section authenticate
} else {
$fichier = $fichier.$tampon; // on écrit tous les autres valeurs ou commentaires présents dans la section Auth-Type LDAP du fichier
}
} else {
$fichier = $fichier.$tampon; // on écrit tous les autres valeurs ou commentaires présents dans la section authenticate du fichier
}
}
//fin de section authenticate
} else { //on est ni dans la section authorize ni dans la section authenticate
$fichier = $fichier.$tampon;
}
}
fclose($ouvre);
 
 
//Sauvegarde du /etc/raddb/sites-available/alcasar
$ouvre=fopen(ALCASAR_RADIUS_SITE,"w+");
fwrite($ouvre, $fichier);
fclose($ouvre);
 
/********************************************************************
* Fichier ALCASAR_RADIUS_MODULE_LDAP *
*********************************************************************/
 
// TO DO : faire le controle des doublons comme sur le fichiers précédent !
 
 
//on ne modifie ALCASAR_RADIUS_MODULE_LDAP uniquement si l'authentification ldap est active
if ($auth_enable == "1"){ //test $auth_enable
 
//Ré-Initialisation de $fichier
$fichier = "";
 
//Lecture du fichier /etc/raddb/modules/ldap et création d'une nouvelle version du fichier.
$ouvre=fopen(ALCASAR_RADIUS_MODULE_LDAP,"r");
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if (preg_match('`^([\s#]*server(\s*)=)`',$tampon)){
//Mise a jour du paramettre ldap server
$fichier = $fichier."server = \"".$ldap_server."\"\n";
} elseif (preg_match('`^([\s#]*identity(\s*)=)`',$tampon)){
//Mise a jour du paramettre ldap identity
$fichier = $fichier."identity = \"".$ldap_user."\"\n";
} elseif (preg_match('`^([\s#]*password(\s*)=)`',$tampon)){
//Mise a jour du paramettre ldap password
$fichier = $fichier."password = ".$ldap_password."\n";
} elseif (preg_match('`^([\s#]*basedn(\s*)=)`',$tampon)){
//Mise a jour du paramettre ldap basedn
$fichier = $fichier."basedn = \"".$ldap_base_dn."\"\n";
} elseif (preg_match('`^([\s#]*filter(\s*)=)`',$tampon)){
//Mise a jour du paramettre ldap filter
$fichier = $fichier."filter = \"(".$ldap_filter."=%{Stripped-User-Name:-%{User-Name}})\"\n";
} elseif (preg_match('`^([\s#]*base_filter(\s*)=)`',$tampon)){
//Mise a jour du paramettre ldap base_filter
$fichier = $fichier."base_filter = \"".$ldap_base_filter."\"\n";
} else {
//On ne fait rien
$fichier = $fichier.$tampon;
}
}
fclose($ouvre);
 
//sauvegarde du fichier /etc/raddb/modules/ldap
$ouvre=fopen(ALCASAR_RADIUS_MODULE_LDAP,"w+");
fwrite($ouvre, $fichier);
fclose($ouvre);
 
} //test $auth_enable
 
/********************************************************************
* Redémarage du service radius *
*********************************************************************/
 
exec ("sudo service radiusd restart");
 
/********************************************************************
* Redirection vers la page de configuration LDAP *
*********************************************************************/
 
header('Location:ldap.php?update=ok');
exit();
?>
/gestion/admin/firewallEyes/gpl.txt
0,0 → 1,342
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
 
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
 
Preamble
 
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
 
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
 
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
 
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
 
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
 
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
 
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
 
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
 
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
 
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
 
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
 
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
 
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
 
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
 
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
 
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
 
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
 
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
 
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
 
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
 
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
 
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
 
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
 
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
 
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
 
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
 
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
 
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
 
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
 
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
 
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
 
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
 
NO WARRANTY
 
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
 
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
 
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
 
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
 
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
 
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
Also add information on how to contact you by electronic and paper mail.
 
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
 
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
 
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
 
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
 
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
 
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
 
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
 
 
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/gestion/admin/firewallEyes/info.php
0,0 → 1,161
<?php
/*
* firewall Eyes
* Copyright (C) 2004 Creabilis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
include("configuration.php");
include("include.php");
 
// authentification check
authenticationCheck();
 
// Date in the past
header("Expires: Mon, 26 Jul 2009 00:00:00 GMT");
 
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
 
// HTTP/1.0
header("Pragma: no-cache");
 
set_time_limit (120);
 
// GET INPUT
$type=stripslashes($_GET["type"]);
$p1=stripslashes($_GET["p1"]);
 
$tool=stripslashes($_GET["tool"]);
 
$toolsArray=$tools[$type];
 
 
$maxWidth=0;
for($i=0; $i<count($logFields); $i++) {
$maxWidth+=$logFields[$i][2];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>informations</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link href="log.css" rel="stylesheet" type="text/css"/>
</head>
 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<div align="left" style="padding-left:18px">
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>">
<tr>
<td class="toolBox">
<form method="GET" action="info.php">
<br/>
<b>Informations on </b>
<input type="text" name="p1" class="inputText" maxlength="100" value="<?=htmlentities(stripslashes($p1))?>">
<input type="hidden" name="type" value="<?=htmlentities(stripslashes($type))?>">
<br/><br/>&nbsp;
<?php
foreach($toolsArray as $toolName=>$toolInfos) {
?>
<input class="toolbutton" type="submit" name="tool" value="<?=htmlentities($toolName)?>">&nbsp;&nbsp;
<?php
}
?>
</form>
</td>
</tr>
</table>
<?php
flush();
if($tool) {
if($toolsArray[$tool]["type"]=="command") {
$myCommand=$toolsArray[$tool]["value"];
$myparam=$p1;
if($toolsArray[$tool]["precompute"]=="extractdomain") {
if (preg_match("/\d+\.\d+\.\d+\.\d+/", $p1)) { // it's an ip address
$myparam=$p1;
} else {
$myparam=substr(strstr($p1,"."),1); // remove first part of canonical name
}
}
$myCommand=str_replace("%p1%",$myparam,$myCommand);
}
if($toolsArray[$tool]["type"]=="url") {
$myCommand=$toolsArray[$tool]["value"];
$myCommand=str_replace("%p1%",urlencode($p1),$myCommand);
 
}
?>
<br/>
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>">
<tr>
<td class="toolCommandBoxHeader">
<?php
if($toolsArray[$tool]["type"]=="url") {
?>
<a style="color: #FFFFFF" href="<?=$myCommand?>" target="q"><?=$myCommand?></a>
<?php
} else {
echo($myCommand);
}
?>
</td>
</tr>
</table>
<?php
flush();
?>
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>">
<tr>
<td class="toolCommandBox">
<?php
if($toolsArray[$tool]["type"]=="command") {
echo("<pre>");
passthru(escapeshellcmd($myCommand));
echo("</pre>");
}
if($toolsArray[$tool]["type"]=="url") {
?>
<iframe name="window_recherche_affaire_resultat" src="<?=$myCommand?>" width="<?=$maxWidth+5?>" height="750" FRAMEBORDER=0>
Your browser doesn't support iframe, unable to get url.
</iframe>
<?php
}
?>
</td>
</tr>
</table>
<?php
}
?>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>" class="footer">
<tr>
<td align="center">
<A HREF="http://www.creabilis.com" target="creabilis">Firewall Eyes</A> - <A HREF="http://www.gnu.org/licenses/gpl.html">GPL</A> - Creabilis © 2004 - Web site : <A HREF="http://firewalleyes.creabilis.com">http://firewalleyes.creabilis.com</A>
</td>
</tr>
</table>
</div>
</body>
</html>
/gestion/admin/firewallEyes/images/info.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/dst-port.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/port-dst.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/header-background.jpg
Cannot display: file marked as a binary type.
svn:mime-type = image/jpeg
Property changes:
Added: svn:mime-type
+image/jpeg
\ No newline at end of property
/gestion/admin/firewallEyes/images/source.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/destination.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/commandHeaderBkg.jpg
Cannot display: file marked as a binary type.
svn:mime-type = image/jpeg
Property changes:
Added: svn:mime-type
+image/jpeg
\ No newline at end of property
/gestion/admin/firewallEyes/images/firewallEyes.jpg
Cannot display: file marked as a binary type.
svn:mime-type = image/jpeg
Property changes:
Added: svn:mime-type
+image/jpeg
\ No newline at end of property
/gestion/admin/firewallEyes/images/logo-firewallEyes.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/src-port.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/port-src.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/gestion/admin/firewallEyes/images/buttonBkg.jpg
Cannot display: file marked as a binary type.
svn:mime-type = image/jpeg
Property changes:
Added: svn:mime-type
+image/jpeg
\ No newline at end of property
/gestion/admin/firewallEyes/messages
0,0 → 1,21
Sep 24 04:03:01 firewall kernel: RULE 5 -- ACCEPT IN=eth1 OUT=eth2 SRC=192.168.0.5 DST=64.246.30.37 LEN=48 TOS=0x00 PREC=0x00 TTL=124 ID=33597 DF PROTO=TCP SPT=3247 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
Sep 24 04:03:02 firewall kernel: RULE 6 -- DENY IN=eth1 OUT=eth1 SRC=172.50.230.95 DST=192.168.14.5 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18765 PROTO=TCP SPT=2277 DPT=25 LEN=28
Sep 24 04:03:02 firewall kernel: RULE 7 -- DENY IN=eth1 OUT=eth1 SRC=172.79.3.1 DST=192.168.0.12 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18764 PROTO=TCP SPT=3767 DPT=443 LEN=28
Sep 24 04:03:05 firewall kernel: RULE 2 -- ACCEPT IN=eth1 OUT=eth2 SRC=192.168.0.55 DST=10.10.5.4 LEN=48 TOS=0x00 PREC=0x00 TTL=122 ID=45067 DF PROTO=TCP SPT=1549 DPT=8080 WINDOW=8192 RES=0x00 SYN URGP=0
Sep 24 04:03:05 firewall kernel: RULE 8 -- ACCEPT IN=eth1 OUT=eth1 SRC=192.79.1.1 DST=172.48.3.1 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18775 PROTO=TCP SPT=1793 DPT=80 LEN=28
Sep 24 04:03:05 firewall kernel: RULE 2 -- REJECT IN=eth1 OUT=eth1 SRC=192.169.230.95 DST=192.168.31.51 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18774 PROTO=UDP SPT=1179 DPT=137 LEN=28
Sep 24 04:03:07 firewall kernel: RULE 9 -- ACCEPT IN=eth1 OUT=eth1 SRC=172.79.1.78 DST=10.10.6.4 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18775 PROTO=TCP SPT=9957 DPT=80 LEN=28
Sep 24 04:03:08 firewall kernel: RULE 16 -- DENY IN=eth1 OUT=eth2 SRC=192.168.6.162 DST=64.4.23.188 LEN=48 TOS=0x00 PREC=0x00 TTL=124 ID=33598 DF PROTO=TCP SPT=3247 DPT=443 WINDOW=64240 RES=0x00 SYN URGP=0
Sep 24 04:03:08 firewall kernel: RULE 16 -- ACCEPT IN=eth1 OUT=eth1 SRC=192.169.230.95 DST=192.168.31.51 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18780 PROTO=UDP SPT=7453 DPT=137 LEN=28
Sep 24 04:03:08 firewall kernel: RULE 11 -- REJECT IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:10:b5:4f:4b:60:08:00 SRC=172.38.45.78 DST=10.10.5.7 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=18808 PROTO=TCP SPT=2487 DPT=21 LEN=28
Sep 24 04:03:11 firewall kernel: RULE 13 -- DENY IN=eth1 OUT=eth1 SRC=192.169.0.5 DST=192.168.0.50 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18791 PROTO=UDP SPT=2813 DPT=137 LEN=28
Sep 24 04:03:11 firewall kernel: RULE 17 -- DENY IN=eth1 OUT=eth1 SRC=192.169.230.95 DST=192.168.1.51 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18790 PROTO=UDP SPT=2779 DPT=137 LEN=28
Sep 24 04:03:14 firewall kernel: RULE 16 -- ACCEPT IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:10:b5:4f:4b:60:08:00 SRC=192.169.230.95 DST=10.0.12.5 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=18796 PROTO=UDP SPT=4476 DPT=137 LEN=28
Sep 24 04:03:14 firewall kernel: RULE 11 -- REJECT IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:10:b5:4f:4b:60:08:00 SRC=172.38.45.78 DST=10.10.5.7 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=18808 PROTO=TCP SPT=2487 DPT=21 LEN=28
Sep 24 04:03:14 firewall kernel: RULE 16 -- DENY IN=eth1 OUT=eth1 SRC=10.10.45.7 DST=192.168.1.51 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18795 PROTO=UDP SPT=2781 DPT=123 LEN=28
Sep 24 04:03:14 firewall kernel: RULE 14 -- ACCEPT IN=eth1 OUT=eth1 SRC=192.168.1.5 DST=192.168.0.51 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18794 PROTO=UDP SPT=33660 DPT=53 LEN=28
Sep 24 04:03:17 firewall kernel: RULE 5 -- ACCEPT IN=eth1 OUT=eth2 SRC=192.168.1.5 DST=64.246.30.37 LEN=48 TOS=0x00 PREC=0x00 TTL=124 ID=33597 DF PROTO=TCP SPT=3247 DPT=80 WINDOW=64242 RES=0x00 SYN URGP=0
Sep 24 04:03:17 firewall kernel: RULE 5 -- ACCEPT IN=eth1 OUT=eth2 SRC=192.168.2.5 DST=192.168.1.78 LEN=48 TOS=0x00 PREC=0x00 TTL=124 ID=33597 DF PROTO=TCP SPT=3657 DPT=80 WINDOW=64242 RES=0x00 SYN URGP=0
Sep 24 04:03:17 firewall kernel: RULE 11 -- REJECT IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:10:b5:4f:4b:60:08:00 SRC=172.38.45.78 DST=10.10.5.7 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=18808 PROTO=TCP SPT=2487 DPT=21 LEN=28
Sep 24 04:03:17 firewall kernel: RULE 3 -- ACCEPT IN=eth1 OUT=eth1 SRC=10.10.45.7 DST=192.168.0.8 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=18806 PROTO=TCP SPT=2267 DPT=110 LEN=28
Sep 24 04:03:20 firewall kernel: RULE 5 -- ACCEPT IN=eth1 OUT=eth2 SRC=192.168.0.5 DST=64.246.30.37 LEN=48 TOS=0x00 PREC=0x00 TTL=124 ID=33597 DF PROTO=TCP SPT=1842 DPT=80 WINDOW=64248 RES=0x00 SYN URGP=0
/gestion/admin/firewallEyes/log.css
0,0 → 1,147
.tabCell {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
white-space: nowrap;
float: left;
overflow: hidden;
border-left: 0px solid #9EB2E2;
padding-top: 3px;
padding-bottom: 3px;
margin: 0px;
text-align: left;
}
.header {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
background-color: #EEF1F9;
border-top: 1px solid #9EB2E2;
border-bottom: 1px solid #9EB2E2;
color: #0C1E6C;
font-weight: bold;
text-align: center;
}
.footer {
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
background-color: #F4F8FB;
border: 1px solid #9EB2E2;
color: #0C1E6C;
padding: 2px;
}
a {
color: #0C1E6C;
text-decoration:none;
}
a:hover {
color: #800000;
text-decoration:underline;
}
 
.ACCEPT {
color: #006633;
border-right: 1px solid #9EB2E2;
border-left: 1px solid #9EB2E2;
}
.DROP {
color: #800000;
border-right: 1px solid #9EB2E2;
border-left: 1px solid #9EB2E2;
}
.REJECT {
color: #804040;
border-right: 1px solid #9EB2E2;
border-left: 1px solid #9EB2E2;
}
.ACCOUNTING {
color: #000000;
border-right: 1px solid #9EB2E2;
border-left: 1px solid #9EB2E2;
}
.line1 {
background-color: #FFFFFF;
}
.line2 {
background-color: #F4F8FB;
}
.inputBlock {
padding: 0px;
margin: 0px;
border: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
white-space: nowrap;
float: left;
overflow: hidden;
border-left: 1px solid #9EB2E2;
padding: 2px;
}
.inputText {
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
color: #0C1E6C;
border:1px solid #9EB2E2;
padding: 2px;
}
.button {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #0C1E6C;
background-color: #FFFFFF;
width: 80px;
height: 25px;
background-image: url(images/buttonBkg.jpg);
background-repeat: no-repeat;
text-align: left;
padding-left: 18pt;
}
.toolbutton {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #0C1E6C;
background-color: #FFFFFF;
width: 100px;
height: 25px;
background-image: url(images/buttonBkg.jpg);
background-repeat: no-repeat;
text-align: left;
padding-left: 18pt;
}
.toolBox {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
background-color: #EEF1F9;
border: 1px solid #9EB2E2;
color: #0C1E6C;
text-align: left;
padding-left: 2pt;
}
.toolCommandBoxHeader {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
background-image: url(images/commandHeaderBkg.jpg);
border: 1px solid #9EB2E2;
color: #FFFFFF;
text-align: center;
}
.toolCommandBox {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
background-color: #F4F7FF;
border: 1px solid #9EB2E2;
color: #0C1E6C;
text-align: left;
padding-left: 2pt;
}
 
.topbox {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
border: none;
padding: 2px;
margin: 0px;
}
/gestion/admin/firewallEyes/include.php
0,0 → 1,139
<?php
/*
* firewall Eyes
* Copyright (C) 2004 Creabilis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
// ****************************************************************************
// return the regexp index for $columnName
// ****************************************************************************
function authenticationCheck() {
global $IPAuthentication,$allowedClientIP;
if ($IPAuthentication) {
if(!in_array($_SERVER["REMOTE_ADDR"],$allowedClientIP)) {
exit();
}
}
}
// ****************************************************************************
// return the regexp index for $columnName
// ****************************************************************************
function getIndexForColumn($columnName,$logFields) {
for($i=0; $i<count($logFields); $i++) {
if($logFields[$i][0]==$columnName) {
Return $logFields[$i][1];
}
}
}
// ****************************************************************************
// return true if all criteria matches
// ****************************************************************************
function criteriaMatches($criteria,$logFields,$infoTab,$exactSearch) {
$returnValue=true;
for($i=0; $i<count($logFields); $i++) {
$currentColumn=$logFields[$i][0];
$currentData=$infoTab[$logFields[$i][1]];
if($currentCriteria=$criteria[$currentColumn]) { // if criteria exists
// test
if(!searchString ($currentData,$currentCriteria,$exactSearch)) {
Return false;
}
}
}
Return $returnValue;
}
// ****************************************************************************
// return true strings founded
// ****************************************************************************
function searchString($haystack, $searchedWords,$exactSearch) {
if($searchedWords[0]=="!") {
$negate=true;
$searchedWords=substr($searchedWords,1);
}
$returnValue=false;
$wordTab=preg_split ("/[\s,]+/", $searchedWords);
if($wordTab) {
for($i=0; $i<count($wordTab); $i++) {
if($currentWord=$wordTab[$i]) {
// test
if(($exactSearch ? $haystack==$currentWord : stristr ($haystack,$currentWord))) {
$returnValue=true;
break;
}
}
}
}
if($negate) {
Return (!$returnValue);
} else {
Return $returnValue;
}
}
 
// ****************************************************************************
// change lines to resolved items
// ****************************************************************************
function resolvAll() {
global $logFields,$infoTab,$resolvIp,$resolvService,$indexForProtocol,$infoTabOriginal;
for($i=0; $i<count($logFields); $i++)
{
if($resolvIp) {
if($logFields[$i][3]=="ip" && !strstr($infoTab[$logFields[$i][1]],"255")) {
$infoTab[$logFields[$i][1]]=gethostbyaddr($infoTab[$logFields[$i][1]]);
}
}
if($resolvService) {
if($logFields[$i][3]=="service") {
$currentProtocolIndex=$indexForProtocol;
$service=getservbyport($infoTab[$logFields[$i][1]],strtolower($infoTab[$currentProtocolIndex]));
if($service) {
$infoTabOriginal[$logFields[$i][1]]=$infoTab[$logFields[$i][1]];
$infoTab[$logFields[$i][1]]=$service;
}
}
}
}
}
 
 
// ****************************************************************************
// fgetrs : read line and put pointer at the begining
// ****************************************************************************
function fgetrs($fileHandle) {
while (ftell($fileHandle)>=0) {
$char = fgetc($fileHandle);
if (ftell($fileHandle)==1) {
fseek ($fileHandle,-1,SEEK_CUR);
return $char.$line;
}
if ($char == "\n" || ftell($fileHandle)==1) {
fseek ($fileHandle,-2,SEEK_CUR);
return $line;
}
else {
fseek ($fileHandle,-2,SEEK_CUR);
$line = $char . $line;
}
}
return $line;
}
 
?>
/gestion/admin/firewallEyes/index.html
0,0 → 1,17
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>firewall Eyes - Creabilis</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<frameset rows="115,*" frameborder="NO" border="0" framespacing="0">
<frame src="header.php" name="topFrame" scrolling="yes">
<frame src="logs.php" name="mainFrame">
</frameset>
<noframes>
<body>
Your browser doesn't support frames. Unable to get it working.
</body>
</noframes>
</html>
/gestion/admin/firewallEyes/logs.php
0,0 → 1,148
<?php
/*
* firewall Eyes
* Copyright (C) 2004 Creabilis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
include("configuration.php");
include("include.php");
 
// authentification check
authenticationCheck();
 
// Date in the past
header("Expires: Mon, 26 Jul 2004 00:00:00 GMT");
 
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
 
// HTTP/1.0
header("Pragma: no-cache");
 
set_time_limit (300);
 
// GET INPUT
// log file, get input or first logfile
$logfile=($_GET["logfile2display"] ? $logfiles[$_GET["logfile2display"]] : $logfiles[0]);
 
$displayedLines=($_GET["displayedLines"] ? $_GET["displayedLines"] : $configuration["displayedLines"]);
 
$configurationVars=Array("resolvIp","resolvService","readFromTheEnd","exactSearch","automaticRefresh");
foreach($configurationVars as $confVarName) {
${$confVarName}=($_GET["searchAction"] ? $_GET[$confVarName] : $configuration[$confVarName]);
 
}
 
// init
$lineCount=0;
$indexForAction=getIndexForColumn("action",$logFields);
$indexForProtocol=getIndexForColumn("protocol",$logFields);
// get inputs
$criteria=$_GET["criteria"];
 
$maxWidth=0;
for($i=0; $i<count($logFields); $i++) {
$maxWidth+=$logFields[$i][2];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Creabilis fw-Eyes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link href="log.css" rel="stylesheet" type="text/css"/>
<?php if ($automaticRefresh) {?>
<meta http-equiv="refresh" content="<?=$automaticRefreshInterval?>">
<?php } ?>
</head>
 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<div align="left" style="padding-left:18px">
<?php
if(!file_exists ($logfile)) {
die("Le fichier n'existe pas : $logfile");
}
if(!is_readable ($logfile)) {
die("Ne peut pas lire le fichier : $logfile");
}
 
$fd = fopen ($logfile, "r");
 
if ($readFromTheEnd){
// to the end
fseek($fd,0,SEEK_END);
}
while (($readFromTheEnd ? ftell($fd)>0 : !feof ($fd))) {
$line = ($readFromTheEnd ? fgetrs($fd) : fgets($fd, 1024));
if(preg_match($detectLine, $line)) { // it's a firewall line
if(preg_match($LineRegExp, $line, $infoTab)) {
// resolv dns/services
$infoTabOriginal=null;
resolvAll();
// Apply search array
if(criteriaMatches($criteria,$logFields,$infoTab,$exactSearch)) {
$lineCount++;
$nb=($nb==1 ? 2 : 1); // for alternate display
// line display
?>
<table class="<?=$infoTab[$indexForAction]?>" border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>">
<tr class="line<?=$nb?>">
<?php
for($i=0; $i<count($logFields); $i++)
{
?>
<td title="<?=($infoTabOriginal[$logFields[$i][1]] ? $infoTabOriginal[$logFields[$i][1]]." - " : "")?><?=$infoTab[$logFields[$i][1]]?>">
<span class="tabCell" style="width: <?=$logFields[$i][2]?>px" >
<?php
if($logFields[$i][4]) {
?>
<a href="info.php?type=<?=urlencode($logFields[$i][4])?>&p1=<?=urlencode($infoTab[$logFields[$i][1]])?>" title="informations"><img src="images/<?=str_replace(" ","-",($logFields[$i][0]))?>.gif" width="15" height="15" border="0" align="absmiddle"></a>
<?php
}
?>
&nbsp;<?=$infoTab[$logFields[$i][1]]?>
</span>
</td>
<?php
}?></tr>
</table>
<?php
flush();
}
 
}
}
if($lineCount>=$displayedLines) break;
}
// close file
fclose ($fd);
?>
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth+2?>" class="footer">
<tr>
<td align="center">
<A HREF="http://www.creabilis.com" target="creabilis">Firewall Eyes</A> - <A HREF="http://www.gnu.org/licenses/gpl.html">GPL</A> - Creabilis © 2004 - Web site : <A HREF="http://firewalleyes.creabilis.com">http://firewalleyes.creabilis.com</A>
</td>
</tr>
</table>
</div>
</body>
</html>
/gestion/admin/firewallEyes/readme.txt
0,0 → 1,2
Latest documentation and installation instructions on :
http://firewalleyes.creabilis.com
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/gestion/admin/firewallEyes/configuration.php
0,0 → 1,121
<?php
/*
* firewall Eyes
* Copyright (C) 2004 Creabilis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
 
// ***************** CONFIGURATION *********************
// activate authentication by IP
// $IPAuthentication=true|false;
$IPAuthentication=false;
// alowed clientIP
// one line by IP
// $allowedClientIP[]="127.0.0.1";
$allowedClientIP[]="127.0.0.1";
 
// logfiles to parse, default is first
// you can use file path like /etc/log/messages or nfs
// or http like http://www.host.com/messages
// or ftp like ftp://user:password@ftp.host.com/messages
// $logfiles[]="/var/log/messages";
//$logfiles[]="/var/log/messages";
//$logfiles[]="/var/log/messages.1";
//$logfiles[]="/var/log/messages.2";
//$logfiles[]="/var/log/messages.3";
//$logfiles[]="/var/log/messages.4";
$folder = "/var/log/firewall";
$dossier = opendir($folder);
$index=0;
while ($Fichier = readdir($dossier)) {
$exclusion = stripos ($Fichier, '.gz');
if ($Fichier != "." && $Fichier != ".." && $exclusion == 0) {
$index ++;
$logfiles[]=$folder . "/" . $Fichier;
} # end if
} # end while
closedir($dossier);
 
// automatic submit
// automatic reload log display just after changing a display option (search strings, resolving, ...)
// $automaticSubmit=true|false;
$automaticSubmit=true;
 
 
// default number of lines to display
$configuration["displayedLines"]=50;
 
// resolv ip
$configuration["resolvIp"]=false;
 
// resolv service
$configuration["resolvService"]=true;
 
// read log file from the end
$configuration["readFromTheEnd"]=true;
 
// exact search
$configuration["exactSearch"]=false;
 
// automatic refresh page every x secondes
//$configuration["automaticRefresh"]=false|true;
$configuration["automaticRefresh"]=false;
 
// refresh interval in seconds
$automaticRefreshInterval=10;
 
// column array
// syntax : name, index in regexp, width in pixels, type, toolname
// type can be ip or service or protocol, used for resolution
// to hide a column, just comment it with //
$logFields[]=Array("date","1","60",null,null);
$logFields[]=Array("heure","2","60",null,null);
$logFields[]=Array("intf","5","50",null,null);
$logFields[]=Array("source","6","150","ip","iptools");
$logFields[]=Array("destination","7","150","ip","iptools");
$logFields[]=Array("protocol","8","60","protocol",null);
$logFields[]=Array("src port","9","60",null,null);
$logFields[]=Array("dst port","10","80","service","srvtools");
$logFields[]=Array("r&egrave;gle","3","80",null,null);
$logFields[]=Array("action","4","80",null,null);
 
// ip tools
// types are command or url
// use %originalParameter% for values like ip address
// use %transformedParameter% for values like dns address
$tools["iptools"]["ping"]= array("type"=>"command", "value"=>"ping -c 5 %p1%");
$tools["iptools"]["traceroute"]=array("type"=>"command", "value"=>"traceroute %p1%");
$tools["iptools"]["DNS lookup"]= array("type"=>"command", "value"=>"host %p1%");
$tools["iptools"]["whois"]= array("type"=>"command", "value"=>"whois %p1%","precompute"=>"extractdomain");
$tools["iptools"]["nmap"]= array("type"=>"command", "value"=>"nmap %p1%");
$tools["iptools"]["HTTP Test"]= array("type"=>"url", "value"=>"http://%p1%");
 
// service tool
$tools["srvtools"]["ISS Port db"]= array("type"=>"url", "value"=>"http://www.iss.net/security_center/advice/Exploits/Ports/%p1%/default.htm");
$tools["srvtools"]["IANA ports"]= array("type"=>"url", "value"=>"http://www.iana.org/assignments/port-numbers");
$tools["srvtools"]["Google"]= array("type"=>"url", "value"=>"http://www.google.com/search?hl=en&q=port+%p1%");
 
// regExp for detecting a firewall line
$detectLine="/RULE/S";
 
// regExp for line parsing
$LineRegExp="/(\w+\s+\d+)\s+(\S+)\s+\S+.*RULE (\S+).+-\s+(\S+).*IN=(\S+).*SRC=(\S+)\s+DST=(\S+).*PROTO=(\S+).*SPT=(\S+).*DPT=(\S+)/S";
 
//line sample :
//Sep 24 18:07:35 passerelle kernel: RULE 14 -- ACCEPT IN=eth1 OUT= MAC=00:04:e2:43:1c:c4:00:0b:cd:f9:f4:42:08:00 SRC=192.168.0.1 DST=172.31.0.253 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=11059 DF PROTO=TCP SPT=1537 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0
 
?>
/gestion/admin/firewallEyes/header.php
0,0 → 1,154
<?php
/*
* firewall Eyes
* Copyright (C) 2004 Creabilis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
include("configuration.php");
include("include.php");
 
// authentification check
authenticationCheck();
 
// Date in the past
header("Expires: Mon, 26 Jul 2004 00:00:00 GMT");
 
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
 
// HTTP/1.0
header("Pragma: no-cache");
 
set_time_limit (300);
 
 
// TODO:
// predifined filters : all accept, all dropped/rejected
 
//line example :
//Sep 24 18:07:35 passerelle kernel: RULE 14 -- ACCEPT IN=eth1 OUT= MAC=00:04:e2:43:1c:c4:00:0b:cd:f9:f4:42:08:00 SRC=172.31.200.189 DST=172.31.1.253 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=11059 DF PROTO=TCP SPT=1537 DPT=8080 WINDOW=65535 RES=0x00 SYN URGP=0
 
$logfile=$configuration["logfile"];
$displayedLines=($_GET["displayedLines"] ? $_GET["displayedLines"] : $configuration["displayedLines"]);
 
$configurationVars=Array("resolvIp","resolvService","readFromTheEnd","exactSearch","automaticRefresh");
foreach($configurationVars as $confVarName) {
${$confVarName}=($_GET["searchAction"] ? $_GET[$confVarName] : $configuration[$confVarName]);
 
}
 
// init
$lineCount=0;
$indexForAction=getIndexForColumn("action",$logFields);
$indexForProtocol=getIndexForColumn("protocol",$logFields);
// get inputs
$criteria=$_GET["criteria"];
 
$maxWidth=0;
for($i=0; $i<count($logFields); $i++) {
$maxWidth+=$logFields[$i][2];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Creabilis fw-Eyes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link href="log.css" rel="stylesheet" type="text/css"/>
<script>
function myrefresh() {
<?php if ($automaticSubmit) {?>
document.forms["search"].submit()
<?php } ?>
}
</script>
</head>
 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<table width="100%" height="100" border="0" cellpadding="0" cellspacing="0" background="images/header-background.jpg">
<tr>
<td valign="bottom" align="left" style="padding-left:19px">
<form method="GET" action="logs.php" style="margin: 0px;padding: 0px;" name="search" target="mainFrame">
<INPUT type="hidden" name="searchAction" value="1">
<div class="topbox" >
</div>
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>">
<tr>
<td rowspan="2" valign="top"><img src="images/logo-firewallEyes.gif" width="58" height="38" align="top"><img src="images/firewallEyes.jpg" width="199" height="48" align="top"></td>
<td align="right" class="topbox"> lignes&nbsp;affich&eacute;es&nbsp;
<input name="displayedLines" type="text" class="inputText" style="width:30 px;" size="3" maxlength="6" value="<?=htmlentities(stripslashes($displayedLines))?>" onChange="myrefresh()">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fichier&nbsp;log&nbsp; <select name="logfile2display" class="inputText" onChange="myrefresh()">
<?php
foreach($logfiles as $currentIndex=>$currentLogfile) {
?>
<option value="<?=htmlspecialchars($currentIndex)?>">
<?=htmlspecialchars($currentLogfile)?>
</option>
<?php
}
?>
</select> &nbsp;&nbsp; <input type="checkbox" name="readFromTheEnd" id="readFromTheEnd" value="1" <?= ($readFromTheEnd ? "checked" : "")?> onClick="myrefresh()">
<label for="readFromTheEnd">&nbsp;lecture&nbsp;depuis&nbsp;la&nbsp;fin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label></td>
</tr>
<tr>
<td colspan="<?=count($logFields)?>" align="left" class="topbox">
<input type="checkbox" name="automaticRefresh" id="automaticRefresh" value="1" <?= ($automaticRefresh ? "checked" : "")?> onClick="myrefresh()">
<label for="automaticRefresh">raffraichissement auto&nbsp;&nbsp;</label>
<input type="checkbox" name="resolvIp" id="resolvIp" value="1" <?= ($resolvIp ? "checked" : "")?> onClick="myrefresh()">
<label for="resolvIp">resolv&nbsp;IP&nbsp;&nbsp;</label>
<input type="checkbox" name="resolvService" id="resolvService" value="1" <?= ($resolvService ? "checked" : "")?> onClick="myrefresh()">
<label for="resolvService">resolv&nbsp;services&nbsp;&nbsp;</label>
<input type="checkbox" name="exactSearch" id="exactSearch" value="1" <?= ($exactSearch ? "checked" : "")?> onClick="myrefresh()">
<label for="exactSearch">recherche&nbsp;exacte&nbsp;&nbsp;</label>
<input class="button" type="submit" value="Afficher">
<!--&nbsp;&nbsp;<input class="button" type="button" value="reset" onClick="top.window.location='index.html'">-->
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="<?=$maxWidth?>">
<tr>
<?php
// tab header
for($i=0; $i<count($logFields); $i++) {
?><td class="header"><span style="width: <?=$logFields[$i][2]?>px" class="header">&nbsp;<?=$logFields[$i][0]?></span>
</td><?php
}?>
</tr>
<tr>
<?php
// search form
for($i=0; $i<count($logFields); $i++) {
?><td><span style="width: <?=$logFields[$i][2]?>px"><input type="text" name="criteria[<?=htmlentities($logFields[$i][0])?>]" value="<?=htmlentities(stripslashes($criteria[$logFields[$i][0]]))?>" style="width: <?=$logFields[$i][2]?>px" class="inputText" onChange="myrefresh()"></span>
</td>
<?php
}?>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
/gestion/menu.php
0,0 → 1,154
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
<HTML>
<!-- written by Rexy ! -->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>menu</TITLE>
<link rel="stylesheet" href="css/style.css" type="text/css">
</HEAD>
<?
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_home = "ACCUEIL";
$l_system = "SYSTÈME";
$l_auth = "AUTHENTIFICATION";
$l_filter = "FILTRAGE";
$l_statistics = "STATISTIQUES";
$l_backup = "SAUVEGARDES";
$l_activity = "Activité";
$l_services = "Services";
$l_network = "Réseau";
$l_ldap = "Ldap";
$l_access_nb = "Accès au centre";
$l_create_user = "Créer usager";
$l_edit_user = "Éditer usager";
$l_create_group = "Créer groupe";
$l_edit_group = "Éditer groupe";
$l_import_empty = "Importer / Vider";
$l_network = "Réseau";
$l_stat_user_day = "usager/jour";
$l_stat_con = "connexions";
$l_stat_daily ="usage journalier";
$l_stat_web ="traffic WEB";
$l_firewall ="parefeu";
}
else {
$l_home = "HOME";
$l_system = "SYSTEM";
$l_auth = "AUTHENTICATION";
$l_filter = "FILTERING";
$l_statistics = "STATISTICS";
$l_backup = "BACKUPS";
$l_activity = "Activity";
$l_services = "Services";
$l_network = "Network";
$l_ldap = "Ldap";
$l_access_nb = "Access to center";
$l_create_user = "Create user";
$l_edit_user = "Edit user";
$l_create_group = "Create group";
$l_edit_group = "Edit group";
$l_import_empty = "Import / Empty";
$l_network = "Network";
$l_stat_user_day = "user/day";
$l_stat_con = "connections";
$l_stat_daily ="daily use";
$l_stat_web ="WEB traffic";
$l_firewall ="firewall";
}
echo "
<TABLE width=150 border=0 cellspacing=0 cellpadding=0>
<tr><th>Menu</th></tr>
<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1
height=2></td></tr>
</TABLE>
<TABLE width=150 border=1 cellspacing=0 cellpadding=0>
<tr bgcolor=\"#666666\"><td>
<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=2>
<TR><TD valign=\"middle\" align=\"left\">
<img src=\"images/right.gif\" height=10 width=10 border=no nosave><A HREF=\"phpsysinfo/\" TARGET=\"REXY2\">$l_home</A></TD></TR>";
if (isset($_GET['a'])) { $a=$_GET['a']; }
else $a=0;
if (isset($_GET['b'])) { $b=$_GET['b']; }
else $b=0;
$selection[0]=$l_system;
$selection[1]=$l_auth;
$selection[2]=$l_filter;
$selection[3]=$l_statistics;
$fichier[0]="system.php";
$fichier[1]="auth.php";
$fichier[2]="filtering.php";
$fichier[3]="stat.php";
$i=0;
$nb1=count($selection);
while ($i != $nb1)
{
if ($a==1 AND $i==$b)
{
echo "<TR><TD valign=\"middle\" align=\"left\"><img src=\"images/down2.gif\" height=10 width=10 border=no nosave><a href=\"menu.php?a=0&b=0\"><font color=\"black\"><b>$selection[$i]</b></font></a></TD></TR>";
include($fichier[$i]);
}
else
{
echo "<TR><TD valign=\"middle\" align=\"left\"><img src=\"images/right.gif\" height=10 width=10 border=no nosave><a href=\"menu.php?a=1&b=$i\">$selection[$i]</a></TD></TR>";
}
$i++;
}
echo "
<TR><TD valign=\"middle\" align=\"left\">
<img src=\"images/right.gif\" height=10 width=10 border=no nosave><A HREF=\"backup/sauvegarde.php\" TARGET=\"REXY2\">$l_backup</A></TD></TR>";
?>
</TABLE>
</td></tr>
</TABLE>
<br>
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
<tr><th>Doc</th></tr>
<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
<tr bgcolor="#666666"><td>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
width=10 border=no nosave><a href="alcasar-1.8-presentation.pdf" target="_blank">Présentation</a></td></tr>
<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
width=10 border=no nosave><a href="alcasar-1.8-installation.pdf" target="_blank">Installation</a></td></tr>
<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
width=10 border=no nosave><a href="alcasar-1.8-exploitation.pdf" target="_blank">Exploitation</a></td></tr>
</TABLE>
</td></tr>
</TABLE>
<BR>
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
<tr><th><? echo "$l_access_nb"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
<tr bgcolor="#666666"><td>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td valign="middle" align="center">
<? // Compteur d'accès
$name_fic="compteur.txt";
// Recuperation du nombre de visite
if (($fp=fopen($name_fic,"r")) == false) exit;
$nb=fgets($fp,10);
fclose($fp);
$nb+=1;
printf("%d", $nb);
// Ecriture du nombre de visite
if (($fp=fopen($name_fic,"w")) == false) exit;
fputs($fp, "$nb\n");
fclose($fp);
?>
<br>depuis le 23/12/2009<br></center></td></tr>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
/gestion/phpsysinfo/includes/xml/portail.php
0,0 → 1,179
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: vitals.php,v 1.32 2007/02/18 18:59:54 bigmichi1 Exp $
 
// xml_utilisateur()
 
function utilisateur () {
$strResult = 0;
// Déclaration des paramètres de connexion
$host = "localhost";
$DB_USER = "radius";
$DB_RADIUS = "radius";
$radiuspwd = "gLMmnOpk";
// Connexion au serveur
mysql_connect($host, $DB_USER,$radiuspwd) or die("erreur de connexion au serveur");
mysql_select_db($DB_RADIUS) or die("erreur de connexion a la base de donnees");
// Creation et envoi de la requete
$query = "SELECT UserName FROM userinfo";
$result = mysql_query($query);
// Recuperation des resultats
$strResult = mysql_num_rows($result);
// Deconnexion de la base de donnees
mysql_close();
return $strResult;
}
 
function groupe () {
$strResult = 0;
// Déclaration des paramètres de connexion
$host = "localhost";
$DB_USER = "radius";
$DB_RADIUS = "radius";
$radiuspwd = "gLMmnOpk";
// Connexion au serveur
mysql_connect($host, $DB_USER,$radiuspwd) or die("erreur de connexion au serveur");
mysql_select_db($DB_RADIUS) or die("erreur de connexion a la base de donnees");
// Creation et envoi de la requete
$query = "SELECT GroupName FROM radusergroup GROUP BY GroupName";
$result = mysql_query($query);
// Recuperation des resultats
$strResult = mysql_num_rows($result);
// Deconnexion de la base de donnees
mysql_close();
return $strResult;
}
 
function xml_portail () {
global $sysinfo;
$_text = " <Portail>\n"
// . " <Utilisateur>" . htmlspecialchars( $sysinfo->utilisateur(), ENT_QUOTES ) . "</Utilisateur>\n"
. " <Utilisateur>" . htmlspecialchars( utilisateur(), ENT_QUOTES ) . "</Utilisateur>\n"
. " <Groupe>" . htmlspecialchars( trim( groupe() ), ENT_QUOTES ) . "</Groupe>\n";
$_text .= " </Portail>\n";
return $_text;
}
 
// Fonction de test de connectivité internet
function internetTest(){
$host = "www.google.fr";
$port = "80";
//var $num; //non utilisé
//var $error; //non utilisé
if (! $sock = @fsockopen($host, $port, $num, $error, 5)) {
return false;
} else {
fclose($sock);
return true;
}
}
 
// html_portail()
function html_portail () {
global $webpath;
global $XPath;
global $text;
 
$file_version = "/var/www/html/VERSION";
$handle = fopen ($file_version, "r");
$INSTALLEDVERSION = fread ($handle, filesize ($file_version));
fclose ($handle);
$version_stable = dns_get_record("version.alcasar.info",DNS_TXT);
$AVAILABLEDVERSION = $version_stable[0]['txt'];
$version_devel = dns_get_record("devel.alcasar.info",DNS_TXT);
$DEVELVERSION = $version_devel[0]['txt'];
$file_bl = "/var/www/html/VERSION-BL";
$handle = fopen ($file_bl, "r");
$VERSIONBL = fread ($handle, filesize ($file_bl));
fclose ($handle);
$nbr_user = utilisateur ();
$nbr_grp = groupe ();
$nbr_user_online = exec ("sudo /usr/sbin/chilli_query list | cut -d\" \" -f5 | grep \"1\" | wc -l");
 
if (InternetTest()){
$internet_status = "<img src='/images/state_ok.gif'>".$text['internet_enable'];
} else {
$internet_status = "<img src='/images/state_error.gif'>".$text['internet_disable'];
}
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['portail-version'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $INSTALLEDVERSION . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['portail-stable'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $AVAILABLEDVERSION . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['portail-devel'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $DEVELVERSION . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['utilisateur'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $nbr_user_online . " / " . $nbr_user . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['groupe'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $nbr_grp . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['bl-version'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $VERSIONBL . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['internet_link'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $internet_status . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\" colspan=\"2\"><font size=\"-1\"><a href=\"/certs/certificat_alcasar_ca.pem\">" . $text['ca'] . "</a></font></td>\n"
. " </tr>\n"
. "</table>\n";
return $_text;
}
 
function wml_portail () {
global $XPath;
global $text;
$_text = "<card id=\"vitals\" title=\"" . $text['vitals'] . "\">\n"
. "<p>" . $text['hostname'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</p>\n"
. "<p>" . $text['ip'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/IPAddr" ) . "</p>\n"
. "<p>" . $text['kversion'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Kernel" ) . "</p>\n"
. "<p>" . $text['uptime'] . ":<br/>\n"
. "-&nbsp;" . uptime( $XPath->getData( "/phpsysinfo/Vitals/Uptime" ) ) . "</p>\n"
. "<p>" . $text['users'] . ":<br/>"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Users" ) . "</p>\n"
. "<p>" . $text['loadavg'] . ":<br/>"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/LoadAvg" ) . "</p>\n"
. "</card>\n";
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/network.php
0,0 → 1,95
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: network.php,v 1.15 2007/02/08 20:16:25 bigmichi1 Exp $
 
//
// xml_network()
//
function xml_network () {
global $sysinfo;
$arrNet = $sysinfo->network();
$_text = " <Network>\n";
foreach( $arrNet as $strDev => $arrStats ) {
$_text .= " <NetDevice>\n"
. " <Name>" . htmlspecialchars( trim( $strDev ), ENT_QUOTES ) . "</Name>\n"
. " <RxBytes>" . htmlspecialchars( $arrStats['rx_bytes'], ENT_QUOTES ) . "</RxBytes>\n"
. " <TxBytes>" . htmlspecialchars( $arrStats['tx_bytes'], ENT_QUOTES ) . "</TxBytes>\n"
. " <Errors>" . htmlspecialchars( $arrStats['errs'], ENT_QUOTES ) . "</Errors>\n"
. " <Drops>" . htmlspecialchars( $arrStats['drop'], ENT_QUOTES ) . "</Drops>\n"
. " </NetDevice>\n";
}
$_text .= " </Network>\n";
return $_text;
}
 
//
// html_network()
//
function html_network () {
global $XPath;
global $text;
$textdir = direction();
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['device'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['received'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['sent'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['errors'] . "</b></font></td>\n"
. " </tr>\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/Network" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/Network/NetDevice[" . $i . "]/Name" ) ) {
$_text .= " <tr>\n";
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/Name" ) . "</font></td>\n";
$_text .= " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/RxBytes" ) / 1024 ) . "</font></td>\n";
$_text .= " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/TxBytes" ) / 1024 ) . "</font></td>\n";
$_text .= " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/Errors" ) . '/' . $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/Drops" ) . "</font></td>\n";
$_text .= " </tr>\n";
}
}
$_text .= "</table>";
return $_text;
}
 
function wml_network() {
global $XPath;
global $text;
$_text = "<card id=\"network\" title=\"" . $text['netusage'] . "\">\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/Network" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/Network/NetDevice[" . $i . "]/Name" ) ) {
$_text .= "<p>" . $text['device'] . ": " . $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/Name" ) . "<br/>\n"
. "- U: " . format_bytesize( $XPath->getData("/phpsysinfo/Network/NetDevice[" . $i . "]/TxBytes" ) / 1024 ) . "<br/>\n"
. "- D: " . format_bytesize( $XPath->getData("/phpsysinfo/Network/NetDevice[" . $i . "]/RxBytes" ) / 1024 ) . "<br/>\n"
. "- E: " . $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/Errors" ) . '/' . $XPath->getData( "/phpsysinfo/Network/NetDevice[" . $i . "]/Drops" ) . "</p>\n";
}
}
$_text .= "</card>\n";
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/utilisateur.php.2
0,0 → 1,87
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: vitals.php,v 1.32 2007/02/18 18:59:54 bigmichi1 Exp $
 
// xml_vitals()
 
function xml_utilisateur () {
global $sysinfo;
global $loadbar;
global $show_vhostname;
$strLoadavg = "";
$arrBuf = ( $loadbar ? $sysinfo->loadavg( $loadbar ) : $sysinfo->loadavg() );
foreach( $arrBuf['avg'] as $strValue) {
$strLoadavg .= $strValue . ' ';
}
$_text = " <Portail>\n"
. " <Utilisateur>" . htmlspecialchars( $show_vhostname ? $sysinfo->vhostname() : $sysinfo->chostname(), ENT_QUOTES ) . "</Utilisateur>\n"
. " <Groupe>" . htmlspecialchars( $show_vhostname ? $sysinfo->vip_addr() : $sysinfo->ip_addr(), ENT_QUOTES ) . "</Groupe>\n";
$_text .= " </Portail>\n";
return $_text;
}
 
// html_vitals()
function html_utilisateur () {
global $webpath;
global $XPath;
global $text;
$textdir = direction();
$scale_factor = 2;
$strLoadbar = "";
$uptime = "";
if( $XPath->match( "/phpsysinfo/Portail/User" ) )
$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . "&nbsp;" . $XPath->getData( "/phpsysinfo/Portail/User" ) . "%";
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['utilisateur'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Portail/Utilisateur" ) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['groupe'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Portail/Groupe" ) . "</font></td>\n"
. " </tr>\n"
. "</table>\n";
return $_text;
}
 
function wml_utilisateur () {
global $XPath;
global $text;
$_text = "<card id=\"vitals\" title=\"" . $text['vitals'] . "\">\n"
. "<p>" . $text['hostname'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</p>\n"
. "<p>" . $text['ip'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/IPAddr" ) . "</p>\n"
. "</card>\n";
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/mbinfo.php
0,0 → 1,208
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: mbinfo.php,v 1.20 2007/02/18 19:11:31 bigmichi1 Exp $
 
function xml_mbinfo() {
global $text;
global $mbinfo;
$_text = "";
$arrBuff = $mbinfo->temperature();
$_text = " <MBinfo>\n";
if( sizeof($arrBuff ) > 0 ) {
$_text .= " <Temperature>\n";
foreach( $arrBuff as $arrValue ) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars( $arrValue['label'], ENT_QUOTES ) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars( $arrValue['value'], ENT_QUOTES ) . "</Value>\n";
$_text .= " <Limit>" . htmlspecialchars( $arrValue['limit'], ENT_QUOTES ) . "</Limit>\n";
$_text .= " </Item>\n";
}
$_text .= " </Temperature>\n";
}
$arrBuff = $mbinfo->fans();
if( sizeof( $arrBuff ) > 0 ) {
$_text .= " <Fans>\n";
foreach( $arrBuff as $arrValue ) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars( $arrValue['label'], ENT_QUOTES ) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars( $arrValue['value'], ENT_QUOTES ) . "</Value>\n";
$_text .= " <Min>" . htmlspecialchars( $arrValue['min'], ENT_QUOTES ) . "</Min>\n";
$_text .= " </Item>\n";
}
$_text .= " </Fans>\n";
}
$arrBuff = $mbinfo->voltage();
if( sizeof( $arrBuff ) > 0 ) {
$_text .= " <Voltage>\n";
foreach( $arrBuff as $arrValue ) {
$_text .= " <Item>\n";
$_text .= " <Label>" . htmlspecialchars( $arrValue['label'], ENT_QUOTES ) . "</Label>\n";
$_text .= " <Value>" . htmlspecialchars( $arrValue['value'], ENT_QUOTES ) . "</Value>\n";
$_text .= " <Min>" . htmlspecialchars( $arrValue['min'], ENT_QUOTES ) . "</Min>\n";
$_text .= " <Max>" . htmlspecialchars( $arrValue['max'], ENT_QUOTES ) . "</Max>\n";
$_text .= " </Item>\n";
}
$_text .= " </Voltage>\n";
}
$_text .= " </MBinfo>\n";
return $_text;
}
 
function html_mbtemp() {
global $text;
global $XPath;
$textdir = direction();
$scale_factor = 2;
$_text = " <tr>\n"
. " <td><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_limit'] . "</b></font></td>\n"
. " </tr>\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Temperature" ) ); $i < $max; $i++ ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Label" ) . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">";
if( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) == 0) {
$_text .= "Unknown - Not connected?";
} else {
$_text .= create_bargraph( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ), $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Limit" ), $scale_factor );
}
$_text .= temperature( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . temperature( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Limit" ) ) . "</font></td>\n"
. " </tr>\n";
}
return $_text;
}
 
function html_mbfans() {
global $text;
global $XPath;
$textdir = direction();
$booShowfans = false;
$_text ="<table width=\"100%\">\n";
$_text .= " <tr>\n"
. " <td><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_min'] . "</b></font></td>\n"
. " </tr>\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Fans" ) ); $i < $max; $i++ ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Fans/Item[" . $i . "]/Label" ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . round( $XPath->getData( "/phpsysinfo/MBinfo/Fans/Item[" . $i . "]/Value" ) ) . " " . $text['rpm_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Fans/Item[" . $i . "]/Min" ) . " " . $text['rpm_mark'] . "</font></td>\n"
. " </tr>\n";
if( round( $XPath->getData( "/phpsysinfo/MBinfo/Fans/Item[" . $i . "]/Value" ) ) > 0 ) {
$booShowfans = true;
}
}
$_text .= "</table>\n";
if( ! $booShowfans ) {
$_text = "";
}
return $_text;
}
 
function html_mbvoltage() {
global $text;
global $XPath;
$textdir = direction();
$_text = "<table width=\"100%\">\n";
$_text .= " <tr>\n"
. " <td><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_min'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\"><font size=\"-1\"><b>" . $text['s_max'] . "</b></font></td>\n"
. " </tr>\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Voltage" ) ); $i < $max; $i++ ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Label" ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Value" ) . " " . $text['voltage_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Min" ) . " " . $text['voltage_mark'] . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Max" ) . " " . $text['voltage_mark'] . "</font></td>\n"
. " </tr>\n";
}
$_text .= "</table>\n";
return $_text;
}
 
function wml_mbtemp() {
global $XPath;
$_text = "";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Temperature" ) ); $i < $max; $i++ ) {
$_text .= "<p>" . $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Label" ) . ": ";
if( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) == 0 ) {
$_text .= "Unknown - Not connected?</p>";
} else {
$_text .= "&nbsp;" . str_replace( "&deg;", "", temperature( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) ) ) . "</p>\n";
}
}
return $_text;
}
 
function wml_mbfans() {
global $text;
global $XPath;
$_text = "<card id=\"fans\" title=\"" . $text['fans'] . "\">\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Fans" ) ); $i < $max; $i++ ) {
$_text .= "<p>" . $XPath->getData( "/phpsysinfo/MBinfo/Fans/Item[" . $i . "]/Label" ) . ": " . round( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) ) . "&nbsp;" . $text['rpm_mark'] . "</p>\n";
}
$_text .= "</card>\n";
return $_text;
}
 
function wml_mbvoltage() {
global $text;
global $XPath;
$_text = "<card id=\"volt\" title=\"" . $text['voltage'] . "\">\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Voltage" ) ); $i < $max; $i++ ) {
$_text .= "<p>" . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Label" ) . ": " . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Value" ) . "&nbsp;" . $text['voltage_mark'] . "</p>\n";
}
$_text .= "</card>\n";
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/hardware.php
0,0 → 1,224
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: hardware.php,v 1.36 2007/01/21 11:13:51 bigmichi1 Exp $
 
function xml_hardware() {
global $sysinfo;
global $text;
$strPcidevices = ""; $strIdedevices = ""; $strUsbdevices = ""; $strScsidevices = "";
$arrSys = $sysinfo->cpu_info();
$arrBuf = finddups( $sysinfo->pci() );
if( count( $arrBuf ) ) {
for( $i = 0, $max = sizeof($arrBuf); $i < $max; $i++ ) {
if( $arrBuf[$i] ) {
$strPcidevices .= " <Device><Name>" . htmlspecialchars( chop( $arrBuf[$i] ), ENT_QUOTES ) . "</Name></Device>\n";
}
}
}
$arrBuf = $sysinfo->ide();
if( count( $arrBuf ) ) {
foreach( $arrBuf as $strKey => $arrValue ) {
$strIdedevices .= " <Device>\n<Name>" . htmlspecialchars( $strKey . ': ' . $arrValue['model'], ENT_QUOTES ) . "</Name>\n";
if( isset( $arrValue['capacity'] ) ) {
$strIdedevices .= '<Capacity>' . htmlspecialchars( $arrValue['capacity'], ENT_QUOTES ) . '</Capacity>';
}
$strIdedevices .= "</Device>\n";
}
}
$arrBuf = $sysinfo->scsi();
if( count( $arrBuf ) ) {
foreach( $arrBuf as $strKey => $arrValue ) {
$strScsidevices .= "<Device>\n";
if( $strKey >= '0' && $strKey <= '9' ) {
$strScsidevices .= " <Name>" . htmlspecialchars( $arrValue['model'], ENT_QUOTES ) . "</Name>\n";
} else {
$strScsidevices .= " <Name>" . htmlspecialchars( $strKey . ': ' . $arrValue['model'], ENT_QUOTES ) . "</Name>\n";
}
if( isset( $arrrValue['capacity'])) {
$strScsidevices .= '<Capacity>' . htmlspecialchars( $arrValue['capacity'], ENT_QUOTES ) . '</Capacity>';
}
$strScsidevices .= "</Device>\n";
}
}
$arrBuf = finddups( $sysinfo->usb() );
if( count( $arrBuf ) ) {
for( $i = 0, $max = sizeof( $arrBuf ); $i < $max; $i++ ) {
if( $arrBuf[$i] ) {
$strUsbdevices .= " <Device><Name>" . htmlspecialchars( chop( $arrBuf[$i] ), ENT_QUOTES ) . "</Name></Device>\n";
}
}
}
$_text = " <Hardware>\n";
$_text .= " <CPU>\n";
if( isset( $arrSys['cpus'] ) ) {
$_text .= " <Number>" . htmlspecialchars( $arrSys['cpus'], ENT_QUOTES ) . "</Number>\n";
}
if( isset( $arrSys['model'] ) ) {
$_text .= " <Model>" . htmlspecialchars( $arrSys['model'], ENT_QUOTES ) . "</Model>\n";
}
if( isset( $arrSys['temp'] ) ) {
$_text .= " <Cputemp>" . htmlspecialchars( $arrSys['temp'], ENT_QUOTES ) . "</Cputemp>\n";
}
if( isset( $arrSys['cpuspeed'] ) ) {
$_text .= " <Cpuspeed>" . htmlspecialchars( $arrSys['cpuspeed'], ENT_QUOTES ) . "</Cpuspeed>\n";
}
if( isset( $arrSys['busspeed'] ) ) {
$_text .= " <Busspeed>" . htmlspecialchars( $arrSys['busspeed'], ENT_QUOTES ) . "</Busspeed>\n";
}
if( isset( $arrSys['cache'] ) ) {
$_text .= " <Cache>" . htmlspecialchars( $arrSys['cache'], ENT_QUOTES ) . "</Cache>\n";
}
if( isset( $arrSys['bogomips'] ) ) {
$_text .= " <Bogomips>" . htmlspecialchars( $arrSys['bogomips'], ENT_QUOTES ) . "</Bogomips>\n";
}
$_text .= " </CPU>\n";
$_text .= " <PCI>\n";
if( $strPcidevices) {
$_text .= $strPcidevices;
}
$_text .= " </PCI>\n";
$_text .= " <IDE>\n";
if( $strIdedevices) {
$_text .= $strIdedevices;
}
$_text .= " </IDE>\n";
$_text .= " <SCSI>\n";
if( $strScsidevices) {
$_text .= $strScsidevices;
}
$_text .= " </SCSI>\n";
$_text .= " <USB>\n";
if($strUsbdevices) {
$_text .= $strUsbdevices;
}
$_text .= " </USB>\n";
$_text .= " </Hardware>\n";
 
return $_text;
}
 
function html_hardware () {
global $XPath;
global $text;
$strPcidevices = ""; $strIdedevices = ""; $strUsbdevices = ""; $strScsidevices = "";
$textdir = direction();
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/Hardware/PCI" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/Hardware/PCI/Device[" . $i . "]/Name" ) ) {
$strPcidevices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/PCI/Device[" . $i . "]/Name" ) . "</font></td></tr>";
}
}
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/Hardware/IDE" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/Hardware/IDE/Device[" . $i . "]" ) ) {
$strIdedevices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/IDE/Device[" . $i . "]/Name" );
if( $XPath->match( "/phpsysinfo/Hardware/IDE/Device[" . $i . "]/Capacity" ) ) {
$strIdedevices .= " (" . $text['capacity'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Hardware/IDE/Device[" . $i . "]/Capacity" ) / 2 ) . ")";
}
$strIdedevices .= "</font></td></tr>";
}
}
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/Hardware/SCSI" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/Hardware/SCSI/Device[" . $i . "]" ) ) {
$strScsidevices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/SCSI/Device[" . $i . "]/Name" );
if( $XPath->match( "/phpsysinfo/Hardware/SCSI/Device[" . $i . "]/Capacity" ) ) {
$strScsidevices .= " (" . $text['capacity'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Hardware/SCSI/Device[" . $i . "]/Capacity" ) / 2 ) . ")";
}
$strScsidevices .= "</font></td></tr>";
}
}
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/Hardware/USB" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/Hardware/USB/Device[" . $i . "]/Name" )) {
$strUsbdevices .= "<tr><td valign=\"top\"><font size=\"-1\">-</font></td><td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/USB/Device[" . $i . "]/Name" ) . "</font></td></tr>";
}
}
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n";
if( $XPath->match( "/phpsysinfo/Hardware/CPU/Number" ) ) {
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['numcpu'] . "</font></td>\n <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/CPU/Number" ) . "</font></td>\n </tr>\n";
}
if( $XPath->match( "/phpsysinfo/Hardware/CPU/Model" ) ) {
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['cpumodel'] . "</font></td>\n <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/CPU/Model" );
if( $XPath->match( "/phpsysinfo/Hardware/CPU/Cputemp" ) ) {
$_text .= "&nbsp;@&nbsp;" . temperature( $XPath->getData( "/phpsysinfo/Hardware/CPU/Cputemp" ) );
}
$_text .= "</font></td>\n </tr>\n";
}
if( $XPath->match( "/phpsysinfo/Hardware/CPU/Cpuspeed" ) ) {
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['cpuspeed'] . "</font></td>\n <td><font size=\"-1\">" . format_speed( $XPath->getData( "/phpsysinfo/Hardware/CPU/Cpuspeed" ) ) . "</font></td>\n </tr>\n";
}
if( $XPath->match( "/phpsysinfo/Hardware/CPU/Busspeed" ) ) {
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['busspeed'] . "</font></td>\n <td><font size=\"-1\">" . format_speed( $XPath->getData( "/phpsysinfo/Hardware/CPU/Busspeed" ) ) . "</font></td>\n </tr>\n";
}
if( $XPath->match("/phpsysinfo/Hardware/CPU/Cache" ) ) {
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['cache'] . "</font></td>\n <td><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Hardware/CPU/Cache" ) ) . "</font></td>\n </tr>\n";
}
if( $XPath->match( "/phpsysinfo/Hardware/CPU/Bogomips" ) ) {
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['bogomips'] . "</font></td>\n <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Hardware/CPU/Bogomips" ) . "</font></td>\n </tr>\n";
}
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['pci'] . "</font></td>\n <td>";
if( $strPcidevices) {
$_text .= "<table>" . $strPcidevices . "</table>";
} else {
$_text .= "<font size=\"-1\"><i>" . $text['none'] . "</i></font>";
}
$_text .= "</td>\n </tr>\n";
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['ide'] . "</font></td>\n <td>";
if( $strIdedevices ) {
$_text .= "<table>" . $strIdedevices . "</table>";
} else {
$_text .= "<font size=\"-1\"><i>" . $text['none'] . "</i></font>";
}
$_text .= "</td>\n </tr>\n";
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['scsi'] . "</font></td>\n <td>";
if( $strScsidevices ) {
$_text .= "<table>" . $strScsidevices . "</table></td>\n </tr>";
} else {
$_text .= "<font size=\"-1\"><i>" . $text['none'] . "</i></font>";
}
$_text .= " <tr>\n <td valign=\"top\"><font size=\"-1\">" . $text['usb'] . "</font></td>\n <td>";
if( $strUsbdevices) {
$_text .= "<table>" . $strUsbdevices . "</table></td>\n </tr>";
} else {
$_text .= "<font size=\"-1\"><i>" . $text['none'] . "</i></font>";
}
$_text .= "</table>";
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/vitals.php
0,0 → 1,124
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: vitals.php,v 1.32 2007/02/18 18:59:54 bigmichi1 Exp $
 
// xml_vitals()
 
function xml_vitals () {
global $sysinfo;
global $loadbar;
global $show_vhostname;
$strLoadavg = "";
$arrBuf = ( $loadbar ? $sysinfo->loadavg( $loadbar ) : $sysinfo->loadavg() );
foreach( $arrBuf['avg'] as $strValue) {
$strLoadavg .= $strValue . ' ';
}
$_text = " <Vitals>\n"
. " <Hostname>" . htmlspecialchars( $show_vhostname ? $sysinfo->vhostname() : $sysinfo->chostname(), ENT_QUOTES ) . "</Hostname>\n"
. " <IPAddr>" . htmlspecialchars( $show_vhostname ? $sysinfo->vip_addr() : $sysinfo->ip_addr(), ENT_QUOTES ) . "</IPAddr>\n"
. " <Kernel>" . htmlspecialchars( $sysinfo->kernel(), ENT_QUOTES ) . "</Kernel>\n"
. " <Distro>" . htmlspecialchars( $sysinfo->distro(), ENT_QUOTES ) . "</Distro>\n"
. " <Distroicon>" . htmlspecialchars( $sysinfo->distroicon(), ENT_QUOTES ) . "</Distroicon>\n"
. " <Uptime>" . htmlspecialchars( $sysinfo->uptime(), ENT_QUOTES ) . "</Uptime>\n"
. " <Users>" . htmlspecialchars( $sysinfo->users(), ENT_QUOTES ) . "</Users>\n"
. " <LoadAvg>" . htmlspecialchars( trim( $strLoadavg ), ENT_QUOTES ) . "</LoadAvg>\n";
if( isset( $arrBuf['cpupercent'] ) ) {
$_text .= " <CPULoad>" . htmlspecialchars( round( $arrBuf['cpupercent'], 2 ), ENT_QUOTES ) . "</CPULoad>";
}
$_text .= " </Vitals>\n";
return $_text;
}
 
// html_vitals()
function html_vitals () {
global $webpath;
global $XPath;
global $text;
$textdir = direction();
$scale_factor = 2;
$strLoadbar = "";
$uptime = "";
if( $XPath->match( "/phpsysinfo/Vitals/CPULoad" ) )
$strLoadbar = "<br>" . create_bargraph( $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ), 100, $scale_factor ) . "&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/CPULoad" ) . "%";
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['hostname'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['ip'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/IPAddr" ) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['kversion'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Kernel" ) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['dversion'] . "</font></td>\n"
. " <td><img width=\"16\" height=\"16\" alt=\"\" src=\"" . $webpath . "images/" . $XPath->getData( "/phpsysinfo/Vitals/Distroicon" ) . "\">&nbsp;<font size=\"-1\">" . $XPath->getData("/phpsysinfo/Vitals/Distro") . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['uptime'] . "</font></td>\n"
. " <td><font size=\"-1\">" . uptime( $XPath->getData( "/phpsysinfo/Vitals/Uptime" ) ) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['users'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/Users" ) . "</font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td valign=\"top\"><font size=\"-1\">" . $text['loadavg'] . "</font></td>\n"
. " <td><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/Vitals/LoadAvg" ) . $strLoadbar . "</font></td>\n"
. " </tr>\n"
. "</table>\n";
return $_text;
}
 
function wml_vitals () {
global $XPath;
global $text;
$_text = "<card id=\"vitals\" title=\"" . $text['vitals'] . "\">\n"
. "<p>" . $text['hostname'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Hostname" ) . "</p>\n"
. "<p>" . $text['ip'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/IPAddr" ) . "</p>\n"
. "<p>" . $text['kversion'] . ":<br/>\n"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Kernel" ) . "</p>\n"
. "<p>" . $text['uptime'] . ":<br/>\n"
. "-&nbsp;" . uptime( $XPath->getData( "/phpsysinfo/Vitals/Uptime" ) ) . "</p>\n"
. "<p>" . $text['users'] . ":<br/>"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/Users" ) . "</p>\n"
. "<p>" . $text['loadavg'] . ":<br/>"
. "-&nbsp;" . $XPath->getData( "/phpsysinfo/Vitals/LoadAvg" ) . "</p>\n"
. "</card>\n";
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/index.html
--- phpsysinfo/includes/xml/hddtemp.php (nonexistent)
+++ phpsysinfo/includes/xml/hddtemp.php (revision 40)
@@ -0,0 +1,90 @@
+<?php
+/***************************************************************************
+ * Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
+ * http://phpsysinfo.sourceforge.net/ *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+// $Id: hddtemp.php,v 1.13 2007/02/08 20:16:25 bigmichi1 Exp $
+
+function xml_hddtemp() {
+ global $hddtemp_avail, $hddtemp;
+ $arrBuf = $hddtemp->temperature( $hddtemp_avail );
+
+ $_text = " <HDDTemp>\n";
+ for( $i = 0, $max = sizeof( $arrBuf ); $i < $max; $i++ ) {
+ $_text .= " <Item>\n";
+ $_text .= " <Label>" . htmlspecialchars( $arrBuf[$i]['label'], ENT_QUOTES ) . "</Label>\n";
+ $_text .= " <Value>" . htmlspecialchars( $arrBuf[$i]['value'], ENT_QUOTES ) . "</Value>\n";
+ $_text .= " <Model>" . htmlspecialchars( $arrBuf[$i]['model'], ENT_QUOTES ) . "</Model>\n";
+ $_text .= " </Item>\n";
+ }
+ $_text .= " </HDDTemp>\n";
+
+ return $_text;
+}
+
+function html_hddtemp() {
+ global $XPath;
+ global $text;
+ global $sensor_program;
+
+ $textdir = direction();
+ $scale_factor = 2;
+ $_text = "";
+ $maxvalue = "+60";
+
+ if( $XPath->match( "/phpsysinfo/HDDTemp" ) ) {
+ for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/HDDTemp" ) ); $i < $max; $i++ ) {
+ if( $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Value" ) != 0 ) {
+ $_text .= " <tr>\n";
+ $_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">". $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Model" ) . "</font></td>\n";
+ $_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\" nowrap><font size=\"-1\">";
+ $_text .= create_bargraph( $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Value" ), $maxvalue, $scale_factor );
+ $_text .= temperature( $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Value" ) ) . "</font></td>\n";
+ $_text .= " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . temperature( $maxvalue ) . "</font></td></tr>\n";
+ }
+ }
+ }
+ if( strlen( $_text ) > 0 && empty( $sensor_program ) ) {
+ $_text = " <tr>\n"
+ . " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_label'] . "</b></font></td>\n"
+ . " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_value'] . "</b></font></td>\n"
+ . " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['s_limit'] . "</b></font></td>\n"
+ . " </tr>" . $_text;
+ }
+
+ return $_text;
+}
+
+function wml_hddtemp() {
+ global $XPath;
+ global $text;
+
+ $_text = "";
+
+ if( $XPath->match( "/phpsysinfo/HDDTemp" ) ) {
+ for( $i = 1; $i < sizeof( $XPath->getDataParts( "/phpsysinfo/HDDTemp" ) ); $i++ ) {
+ if( $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Value") != 0 ) {
+ $_text .= "<p>" . $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Model" ) . ": " . str_replace( "&deg;", "", temperature( $XPath->getData( "/phpsysinfo/HDDTemp/Item[" . $i . "]/Value" ) ) ) . "</p>\n";
+ }
+ }
+ }
+
+ return $_text;
+}
+?>
/gestion/phpsysinfo/includes/xml/filesystems.php
0,0 → 1,164
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: filesystems.php,v 1.31 2007/02/08 20:16:25 bigmichi1 Exp $
 
//
// xml_filesystems()
//
function xml_filesystems () {
global $sysinfo;
global $show_mount_point;
$arrFs = $sysinfo->filesystems();
$_text = " <FileSystem>\n";
for ( $i = 0, $max = sizeof( $arrFs ); $i < $max; $i++ ) {
$_text .= " <Mount>\n";
$_text .= " <MountPointID>" . htmlspecialchars( $i, ENT_QUOTES ) . "</MountPointID>\n";
if( $show_mount_point ) {
$_text .= " <MountPoint>" . htmlspecialchars( $arrFs[$i]['mount'], ENT_QUOTES ) . "</MountPoint>\n";
}
$_text .= " <Type>" . htmlspecialchars( $arrFs[$i]['fstype'], ENT_QUOTES ) . "</Type>\n"
. " <Device><Name>" . htmlspecialchars( $arrFs[$i]['disk'], ENT_QUOTES ) . "</Name></Device>\n"
. " <Percent>" . htmlspecialchars( $arrFs[$i]['percent'], ENT_QUOTES ) . "</Percent>\n"
. " <Free>" . htmlspecialchars( $arrFs[$i]['free'], ENT_QUOTES ) . "</Free>\n"
. " <Used>" . htmlspecialchars( $arrFs[$i]['used'], ENT_QUOTES ) . "</Used>\n"
. " <Size>" . htmlspecialchars( $arrFs[$i]['size'], ENT_QUOTES ) . "</Size>\n";
if( isset( $arrFs[$i]['options'] ) ) {
$_text .= " <Options>" . htmlspecialchars( $arrFs[$i]['options'], ENT_QUOTES ) . "</Options>\n";
}
if( isset( $arrFs[$i]['inodes'] ) ) {
$_text .= " <Inodes>" . htmlspecialchars( $arrFs[$i]['inodes'], ENT_QUOTES ) . "</Inodes>\n";
}
$_text .= " </Mount>\n";
}
$_text .= " </FileSystem>\n";
return $_text;
}
 
//
// html_filesystems()
//
function html_filesystems () {
global $XPath;
global $text;
global $show_mount_point;
$textdir = direction();
$arrSum = array("size" => 0, "used" => 0, "free" => 0);
$arrCounteddevlist = array();
$intScalefactor = 2;
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n";
$_text .= " <tr>\n";
if ($show_mount_point) {
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['mount'] . "</b></font></td>\n";
}
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['type'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['partition'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['percent'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['free'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['used'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n </tr>\n";
for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/FileSystem" ) ); $i < $max; $i++ ) {
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPointID" ) ) {
if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) || ! stristr( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ), "bind" ) ) {
if( ! in_array( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ), $arrCounteddevlist ) ) {
$arrSum['size'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" );
$arrSum['used'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" );
$arrSum['free'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Free" );
if( PHP_OS != "WINNT" ) {
$arrCounteddevlist[] = $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" );
}
}
}
$_text .= " <tr>\n";
if( $show_mount_point ) {
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPoint" ) . "</font></td>\n";
}
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Type" ) . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ) . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">"
. create_bargraph( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" ), $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" ), $intScalefactor, $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Type" ) )
. "&nbsp;" . $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Percent" ) . "%";
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Inodes" ) ) {
$_text .= " (" . $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Inodes" ) . "%)";
}
$_text .= "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Free" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" ) ) . "</font></td>\n"
. " </tr>\n";
}
}
$_text .= " <tr>\n";
if( $show_mount_point ) {
$_text .= " <td colspan=\"3\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><i>" . $text['totals'] . " :&nbsp;&nbsp;</i></font></td>\n";
} else {
$_text .= " <td colspan=\"2\" align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><i>" . $text['totals'] . " :&nbsp;&nbsp;</i></font></td>\n";
}
$_text .= " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">"
. create_bargraph( $arrSum['used'], $arrSum['size'], $intScalefactor )
. "&nbsp;";
if( $arrSum['size'] == 0 ) {
$_text .= "0";
} else {
$_text .= round( 100 / $arrSum['size'] * $arrSum['used'] );
}
$_text .= "%" . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $arrSum['free'] ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $arrSum['used'] ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $arrSum['size'] ) . "</font></td>\n </tr>\n"
. "</table>\n";
return $_text;
}
 
function wml_filesystem() {
global $XPath;
global $text;
global $show_mount_point;
$_text = "<card id=\"filesystem\" title=\"" . $text['fs'] . "\">\n";
for( $i = 1; $i < sizeof( $XPath->getDataParts( "/phpsysinfo/FileSystem" ) ); $i++ ) {
if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPointID" ) ) {
$_text .= "<p>";
if( $show_mount_point ) {
$_text .= $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPoint" ) . "<br/>\n";
} else {
$_text .= $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ) . "<br/>\n";
}
$_text .= "- " . $text['free'] . ": " . format_bytesize( $XPath->getData("/phpsysinfo/FileSystem/Mount[" . $i . "]/Free" ) ) . "<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize( $XPath->getData("/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" ) ) . "<br/>\n"
. "- " . $text['size'] . ": " . format_bytesize( $XPath->getData("/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" ) ) . "<br/>\n"
. "</p>\n";
}
}
$_text .= "</card>\n";
 
return $_text;
}
?>
/gestion/phpsysinfo/includes/xml/memory.php
0,0 → 1,211
<?php
/***************************************************************************
* Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
 
// $Id: memory.php,v 1.18 2007/02/08 20:16:25 bigmichi1 Exp $
 
//
// xml_memory()
//
function xml_memory () {
global $sysinfo;
$arrMem = $sysinfo->memory();
$i = 0;
$_text = " <Memory>\n"
. " <Free>" . htmlspecialchars( $arrMem['ram']['free'], ENT_QUOTES ) . "</Free>\n"
. " <Used>" . htmlspecialchars( $arrMem['ram']['used'], ENT_QUOTES ) . "</Used>\n"
. " <Total>" . htmlspecialchars( $arrMem['ram']['total'], ENT_QUOTES ) . "</Total>\n"
. " <Percent>" . htmlspecialchars( $arrMem['ram']['percent'], ENT_QUOTES ) . "</Percent>\n";
if( isset( $arrMem['ram']['app_percent'] ) ) {
$_text .= " <App>" . htmlspecialchars( $arrMem['ram']['app'], ENT_QUOTES ) . "</App>\n <AppPercent>" . htmlspecialchars( $arrMem['ram']['app_percent'], ENT_QUOTES ) . "</AppPercent>\n";
}
if( isset( $arrMem['ram']['buffers_percent'] ) ) {
$_text .= " <Buffers>" . htmlspecialchars( $arrMem['ram']['buffers'], ENT_QUOTES ) . "</Buffers>\n <BuffersPercent>" . htmlspecialchars( $arrMem['ram']['buffers_percent'], ENT_QUOTES ) . "</BuffersPercent>\n";
}
if( isset( $arrMem['ram']['cached_percent'] ) ) {
$_text .= " <Cached>" . htmlspecialchars( $arrMem['ram']['cached'], ENT_QUOTES ) . "</Cached>\n <CachedPercent>" . htmlspecialchars( $arrMem['ram']['cached_percent'], ENT_QUOTES ) . "</CachedPercent>\n";
}
$_text .= " </Memory>\n";
$_text .= " <Swap>\n";
if( isset( $arrMem['swap']['total'] ) && $arrMem['swap']['total'] > 0 ) {
$_text .= " <Free>" . htmlspecialchars( $arrMem['swap']['free'], ENT_QUOTES ) . "</Free>\n"
. " <Used>" . htmlspecialchars( $arrMem['swap']['used'], ENT_QUOTES ) . "</Used>\n"
. " <Total>" . htmlspecialchars( $arrMem['swap']['total'], ENT_QUOTES ) . "</Total>\n"
. " <Percent>" . htmlspecialchars( $arrMem['swap']['percent'], ENT_QUOTES ) . "</Percent>\n";
}
$_text .= " </Swap>\n";
$_text .= " <Swapdevices>\n";
foreach( $arrMem['devswap'] as $arrDevice) {
$_text .=" <Mount>\n"
. " <MountPointID>" . htmlspecialchars( $i++, ENT_QUOTES ) . "</MountPointID>\n"
. " <Type>Swap</Type>"
. " <Device><Name>" . htmlspecialchars( $arrDevice['dev'], ENT_QUOTES ) . "</Name></Device>\n"
. " <Percent>" . htmlspecialchars( $arrDevice['percent'], ENT_QUOTES ) . "</Percent>\n"
. " <Free>" . htmlspecialchars( $arrDevice['free'], ENT_QUOTES ) . "</Free>\n"
. " <Used>" . htmlspecialchars( $arrDevice['used'], ENT_QUOTES ) . "</Used>\n"
. " <Size>" . htmlspecialchars( $arrDevice['total'], ENT_QUOTES ) . "</Size>\n"
. " </Mount>\n";
}
$_text .= " </Swapdevices>\n";
return $_text;
}
 
//
// html_memory()
//
function html_memory () {
global $XPath;
global $text;
$textdir = direction();
$scale_factor = 2;
$strRam = create_bargraph( $XPath->getData( "/phpsysinfo/Memory/Used" ), $XPath->getData( "/phpsysinfo/Memory/Total" ), $scale_factor );
$strRam .= "&nbsp;&nbsp;" . $XPath->getData( "/phpsysinfo/Memory/Percent" ) . "% ";
if( $XPath->match( "/phpsysinfo/Swap/Total" ) ) {
$strSwap = create_bargraph( $XPath->getData( "/phpsysinfo/Swap/Used" ), $XPath->getData( "/phpsysinfo/Swap/Total" ), $scale_factor );
$strSwap .= "&nbsp;&nbsp;" . $XPath->getData( "/phpsysinfo/Swap/Percent" ) . "% ";
}
if( $XPath->match( "/phpsysinfo/Memory/AppPercent" ) ) {
$strApp = create_bargraph( $XPath->getData( "/phpsysinfo/Memory/App" ), $XPath->getData( "/phpsysinfo/Memory/Total" ), $scale_factor );
$strApp .= "&nbsp;&nbsp;" . $XPath->getData( "/phpsysinfo/Memory/AppPercent" ) . "% ";
}
if( $XPath->match( "/phpsysinfo/Memory/BuffersPercent" ) ) {
$strBuffers = create_bargraph( $XPath->getData( "/phpsysinfo/Memory/Buffers" ), $XPath->getData( "/phpsysinfo/Memory/Total" ), $scale_factor);
$strBuffers .= "&nbsp;&nbsp;" . $XPath->getData( "/phpsysinfo/Memory/BuffersPercent" ) . "% ";
}
if( $XPath->match( "/phpsysinfo/Memory/CachedPercent" ) ) {
$strCached = create_bargraph( $XPath->getData( "/phpsysinfo/Memory/Cached" ), $XPath->getData( "/phpsysinfo/Memory/Total" ), $scale_factor);
$strCached .= "&nbsp;&nbsp;" . $XPath->getData( "/phpsysinfo/Memory/CachedPercent" ) . "% ";
}
$_text = "<table border=\"0\" width=\"100%\" align=\"center\">\n"
. " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['type'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['percent'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['free'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['used'] . "</b></font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n"
. " </tr>\n"
. " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $text['phymem'] . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $strRam . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Free" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Used" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Total" ) ) . "</font></td>\n"
. " </tr>\n";
if( isset( $strApp ) ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">- " . $text['app'] . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $strApp . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/App" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " </tr>\n";
}
if( isset( $strBuffers ) ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">- " . $text['buffers'] . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $strBuffers . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Buffers" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " </tr>\n";
}
if( isset( $strCached ) ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">- " . $text['cached'] . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $strCached . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Cached" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">&nbsp;</font></td>\n"
. " </tr>\n";
}
if( isset( $strSwap ) ) {
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $text['swap'] . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $strSwap . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Swap/Free" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Swap/Used" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData( "/phpsysinfo/Swap/Total" ) ) . "</font></td>\n"
. " </tr>\n";
}
if( ($max = sizeof( $XPath->getDataParts( "/phpsysinfo/Swapdevices" ) ) ) > 2 ) {
for( $i = 1; $i < $max; $i++ ) {
$strSwapdev = create_bargraph( $XPath->getData( "/phpsysinfo/Swapdevices/Mount[" . $i . "]/Used" ), $XPath->getData( "/phpsysinfo/Swapdevices/Mount[" . $i . "]/Size" ), $scale_factor );
$strSwapdev .= "&nbsp;&nbsp;" . $XPath->getData( "/phpsysinfo/Swapdevices/Mount[" . $i . "]/Percent" ) . "% ";
$_text .= " <tr>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\"> - " . $XPath->getData( "/phpsysinfo/Swapdevices/Mount[" . $i . "]/Device/Name" ) . "</font></td>\n"
. " <td align=\"" . $textdir['left'] . "\" valign=\"top\"><font size=\"-1\">" . $strSwapdev . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData("/phpsysinfo/Swapdevices/Mount[" . $i . "]/Free" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData("/phpsysinfo/Swapdevices/Mount[" . $i . "]/Used" ) ) . "</font></td>\n"
. " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\">" . format_bytesize( $XPath->getData("/phpsysinfo/Swapdevices/Mount[" . $i . "]/Size" ) ) . "</font></td>\n"
. " </tr>\n";
}
}
$_text .= "</table>";
return $_text;
}
 
function wml_memory() {
global $XPath;
global $text;
$_text = "<card id=\"memory\" title=\"" . $text['memusage'] . "\">\n"
. "<p>" . $text['phymem'] . ":<br/>\n"
. "- " . $text['free'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Free" ) ) . "<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Used" ) ) . "<br/>\n"
. "- " . $text['size'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Total" ) ) . "</p>\n";
if( $XPath->match( "/phpsysinfo/Memory/App" ) ) {
$_text .= "<p>" . $text['app'] . ":<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/App" ) ) . "</p>\n";
}
if( $XPath->match( "/phpsysinfo/Memory/Cached" ) ) {
$_text .= "<p>" . $text['cached'] . ":<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Cached" ) ) . "</p>\n";
}
if( $XPath->match( "/phpsysinfo/Memory/Buffers" ) ) {
$_text .= "<p>" . $text['buffers'] . ":<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Memory/Buffers" ) ) . "</p>\n";
}
if( $XPath->match( "/phpsysinfo/Swap/Total" ) ) {
$_text .= "<p>" . $text['swap'] . ":<br/>\n"
. "- " . $text['free'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Swap/Free" ) ) . "<br/>\n"
. "- " . $text['used'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Swap/Used" ) ) . "<br/>\n"
. "- " . $text['size'] . ": " . format_bytesize( $XPath->getData( "/phpsysinfo/Swap/Total" ) ) . "</p>\n";
}
$_text .= "</card>\n";
return $_text;
}
?>
/gestion/phpsysinfo/includes/lang/fr.php
0,0 → 1,118
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: fr.php,v 1.27 2007/03/15 08:22:31 bigmichi1 Exp $
 
$text['title'] = 'Informations Syst&egrave;me ';
 
$text['vitals'] = 'Syst&egrave;me';
$text['hostname'] = 'Nom d\'h&ocirc;te cannonique';
$text['ip'] = 'IP';
$text['kversion'] = 'Version du noyau';
$text['dversion'] = 'Distribution';
$text['uptime'] = 'Uptime';
$text['users'] = 'Utilisateurs';
$text['loadavg'] = 'Charge syst&egrave;me';
 
$text['hardware'] = 'Informations Mat&eacute;riel';
$text['numcpu'] = 'Processeurs';
$text['cpumodel'] = 'Mod&egrave;le';
$text['cpuspeed'] = 'Vitesse CPU';
$text['busspeed'] = 'Vitesse BUS';
$text['cache'] = 'Taille Cache';
$text['bogomips'] = 'Bogomips';
$text['usb'] = 'P&eacute;riph. USB';
$text['pci'] = 'P&eacute;riph. PCI';
$text['ide'] = 'P&eacute;riph. IDE';
$text['scsi'] = 'P&eacute;riph. SCSI';
 
//
$text['portail'] = 'Informations g&eacute;n&eacute;rales du portail ALCASAR';
$text['portail-version']= 'Version install&eacute;e';
$text['portail-stable'] = 'Version stable disponible';
$text['portail-devel'] = 'Version devel disponible';
$text['utilisateur'] = 'Usager(s) en ligne';
$text['groupe'] = 'Nombre de groupe(s)';
$text['bl-version'] = 'Liste noire';
$text['ca'] = 'Certificat de l\'Autorit&eacute; de Certification (A.C.)';
$text['internet_link'] = "Lien Internet";
$text['internet_enable'] = "actif";
$text['internet_disable'] = "inactif";
//
 
$text['netusage'] = 'R&eacute;seau';
$text['device'] = 'P&eacute;riph&eacute;rique';
$text['received'] = 'R&eacute;ception';
$text['sent'] = 'Envoi';
$text['errors'] = 'Err/Drop';
 
$text['memusage'] = 'Utilisation m&eacute;moire';
$text['phymem'] = 'M&eacute;moire Physique';
$text['swap'] = 'Swap disque';
 
$text['fs'] = 'Syst&egrave;mes de fichiers mont&eacute;s';
$text['mount'] = 'Point';
$text['partition'] = 'Partition';
 
$text['percent'] = 'Utilisation';
$text['type'] = 'Type';
$text['free'] = 'Libre';
$text['used'] = 'Occup&eacute;';
$text['size'] = 'Taille';
$text['totals'] = 'Totaux';
 
$text['kb'] = 'Ko';
$text['mb'] = 'Mo';
$text['gb'] = 'Go';
 
$text['none'] = 'aucun';
 
$text['capacity'] = 'Capacit&eacute;';
$text['template'] = 'Mod&egrave;le ';
$text['language'] = 'Langue ';
$text['submit'] = 'Valider';
$text['created'] = 'Cr&eacute;&eacute; par';
$text['locale'] = 'fr_FR';
$text['gen_time'] = 'le %d %B %Y &agrave; %I:%M %p';
 
$text['days'] = 'jours';
$text['hours'] = 'heures';
$text['minutes'] = 'minutes';
 
$text['temperature'] = 'Temp&eacute;rature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Ventilateurs';
$text['s_value'] = 'valeur';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hyst&eacute;r&eacute;sis';
$text['s_limit'] = 'Limite';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/en.php
0,0 → 1,119
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: en.php,v 1.21 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'System Information';
 
$text['vitals'] = 'System Vital';
$text['hostname'] = 'Canonical Hostname';
$text['ip'] = 'Listening IP';
$text['kversion'] = 'Kernel Version';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Current Users';
$text['loadavg'] = 'Load Averages';
 
$text['hardware'] = 'Hardware Information';
$text['numcpu'] = 'Processors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Size';
$text['bogomips'] = 'System Bogomips';
$text['usb'] = 'USB Devices';
$text['pci'] = 'PCI Devices';
$text['ide'] = 'IDE Devices';
$text['scsi'] = 'SCSI Devices';
 
//
$text['portail'] = 'General Informations about ALCASAR portal';
$text['portail-version']= 'Installed version';
$text['portail-stable'] = 'Stable version available';
$text['portail-devel'] = 'Devel version available';
$text['utilisateur'] = 'logged user(s)';
$text['groupe'] = 'Number of group(s)';
$text['bl-version'] = 'Updated \'Blacklist\'';
$text['ca'] = 'Authenticated Authority certificate (A.C.)';
$text['internet_link'] = "Internet connexion";
$text['internet_enable'] = "enable";
$text['internet_disable'] = "disable";
//
 
$text['netusage'] = 'Network Usage';
$text['device'] = 'Device';
$text['received'] = 'Received';
$text['sent'] = 'Sent';
$text['errors'] = 'Err/Drop';
 
$text['connections'] = 'Established Network Connections';
 
$text['memusage'] = 'Memory Usage';
$text['phymem'] = 'Physical Memory';
$text['swap'] = 'Disk Swap';
 
$text['fs'] = 'Mounted Filesystems';
$text['mount'] = 'Mount';
$text['partition'] = 'Partition';
 
$text['percent'] = 'Percent Capacity';
$text['type'] = 'Type';
$text['free'] = 'Free';
$text['used'] = 'Used';
$text['size'] = 'Size';
$text['totals'] = 'Totals';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'none';
 
$text['capacity'] = 'Capacity';
 
$text['template'] = 'Template';
$text['language'] = 'Language';
$text['submit'] = 'Submit';
$text['created'] = 'Created by';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'days';
$text['hours'] = 'hours';
$text['minutes'] = 'minutes';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/ja.php
0,0 → 1,3
<?php
require 'jp.php';
?>
/gestion/phpsysinfo/includes/lang/he.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: he.php,v 1.16 2007/02/18 19:11:31 bigmichi1 Exp $
$charset = 'windows-1255';
$text_dir = 'rtl';
$text['title'] = 'îéãò òì äîòøëú';
 
$text['vitals'] = 'çéåðéåú îòøëú';
$text['hostname'] = 'ùí úçðä';
$text['ip'] = 'ëúåáú IP';
$text['kversion'] = 'âøñú ÷øðì';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'æîï ùäîòøëú ìîòìä';
$text['users'] = 'îùúùéí ðåëçééí';
$text['loadavg'] = 'îîåöò òåîñéí';
 
$text['hardware'] = 'îéãò çåîøä';
$text['numcpu'] = 'îòáãéí';
$text['cpumodel'] = 'ñåâ';
$text['cpuspeed'] = 'îäéøåú áMHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'âåãì æëøåï îèîåï';
$text['bogomips'] = 'îäéøåú ábogomips';
 
$text['pci'] = 'äú÷ðé PCI';
$text['ide'] = 'äú÷ðé IDE';
$text['scsi'] = 'äú÷ðé SCSI';
$text['usb'] = 'äú÷ðé USB';
 
$text['netusage'] = 'øùú';
$text['device'] = 'äú÷ï';
$text['received'] = '÷éáì';
$text['sent'] = 'ùìç';
$text['errors'] = 'ú÷ìåú/æøé÷åú';
 
$text['connections'] = 'òøåöé ú÷ùåøú ôúåçéí';
 
$text['memusage'] = 'ðéöåìú æëøåï';
$text['phymem'] = 'æëøåï ôéæé';
$text['swap'] = 'æëøåï swap';
 
$text['fs'] = 'îòøëåú ÷áöéí îçåáøåú';
$text['mount'] = 'îçåáø';
$text['partition'] = 'îçéöä';
 
$text['percent'] = 'úëåìä áàçæåéí';
$text['type'] = 'ñåâ';
$text['free'] = 'çåôùé';
$text['used'] = 'áùéîåù';
$text['size'] = 'âåãì';
$text['totals'] = 'ñä"ë';
 
$text['kb'] = '÷éìå áúéí';
$text['mb'] = 'îâä';
$text['gb'] = 'âéâä';
 
$text['none'] = 'ììà';
 
$text['capacity'] = 'úëåìä';
 
$text['template'] = 'úáðéú';
$text['language'] = 'ùôä';
$text['submit'] = 'äâù';
$text['created'] = 'ðåöø ò"é';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'éîéí';
$text['hours'] = 'ùòåú';
$text['minutes'] = 'ã÷åú';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/fi.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: fi.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
 
// Finnish language file by Jani 'Japala' Ponkko
 
$text['title'] = 'Tietoa j&auml;rjestelm&auml;st&auml;';
 
$text['vitals'] = 'Perustiedot';
$text['hostname'] = 'Kanoninen nimi';
$text['ip'] = 'K&auml;ytett&auml;v&auml; IP';
$text['kversion'] = 'Kernelin versio';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Toiminta-aika';
$text['users'] = 'K&auml;ytt&auml;ji&auml;';
$text['loadavg'] = 'Keskikuormat';
 
$text['hardware'] = 'Laitteisto';
$text['numcpu'] = 'Prosessoreita';
$text['cpumodel'] = 'Malli';
$text['cpuspeed'] = 'Piirin MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'V&auml;limuistin koko';
$text['bogomips'] = 'J&auml;rjestelm&auml;n Bogomipsit';
 
$text['pci'] = 'PCI Laitteet';
$text['ide'] = 'IDE Laitteet';
$text['scsi'] = 'SCSI Laitteet';
$text['usb'] = 'USB Laitteet';
 
$text['netusage'] = 'Verkon k&auml;ytt&ouml;';
$text['device'] = 'Laite';
$text['received'] = 'Vastaanotettu';
$text['sent'] = 'L&auml;hetetty';
$text['errors'] = 'Virheet/Pudotetut';
 
$text['memusage'] = 'Muistin kuormitus';
$text['phymem'] = 'Fyysinen muisti';
$text['swap'] = 'Virtuaalimuisti';
 
$text['fs'] = 'Liitetyt tiedostoj&auml;rjestelm&auml;t';
$text['mount'] = 'Liitoskohta';
$text['partition'] = 'Osio';
 
$text['percent'] = 'Prosenttia kapasiteetista';
$text['type'] = 'Tyyppi';
$text['free'] = 'Vapaana';
$text['used'] = 'K&auml;yt&ouml;ss&auml;';
$text['size'] = 'Koko';
$text['totals'] = 'Yhteens&auml;';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'Ei yht&auml;&auml;n';
 
$text['capacity'] = 'Kapasiteetti';
 
$text['template'] = 'Malli';
$text['language'] = 'Kieli';
$text['submit'] = 'Valitse';
$text['created'] = 'Luonut';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'p&auml;iv&auml;&auml;';
$text['hours'] = 'tuntia';
$text['minutes'] = 'minuuttia';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/br.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: br.php,v 1.19 2007/02/18 19:11:31 bigmichi1 Exp $
// Translated by Álvaro Reguly - alvaro at reguly dot net
//
$text['title'] = 'Informações do Sistema';
 
$text['vitals'] = 'Sistema';
$text['hostname'] = 'Nome Canônico';
$text['ip'] = 'Números IP';
$text['kversion'] = 'Versão do Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Usuários Conectados';
$text['loadavg'] = 'Carga do Sistema';
 
$text['hardware'] = 'Informações do Hardware';
$text['numcpu'] = 'Processadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamanho Cache';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'Dispositivos PCI';
$text['ide'] = 'Dispositivos IDE';
$text['scsi'] = 'Dispositivos SCSI';
$text['usb'] = 'Dispositivos USB';
 
$text['netusage'] = 'Utilização da Rede';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recebidos';
$text['sent'] = 'Enviados';
$text['errors'] = 'Erros/Drop';
 
$text['memusage'] = 'Utilização da Memória';
$text['phymem'] = 'Memória Física';
$text['swap'] = 'Swap';
 
$text['fs'] = 'Sistemas de Arquivo Montados';
$text['mount'] = 'Mount';
$text['partition'] = 'Partição';
 
$text['percent'] = 'Porcentual da Capacidade';
$text['type'] = 'Tipo';
$text['free'] = 'Livres';
$text['used'] = 'Utilizados';
$text['size'] = 'Tamanho';
$text['totals'] = 'Totais';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'nenhum';
 
$text['capacity'] = 'Capacidade';
 
$text['template'] = 'Molde';
$text['language'] = 'Língua';
$text['submit'] = 'Enviar';
$text['created'] = 'Criado por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dias';
$text['hours'] = 'horas';
$text['minutes'] = 'minutos';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/ar_utf8.php
0,0 → 1,110
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: ar_utf8.php,v 1.15 2007/02/18 19:11:30 bigmichi1 Exp $
//
//Translated to arabic by: Nizar Abed - nizar@srcget.com - Adios
 
$charset = 'utf-8';
 
$text['title'] = 'معلومات عن ألنظام';
 
$text['vitals'] = 'حيويه';
$text['hostname'] = ' ألمحطه';
$text['ip'] = 'IP عنوان أل';
$text['kversion'] = 'إصدار رقم';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'مدة ألتشغيل';
$text['users'] = 'مستخدمون';
$text['loadavg'] = 'معدل ألتشغيل';
 
$text['hardware'] = 'معلومات ألمعدات';
$text['numcpu'] = 'وحدات ألمعالجه';
$text['cpumodel'] = 'نوع';
$text['cpuspeed'] = 'سرعه في';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = ' cache سعة ذاكرة';
$text['bogomips'] = 'Bogomips سرعه في';
 
$text['pci'] = 'PCI معدات ';
$text['ide'] = 'IDE معدات';
$text['scsi'] = 'SCSI معدات';
$text['usb'] = 'USB معدات';
 
$text['netusage'] = 'إستعمال ألشبكه';
$text['device'] = 'معدات';
$text['received'] = 'إستقبل حتى ألآن';
$text['sent'] = 'أرسل';
$text['errors'] = 'أخطاء';
 
$text['connections'] = 'إتصالات شبكه منفذه';
 
$text['memusage'] = 'ذاكره مستعمله';
$text['phymem'] = 'ذاكره جسديه';
$text['swap'] = 'Swap ذاكرة';
 
$text['fs'] = 'أنظمة ملفات مخططه';
$text['mount'] = 'مخطط';
$text['partition'] = 'تقطيع';
 
$text['percent'] = 'سعه بألنسبه ألمؤيه';
$text['type'] = 'نوع';
$text['free'] = 'حر';
$text['used'] = 'مستعمل';
$text['size'] = 'حجم';
$text['totals'] = 'مجموع';
 
$text['kb'] = ' كيلو بايت KB';
$text['mb'] = 'ميغا بايت MB';
$text['gb'] = 'جيغا بايت GB';
 
$text['none'] = 'بدون';
 
$text['capacity'] = 'سعه';
 
$text['template'] = 'بنيه';
$text['language'] = 'لغه';
$text['submit'] = 'أدخل';
$text['created'] = 'إصدر بواسطة';
 
$text['days'] = 'أيام';
$text['hours'] = 'ساعات';
$text['minutes'] = 'دفائق';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
?>
/gestion/phpsysinfo/includes/lang/nl.php
0,0 → 1,111
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: nl.php,v 1.23 2007/02/18 19:11:31 bigmichi1 Exp $
 
if (PHP_OS == 'WINNT') {
$text['locale'] = 'dutch'; // (windows)
}
else {
$text['locale'] = 'nl-NL'; // (Linux and friends(?))
}
 
$text['title'] = 'Systeem Informatie';
 
$text['vitals'] = 'Systeem overzicht';
$text['hostname'] = 'Toegewezen naam';
$text['ip'] = 'IP-adres';
$text['kversion'] = 'Kernelversie';
$text['dversion'] = 'Distributie';
$text['uptime'] = 'Uptime';
$text['users'] = 'Huidige gebruikers';
$text['loadavg'] = 'Gemiddelde belasting';
 
$text['hardware'] = 'Hardware overzicht';
$text['numcpu'] = 'Processors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU snelheid';
$text['busspeed'] = 'BUS snelheid';
$text['cache'] = 'Cache grootte';
$text['bogomips'] = 'Systeem Bogomips';
 
$text['pci'] = 'PCI Apparaten';
$text['ide'] = 'IDE Apparaten';
$text['scsi'] = 'SCSI Apparaten';
$text['usb'] = 'USB Apparaten';
 
$text['netusage'] = 'Netwerkgebruik';
$text['device'] = 'Apparaat';
$text['received'] = 'Ontvangen';
$text['sent'] = 'Verzonden';
$text['errors'] = 'Err/Drop';
 
$text['memusage'] = 'Geheugengebruik';
$text['phymem'] = 'Fysiek geheugen';
$text['swap'] = 'Swap geheugen';
 
$text['fs'] = 'Aangesloten bestandssystemen';
$text['mount'] = 'Mount';
$text['partition'] = 'Partitie';
 
$text['percent'] = 'Percentage gebruikt';
$text['type'] = 'Type';
$text['free'] = 'Vrij';
$text['used'] = 'Gebruikt';
$text['size'] = 'Grootte';
$text['totals'] = 'Totaal';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'geen';
 
$text['capacity'] = 'Capaciteit';
$text['template'] = 'Opmaak-model';
$text['language'] = 'Taal';
$text['submit'] = 'Toepassen';
$text['created'] = 'Gegenereerd door';
$text['gen_time'] = 'op %d %B %Y, om %H:%M';
 
$text['days'] = 'dagen';
$text['hours'] = 'uren';
$text['minutes'] = 'minuten';
$text['temperature'] = 'Temperatuur';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Waarde';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysterie';
$text['s_limit'] = 'Limiet';
$text['s_label'] = 'Omschrijving';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/jp.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: jp.php,v 1.13 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'euc-jp';
$text['title'] = '¥·¥¹¥Æ¥à¾ðÊó';
 
$text['vitals'] = '¥·¥¹¥Æ¥àÆ°ºî¾õ¶·';
$text['hostname'] = '¥Û¥¹¥È̾';
$text['ip'] = 'IP¥¢¥É¥ì¥¹';
$text['kversion'] = '¥«¡¼¥Í¥ë¥Ð¡¼¥¸¥ç¥ó(uname)';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Ϣ³²ÔƯ»þ´Ö(uptime)';
$text['users'] = '¥í¥°¥¤¥ó¥æ¡¼¥¶¿ô';
$text['loadavg'] = '¥í¡¼¥É¥¢¥Ù¥ì¡¼¥¸';
 
$text['hardware'] = '¥Ï¡¼¥É¥¦¥§¥¢¾ðÊó';
$text['numcpu'] = 'CPU¿ô';
$text['cpumodel'] = 'CPU¥â¥Ç¥ë';
$text['cpuspeed'] = '¥¯¥í¥Ã¥¯Â®ÅÙ(MHz)';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = '¥­¥ã¥Ã¥·¥å¥µ¥¤¥º';
$text['bogomips'] = 'System Bogomips';
 
$text['pci'] = 'PCI¥Ç¥Ð¥¤¥¹°ìÍ÷';
$text['ide'] = 'IDE¥Ç¥Ð¥¤¥¹°ìÍ÷';
$text['scsi'] = 'SCSI¥Ç¥Ð¥¤¥¹°ìÍ÷';
$text['usb'] = 'USB¥Ç¥Ð¥¤¥¹°ìÍ÷';
 
$text['netusage'] = '¥Í¥Ã¥È¥ï¡¼¥¯ÍøÍѾõ¶·';
$text['device'] = '¥¤¥ó¥¿¥Õ¥§¥¤¥¹Ì¾';
$text['received'] = '¼õ¿®¥µ¥¤¥º';
$text['sent'] = 'Á÷¿®¥µ¥¤¥º';
$text['errors'] = '¥¨¥é¡¼/¼õ¿®ÉÔǽ';
 
$text['connections'] = '¸½ºßÀܳ¤·¤Æ¤¤¤ë¥Í¥Ã¥È¥ï¡¼¥¯Àܳ°ìÍ÷';
 
$text['memusage'] = '¥á¥â¥ê»ÈÍѾõ¶·';
$text['phymem'] = 'ʪÍý¥á¥â¥êÎÌ';
$text['swap'] = '¥Ç¥£¥¹¥¯¥¹¥ï¥Ã¥×';
 
$text['fs'] = '¥Þ¥¦¥ó¥ÈºÑ¤ß¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à°ìÍ÷';
$text['mount'] = '¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È';
$text['partition'] = '¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó';
 
$text['percent'] = 'ÍøÍѳä¹ç';
$text['type'] = '¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¼ïÊÌ';
$text['free'] = '¶õ¤­';
$text['used'] = 'ÍøÍÑ';
$text['size'] = 'Á´ÂÎ';
$text['totals'] = '¹ç·×';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = '¤¢¤ê¤Þ¤»¤ó';
 
$text['capacity'] = 'ÍÆÎÌ';
 
$text['template'] = '¥Ç¥¶¥¤¥óÁªÂò';
$text['language'] = '¸À¸ì';
$text['submit'] = 'Á÷¿®';
$text['created'] = 'Created by';
 
$text['days'] = 'Æü';
$text['hours'] = '»þ´Ö';
$text['minutes'] = 'ʬ';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
?>
/gestion/phpsysinfo/includes/lang/pl.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: pl.php,v 1.16 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'iso-8859-2';
 
$text['title'] = 'Informacja o systemie';
 
$text['vitals'] = 'Stan systemu';
$text['hostname'] = 'Nazwa kanoniczna hosta';
$text['ip'] = 'IP nas³uchuj±cy';
$text['kversion'] = 'Wersja j±dra';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Obecnych u¿ytkownków';
$text['loadavg'] = 'Obci±¿enia ¶rednie';
 
$text['hardware'] = 'Informacja o sprzêcie';
$text['numcpu'] = 'Procesory';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Cz&#281;stotliwo&#347;&#263;';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Size';
$text['bogomips'] = 'System Bogomips';
 
$text['pci'] = 'Urz±dzenia PCI';
$text['ide'] = 'Urz±dzenia IDE';
$text['scsi'] = 'Urz±dzenia SCSI';
$text['usb'] = 'Urz±dzenia USB';
 
$text['netusage'] = 'Sieæ';
$text['device'] = 'Urz±dzenie';
$text['received'] = 'Odebrano';
$text['sent'] = 'Wys³ano';
$text['errors'] = 'B³êdow/Porzuconych';
 
$text['memusage'] = 'Obci±¿enie pamiêci';
$text['phymem'] = 'Pamiêæ fizyczna';
$text['swap'] = 'Pamiêæ Swap';
 
$text['fs'] = 'Zamontowane systemy plików';
$text['mount'] = 'Punkt montowania';
$text['partition'] = 'Partycja';
 
$text['percent'] = 'Procentowo zajête';
$text['type'] = 'Typ';
$text['free'] = 'Wolne';
$text['used'] = 'Zajête';
$text['size'] = 'Rozmiar';
$text['totals'] = 'Ca³kowite';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'brak';
 
$text['capacity'] = 'Rozmiar';
 
$text['template'] = 'Szablon';
$text['language'] = 'Jêzyk';
$text['submit'] = 'Wy¶lij';
$text['created'] = 'Utworzone przez';
$text['locale'] = 'pl_PL';
$text['gen_time'] = " %e %b %Y o godzinie %T";
 
$text['days'] = 'dni';
$text['hours'] = 'godzin';
$text['minutes'] = 'minut';
 
$text['temperature'] = 'Temperatura';
$text['voltage'] = 'Napiêcia';
$text['fans'] = 'Wiatraczki';
$text['s_value'] = 'Warto¶æ';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hystereza';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Nazwa';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/no.php
0,0 → 1,105
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: no.php,v 1.19 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Systeminformasjon';
 
$text['vitals'] = 'Vital Informasjon';
$text['hostname'] = 'Egentlige Tjenernavn';
$text['ip'] = 'IP-Adresse';
$text['kversion'] = 'Kernel Versjon';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Oppetid';
$text['users'] = 'Antall Brukere';
$text['loadavg'] = 'Gj.Snitt Belastning';
 
$text['hardware'] = 'Maskinvareinformasjon';
$text['numcpu'] = 'Prosessorer';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Brikke MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache St&oslash;rrelse';
$text['bogomips'] = 'System Bogomips';
 
$text['pci'] = 'PCI Enheter';
$text['ide'] = 'IDE Enheter';
$text['scsi'] = 'SCSI Enheter';
$text['usb'] = 'USB Enheter';
 
$text['netusage'] = 'Nettverksbruk';
$text['device'] = 'Enhet';
$text['received'] = 'Mottatt';
$text['sent'] = 'Sendt';
$text['errors'] = 'Feil/Dropp';
 
$text['memusage'] = 'Minnebruk';
$text['phymem'] = 'Fysisk Minne';
$text['swap'] = 'Disk Swap';
 
$text['fs'] = 'Monterte Filsystemer';
$text['mount'] = 'Punkt';
$text['partition'] = 'Partisjon';
 
$text['percent'] = 'Brukt Kapasitet i Prosent';
$text['type'] = 'Type';
$text['free'] = 'Ledig';
$text['used'] = 'Brukt';
$text['size'] = 'St&oslash;rrelse';
$text['totals'] = 'Totalt';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'Ingen';
 
$text['capacity'] = 'Kapasitet';
$text['template'] = 'Mal';
$text['language'] = 'Spr&aring;k';
$text['submit'] = 'Endre';
$text['created'] = 'Generert av';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dager';
$text['hours'] = 'timer';
$text['minutes'] = 'minutter';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/hu.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Translated by Zsozso - zsozso@internews.hu
// $Id: hu.php,v 1.19 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'iso-8859-2';
 
$text['title'] = 'Rendszer Információ';
 
$text['vitals'] = 'A Rendszer Alapvetõ Információi';
$text['hostname'] = 'Hostnév';
$text['ip'] = 'Figyelt IP';
$text['kversion'] = 'Kernel Verzió';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Pillanatnyi felhasználók';
$text['loadavg'] = 'Terhelési Átlag';
 
$text['hardware'] = 'Hardware Információ';
$text['numcpu'] = 'Processzor';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Chip MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Méret';
$text['bogomips'] = 'Rendszer Bogomips';
 
$text['pci'] = 'PCI Eszközök';
$text['ide'] = 'IDE Eszközök';
$text['scsi'] = 'SCSI Eszközök';
$text['usb'] = 'USB Eszközök';
 
$text['netusage'] = 'Háló Használat';
$text['device'] = 'Eszköz';
$text['received'] = 'Fogadott';
$text['sent'] = 'Küldött';
$text['errors'] = 'Err/Drop';
 
$text['connections'] = 'Létesített Hálózati Kapcsolatok';
 
$text['memusage'] = 'Memória Használat';
$text['phymem'] = 'Fizikai Memória';
$text['swap'] = 'Lemez Swap';
 
$text['fs'] = 'Csatlakoztatott File Rendszerek';
$text['mount'] = 'Mount';
$text['partition'] = 'Partíciók';
 
$text['percent'] = 'Százalékos Használat';
$text['type'] = 'Típus';
$text['free'] = 'Szabad';
$text['used'] = 'Használt';
$text['size'] = 'Méret';
$text['totals'] = 'Összesen';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'nincs';
 
$text['capacity'] = 'Kapacítás';
 
$text['template'] = 'Sablon';
$text['language'] = 'Nyelv';
$text['submit'] = 'Mehet';
$text['created'] = 'Készült:';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'nap';
$text['hours'] = 'óra';
$text['minutes'] = 'perc';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/lt.php
0,0 → 1,110
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: lt.php,v 1.20 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'utf-8';
 
$text['title'] = 'Informacija apie sistemą';
 
$text['vitals'] = 'Sistema';
$text['hostname'] = 'Kompiuterio vardas';
$text['ip'] = 'IP adresas';
$text['kversion'] = 'Branduolio versija';
$text['dversion'] = 'Distribucija';
$text['uptime'] = 'Veikimo laikas';
$text['users'] = 'Vartotojai';
$text['loadavg'] = 'Apkrovos vidurkiai';
 
$text['hardware'] = 'Aparatūra';
$text['numcpu'] = 'Procesorių kiekis';
$text['cpumodel'] = 'Modelis';
$text['cpuspeed'] = 'Procesoriaus dažnis';
$text['busspeed'] = 'Magistralės dažnis';
$text['cache'] = 'Spartinančioji atmintinė';
$text['bogomips'] = 'Sistemos „bogomips“';
 
$text['pci'] = 'PCI įrenginiai';
$text['ide'] = 'IDE įrenginiai';
$text['scsi'] = 'SCSI įrenginiai';
$text['usb'] = 'USB įrenginiai';
 
$text['netusage'] = 'Tinklas';
$text['device'] = 'Įrenginys';
$text['received'] = 'Gauta';
$text['sent'] = 'Išsiųsta';
$text['errors'] = 'Klaidos/pamesti paketai';
 
$text['memusage'] = 'Atmintis';
$text['phymem'] = 'Operatyvioji atmintis';
$text['swap'] = 'Disko swap skirsnis';
 
$text['fs'] = 'Bylų sistema';
$text['mount'] = 'Prijungimo vieta';
$text['partition'] = 'Skirsnis';
 
$text['percent'] = 'Apkrova procentais';
$text['type'] = 'Tipas';
$text['free'] = 'Laisva';
$text['used'] = 'Apkrauta';
$text['size'] = 'Dydis';
$text['totals'] = 'Iš viso';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'nėra';
 
$text['capacity'] = 'Talpa';
$text['template'] = 'Šablonas';
$text['language'] = 'Kalba';
$text['submit'] = 'Atnaujinti';
$text['created'] = 'Naudojamas';
 
$text['days'] = 'd.';
$text['hours'] = 'val.';
$text['minutes'] = 'min.';
 
$text['temperature'] = 'Temperatūra';
$text['voltage'] = 'Įtampa';
$text['fans'] = 'Aušintuvai';
$text['s_value'] = 'Reikšmė';
$text['s_min'] = 'Min';
$text['s_max'] = 'Maks';
 
$text['hysteresis'] = 'Signalizuojama ties';
$text['s_limit'] = 'Riba';
$text['s_label'] = 'Pavadinimas';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'aps./min';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
 
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
?>
/gestion/phpsysinfo/includes/lang/ro.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: ro.php,v 1.0 6/9/01 12:41PM
// Translated by Silviu Simen - ssimen@sympatico.ca
 
$text['title'] = 'Informatii despre sistem';
 
$text['vitals'] = 'Informatii vitale';
$text['hostname'] = 'Numele canonic';
$text['ip'] = 'Adresa IP';
$text['kversion'] = 'Versiune nucleu';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Timp de viata';
$text['users'] = 'Utilizatori curenti';
$text['loadavg'] = 'Incarcarea sistemului';
 
$text['hardware'] = 'Informatii hardware';
$text['numcpu'] = 'Procesoare';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Marime Cache';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'Dispozitive PCI';
$text['ide'] = 'Dispozitive IDE';
$text['scsi'] = 'Dispozitive SCSI';
$text['usb'] = 'Dispozitive USB';
 
$text['netusage'] = 'Utilizarea retelei';
$text['device'] = 'Dispozitiv';
$text['received'] = 'Primit';
$text['sent'] = 'Trimis';
$text['errors'] = 'Erori';
 
$text['memusage'] = 'Utilizarea memoriei';
$text['phymem'] = 'Memorie fizica';
$text['swap'] = 'Disk Swap';
 
$text['fs'] = 'Sisteme de fisiere montate';
$text['mount'] = 'Punct montare';
$text['partition'] = 'Partitie';
 
$text['percent'] = 'Procent capacitate';
$text['type'] = 'Tip';
$text['free'] = 'Liber';
$text['used'] = 'Utilizat';
$text['size'] = 'Marime';
$text['totals'] = 'Total';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'nici unul';
 
$text['capacity'] = 'Capacitate';
 
$text['template'] = 'Model';
$text['language'] = 'Limba';
$text['submit'] = 'Actualizeaza';
$text['created'] = 'Creat de';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'zile';
$text['hours'] = 'ore';
$text['minutes'] = 'minute';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/lv.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: lv.php,v 1.12 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Sistçmas informâcija';
 
$text['vitals'] = 'Galvenie râdîtâji';
$text['hostname'] = 'Hosta vârds';
$text['ip'] = 'IP Adrese';
$text['kversion'] = 'Kerneïa versija';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Nepârtrauktais darba laiks';
$text['users'] = 'Lietotâji';
$text['loadavg'] = 'Vidçjie ielâdes râdîtâji';
 
$text['hardware'] = 'Aparatûra';
$text['numcpu'] = 'Procesors';
$text['cpumodel'] = 'Modelis';
$text['cpuspeed'] = 'Èipa MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Keð atmiòa';
$text['bogomips'] = 'Sistçmas "Bogomips"';
 
$text['pci'] = 'PCI ierîces';
$text['ide'] = 'IDE ierîces';
$text['scsi'] = 'SCSI ierîces';
$text['usb'] = 'USB ierîces';
 
$text['netusage'] = 'Tîkla informâcija';
$text['device'] = 'Ierîce';
$text['received'] = 'Saòemts';
$text['sent'] = 'Aizsûtîts';
$text['errors'] = 'Kïûdas/Zaudçtâs paketes';
 
$text['connections'] = 'Established Network Connections';
 
$text['memusage'] = 'Atmiòas lietojums';
$text['phymem'] = 'Operatîvâ atmiòa';
$text['swap'] = 'Swap atmiòa';
 
$text['fs'] = 'Cietie diski';
$text['mount'] = 'Mounta vieta';
$text['partition'] = 'Partîcija';
 
$text['percent'] = 'Aizòemts procentos';
$text['type'] = 'Tips';
$text['free'] = 'Brîvs';
$text['used'] = 'Aizòemts';
$text['size'] = 'Ietilpîba';
$text['totals'] = 'Kopâ';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'nav';
 
$text['capacity'] = 'Ietilpîba';
 
$text['template'] = 'Sagatave';
$text['language'] = 'Valoda';
$text['submit'] = 'Apstiprinât';
$text['created'] = 'Autors';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dienas';
$text['hours'] = 'stundas';
$text['minutes'] = 'minûtes';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/ca.php
0,0 → 1,108
<?php
//
// phpSysInfo -A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: ca.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
//
// Traductor: Miquel Guillamet Montalat
// E-mail: mikelet15@netscape.com Web: http://gitx.dhs.org
//
$text['title'] = 'Informació del Sistema';
 
$text['vitals'] = 'Vital';
$text['hostname'] = 'Nom del Sistema';
$text['ip'] = 'Direcció IP';
$text['kversion'] = 'Versió del Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Usuaris actuals';
$text['loadavg'] = 'Carrega del Servidor';
 
$text['hardware'] = 'Informació del Hardware';
$text['numcpu'] = 'Processadors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Frequència en MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'RAM';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'Dispositius PCI';
$text['ide'] = 'Dispositius IDE';
$text['scsi'] = 'Dispositius SCSI';
$text['usb'] = 'Dispisitius USB';
 
$text['netusage'] = 'Utilització de la XARXA';
$text['device'] = 'Dispositiu';
$text['received'] = 'Rebut';
$text['sent'] = 'Enviat';
$text['errors'] = 'Errors/Perduts';
 
$text['memusage'] = 'Utilització de la RAM';
$text['phymem'] = 'Memoria Fisica';
$text['swap'] = 'Swap';
 
$text['fs'] = 'Particions Montades';
$text['mount'] = 'Montat a';
$text['partition'] = 'Partició';
 
$text['percent'] = 'Capacitat';
$text['type'] = 'Tipus';
$text['free'] = 'Lliure';
$text['used'] = 'Usat';
$text['size'] = 'Tamany';
$text['totals'] = 'Totals';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'ningun';
 
$text['capacity'] = 'Capacitat';
 
$text['template'] = 'Themes';
$text['language'] = 'Llenguatge';
$text['submit'] = 'Enviar';
$text['created'] = 'Creat per';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dies';
$text['hours'] = 'hores';
$text['minutes'] = 'minuts';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/pt.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: pt.php,v 1.15 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Informações do Sistema';
 
$text['vitals'] = 'Informações Vitais';
$text['hostname'] = 'Hostname Canónico';
$text['ip'] = 'IP';
$text['kversion'] = 'Versão do Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Utilizadores Ligados';
$text['loadavg'] = 'Carga Média';
 
$text['hardware'] = 'Informações do Hardware';
$text['numcpu'] = 'Processadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamanho da Cache';
$text['bogomips'] = 'Bogomips do Sistema';
 
$text['pci'] = 'Hardware PCI';
$text['ide'] = 'Hardware IDE';
$text['scsi'] = 'Hardware SCSI';
$text['usb'] = 'Hardware USB';
 
$text['netusage'] = 'Utilização da Rede';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recebidos';
$text['sent'] = 'Enviados';
$text['errors'] = 'Erro/Rejeitados';
 
$text['connections'] = 'Ligações Estabelecidas';
 
$text['memusage'] = 'Utilização da Memória';
$text['phymem'] = 'Memória Física';
$text['swap'] = 'Swap';
 
$text['fs'] = 'Sistema de Ficheiros (Mounted)';
$text['mount'] = 'Mount';
$text['partition'] = 'Partições';
 
$text['percent'] = 'Capacidade em Percentagem';
$text['type'] = 'Tipo';
$text['free'] = 'Livre';
$text['used'] = 'Utilizada';
$text['size'] = 'Tamanho';
$text['totals'] = 'Totais';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'indisponível';
 
$text['capacity'] = 'Capacidade';
 
$text['template'] = 'Template';
$text['language'] = 'Idioma';
$text['submit'] = 'Enviar';
$text['created'] = 'Produzido por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dias';
$text['hours'] = 'horas';
$text['minutes'] = 'minutos';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/pt-br.php
0,0 → 1,110
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: pt-br.php,v 1.12 2007/02/18 19:11:31 bigmichi1 Exp $
//
// Tradutor: Marcílio Cunha Marinho Maia, 29/03/2003 às 04:34 (Goiânia-GO,Brasil)
// E-mail: marcilio@nextsolution.com.br Web: http://www.nextsolution.com.br
// Icq: 22493131
 
$text['title'] = 'Informação Sobre o Sistema';
 
$text['vitals'] = 'Informações Vitais do Sistema';
$text['hostname'] = 'Nome do Servidor';
$text['ip'] = 'Número IP';
$text['kversion'] = 'Versão do Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Tempo Ativo do Sistema';
$text['users'] = 'Usuarios Ativos';
$text['loadavg'] = 'Carga do Sistema';
 
$text['hardware'] = 'Informações sobre o Hardware';
$text['numcpu'] = 'Processadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'Velocidade em MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamanho do Cache';
$text['bogomips'] = 'Velocidade em Bogomips';
 
$text['pci'] = 'Dispositivos PCI';
$text['ide'] = 'Dispositivos IDE';
$text['scsi'] = 'Dispositivos SCSI';
$text['usb'] = 'Dispositivos USB';
 
$text['netusage'] = 'Uso da Rede';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recebido';
$text['sent'] = 'Enviado';
$text['errors'] = 'Perdido';
 
$text['connections'] = 'Conexões Estabelecidas';
 
$text['memusage'] = 'Utilização Memória';
$text['phymem'] = 'Memória Física';
$text['swap'] = 'Memória Virtual (SWAP)';
 
$text['fs'] = 'Sistemas de Arquivos';
$text['mount'] = 'Ponto de montagem';
$text['partition'] = 'Partição';
 
$text['percent'] = 'Capacidade Utilizada';
$text['type'] = 'Tipo';
$text['free'] = 'Livre';
$text['used'] = 'Utilizado';
$text['size'] = 'Tamanho';
$text['totals'] = 'Totais';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'N/A';
 
$text['capacity'] = 'Capacidade';
 
$text['template'] = 'Exemplos';
$text['language'] = 'Língua';
$text['submit'] = 'Entrar';
$text['created'] = 'Criado por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'Dias';
$text['hours'] = 'Horas';
$text['minutes'] = 'Minutos';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/tr.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: tr.php,v 1.16 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Sistem Bilgisi';
 
$text['vitals'] = 'Sistem Temel';
$text['hostname'] = 'Cannonical Host Adresi';
$text['ip'] = 'IP Adresi';
$text['kversion'] = 'Kernel Versiyonu';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Açýk Kaldýðý Süre';
$text['users'] = 'Þu Andaki Kullanýcýlar';
$text['loadavg'] = 'Yükleme Ortalamasý';
 
$text['hardware'] = 'Hardware Bilgisi';
$text['numcpu'] = 'CPU Sayýsý';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Hýzý( Mhz)';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache Büyüklüðü';
$text['bogomips'] = 'Sistem Bogomips';
 
$text['pci'] = 'PCI Araçlar';
$text['ide'] = 'IDE Araçlar';
$text['scsi'] = 'SCSI Araçlar';
$text['usb'] = 'USB Araçlar';
 
$text['netusage'] = 'Network Kullanýmý';
$text['device'] = 'Arayüz';
$text['received'] = 'Alýnan';
$text['sent'] = 'Gönderilen';
$text['errors'] = 'Hata/Düþürülen';
 
$text['connections'] = 'Kurulmuþ Network Baðlantýlarý';
 
$text['memusage'] = 'Hafýza Kullanýmý';
$text['phymem'] = 'Fiziksel Hafýza';
$text['swap'] = 'Disk Swap';
 
$text['fs'] = 'Mount Edilmiþ Sistemler';
$text['mount'] = 'Mount';
$text['partition'] = 'Kýsým';
 
$text['percent'] = 'Yüzde Kapasite';
$text['type'] = 'Tür';
$text['free'] = 'Boþ Alan';
$text['used'] = 'Kullanýlan';
$text['size'] = 'Büyüklük';
$text['totals'] = 'Toplam';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'Hiçbiri';
 
$text['capacity'] = 'Kapasite';
 
$text['template'] = 'Arayüz';
$text['language'] = 'Dil';
$text['submit'] = 'Gönder';
$text['created'] = 'Yaratan';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'gün';
$text['hours'] = 'saat';
$text['minutes'] = 'dakika';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/ru.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: ru.php,v 1.0 2002/06/26 11:05:32
// Translated by Voldar (voldar@quality.s2.ru)
 
$charset = 'cp1251';
$text['title'] = 'Ñèñòåìíàÿ èíôîðìàöèÿ';
 
$text['vitals'] = 'Îñíîâíûå äàííûå';
$text['hostname'] = 'Èìÿ õîñòà';
$text['ip'] = 'Ïðîñëóøèâàåìûé IP';
$text['kversion'] = 'Âåðñèÿ ÿäðà';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Âðåìÿ ðàáîòû';
$text['users'] = 'Ïîëüçîâàòåëåé â ñèñòåìå';
$text['loadavg'] = 'Ñðåäíÿÿ çàãðóçêà';
 
$text['hardware'] = 'Àïïàðàòíîå îáåñïå÷åíèå';
$text['numcpu'] = 'Ïðîöåññîðû';
$text['cpumodel'] = 'Ìîäåëü';
$text['cpuspeed'] = 'Ñêîðîñòü ïðîöåññîðà MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Ðàçìåð êåøà';
$text['bogomips'] = 'System Bogomips';
 
$text['pci'] = 'Óñòðîéñòâà PCI';
$text['ide'] = 'Óñòðîéñòâà IDE';
$text['scsi'] = 'Óñòðîéñòâà SCSI';
$text['usb'] = 'Óñòðîéñòâà USB';
 
$text['netusage'] = 'Èñïîëüçîâàíèå ñåòè';
$text['device'] = 'Óñòðîéñòâî';
$text['received'] = 'Ïîëó÷åíî';
$text['sent'] = 'Îòïðàâëåíî';
$text['errors'] = 'Îøèáîê';
 
$text['connections'] = 'Óñòàíîâëåííûå ñåòåâûå ñîåäèíåíèÿ';
 
$text['memusage'] = 'Èñïîëüçîâàíèå ïàìÿòè';
$text['phymem'] = 'Ôèçè÷åñêàÿ ïàìÿòü';
$text['swap'] = 'Ôàéë ïîäêà÷êè';
 
$text['fs'] = 'Ñìîíòèðîâàííûå ôàéëîâûå ñèñòåìû';
$text['mount'] = 'Òî÷êà ìîíòèðîâàíèÿ';
$text['partition'] = 'Ðàçäåë';
 
$text['percent'] = 'Ïðîöåíò èñïîëüçîâàíèÿ';
$text['type'] = 'Òèï';
$text['free'] = 'Ñâîáîäíî';
$text['used'] = 'Çàíÿòî';
$text['size'] = 'Ðàçìåð';
$text['totals'] = 'Âñåãî';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'îòñóòñòâóåò';
 
$text['capacity'] = 'Ðàçìåð';
 
$text['template'] = 'Øàáëîí';
$text['language'] = 'ßçûê';
$text['submit'] = 'Ïðèìåíèòü';
$text['created'] = 'Ñîçäàíî';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'äíåé';
$text['hours'] = 'hours';
$text['minutes'] = 'minutes';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/tw.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: tw.php,v 1.18 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'big5';
 
$text['title'] = '¨t²Î¸ê°T';
 
$text['vitals'] = '¨t²Î¥D­n°T®§';
$text['hostname'] = '¥D¾÷¦WºÙ';
$text['ip'] = '¥D¾÷¹ï¥~ IP';
$text['kversion'] = '®Ö¤ßª©¥»';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '¶}¾÷®É¶¡';
$text['users'] = '½u¤W¨Ï¥ÎªÌ';
$text['loadavg'] = '¥­§¡­t¸ü';
 
$text['hardware'] = 'µwÅé¸ê°T';
$text['numcpu'] = '³B²z¾¹¼Æ¶q';
$text['cpumodel'] = 'CPU«¬¸¹';
$text['cpuspeed'] = '´¹¤ù³t«×';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = '§Ö¨ú¤j¤p';
$text['bogomips'] = '¨t²Î Bogomips';
 
$text['pci'] = 'PCI ³]³Æ';
$text['ide'] = 'IDE ³]³Æ';
$text['scsi'] = 'SCSI ³]³Æ';
$text['usb'] = 'USB ³]³Æ';
 
$text['netusage'] = 'ºô¸ô¨Ï¥Î¶q';
$text['device'] = 'ºô¸ô³]³Æ';
$text['received'] = '±µ¦¬';
$text['sent'] = '°e¥X';
$text['errors'] = '¿ù»~/¤¤Â_';
 
$text['memusage'] = '°O¾ÐÅé¨Ï¥Î¶q';
$text['phymem'] = '¹êÅé°O¾ÐÅé';
$text['swap'] = 'µêÀÀ°O¾ÐÅé(ºÏºÐ¸m´«)';
 
$text['fs'] = '¤w±¾¸üÀɮרt²Î';
$text['mount'] = '±¾¸ü¸ô®|';
$text['partition'] = '¤À³ÎºÏ°Ï';
 
$text['percent'] = '¨Ï¥Î¶q¦Ê¤À¤ñ';
$text['type'] = '«¬ºA';
$text['free'] = '³Ñ¾lªÅ¶¡';
$text['used'] = '¤w¨Ï¥Î';
$text['size'] = 'Á`®e¶q';
$text['totals'] = 'Á`¨Ï¥Î¶q';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'µL';
 
$text['capacity'] = '®e¶q';
 
$text['template'] = '½d¥»';
$text['language'] = '»y¨¥';
$text['submit'] = '°e¥X';
$text['created'] = '²£¥Í¥Ñ';
$text['locale'] = 'zh_TW.Big5';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = '¤Ñ';
$text['hours'] = '¤p®É';
$text['minutes'] = '¤ÀÄÁ';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/id.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: id.php,v 1.18 2007/02/18 19:11:31 bigmichi1 Exp $
// Translated by: Firman Pribadi <http://ragiel.dhs.org>
 
$text['title'] = 'Informasi Sistem';
 
$text['vitals'] = 'Informasi Utama';
$text['hostname'] = 'Hostname Resmi';
$text['ip'] = 'IP Penerima';
$text['kversion'] = 'Versi Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Aktif Selama';
$text['users'] = 'Pengguna Saat Ini';
$text['loadavg'] = 'Beban Rata-rata';
 
$text['hardware'] = 'Informasi Perangkat Keras';
$text['numcpu'] = 'Prosesor';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Ukuran Cache';
$text['bogomips'] = 'Sistem Bogomips';
 
$text['pci'] = 'Perangkat PCI';
$text['ide'] = 'Perangkat IDE';
$text['scsi'] = 'Perangkat SCSI';
$text['usb'] = 'Perangkat USB';
 
$text['netusage'] = 'Status Penggunaan Jaringan';
$text['device'] = 'Perangkat';
$text['received'] = 'Diterima';
$text['sent'] = 'Dikirim';
$text['errors'] = 'Rusak/Drop';
 
$text['connections'] = 'Koneksi Jaringan Aktif';
 
$text['memusage'] = 'Status Penggunaan Memori';
$text['phymem'] = 'Memori Fisik';
$text['swap'] = 'Swap HardDisk';
 
$text['fs'] = 'Status Penggunaan Media Penyimpanan dan Filesystem';
$text['mount'] = 'Titik Mount';
$text['partition'] = 'Partisi';
 
$text['percent'] = 'Digunakan (Persen)';
$text['type'] = 'Tipe';
$text['free'] = 'Bebas';
$text['used'] = 'Digunakan';
$text['size'] = 'Ukuran';
$text['totals'] = 'Total';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'tidak ditemukan';
 
$text['capacity'] = 'Kapasitas';
 
$text['template'] = 'Template';
$text['language'] = 'Bahasa';
$text['submit'] = 'Gunakan';
$text['created'] = 'Dibangun menggunakan';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'hari';
$text['hours'] = 'jam';
$text['minutes'] = 'menit';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/cn.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: cn.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'gb2312';
 
$text['title'] = 'ϵͳÐÅÏ¢';
$text['vitals'] = 'ϵͳÖ÷ÒªÐÅÏ¢';
$text['hostname'] = 'Ö÷»úÃû³Æ';
$text['ip'] = 'Ö÷»ú¶ÔÍâIP';
$text['kversion'] = 'Äں˰汾';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '¿ª»úʱ¼ä';
$text['users'] = 'ÔÚÏßʹÓÃÕß';
$text['loadavg'] = 'ƽ¾ù¸ºÔØ';
 
$text['hardware'] = 'Ó²¼þÐÅÏ¢';
$text['numcpu'] = '´¦ÀíÆ÷ÊýÁ¿';
$text['cpumodel'] = 'CPUÐͺÅ';
$text['cpuspeed'] = 'оƬËÙ¶È';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache´óС';
$text['bogomips'] = 'ϵͳBogomips';
 
$text['pci'] = 'PCIÉ豸';
$text['ide'] = 'IDEÉ豸';
$text['scsi'] = 'SCSIÉ豸';
$text['usb'] = 'USBÉ豸';
 
$text['netusage'] = 'ÍøÂ縺ÔØ';
$text['device'] = 'ÍøÂçÉ豸';
$text['received'] = '½ÓÊÕ';
$text['sent'] = 'Ëͳö';
$text['errors'] = '´íÎó/ÖжÏ';
 
$text['memusage'] = 'ÄÚ´æʹÓÃÁ¿';
$text['phymem'] = 'ÎïÀíÄÚ´æ';
$text['swap'] = 'ÐéÄâÄÚ´æ(½»»»·ÖÇø)';
 
$text['fs'] = 'ÒѹÒÔØ·ÖÇø';
$text['mount'] = '¹ÒÔØ·¾¶';
$text['partition'] = 'ÎïÀí´ÅÅÌ';
 
$text['percent'] = 'ʹÓÃÁ¿°Ù·Ö±È';
$text['type'] = 'ÎļþϵͳÀàÐÍ';
$text['free'] = 'Ê£Óà¿Õ¼ä';
$text['used'] = 'ÒÑÓÿռä';
$text['size'] = '×ÜÈÝÁ¿';
$text['totals'] = '×ÜʹÓÃÁ¿';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'ÎÞ';
 
$text['capacity'] = 'ÈÝÁ¿';
 
$text['template'] = 'Ö÷Ìâ';
$text['language'] = 'ÓïÑÔ';
$text['submit'] = 'È·¶¨';
$text['created'] = 'Éú³É By';
$text['locale'] = 'zh_CN.eucCN';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'Ìì';
$text['hours'] = 'Сʱ';
$text['minutes'] = '·ÖÖÓ';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/cs.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: cs.php,v 1.18 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'iso-8859-2';
 
$text['title'] = 'Informace o systému';
 
$text['vitals'] = 'Základní informace';
$text['hostname'] = 'Jméno poèítaèe';
$text['ip'] = 'IP adresa';
$text['kversion'] = 'Verze jádra';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Pøihlá¹ených u¾ivatelù';
$text['loadavg'] = 'Prùmìrná zátì¾';
 
$text['hardware'] = 'Hardwarové informace';
$text['numcpu'] = 'Procesory';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Frekvence';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Velikost cache';
$text['bogomips'] = 'Bogomipsy';
 
$text['pci'] = 'PCI zaøízení';
$text['ide'] = 'IDE zaøízení';
$text['scsi'] = 'SCSI zaøízení';
$text['usb'] = 'USB zaøízení';
 
$text['netusage'] = 'Pou¾ívání sítì';
$text['device'] = 'Zaøízení';
$text['received'] = 'Pøijato';
$text['sent'] = 'Odesláno';
$text['errors'] = 'Chyby/Vypu¹tìno';
 
$text['memusage'] = 'Obsazení pamìti';
$text['phymem'] = 'Fyzická pamì»';
$text['swap'] = 'Swap';
 
$text['fs'] = 'Pøipojené souborové systémy';
$text['mount'] = 'Adresáø';
$text['partition'] = 'Oddíl';
 
$text['percent'] = 'Obsazeno';
$text['type'] = 'Typ';
$text['free'] = 'Volno';
$text['used'] = 'Pou¾ito';
$text['size'] = 'Velikost';
$text['totals'] = 'Celkem';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = '¾ádná';
 
$text['capacity'] = 'Kapacita';
 
$text['template'] = '©ablona';
$text['language'] = 'Jazyk';
$text['submit'] = 'Odeslat';
$text['created'] = 'Vytvoøeno pomocí';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dnù';
$text['hours'] = 'hodin';
$text['minutes'] = 'minut';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/ct.php
0,0 → 1,104
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: ct.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Informaci&oacute; del Sistema';
 
$text['vitals'] = 'Vitals del Sistema';
$text['hostname'] = 'Nom Canònic';
$text['ip'] = 'Adreça IP';
$text['kversion'] = 'Versi&oacute; del Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Temps Aixecat';
$text['users'] = 'Usuaris Actuals';
$text['loadavg'] = 'Càrrega Promitg';
 
$text['hardware'] = 'Informaci&oacute; del Maquinari';
$text['numcpu'] = 'Processadors';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Xip MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tamany Memòria Cau';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'Dispositius PCI';
$text['ide'] = 'Dispositius IDE';
$text['scsi'] = 'Dispositius SCSI';
$text['usb'] = 'Dispositius USB';
 
$text['netusage'] = 'Ús de la Xarxa';
$text['device'] = 'Dispositiu';
$text['received'] = 'Rebuts';
$text['sent'] = 'Enviats';
$text['errors'] = 'Errors/Perduts';
 
$text['memusage'] = 'Ús de la Memòria';
$text['phymem'] = 'Memòria F&iacute;sica';
$text['swap'] = 'Disc d\'Swap';
 
$text['fs'] = 'Sistemes d\'Arxius Muntats';
$text['mount'] = 'Muntat';
$text['partition'] = 'Partició';
$text['percent'] = 'Percentatge de Capacitat';
$text['type'] = 'Tipus';
$text['free'] = 'Lliure';
$text['used'] = 'Emprat';
$text['size'] = 'Tamany';
$text['totals'] = 'Totals';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'cap';
 
$text['capacity'] = 'Capacitat';
$text['template'] = 'Plantilla';
$text['language'] = 'Llengüa';
$text['submit'] = 'Enviar';
$text['created'] = 'Creat per';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dies';
$text['hours'] = 'hores';
$text['minutes'] = 'minuts';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/pa_utf8.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: pa_utf8.php,v 1.6 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'utf-8';
 
$text['title'] = 'ਸਿਸਟਮ ਜਾਣਕਾਰੀ';
 
$text['vitals'] = 'ਸਿਸਟਮ ਮਾਰਕਮ';
$text['hostname'] = 'ਮੇਜ਼ਬਾਨ ਨਾਂ';
$text['ip'] = 'ਸੁਣਨ IP';
$text['kversion'] = 'ਕਰਨਲ ਵਰਜਨ';
$text['dversion'] = 'ਵੰਡ ਨਾਂ';
$text['uptime'] = 'ਚੱਲਣ ਸਮਾਂ';
$text['users'] = 'ਕੁੱਲ ਉਪਭੋਗੀ';
$text['loadavg'] = 'ਔਸਤ ਲੋਡ';
 
$text['hardware'] = 'ਜੰਤਰ ਜਾਣਕਾਰੀ';
$text['numcpu'] = 'ਪਰੋਸੈਸਰ';
$text['cpumodel'] = 'ਮਾਡਲ';
$text['cpuspeed'] = 'CPU ਗਤੀ';
$text['busspeed'] = 'ਬਸ ਗਤੀ';
$text['cache'] = 'ਕੈਂਚੇ ਅਕਾਰ';
$text['bogomips'] = 'ਸਿਸਟਮ Bogomips';
 
$text['pci'] = 'PCI ਜੰਤਰ';
$text['ide'] = 'IDE ਜੰਤਰ';
$text['scsi'] = 'SCSI ਜੰਤਰ';
$text['usb'] = 'USB ਜੰਤਰ';
 
$text['netusage'] = 'ਨੈੱਟਵਰਕ ਵਰਤੋਂ';
$text['device'] = 'ਜੰਤਰ';
$text['received'] = 'ਪਰਾਪਤ ਹੋਇਆ';
$text['sent'] = 'ਭੇਜਿਆ';
$text['errors'] = 'ਗਲਤੀ/ਸੁੱਟੇ';
 
$text['connections'] = 'ਸਥਾਪਤ ਨੈੱਟਵਰਕ ਕੁਨੈਕਸ਼ਨ';
 
$text['memusage'] = 'ਮੈਮੋਰੀ ਵਰਤੋਂ';
$text['phymem'] = 'ਭੌਤਿਕ ਮੈਮੋਰੀ';
$text['swap'] = 'ਡਿਸਕ ਸਵੈਪ';
 
$text['fs'] = 'ਮਾਊਂਟ ਕੀਤੇ ਫਾਇਲ ਸਿਸਟਮ';
$text['mount'] = 'ਮਾਊਂਟ';
$text['partition'] = 'ਭਾਗ';
 
$text['percent'] = 'ਫ਼ੀ-ਸਦੀ ਸਮੱਰਥਾ';
$text['type'] = 'ਕਿਸਮ';
$text['free'] = 'ਮੁਕਤ (ਖਾਲੀ)';
$text['used'] = 'ਵਰਤੀ';
$text['size'] = 'ਅਕਾਰ';
$text['totals'] = 'ਕੁੱਲ';
 
$text['kb'] = 'ਕਿਬਾ';
$text['mb'] = 'ਮੈਬਾ';
$text['gb'] = 'ਗੈਬਾ';
 
$text['none'] = 'ਕੋਈ ਨਹੀਂ';
 
$text['capacity'] = 'ਸਮੱਰਥਾ';
 
$text['template'] = 'ਨਮੂਨਾ';
$text['language'] = 'ਭਾਸ਼ਾ';
$text['submit'] = 'ਪੇਸ਼ ਕਰੋੇ';
$text['created'] = 'ਬਣਾਇਆ';
$text['locale'] = 'pa';
$text['gen_time'] = '%b %d, %Y ਨੂੰ %I:%M %p ਵਜੇ';
 
$text['days'] = 'ਦਿਨ';
$text['hours'] = 'ਘੰਟੇ';
$text['minutes'] = 'ਮਿੰਟ';
 
$text['temperature'] = 'ਤਾਪਮਾਨ';
$text['voltage'] = 'ਵੋਲਟੇਜ਼';
$text['fans'] = 'ਪੱਖੇ';
$text['s_value'] = 'ਮੁੱਲ';
$text['s_min'] = 'ਘੱਟੋ-ਘੱਟ';
$text['s_max'] = 'ਵੱਧੋ-ਵੱਧ';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'ਸੀਮਾ';
$text['s_label'] = 'ਲੇਬਲ';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/es.php
0,0 → 1,105
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: es.php,v 1.20 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Informaci&oacute;n Del Sistema';
 
$text['vitals'] = 'Vitales';
$text['hostname'] = 'Nombre Del Sistema';
$text['ip'] = 'Direcci&oacute;n IP';
$text['kversion'] = 'Versi&oacute;n Del N&uacute;cleo';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Usuarios Actuales';
$text['loadavg'] = 'Promedio De Uso';
 
$text['hardware'] = 'Informaci&oacute;n Del Hardware';
$text['numcpu'] = 'Procesadores';
$text['cpumodel'] = 'Modelo';
$text['cpuspeed'] = 'Frecuencia';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Tama&ntilde;o Del Cach&eacute;';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'Dispositivos PCI';
$text['ide'] = 'Dispositivos IDE';
$text['scsi'] = 'Dispositivos SCSI';
$text['usb'] = 'Dispositivos USB';
 
$text['netusage'] = 'Utilizaci&oacute;n De La Red';
$text['device'] = 'Dispositivo';
$text['received'] = 'Recibidos';
$text['sent'] = 'Enviados';
$text['errors'] = 'Errores/Perdidos';
 
$text['memusage'] = 'Utilizaci&oacute;n De La Memoria';
$text['phymem'] = 'Memoria F&iacute;sica';
$text['swap'] = 'Memoria De Intercambio';
 
$text['fs'] = 'Sistemas De Archivos';
$text['mount'] = 'Punto De Montaje';
$text['partition'] = 'Partici&oacute;n';
 
$text['percent'] = 'Porcentaje De Uso';
$text['type'] = 'Tipo';
$text['free'] = 'Libre';
$text['used'] = 'Usado';
$text['size'] = 'Tama&ntilde;o';
$text['totals'] = 'Totales';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'Ninguno';
 
$text['capacity'] = 'Capacidad';
 
$text['template'] = 'Plantilla';
$text['language'] = 'Idioma';
$text['submit'] = 'Enviar';
$text['created'] = 'Creado por';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'd&iacute;as';
$text['hours'] = 'horas';
$text['minutes'] = 'minutos';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/et.php
0,0 → 1,105
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: et.php,v 1.21 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'S&uuml;steemi informatsioon';
 
$text['vitals'] = 'System Vital';
$text['hostname'] = 'Kanooniline masinanimi';
$text['ip'] = 'Vastav IP';
$text['kversion'] = 'Kerneli versioon';
$text['dversion'] = 'Distro nimi';
$text['uptime'] = 'Masin elus juba';
$text['users'] = 'Hetkel kasutajaid';
$text['loadavg'] = 'Koormuse keskmised';
 
$text['hardware'] = 'Riistvara informatsioon';
$text['numcpu'] = 'Protsessoreid';
$text['cpumodel'] = 'Mudel';
$text['cpuspeed'] = 'Taktsagedus MHz';
$text['busspeed'] = 'Siinikiirus';
$text['cache'] = 'Vahem&auml;lu suurus';
$text['bogomips'] = 'S&uuml;steemi BogoMIPS';
 
$text['pci'] = 'PCI-seadmed';
$text['ide'] = 'IDE-seadmed';
$text['scsi'] = 'SCSI-seadmed';
$text['usb'] = 'USB-seadmed';
 
$text['netusage'] = 'V&otilde;rguteenuse kasutamine';
$text['device'] = 'Seade';
$text['received'] = 'Saadud';
$text['sent'] = 'Saadetud';
$text['errors'] = 'Vigu/H&uuml;ljatud';
 
$text['memusage'] = 'M&auml;lu kasutamine';
$text['phymem'] = 'F&uuml;&uuml;siline m&auml;lu';
$text['swap'] = 'Saalem&auml;lu kettal';
 
$text['fs'] = '&Uuml;hendatud failis&uuml;steemid';
$text['mount'] = '&Uuml;hendus';
$text['partition'] = 'Partitsioon';
 
$text['percent'] = 'Protsendiline h&otilde;ivatus';
$text['type'] = 'T&uuml;&uuml;p';
$text['free'] = 'Vaba';
$text['used'] = 'Kasutusel';
$text['size'] = 'Suurus';
$text['totals'] = 'Kokku';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'puudub';
 
$text['capacity'] = 'H&otilde;ivatus';
$text['template'] = 'Mall';
$text['language'] = 'Keel';
$text['submit'] = 'Kehtesta';
$text['created'] = 'Looja:';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'p&auml;eva';
$text['hours'] = 'tundi';
$text['minutes'] = 'minutit';
$text['temperature'] = 'Temperatuur';
$text['voltage'] = 'Pinge';
$text['fans'] = 'Ventilaatorid';
$text['s_value'] = 'V&auml;&auml;rtus';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'H&uuml;sterees';
$text['s_limit'] = 'Limiit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + rakendused';
$text['buffers'] = 'Puhvrid';
$text['cached'] = 'Vahem&auml;lus';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/gr.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: gr.php,v 1.15 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = "iso-8895-7";
 
$text['title'] = 'Ðëçñïöïñßåò ÓõóôÞìáôïò';
 
$text['vitals'] = '×áñáêôçñéóôéêÜ ÓõóôÞìáôïò';
$text['hostname'] = '¼íïìá ÕðïëïãéóôÞ';
$text['ip'] = 'Äéåõèõíóç ÉÑ';
$text['kversion'] = 'Åêäïóç ÐõñÞíá';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '×ñüíïò Ëåéôïõñãßáò ÓõóôÞìáôïò';
$text['users'] = 'ÓõíäåìÝíïé ×ñÞóôåò';
$text['loadavg'] = 'Load Average';
 
$text['hardware'] = 'Ðëçñïöïñßåò Õëéêïý';
$text['numcpu'] = 'ÅðåîåñãáóôÝò';
$text['cpumodel'] = 'ÌïíôÝëï';
$text['cpuspeed'] = 'Ôá÷ýôçôá MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'ÌÝãåèïò ÌíÞìçò Cache';
$text['bogomips'] = 'ÅðåîåñãáóôéêÞ Éó÷ýò óå Bogomips';
 
$text['pci'] = 'ÓõóêåõÝò PCI';
$text['ide'] = 'ÓõóêåõÝò IDE';
$text['scsi'] = 'ÓõóêåõÝò SCSI';
$text['usb'] = 'ÓõóêåõÝò USB';
 
$text['netusage'] = '×ñÞóç Äéêôýïõ';
$text['device'] = 'ÓõóêåõÞ';
$text['received'] = 'Ëáìâáíüìåíá';
$text['sent'] = 'ÁðïóôáëìÝíá';
$text['errors'] = 'ÓöÜëìáôá';
 
$text['connections'] = 'ÅíåñãÝò ÓõíäÝóçò Äéêôýïõ';
 
$text['memusage'] = '×ñÞóç ÌíÞìçò';
$text['phymem'] = 'ÌíÞìç Physical';
$text['swap'] = 'Äßóêïò Swap';
 
$text['fs'] = 'ÐñïóáñôçìÝíá ÓõóôÞìáôá Áñ÷åßùí';
$text['mount'] = 'ÐñïóÜñôçóç';
$text['partition'] = 'ÊáôÜôìçóç';
 
$text['percent'] = '×ùñçôéêüôçôá %';
$text['type'] = 'Ôýðïò';
$text['free'] = 'Åëåýèåñá';
$text['used'] = 'Óå ÷ñÞóç';
$text['size'] = 'ÌÝãåèïò';
$text['totals'] = 'ÓõíïëéêÜ';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = '-';
 
$text['capacity'] = '×ùñçôéêüôçôá';
 
$text['template'] = 'ÈÝìá';
$text['language'] = 'Ãëþóóá';
$text['submit'] = 'ÕðïâïëÞ';
$text['created'] = 'ÄçìéïõñãÞèçêå áðü ôï';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'ìÝñåò';
$text['hours'] = 'þñåò';
$text['minutes'] = 'ëåðôÜ';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/ko.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: ko.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
// Translated by Sungkook KIM - ace@aceteam.org
 
$charset = 'euc-kr';
 
$text['title'] = '½Ã½ºÅÛ Á¤º¸';
 
$text['vitals'] = 'ÇöÀç ½Ã½ºÅÛ »óȲ';
$text['hostname'] = '½Ã½ºÅÛÀÇ È£½ºÆ®³×ÀÓ';
$text['ip'] = '½Ã½ºÅÛÀÇ IP ÁÖ¼Ò';
$text['kversion'] = 'Ä¿³Î ¹öÁ¯';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '½ÇÇà ½Ã°£';
$text['users'] = 'ÇöÀç Á¢¼ÓÀÚ ¼ö';
$text['loadavg'] = 'Æò±Õ ·Îµå';
 
$text['hardware'] = 'Çϵå¿þ¾î Á¤º¸';
$text['numcpu'] = 'ÇÁ·Î¼¼¼­ °¹¼ö';
$text['cpumodel'] = 'ÇÁ·Î¼¼¼­ ¸ðµ¨';
$text['cpuspeed'] = 'Ĩ¼Â Ŭ·°';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Äɽ¬ »çÀÌÁî';
$text['bogomips'] = 'ÀÚüÅ×½ºÆ® Ŭ·°';
 
$text['pci'] = 'PCI ÀåÄ¡';
$text['ide'] = 'IDE ÀåÄ¡';
$text['scsi'] = 'SCSI ÀåÄ¡';
$text['usb'] = 'USB ÀåÄ¡';
 
$text['netusage'] = ' ³×Æ®¿öÅ© »ç¿ëÁ¤º¸';
$text['device'] = 'ÀåÄ¡';
$text['received'] = '¹ÞÀº ·®';
$text['sent'] = 'º¸³½ ·®';
$text['errors'] = '¿¡·¯ / ½ÇÆÐ';
 
$text['memusage'] = '¸Þ¸ð¸® »ç¿ë·®';
$text['phymem'] = '¹°¸®Àû ¸Þ¸ð¸®';
$text['swap'] = '½º¿Ò µð½ºÅ©';
 
$text['fs'] = '¸¶¿îÆ® ÇöȲ';
$text['mount'] = '¸¶¿îÆ®';
$text['partition'] = 'ÆÄƼ¼Ç';
 
$text['percent'] = ' ÆÛ¼¾Æ®';
$text['type'] = 'ŸÀÔ';
$text['free'] = '³²Àº·®';
$text['used'] = '»ç¿ë·®';
$text['size'] = 'ÃÑ ¿ë·®';
$text['totals'] = 'ÇÕ°è';
 
$text['kb'] = 'ų·Î¹ÙÀÌÆ®(KB)';
$text['mb'] = '¸Þ°¡¹ÙÀÌÆ®(MB)';
$text['gb'] = '±â°¡¹ÙÀÌÆ®(GB)';
 
$text['none'] = '¾øÀ½';
 
$text['capacity'] = '¿ë·®';
 
$text['template'] = 'ÅÛÇø´';
$text['language'] = '¾ð¾î';
$text['submit'] = 'Àû¿ë';
$text['created'] = '¸¸µçÀÌ';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'ÀÏ';
$text['hours'] = '½Ã';
$text['minutes'] = 'ºÐ';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/eu.php
0,0 → 1,106
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: eu.php,v 1.16 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Sistemaren Informazioa';
 
$text['vitals'] = 'Sistema';
$text['hostname'] = 'Zerbitzariaren izen Kanonikoa';
$text['ip'] = 'Entzuten duen IP-a';
$text['kversion'] = 'Kernel Bertsioa';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Piztutako denbora';
$text['users'] = 'Uneko Erabiltzaileak';
$text['loadavg'] = 'Karga ertainak';
 
$text['hardware'] = 'Hardwarezko Informazioa';
$text['numcpu'] = 'Prozasatzailea';
$text['cpumodel'] = 'Modeloa';
$text['cpuspeed'] = 'Txip MHz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cache tamaina';
$text['bogomips'] = 'Sistemare Bogomips-ak';
 
$text['pci'] = 'PCI Dispositiboak';
$text['ide'] = 'IDE Dispositiboak';
$text['scsi'] = 'SCSI Dispositiboak';
$text['usb'] = 'USB Dispositiboak';
 
$text['netusage'] = 'Sarearen Erabilera';
$text['device'] = 'Dispositiboa';
$text['received'] = 'Jasotakoa';
$text['sent'] = 'Bidalitakoa';
$text['errors'] = 'Err/Huts';
 
$text['connections'] = 'Established Network Connections';
 
$text['memusage'] = 'Memoriaren Erabilpena';
$text['phymem'] = 'Memoria Fisikoa';
$text['swap'] = 'Disko Memoria';
 
$text['fs'] = 'Montatutako Fitxategi-sistemak';
$text['mount'] = 'Non montatuta';
$text['partition'] = 'Partizioa';
 
$text['percent'] = 'Ehunekoa';
$text['type'] = 'Mota';
$text['free'] = 'Aske';
$text['used'] = 'Erabilita';
$text['size'] = 'Tamaina';
$text['totals'] = 'Guztira';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'ezer ez';
 
$text['capacity'] = 'Kapazitatea';
 
$text['template'] = 'Txantiloia';
$text['language'] = 'Langoaia';
$text['submit'] = 'Bidali';
$text['created'] = 'Sortzailea: ';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'egun';
$text['hours'] = 'ordu';
$text['minutes'] = 'minutu';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/is.php
0,0 → 1,105
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: is.php,v 1.18 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Kerfisupplýsingar';
 
$text['vitals'] = 'Helstu upplýsingar';
$text['hostname'] = 'Vélarnafn';
$text['ip'] = 'IP-tala';
$text['kversion'] = 'Útgáfa kjarna';
$text['dversion'] = 'Nafn dreifingar';
$text['uptime'] = 'Uppitími';
$text['users'] = 'Notendur';
$text['loadavg'] = 'Meðalálag';
 
$text['hardware'] = 'Upplýsingar um vélbúnað';
$text['numcpu'] = 'Fjöldi örgjörva';
$text['cpumodel'] = 'Tegund';
$text['cpuspeed'] = 'Hraði';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Stærð flýtiminnis';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'PCI jaðartæki';
$text['ide'] = 'IDE jaðartæki';
$text['scsi'] = 'SCSI jaðartæki';
$text['usb'] = 'USB jaðartæki';
 
$text['netusage'] = 'Netnotkun';
$text['device'] = 'Jaðartæki';
$text['received'] = 'Móttekið';
$text['sent'] = 'Sent';
$text['errors'] = 'Villur/Hent';
 
$text['memusage'] = 'Minnisnotkun';
$text['phymem'] = 'Vinnsluminni';
$text['swap'] = 'Sýndarminni';
 
$text['fs'] = 'Tengd skráarkerfi';
$text['mount'] = 'Tengipunktur';
$text['partition'] = 'Disksneið';
 
$text['percent'] = 'Hlutfall af heildarstærð';
$text['type'] = 'Tegund';
$text['free'] = 'Laust';
$text['used'] = 'Notað';
$text['size'] = 'Stærð';
$text['totals'] = 'Samtals';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'ekkert';
 
$text['capacity'] = 'Heildarstærð';
 
$text['template'] = 'Sniðmát';
$text['language'] = 'Tungumál';
$text['submit'] = 'Senda';
$text['created'] = 'Búið til af';
$text['locale'] = 'is_IS';
$text['gen_time'] = 'þann %d.%m.%Y kl. %H:%M';
 
$text['days'] = 'dagar';
$text['hours'] = 'klukkustundir';
$text['minutes'] = 'mínútur';
$text['temperature'] = 'Hitastig';
$text['voltage'] = 'Volt';
$text['fans'] = 'Viftur';
$text['s_value'] = 'Gildi';
$text['s_min'] = 'Lægst';
$text['s_max'] = 'Hæst';
$text['hysteresis'] = 'Aðvörun lýkur';
$text['s_limit'] = 'Aðvörun byrjar';
$text['s_label'] = 'Nafn mælis';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/it.php
0,0 → 1,105
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: it.php,v 1.19 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'Informazioni sul Sistema';
 
$text['vitals'] = 'Informazioni Vitali';
$text['hostname'] = 'Nome Canonico';
$text['ip'] = 'Indirizzo IP';
$text['kversion'] = 'Versione del Kernel';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Tempo di Esercizio';
$text['users'] = 'Utenti Collegati';
$text['loadavg'] = 'Carico Medio';
 
$text['hardware'] = 'Informazioni Hardware';
$text['numcpu'] = 'Processori';
$text['cpumodel'] = 'Modello';
$text['cpuspeed'] = 'MHz del Chip';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Dimensione Cache';
$text['bogomips'] = 'Bogomips del Sistema';
 
$text['pci'] = 'Unità PCI';
$text['ide'] = 'Unità IDE';
$text['scsi'] = 'Unità SCSI';
$text['usb'] = 'Unità USB';
 
$text['netusage'] = 'Utilizzo della Rete';
$text['device'] = 'Device';
$text['received'] = 'Ricevuti';
$text['sent'] = 'Inviati';
$text['errors'] = 'Err/Drop';
 
$text['memusage'] = 'Utilizzo della Memoria';
$text['phymem'] = 'Memoria Fisica';
$text['swap'] = 'Disco di Swap';
 
$text['fs'] = 'Filesystem Montati';
$text['mount'] = 'Punto di Mount';
$text['partition'] = 'Partizione';
 
$text['percent'] = 'Uso Percentuale';
$text['type'] = 'Tipo';
$text['free'] = 'Libero';
$text['used'] = 'Usato';
$text['size'] = 'Dimensione';
$text['totals'] = 'Totali';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'none';
 
$text['capacity'] = 'Capacità';
$text['template'] = 'Template';
$text['language'] = 'Lingua';
$text['submit'] = 'Invia';
$text['created'] = 'Creato da';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'giorni';
$text['hours'] = 'ore';
$text['minutes'] = 'minuti';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/sk.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: sk.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'iso-8859-2';
 
$text['title'] = 'Informácie o systéme';
 
$text['vitals'] = 'Základné informácie';
$text['hostname'] = 'Meno poèítaèa';
$text['ip'] = 'IP adresa';
$text['kversion'] = 'Verzia jadra';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Uptime';
$text['users'] = 'Prihlásených u¾ívateåov';
$text['loadavg'] = 'Priemer loadu';
 
$text['hardware'] = 'Hardwarové informácie';
$text['numcpu'] = 'Procesory';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'Frekvencia';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Veåkos» cache';
$text['bogomips'] = 'Bogomipsov';
 
$text['pci'] = 'PCI zariadenia';
$text['ide'] = 'IDE zariadenia';
$text['scsi'] = 'SCSI zariadenia';
$text['usb'] = 'USB zariadenia';
 
$text['netusage'] = 'Pou¾ívanie siete';
$text['device'] = 'Zariadenia';
$text['received'] = 'Prijatých';
$text['sent'] = 'Odoslaných';
$text['errors'] = 'Chyby/Vypustených';
 
$text['memusage'] = 'Obsadenie pamäti';
$text['phymem'] = 'Fyzická pamä»';
$text['swap'] = 'Swap';
 
$text['fs'] = 'Namountované súborové systémy';
$text['mount'] = 'Adresár';
$text['partition'] = 'Partícia';
 
$text['percent'] = 'Obsadených';
$text['type'] = 'Typ';
$text['free'] = 'Voåných';
$text['used'] = 'Pou¾itých';
$text['size'] = 'Veåkos»';
$text['totals'] = 'Celkom';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = '¾iadne';
 
$text['capacity'] = 'Kapacita';
 
$text['template'] = '©ablóna';
$text['language'] = 'Jazyk';
$text['submit'] = 'Odosla»';
$text['created'] = 'Vytvorené pomocou';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dní';
$text['hours'] = 'hodín';
$text['minutes'] = 'minút';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/da.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: da.php,v 1.21 2007/02/18 19:11:31 bigmichi1 Exp $
 
# Translated by Jonas Koch Bentzen (understroem.dk).
 
$text['title'] = 'Systeminformation';
 
$text['vitals'] = 'Systemenheder';
$text['hostname'] = 'Konisk værtsnavn';
$text['ip'] = 'IP-adresse, der lyttes på';
$text['kversion'] = 'Kerne-version';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Oppetid';
$text['users'] = 'Antal brugere logget ind lige nu';
$text['loadavg'] = 'Ressourceforbrug - gennemsnit';
 
$text['hardware'] = 'Hardwareinformation';
$text['numcpu'] = 'Processorer';
$text['cpumodel'] = 'Model';
$text['cpuspeed'] = 'CPU Speed';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cachestørrelse';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'PCI-enheder';
$text['ide'] = 'IDE-enheder';
$text['scsi'] = 'SCSI-enheder';
$text['usb'] = 'USB-enheder';
 
$text['netusage'] = 'Netværkstrafik';
$text['device'] = 'Enhed';
$text['received'] = 'Modtaget';
$text['sent'] = 'Afsendt';
$text['errors'] = 'Mislykket/tabt';
 
$text['memusage'] = 'Hukommelsesforbrug';
$text['phymem'] = 'Fysisk hukommelse';
$text['swap'] = 'Swap';
 
$text['fs'] = 'Monterede filsystemer';
$text['mount'] = 'Monteret på';
$text['partition'] = 'Partition';
 
$text['percent'] = 'Procent af kapaciteten';
$text['type'] = 'Type';
$text['free'] = 'Ledig';
$text['used'] = 'Brugt';
$text['size'] = 'Størrelse';
$text['totals'] = 'I alt';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'ingen';
 
$text['capacity'] = 'Kapacitet';
$text['template'] = 'Skabelon';
$text['language'] = 'Sprog';
$text['submit'] = 'Okay';
$text['created'] = 'Lavet af';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'dage';
$text['hours'] = 'timer';
$text['minutes'] = 'minutter';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/index.html
--- phpsysinfo/includes/lang/sr.php (nonexistent)
+++ phpsysinfo/includes/lang/sr.php (revision 40)
@@ -0,0 +1,107 @@
+<?php
+//
+// phpSysInfo - A PHP System Information Script
+// http://phpsysinfo.sourceforge.net/
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+//
+// $Id: sr.php,v 1.8 2007/02/18 19:11:31 bigmichi1 Exp $
+
+$charset = 'utf-8';
+
+$text['title'] = 'Спецификација Система ';
+
+$text['vitals'] = 'Систем';
+$text['hostname'] = 'Име домаћина';
+$text['ip'] = 'ИП адреса';
+$text['kversion'] = 'Верзија кернела';
+$text['dversion'] = 'Дицтрибуција';
+$text['uptime'] = 'Радно време';
+$text['users'] = 'Број корисника';
+$text['loadavg'] = 'Просечно оптерећење';
+
+$text['hardware'] = 'Хардверске компоненте';
+$text['numcpu'] = 'Процесор';
+$text['cpumodel'] = 'Moдел';
+$text['cpuspeed'] = 'CPU Speed';
+$text['busspeed'] = 'BUS Speed';
+$text['cache'] = 'Величина предмеморије';
+$text['bogomips'] = 'Богомипс';
+$text['usb'] = 'УСБ уређаји';
+$text['pci'] = 'ПЦИ уређаји';
+$text['ide'] = 'ИДЕ уређаји';
+$text['scsi'] = 'СЦСИ уређаји';
+
+$text['netusage'] = 'Мрежна Употреба';
+$text['device'] = 'Уређај';
+$text['received'] = 'Примљено';
+$text['sent'] = 'Послато';
+$text['errors'] = 'Грешке';
+
+$text['connections'] = 'Успостављене конекције';
+
+$text['memusage'] = 'Употреба меморије';
+$text['phymem'] = 'Тврда memorija';
+$text['swap'] = 'СВАП меморија';
+
+$text['fs'] = 'Монтирани фајл системи';
+$text['mount'] = 'Монтирани';
+$text['partition'] = 'Партиција';
+
+$text['percent'] = 'Проценти';
+$text['type'] = 'Врста';
+$text['free'] = 'Слободно';
+$text['used'] = 'Искоришћено';
+$text['size'] = 'Величина';
+$text['totals'] = 'Укупно';
+
+$text['kb'] = 'KB';
+$text['mb'] = 'MB';
+$text['gb'] = 'GB';
+
+$text['none'] = 'ezer ez';
+
+$text['capacity'] = 'Капацитет';
+
+$text['template'] = 'Tемплат';
+$text['language'] = 'Језик';
+$text['submit'] = 'Пошаљи';
+$text['created'] = 'Креирано: ';
+$text['locale'] = 'ср';
+$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
+
+$text['days'] = 'Дани';
+$text['hours'] = 'Сати';
+$text['minutes'] = 'Минути';
+
+$text['temperature'] = 'Температура';
+$text['voltage'] = 'Напајање';
+$text['fans'] = 'Вентилатори';
+$text['s_value'] = 'Снага';
+$text['s_min'] = 'Мин';
+$text['s_max'] = 'Mах';
+$text['hysteresis'] = 'Аларм';
+$text['s_limit'] = 'Лимит';
+$text['s_label'] = 'Име';
+$text['degreeC'] = '&deg;C';
+$text['degreeF'] = '&deg;F';
+$text['voltage_mark'] = 'V';
+$text['rpm_mark'] = 'RPM';
+
+$text['app'] = 'Kernel + applications';
+$text['buffers'] = 'Buffers';
+$text['cached'] = 'Cached';
+
+?>
/gestion/phpsysinfo/includes/lang/big5.php
0,0 → 1,107
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: big5.php,v 1.19 2007/02/18 19:11:31 bigmichi1 Exp $
//
$charset = 'big5';
$text['title'] = '¨t²Î¸ê°T';
 
$text['vitals'] = '¨t²Î¸ê·½';
$text['hostname'] = '¥D¾÷¦WºÙ';
$text['ip'] = '¥D¾÷¹ï¥~ IP';
$text['kversion'] = '®Ö¤ßª©¥»';
$text['dversion'] = 'Distro Name';
$text['uptime'] = '¤w¶}¾÷®É¶¡';
$text['users'] = 'µn¤J¤H¼Æ';
$text['loadavg'] = '¨t²Î­t¸ü';
 
$text['hardware'] = 'µwÅé¸ê·½';
$text['numcpu'] = '¹Bºâ¤¸';
$text['cpumodel'] = 'CPU«¬¸¹';
$text['cpuspeed'] = '¤u§@ÀW²v';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = '§Ö¨ú¤j¤p';
$text['bogomips'] = 'ÅÞ¿è¹Bºâ¤¸';
 
$text['pci'] = 'PCI ¤¶­±';
$text['ide'] = 'IDE ¤¶­±';
$text['scsi'] = 'SCSI ¤¶­±';
$text['usb'] = 'USB ¤¶­±';
 
$text['netusage'] = 'ºô¸ô«Ê¥]';
$text['device'] = '¤¶­±';
$text['received'] = '±µ¦¬';
$text['sent'] = '¶Ç°e';
$text['errors'] = '¿ù»~/¿ò¥¢';
 
$text['connections'] = 'Established Network Connections';
 
$text['memusage'] = '°O¾ÐÅé¸ê·½';
$text['phymem'] = '¹êÅé°O¾ÐÅé';
$text['swap'] = 'µêÀÀ°O¾ÐÅé(ºÏºÐ¸m´«)';
 
$text['fs'] = '¤w±¾¤JªºÀɮרt²Î';
$text['mount'] = '±¾¤J';
$text['partition'] = 'ºÏ°Ï';
 
$text['percent'] = '¨Ï¥Î¦Ê¤À¤ñ';
$text['type'] = '®æ¦¡';
$text['free'] = 'ªÅ¾l';
$text['used'] = '¤w¥Î';
$text['size'] = '¤j¤p';
$text['totals'] = '¦X­p';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'µL';
 
$text['capacity'] = '®e¶q';
 
$text['template'] = '¼Ë¦¡';
$text['language'] = '»y¨¥';
$text['submit'] = '½T©w';
$text['created'] = '²£¥Í¥Ñ';
$text['locale'] = 'zh_TW.Big5';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = '¤Ñ';
$text['hours'] = '¤p®É';
$text['minutes'] = '¤ÀÄÁ';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/sv.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: sv.php,v 1.17 2007/02/18 19:11:31 bigmichi1 Exp $
//
// translation by shockzor
// updated/edited by jetthe
 
$text['title'] = 'Systeminformation';
 
$text['vitals'] = 'Allmän information';
$text['hostname'] = 'Värdnamn';
$text['ip'] = 'IP-adress';
$text['kversion'] = 'Kernel-version';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Drifttid';
$text['users'] = 'Aktuella användare';
$text['loadavg'] = 'Medelbelastning';
 
$text['hardware'] = 'Hårdvaruinformation';
$text['numcpu'] = 'Processorer';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Klockfrekvens';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cachestorlek';
$text['bogomips'] = 'Bogomips';
 
$text['pci'] = 'PCI-enheter';
$text['ide'] = 'IDE-enheter';
$text['scsi'] = 'SCSI-enheter';
$text['usb'] = 'USB-enheter';
 
$text['netusage'] = 'Nätverksanvändning';
$text['device'] = 'Enheter';
$text['received'] = 'Mottaget';
$text['sent'] = 'Skickat';
$text['errors'] = 'Fel/Förlorat';
 
$text['memusage'] = 'Minnesanvändning';
$text['phymem'] = 'Fysiskt minne';
$text['swap'] = 'Växlingsminne';
 
$text['fs'] = 'Monterade filsystem';
$text['mount'] = 'Monteringspunkt';
$text['partition'] = 'Partition';
 
$text['percent'] = 'Kapacitetsutnyttjande';
$text['type'] = 'Typ';
$text['free'] = 'Ledigt';
$text['used'] = 'Använt';
$text['size'] = 'Storlek';
$text['totals'] = 'Totalt';
 
$text['kb'] = 'kB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'inga';
 
$text['capacity'] = 'Kapacitet';
$text['template'] = 'Mall';
$text['language'] = 'Språk';
$text['submit'] = 'Skicka';
 
$text['days'] = 'dagar';
$text['hours'] = 'timmar';
$text['minutes'] = 'minuter';
$text['created'] = 'Skapat av';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
$text['connections'] = 'Established Network Connections';
?>
/gestion/phpsysinfo/includes/lang/bg.php
0,0 → 1,108
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: bg.php,v 1.16 2007/02/18 19:11:31 bigmichi1 Exp $
 
$charset = 'cp-1251';
 
$text['title'] = 'Ñèñòåìíà Èíôîðìàöèÿ';
 
$text['vitals'] = 'Æèçíåíà Èíôîðàìöèÿ';
$text['hostname'] = 'Èìå íà õîñòà';
$text['ip'] = 'IP Àäðåñ';
$text['kversion'] = 'Âåðñèÿ íà ÿäðîòî';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Ðàáîòè îò';
$text['users'] = 'Âêëþ÷åíè ïîòðåáèòåëè';
$text['loadavg'] = 'Ñðåäíî íàòîâàðâàíå';
 
$text['hardware'] = 'Èíôîðìàöèÿ çà õàðäóåðà';
$text['numcpu'] = 'Áðîé ïðîöåñîðè';
$text['cpumodel'] = 'Ìîäåë íà ïðîöåñîð';
$text['cpuspeed'] = '×åñòîòà';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Ðàçìåð íà êåøa ';
$text['bogomips'] = 'Bogomips èíäåêñ';
 
$text['pci'] = 'PCI óñòðîéñòâà';
$text['ide'] = 'IDE óñòðîéñòâà';
$text['scsi'] = 'SCSI óñòðîéñòâà';
$text['usb'] = 'USB óñòðîéñòâà';
 
$text['netusage'] = 'Ìðåæîâà èíôîðìàöèÿ';
$text['device'] = 'Èíòåðôåéñè';
$text['received'] = 'Ïîëó÷åíè';
$text['sent'] = 'Èçïðàòåíè';
$text['errors'] = 'Ãðåøêè/Èçïóñíàòè';
 
$text['connections'] = 'Óñúùåñòâåíè ìðåæîâè âðúçêè';
 
$text['memusage'] = 'Îïåðàòèâíà ïàìåò';
$text['phymem'] = 'Ôèçè÷åñêà ïàìåò';
$text['swap'] = 'Swap ïàìåò';
 
$text['fs'] = 'Ôàéëîâè ñèñòåìè';
$text['mount'] = 'Ìÿñòî';
$text['partition'] = 'Äÿë';
 
$text['percent'] = 'Ïðîöåíòíî èçïîëçâàíå';
$text['type'] = 'Òèï';
$text['free'] = 'Ñâîáîäíè';
$text['used'] = 'Èçïîëçâàíè';
$text['size'] = 'Îáù îáåì';
$text['totals'] = 'Âñè÷êî';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'íÿìà';
 
$text['capacity'] = 'Êàïàöèòåò';
 
$text['template'] = 'Òåìà';
$text['language'] = 'Åçèê';
$text['submit'] = 'Îïðåñíè';
$text['created'] = 'Ñúçäàäåíî ñ';
$text['locale'] = 'en_US';
$text['gen_time'] = 'on %b %d, %Y at %I:%M %p';
 
$text['days'] = 'äíè';
$text['hours'] = '÷àñà';
$text['minutes'] = 'ìèíóòè';
 
$text['temperature'] = 'Temperature';
$text['voltage'] = 'Voltage';
$text['fans'] = 'Fans';
$text['s_value'] = 'Value';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Limit';
$text['s_label'] = 'Label';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'RPM';
 
$text['app'] = 'Kernel + applications';
$text['buffers'] = 'Buffers';
$text['cached'] = 'Cached';
 
?>
/gestion/phpsysinfo/includes/lang/de.php
0,0 → 1,105
<?php
//
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// $Id: de.php,v 1.22 2007/02/18 19:11:31 bigmichi1 Exp $
 
$text['title'] = 'System Information';
 
$text['vitals'] = 'System &Uuml;bersicht';
$text['hostname'] = 'Zugewiesener Hostname';
$text['ip'] = '&Uuml;berwachte IP';
$text['kversion'] = 'Kernel Version';
$text['dversion'] = 'Distro Name';
$text['uptime'] = 'Betriebszeit';
$text['users'] = 'Eingeloggte Benutzer';
$text['loadavg'] = 'Auslastung';
 
$text['hardware'] = 'Hardware &Uuml;bersicht';
$text['numcpu'] = 'Prozessoren';
$text['cpumodel'] = 'Modell';
$text['cpuspeed'] = 'Taktfrequenz';
$text['busspeed'] = 'BUS Speed';
$text['cache'] = 'Cachegr&ouml;&szlig;e';
$text['bogomips'] = 'System Bogomips';
 
$text['pci'] = 'PCI Ger&auml;te';
$text['ide'] = 'IDE Ger&auml;te';
$text['scsi'] = 'SCSI Ger&auml;te';
$text['usb'] = 'USB Ger&auml;te';
 
$text['netusage'] = 'Netzwerk-Auslastung';
$text['device'] = 'Schnittstelle';
$text['received'] = 'Empfangen';
$text['sent'] = 'Gesendet';
$text['errors'] = 'Fehler/Verworfen';
 
$text['memusage'] = 'Speicher-Auslastung';
$text['phymem'] = 'Physikalischer Speicher';
$text['swap'] = 'Auslagerungsdatei';
 
$text['fs'] = 'Angemeldete Dateisysteme';
$text['mount'] = 'Mount';
$text['partition'] = 'Partition';
 
$text['percent'] = 'Prozentuale Auslastung';
$text['type'] = 'Typ';
$text['free'] = 'Frei';
$text['used'] = 'Benutzt';
$text['size'] = 'Gr&ouml;&szlig;e';
$text['totals'] = 'Insgesamt';
 
$text['kb'] = 'KB';
$text['mb'] = 'MB';
$text['gb'] = 'GB';
 
$text['none'] = 'keine';
 
$text['capacity'] = 'Kapazit&auml;t';
$text['template'] = 'Vorlage';
$text['language'] = 'Sprache';
$text['submit'] = '&Auml;ndern';
$text['created'] = 'Erstellt von';
$text['locale'] = 'de_DE';
$text['gen_time'] = 'am %d.%b %Y um %H:%M';
 
$text['days'] = 'Tage';
$text['hours'] = 'Stunden';
$text['minutes'] = 'Minuten';
$text['temperature'] = 'Temperatur';
$text['voltage'] = 'Spannungen';
$text['fans'] = 'L&uuml;fter';
$text['s_value'] = 'Wert';
$text['s_min'] = 'Min';
$text['s_max'] = 'Max';
$text['hysteresis'] = 'Hysteresis';
$text['s_limit'] = 'Grenzwert';
$text['s_label'] = 'Bezeichnung';
$text['degreeC'] = '&deg;C';
$text['degreeF'] = '&deg;F';
$text['voltage_mark'] = 'V';
$text['rpm_mark'] = 'Umin';
 
$text['app'] = 'Kernel + Anwendungen';
$text['buffers'] = 'Puffer';
$text['cached'] = 'Cache';
 
$text['connections'] = 'Aktive Netzwerkverbindungen';
?>
/gestion/phpsysinfo/includes/os/class.Linux.inc.php
0,0 → 1,552
<?php
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// $Id: class.Linux.inc.php,v 1.88 2007/02/25 20:50:52 bigmichi1 Exp $
 
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
 
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
 
class sysinfo {
var $inifile = "distros.ini";
var $icon = "unknown.png";
var $distro = "unknown";
var $parser;
// get the distro name and icon when create the sysinfo object
function sysinfo() {
$this->parser = new Parser();
$this->parser->df_param = 'P';
$list = @parse_ini_file(APP_ROOT . "/" . $this->inifile, true);
if (!$list) {
return;
}
$distro_info = execute_program('lsb_release','-a 2> /dev/null', false); // We have the '2> /dev/null' because Ubuntu gives an error on this command which causes the distro to be unknown
if ( $distro_info != 'ERROR') {
$distro_tmp = explode("\n",$distro_info);
foreach( $distro_tmp as $info ) {
$info_tmp = explode(':', $info, 2);
$distro[ $info_tmp[0] ] = trim($info_tmp[1]);
}
if( !isset( $list[$distro['Distributor ID']] ) ){
return;
}
$this->icon = isset($list[$distro['Distributor ID']]["Image"]) ? $list[$distro['Distributor ID']]["Image"] : $this->icon;
$this->distro = $distro['Description'];
} else { // Fall back in case 'lsb_release' does not exist ;)
foreach ($list as $section => $distribution) {
if (!isset($distribution["Files"])) {
continue;
} else {
foreach (explode(";", $distribution["Files"]) as $filename) {
if (file_exists($filename)) {
$buf = rfts( $filename );
$this->icon = isset($distribution["Image"]) ? $distribution["Image"] : $this->icon;
$this->distro = isset($distribution["Name"]) ? $distribution["Name"] . " " . trim($buf) : trim($buf);
break 2;
}
}
}
}
}
}
// get our apache SERVER_NAME or vhost
function vhostname () {
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get the IP address of our vhost name
function vip_addr () {
return gethostbyname($this->vhostname());
}
// get our canonical hostname
function chostname () {
$result = rfts( '/proc/sys/kernel/hostname', 1 );
if ( $result == "ERROR" ) {
$result = "N.A.";
} else {
$result = gethostbyaddr( gethostbyname( trim( $result ) ) );
}
return $result;
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
 
function kernel () {
$buf = rfts( '/proc/version', 1 );
if ( $buf == "ERROR" ) {
$result = "N.A.";
} else {
if (preg_match('/version (.*?) /', $buf, $ar_buf)) {
$result = $ar_buf[1];
 
if (preg_match('/SMP/', $buf)) {
$result .= ' (SMP)';
}
}
}
return $result;
}
function uptime () {
$buf = rfts( '/proc/uptime', 1 );
$ar_buf = explode( ' ', $buf );
$result = trim( $ar_buf[0] );
 
return $result;
}
 
function users () {
$strResult = 0;
$strBuf = execute_program('who', '-q');
if( $strBuf != "ERROR" ) {
$arrWho = explode( '=', $strBuf );
$strResult = $arrWho[1];
}
return $strResult;
}
function loadavg ($bar = false) {
$buf = rfts( '/proc/loadavg' );
if( $buf == "ERROR" ) {
$results['avg'] = array('N.A.', 'N.A.', 'N.A.');
} else {
$results['avg'] = preg_split("/\s/", $buf, 4);
unset($results['avg'][3]); // don't need the extra values, only first three
}
if ($bar) {
$buf = rfts( '/proc/stat', 1 );
if( $buf != "ERROR" ) {
sscanf($buf, "%*s %Ld %Ld %Ld %Ld", $ab, $ac, $ad, $ae);
// Find out the CPU load
// user + sys = load
// total = total
$load = $ab + $ac + $ad; // cpu.user + cpu.sys
$total = $ab + $ac + $ad + $ae; // cpu.total
 
// we need a second value, wait 1 second befor getting (< 1 second no good value will occour)
sleep(1);
$buf = rfts( '/proc/stat', 1 );
sscanf($buf, "%*s %Ld %Ld %Ld %Ld", $ab, $ac, $ad, $ae);
$load2 = $ab + $ac + $ad;
$total2 = $ab + $ac + $ad + $ae;
$results['cpupercent'] = (100*($load2 - $load)) / ($total2 - $total);
}
}
return $results;
}
 
function cpu_info () {
$bufr = rfts( '/proc/cpuinfo' );
$results = array("cpus" => 0);
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
$results = array('cpus' => 0, 'bogomips' => 0);
$ar_buf = array();
foreach( $bufe as $buf ) {
$arrBuff = preg_split('/\s+:\s+/', trim($buf));
if( count( $arrBuff ) == 2 ) {
$key = $arrBuff[0];
$value = $arrBuff[1];
// All of the tags here are highly architecture dependant.
// the only way I could reconstruct them for machines I don't
// have is to browse the kernel source. So if your arch isn't
// supported, tell me you want it written in.
switch ($key) {
case 'model name':
$results['model'] = $value;
break;
case 'cpu MHz':
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cycle frequency [Hz]': // For Alpha arch - 2.2.x
$results['cpuspeed'] = sprintf('%.2f', $value / 1000000);
break;
case 'clock': // For PPC arch (damn borked POS)
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cpu': // For PPC arch (damn borked POS)
$results['model'] = $value;
break;
case 'L2 cache': // More for PPC
$results['cache'] = $value;
break;
case 'revision': // For PPC arch (damn borked POS)
$results['model'] .= ' ( rev: ' . $value . ')';
break;
case 'cpu model': // For Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'cache size':
$results['cache'] = $value;
break;
case 'bogomips':
$results['bogomips'] += $value;
break;
case 'BogoMIPS': // For alpha arch - 2.2.x
$results['bogomips'] += $value;
break;
case 'BogoMips': // For sparc arch
$results['bogomips'] += $value;
break;
case 'cpus detected': // For Alpha arch - 2.2.x
$results['cpus'] += $value;
break;
case 'system type': // Alpha arch - 2.2.x
$results['model'] .= ', ' . $value . ' ';
break;
case 'platform string': // Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'processor':
$results['cpus'] += 1;
break;
case 'Cpu0ClkTck': // Linux sparc64
$results['cpuspeed'] = sprintf('%.2f', hexdec($value) / 1000000);
break;
case 'Cpu0Bogo': // Linux sparc64 & sparc32
$results['bogomips'] = $value;
break;
case 'ncpus probed': // Linux sparc64 & sparc32
$results['cpus'] = $value;
break;
}
}
}
// sparc64 specific code follows
// This adds the ability to display the cache that a CPU has
// Originally made by Sven Blumenstein <bazik@gentoo.org> in 2004
// Modified by Tom Weustink <freshy98@gmx.net> in 2004
$sparclist = array('SUNW,UltraSPARC@0,0', 'SUNW,UltraSPARC-II@0,0', 'SUNW,UltraSPARC@1c,0', 'SUNW,UltraSPARC-IIi@1c,0', 'SUNW,UltraSPARC-II@1c,0', 'SUNW,UltraSPARC-IIe@0,0');
foreach ($sparclist as $name) {
$buf = rfts( '/proc/openprom/' . $name . '/ecache-size',1 , 32, false );
if( $buf != "ERROR" ) {
$results['cache'] = base_convert($buf, 16, 10)/1024 . ' KB';
}
}
// sparc64 specific code ends
// XScale detection code
if ( $results['cpus'] == 0 ) {
foreach( $bufe as $buf ) {
$fields = preg_split('/\s*:\s*/', trim($buf), 2);
if (sizeof($fields) == 2) {
list($key, $value) = $fields;
switch($key) {
case 'Processor':
$results['cpus'] += 1;
$results['model'] = $value;
break;
case 'BogoMIPS': //BogoMIPS are not BogoMIPS on this CPU, it's the speed, no BogoMIPS available
$results['cpuspeed'] = $value;
break;
case 'I size':
$results['cache'] = $value;
break;
case 'D size':
$results['cache'] += $value;
break;
}
}
}
$results['cache'] = $results['cache'] / 1024 . " KB";
}
}
$keys = array_keys($results);
$keys2be = array('model', 'cpuspeed', 'cache', 'bogomips', 'cpus');
while ($ar_buf = each($keys2be)) {
if (! in_array($ar_buf[1], $keys)) {
$results[$ar_buf[1]] = 'N.A.';
}
}
$buf = rfts( '/proc/acpi/thermal_zone/THRM/temperature', 1, 4096, false );
if ( $buf != "ERROR" ) {
$results['temp'] = substr( $buf, 25, 2 );
}
return $results;
}
 
function pci () {
$arrResults = array();
$booDevice = false;
if( ! $arrResults = $this->parser->parse_lspci() ) {
$strBuf = rfts( '/proc/pci', 0, 4096, false );
if( $strBuf != "ERROR" ) {
$arrBuf = explode( "\n", $strBuf );
foreach( $arrBuf as $strLine ) {
if( preg_match( '/Bus/', $strLine ) ) {
$booDevice = true;
continue;
}
if( $booDevice ) {
list( $strKey, $strValue ) = explode( ': ', $strLine, 2 );
if( ! preg_match( '/bridge/i', $strKey ) && ! preg_match( '/USB/i ', $strKey ) ) {
$arrResults[] = preg_replace( '/\([^\)]+\)\.$/', '', trim( $strValue ) );
}
$booDevice = false;
}
}
asort( $arrResults );
}
}
return $arrResults;
}
 
function ide () {
$results = array();
$bufd = gdc( '/proc/ide', false );
 
foreach( $bufd as $file ) {
if (preg_match('/^hd/', $file)) {
$results[$file] = array();
$buf = rfts("/proc/ide/" . $file . "/media", 1 );
if ( $buf != "ERROR" ) {
$results[$file]['media'] = trim($buf);
if ($results[$file]['media'] == 'disk') {
$results[$file]['media'] = 'Hard Disk';
$buf = rfts( "/proc/ide/" . $file . "/capacity", 1, 4096, false);
if( $buf == "ERROR" ) {
$buf = rfts( "/sys/block/" . $file . "/size", 1, 4096, false);
}
if ( $buf != "ERROR" ) {
$results[$file]['capacity'] = trim( $buf );
}
} elseif ($results[$file]['media'] == 'cdrom') {
$results[$file]['media'] = 'CD-ROM';
unset($results[$file]['capacity']);
}
} else {
unset($results[$file]);
}
 
$buf = rfts( "/proc/ide/" . $file . "/model", 1 );
if ( $buf != "ERROR" ) {
$results[$file]['model'] = trim( $buf );
if (preg_match('/WDC/', $results[$file]['model'])) {
$results[$file]['manufacture'] = 'Western Digital';
} elseif (preg_match('/IBM/', $results[$file]['model'])) {
$results[$file]['manufacture'] = 'IBM';
} elseif (preg_match('/FUJITSU/', $results[$file]['model'])) {
$results[$file]['manufacture'] = 'Fujitsu';
} else {
$results[$file]['manufacture'] = 'Unknown';
}
}
}
}
 
asort($results);
return $results;
}
 
function scsi () {
$results = array();
$dev_vendor = '';
$dev_model = '';
$dev_rev = '';
$dev_type = '';
$s = 1;
$get_type = 0;
 
$bufr = execute_program('lsscsi', '-c', false);
if( $bufr == "ERROR" ) {
$bufr = rfts( '/proc/scsi/scsi', 0, 4096, false);
}
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/Vendor/', $buf)) {
preg_match('/Vendor: (.*) Model: (.*) Rev: (.*)/i', $buf, $dev);
list($key, $value) = explode(': ', $buf, 2);
$dev_str = $value;
$get_type = true;
continue;
}
 
if ($get_type) {
preg_match('/Type:\s+(\S+)/i', $buf, $dev_type);
$results[$s]['model'] = "$dev[1] $dev[2] ($dev_type[1])";
$results[$s]['media'] = "Hard Disk";
$s++;
$get_type = false;
}
}
}
asort($results);
return $results;
}
 
function usb () {
$results = array();
$devnum = -1;
 
$bufr = execute_program('lsusb', '', false);
if( $bufr == "ERROR" ) {
$bufr = rfts( '/proc/bus/usb/devices', 0, 4096, false );
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/^T/', $buf)) {
$devnum += 1;
$results[$devnum] = "";
} elseif (preg_match('/^S:/', $buf)) {
list($key, $value) = explode(': ', $buf, 2);
list($key, $value2) = explode('=', $value, 2);
if (trim($key) != "SerialNumber") {
$results[$devnum] .= " " . trim($value2);
$devstring = 0;
}
}
}
}
} else {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
$device = preg_split("/ /", $buf, 7);
if( isset( $device[6] ) && trim( $device[6] ) != "" ) {
$results[$devnum++] = trim( $device[6] );
}
}
}
return $results;
}
 
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
 
function network () {
$results = array();
 
$bufr = rfts( '/proc/net/dev' );
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/:/', $buf)) {
list($dev_name, $stats_list) = preg_split('/:/', $buf, 2);
$stats = preg_split('/\s+/', trim($stats_list));
$results[$dev_name] = array();
 
$results[$dev_name]['rx_bytes'] = $stats[0];
$results[$dev_name]['rx_packets'] = $stats[1];
$results[$dev_name]['rx_errs'] = $stats[2];
$results[$dev_name]['rx_drop'] = $stats[3];
 
$results[$dev_name]['tx_bytes'] = $stats[8];
$results[$dev_name]['tx_packets'] = $stats[9];
$results[$dev_name]['tx_errs'] = $stats[10];
$results[$dev_name]['tx_drop'] = $stats[11];
 
$results[$dev_name]['errs'] = $stats[2] + $stats[10];
$results[$dev_name]['drop'] = $stats[3] + $stats[11];
}
}
}
return $results;
}
 
function memory () {
$results['ram'] = array('total' => 0, 'free' => 0, 'used' => 0, 'percent' => 0);
$results['swap'] = array('total' => 0, 'free' => 0, 'used' => 0, 'percent' => 0);
$results['devswap'] = array();
 
$bufr = rfts( '/proc/meminfo' );
if ( $bufr != "ERROR" ) {
$bufe = explode("\n", $bufr);
foreach( $bufe as $buf ) {
if (preg_match('/^MemTotal:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['total'] = $ar_buf[1];
} else if (preg_match('/^MemFree:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['free'] = $ar_buf[1];
} else if (preg_match('/^Cached:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['cached'] = $ar_buf[1];
} else if (preg_match('/^Buffers:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$results['ram']['buffers'] = $ar_buf[1];
}
}
 
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['percent'] = round(($results['ram']['used'] * 100) / $results['ram']['total']);
// values for splitting memory usage
if (isset($results['ram']['cached']) && isset($results['ram']['buffers'])) {
$results['ram']['app'] = $results['ram']['used'] - $results['ram']['cached'] - $results['ram']['buffers'];
$results['ram']['app_percent'] = round(($results['ram']['app'] * 100) / $results['ram']['total']);
$results['ram']['buffers_percent'] = round(($results['ram']['buffers'] * 100) / $results['ram']['total']);
$results['ram']['cached_percent'] = round(($results['ram']['cached'] * 100) / $results['ram']['total']);
}
 
$bufr = rfts( '/proc/swaps' );
if ( $bufr != "ERROR" ) {
$swaps = explode("\n", $bufr);
for ($i = 1; $i < (sizeof($swaps)); $i++) {
if( trim( $swaps[$i] ) != "" ) {
$ar_buf = preg_split('/\s+/', $swaps[$i], 6);
$results['devswap'][$i - 1] = array();
$results['devswap'][$i - 1]['dev'] = $ar_buf[0];
$results['devswap'][$i - 1]['total'] = $ar_buf[2];
$results['devswap'][$i - 1]['used'] = $ar_buf[3];
$results['devswap'][$i - 1]['free'] = ($results['devswap'][$i - 1]['total'] - $results['devswap'][$i - 1]['used']);
$results['devswap'][$i - 1]['percent'] = round(($ar_buf[3] * 100) / $ar_buf[2]);
$results['swap']['total'] += $ar_buf[2];
$results['swap']['used'] += $ar_buf[3];
$results['swap']['free'] = $results['swap']['total'] - $results['swap']['used'];
$results['swap']['percent'] = round(($results['swap']['used'] * 100) / $results['swap']['total']);
}
}
}
}
return $results;
}
function filesystems () {
return $this->parser->parse_filesystems();
}
 
function distro () {
return $this->distro;
}
 
function distroicon () {
return $this->icon;
}
 
}
 
?>
/gestion/phpsysinfo/includes/os/class.WINNT.inc.php
0,0 → 1,344
<?php
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// WINNT implementation written by Carl C. Longnecker, longneck@iname.com
// $Id: class.WINNT.inc.php,v 1.25 2007/03/07 20:21:27 bigmichi1 Exp $
 
class sysinfo {
// $wmi holds the COM object that we pull all the WMI data from
var $wmi;
 
// $wmidevices holds all devices, which are in the system
var $wmidevices;
 
// this constructor initialis the $wmi object
function sysinfo ()
{
// don't set this params for local connection, it will not work
$strHostname = '';
$strUser = '';
$strPassword = '';
 
// initialize the wmi object
$objLocator = new COM("WbemScripting.SWbemLocator");
if($strHostname == "") {
$this->wmi = $objLocator->ConnectServer();
} else{
$this->wmi = $objLocator->ConnectServer($strHostname, "rootcimv2", "$strHostname\$strUser", $strPassword);
}
}
 
// private function for getting a list of values in the specified context, optionally filter this list, based on the list from second parameter
function _GetWMI($strClass, $strValue = array() ) {
$objWEBM = $this->wmi->Get($strClass);
 
if( PHP_VERSION < 5 ) {
$objProp = $objWEBM->Properties_;
$arrProp = $objProp->Next($objProp->Count);
$objWEBMCol = $objWEBM->Instances_();
$arrWEBMCol = $objWEBMCol->Next($objWEBMCol->Count);
} else {
$arrProp = $objWEBM->Properties_;
$arrWEBMCol = $objWEBM->Instances_();
}
 
foreach($arrWEBMCol as $objItem)
{
@reset($arrProp);
$arrInstance = array();
foreach($arrProp as $propItem)
{
eval("\$value = \$objItem->" .$propItem->Name .";");
if( empty( $strValue ) ) {
$arrInstance[$propItem->Name] = trim($value);
} else {
if( in_array( $propItem->Name, $strValue ) ) {
$arrInstance[$propItem->Name] = trim($value);
}
}
}
$arrData[] = $arrInstance;
}
return $arrData;
}
 
// private function for getting different device types from the system
function _devicelist ( $strType ) {
if( empty( $this->wmidevices ) ) {
$this->wmidevices = $this->_GetWMI( "Win32_PnPEntity", array( "Name", "PNPDeviceID" ) );
}
 
$list = array();
foreach ( $this->wmidevices as $device ) {
if ( substr( $device["PNPDeviceID"], 0, strpos( $device["PNPDeviceID"], "\\" ) + 1 ) == ( $strType . "\\" ) ) {
$list[] = $device["Name"];
}
}
 
return $list;
}
// get our apache SERVER_NAME or vhost
function vhostname () {
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
 
// get the IP address of our vhost name
function vip_addr () {
return gethostbyname($this->vhostname());
}
 
// get our canonical hostname
function chostname ()
{
$buffer = $this->_GetWMI( "Win32_ComputerSystem", array( "Name" ) );
$result = $buffer[0]["Name"];
return gethostbyaddr(gethostbyname($result));
}
 
// get the IP address of our canonical hostname
function ip_addr ()
{
$buffer = $this->_GetWMI( "Win32_ComputerSystem", array( "Name" ) );
$result = $buffer[0]["Name"];
return gethostbyname($result);
}
 
function kernel ()
{
$buffer = $this->_GetWMI( "Win32_OperatingSystem", array( "Version", "ServicePackMajorVersion" ) );
$result = $buffer[0]["Version"];
if( $buffer[0]["ServicePackMajorVersion"] > 0 ) {
$result .= " SP" . $buffer[0]["ServicePackMajorVersion"];
}
return $result;
}
 
// get the time the system is running
function uptime ()
{
$result = 0;
$buffer = $this->_GetWMI( "Win32_OperatingSystem", array( "LastBootUpTime", "LocalDateTime" ) );
 
$byear = intval(substr($buffer[0]["LastBootUpTime"], 0, 4));
$bmonth = intval(substr($buffer[0]["LastBootUpTime"], 4, 2));
$bday = intval(substr($buffer[0]["LastBootUpTime"], 6, 2));
$bhour = intval(substr($buffer[0]["LastBootUpTime"], 8, 2));
$bminute = intval(substr($buffer[0]["LastBootUpTime"], 10, 2));
$bseconds = intval(substr($buffer[0]["LastBootUpTime"], 12, 2));
 
$lyear = intval(substr($buffer[0]["LocalDateTime"], 0, 4));
$lmonth = intval(substr($buffer[0]["LocalDateTime"], 4, 2));
$lday = intval(substr($buffer[0]["LocalDateTime"], 6, 2));
$lhour = intval(substr($buffer[0]["LocalDateTime"], 8, 2));
$lminute = intval(substr($buffer[0]["LocalDateTime"], 10, 2));
$lseconds = intval(substr($buffer[0]["LocalDateTime"], 12, 2));
 
$boottime = mktime($bhour, $bminute, $bseconds, $bmonth, $bday, $byear);
$localtime = mktime($lhour, $lminute, $lseconds, $lmonth, $lday, $lyear);
 
$result = $localtime - $boottime;
 
return $result;
}
 
// count the users, which are logged in
function users ()
{
if( stristr( $this->kernel(), "2000 P" ) ) return "N.A.";
$buffer = $this->_GetWMI( "Win32_PerfRawData_TermService_TerminalServices", array( "TotalSessions" ) );
return $buffer[0]["TotalSessions"];
}
 
// get the load of the processors
function loadavg ($bar = false)
{
$buffer = $this->_GetWMI( "Win32_Processor", array( "LoadPercentage" ) );
$cpuload = array();
for( $i = 0; $i < count( $buffer ); $i++ ) {
$cpuload['avg'][] = $buffer[$i]["LoadPercentage"];
}
if ($bar) {
$cpuload['cpupercent'] = array_sum( $cpuload['avg'] ) / count( $buffer );
}
return $cpuload;
}
 
// get some informations about the cpu's
function cpu_info ()
{
$buffer = $this->_GetWMI( "Win32_Processor", array( "Name", "L2CacheSize", "CurrentClockSpeed", "ExtClock" ) );
$results["cpus"] = 0;
foreach ($buffer as $cpu) {
$results["cpus"]++;
$results["model"] = $cpu["Name"];
$results["cache"] = $cpu["L2CacheSize"];
$results["cpuspeed"] = $cpu["CurrentClockSpeed"];
$results["busspeed"] = $cpu["ExtClock"];
}
return $results;
}
 
// get the pci devices from the system
function pci ()
{
$pci = $this->_devicelist( "PCI" );
return $pci;
}
 
// get the ide devices from the system
function ide ()
{
$buffer = $this->_devicelist( "IDE" );
$ide = array();
foreach ( $buffer as $device ) {
$ide[]['model'] = $device;
}
return $ide;
}
 
// get the scsi devices from the system
function scsi ()
{
$scsi = $this->_devicelist( "SCSI" );
return $scsi;
}
 
// get the usb devices from the system
function usb ()
{
$usb = $this->_devicelist( "USB" );
return $usb;
}
 
// get the sbus devices from the system - currently not called
function sbus ()
{
$sbus = $this->_devicelist( "SBUS" );
return $sbus;
}
 
// get the netowrk devices and rx/tx bytes
function network () {
$results = array();
$buffer = $this->_GetWMI( "Win32_PerfRawData_Tcpip_NetworkInterface" );
foreach( $buffer as $device ) {
$dev_name = $device["Name"];
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_perfrawdata_tcpip_networkinterface.asp
// there is a possible bug in the wmi interfaceabout uint32 and uint64: http://www.ureader.com/message/1244948.aspx, so that
// magative numbers would occour, try to calculate the nagative value from total - positive number
if( $device["BytesSentPersec"] < 0) {
$results[$dev_name]['tx_bytes'] = $device["BytesTotalPersec"] - $device["BytesReceivedPersec"];
} else {
$results[$dev_name]['tx_bytes'] = $device["BytesSentPersec"];
}
if( $device["BytesReceivedPersec"] < 0 ) {
$results[$dev_name]['rx_bytes'] = $device["BytesTotalPersec"] - $device["BytesSentPersec"];
} else {
$results[$dev_name]['rx_bytes'] = $device["BytesReceivedPersec"];
}
$results[$dev_name]['rx_packets'] = $device["PacketsReceivedPersec"];
$results[$dev_name]['tx_packets'] = $device["PacketsSentPersec"];
$results[$dev_name]['rx_errs'] = $device["PacketsReceivedErrors"];
$results[$dev_name]['rx_drop'] = $device["PacketsReceivedDiscarded"];
$results[$dev_name]['errs'] = $device["PacketsReceivedErrors"];
$results[$dev_name]['drop'] = $device["PacketsReceivedDiscarded"];
}
return $results;
}
 
function memory ()
{
$buffer = $this->_GetWMI( "Win32_LogicalMemoryConfiguration", array( "TotalPhysicalMemory" ) );
$results['ram']['total'] = $buffer[0]["TotalPhysicalMemory"];
 
$buffer = $this->_GetWMI( "Win32_PerfRawData_PerfOS_Memory", array( "AvailableKBytes" ) );
$results['ram']['free'] = $buffer[0]["AvailableKBytes"];
 
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['percent'] = ceil( ( $results['ram']['used'] * 100 ) / $results['ram']['total'] );
$results['swap']['total'] = 0;
$results['swap']['used'] = 0;
$results['swap']['free'] = 0;
 
$buffer = $this->_GetWMI( "Win32_PageFileUsage" ); // no need to filter, using nearly everything from output
$k = 0;
foreach ($buffer as $swapdevice) {
$results['devswap'][$k]['dev'] = $swapdevice["Name"];
$results['devswap'][$k]['total'] = $swapdevice["AllocatedBaseSize"] * 1024;
$results['devswap'][$k]['used'] = $swapdevice["CurrentUsage"] * 1024;
$results['devswap'][$k]['free'] = ( $swapdevice["AllocatedBaseSize"] - $swapdevice["CurrentUsage"] ) * 1024;
$results['devswap'][$k]['percent'] = ceil( $swapdevice["CurrentUsage"] / $swapdevice["AllocatedBaseSize"] );
 
$results['swap']['total'] += $results['devswap'][$k]['total'];
$results['swap']['used'] += $results['devswap'][$k]['used'];
$results['swap']['free'] += $results['devswap'][$k]['free'];
$k += 1;
}
$results['swap']['percent'] = ceil( $results['swap']['used'] / $results['swap']['total'] * 100 );
return $results;
}
 
// get the filesystem informations
function filesystems ()
{
$typearray = array("Unknown", "No Root Directory", "Removeable Disk",
"Local Disk", "Network Drive", "Compact Disc", "RAM Disk");
$floppyarray = array("Unknown", "5 1/4 in.", "3 1/2 in.", "3 1/2 in.",
"3 1/2 in.", "3 1/2 in.", "5 1/4 in.", "5 1/4 in.", "5 1/4 in.",
"5 1/4 in.", "5 1/4 in.", "Other", "HD", "3 1/2 in.", "3 1/2 in.",
"5 1/4 in.", "5 1/4 in.", "3 1/2 in.", "3 1/2 in.", "5 1/4 in.",
"3 1/2 in.", "3 1/2 in.", "8 in.");
 
$buffer = $this->_GetWMI( "Win32_LogicalDisk" , array( "Name", "Size", "FreeSpace", "FileSystem", "DriveType", "MediaType" ) );
 
$k = 0;
foreach ( $buffer as $filesystem ) {
if ( hide_mount( $filesystem["Name"] ) ) {
continue;
}
$results[$k]['mount'] = $filesystem["Name"];
$results[$k]['size'] = $filesystem["Size"] / 1024;
$results[$k]['used'] = ( $filesystem["Size"] - $filesystem["FreeSpace"] ) / 1024;
$results[$k]['free'] = $filesystem["FreeSpace"] / 1024;
@$results[$k]['percent'] = ceil( $results[$k]['used'] / $results[$k]['size'] * 100 ); // silence this line, nobody is having a floppy in the drive everytime
$results[$k]['fstype'] = $filesystem["FileSystem"];
$results[$k]['disk'] = $typearray[$filesystem["DriveType"]];
if ( $filesystem["MediaType"] != "" && $filesystem["DriveType"] == 2 ) $results[$k]['disk'] .= " (" . $floppyarray[$filesystem["MediaType"]] . ")";
$k += 1;
}
return $results;
}
 
function distro ()
{
$buffer = $this->_GetWMI( "Win32_OperatingSystem", array( "Caption" ) );
return $buffer[0]["Caption"];
}
 
function distroicon ()
{
return 'xp.gif';
}
}
 
?>
/gestion/phpsysinfo/includes/os/class.NetBSD.inc.php
0,0 → 1,111
<?php
 
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
// $Id: class.NetBSD.inc.php,v 1.18 2006/04/18 16:57:32 bigmichi1 Exp $
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
 
require_once(APP_ROOT . '/includes/os/class.BSD.common.inc.php');
 
class sysinfo extends bsd_common {
var $cpu_regexp;
var $scsi_regexp;
// Our contstructor
// this function is run on the initialization of this class
function sysinfo () {
$this->bsd_common();
$this->cpu_regexp = "^cpu(.*)\, (.*) MHz";
$this->scsi_regexp1 = "^(.*) at scsibus.*: <(.*)> .*";
$this->scsi_regexp2 = "^(da[0-9]): (.*)MB ";
$this->cpu_regexp2 = "/user = (.*), nice = (.*), sys = (.*), intr = (.*), idle = (.*)/";
$this->pci_regexp1 = '/(.*) at pci[0-9] dev [0-9]* function [0-9]*: (.*)$/';
$this->pci_regexp2 = '/"(.*)" (.*).* at [.0-9]+ irq/';
}
 
function get_sys_ticks () {
$a = $this->grab_key('kern.boottime');
$sys_ticks = time() - $a;
return $sys_ticks;
}
 
function network () {
$netstat_b = execute_program('netstat', '-nbdi | cut -c1-25,44- | grep "^[a-z]*[0-9][ \t].*Link"');
$netstat_n = execute_program('netstat', '-ndi | cut -c1-25,44- | grep "^[a-z]*[0-9][ \t].*Link"');
$lines_b = explode("\n", $netstat_b);
$lines_n = explode("\n", $netstat_n);
$results = array();
for ($i = 0, $max = sizeof($lines_b); $i < $max; $i++) {
$ar_buf_b = preg_split("/\s+/", $lines_b[$i]);
$ar_buf_n = preg_split("/\s+/", $lines_n[$i]);
if (!empty($ar_buf_b[0]) && !empty($ar_buf_n[3])) {
$results[$ar_buf_b[0]] = array();
 
$results[$ar_buf_b[0]]['rx_bytes'] = $ar_buf_b[3];
$results[$ar_buf_b[0]]['rx_packets'] = $ar_buf_n[3];
$results[$ar_buf_b[0]]['rx_errs'] = $ar_buf_n[4];
$results[$ar_buf_b[0]]['rx_drop'] = $ar_buf_n[8];
 
$results[$ar_buf_b[0]]['tx_bytes'] = $ar_buf_b[4];
$results[$ar_buf_b[0]]['tx_packets'] = $ar_buf_n[5];
$results[$ar_buf_b[0]]['tx_errs'] = $ar_buf_n[6];
$results[$ar_buf_b[0]]['tx_drop'] = $ar_buf_n[8];
 
$results[$ar_buf_b[0]]['errs'] = $ar_buf_n[4] + $ar_buf_n[6];
$results[$ar_buf_b[0]]['drop'] = $ar_buf_n[8];
}
}
return $results;
}
 
// get the ide device information out of dmesg
function ide () {
$results = array();
 
$s = 0;
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match('/^(.*) at (pciide|wdc|atabus|atapibus)[0-9] (.*): <(.*)>/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[4];
$results[$s]['media'] = 'Hard Disk';
// now loop again and find the capacity
for ($j = 0, $max1 = count($this->read_dmesg()); $j < $max1; $j++) {
$buf_n = $this->dmesg[$j];
if (preg_match("/^($s): (.*), (.*), (.*)MB, .*$/", $buf_n, $ar_buf_n)) {
$results[$s]['capacity'] = $ar_buf_n[4] * 2048 * 1.049;
} elseif (preg_match("/^($s): (.*) MB, (.*), (.*), .*$/", $buf_n, $ar_buf_n)) {
$results[$s]['capacity'] = $ar_buf_n[2] * 2048;
}
}
}
}
asort($results);
return $results;
}
 
function distroicon () {
$result = 'NetBSD.png';
return($result);
}
}
 
?>
/gestion/phpsysinfo/includes/os/class.BSD.common.inc.php
0,0 → 1,300
<?php
 
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
// $Id: class.BSD.common.inc.php,v 1.52 2006/06/13 18:31:52 bigmichi1 Exp $
 
if (!defined('IN_PHPSYSINFO')) {
die("No Hacking");
}
 
require_once(APP_ROOT . '/includes/os/class.parseProgs.inc.php');
 
class bsd_common {
var $dmesg;
var $parser;
// Our constructor
// this function is run on the initialization of this class
function bsd_common () {
$this->parser = new Parser();
$this->parser->df_param = "";
}
// read /var/run/dmesg.boot, but only if we haven't already.
function read_dmesg () {
if (! $this->dmesg) {
if( PHP_OS == "Darwin" ) {
$this->dmesg = array();
} else {
$parts = explode("rebooting", rfts( '/var/run/dmesg.boot' ) );
$this->dmesg = explode("\n", $parts[count($parts) - 1]);
}
}
return $this->dmesg;
}
// grabs a key from sysctl(8)
function grab_key ($key) {
return execute_program('sysctl', "-n $key");
}
// get our apache SERVER_NAME or vhost
function hostname () {
if (!($result = getenv('SERVER_NAME'))) {
$result = "N.A.";
}
return $result;
}
// get our canonical hostname
function chostname () {
return execute_program('hostname');
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
 
function kernel () {
$s = $this->grab_key('kern.version');
$a = explode(':', $s);
return $a[0] . $a[1] . ':' . $a[2];
}
 
function uptime () {
$result = $this->get_sys_ticks();
 
return $result;
}
 
function users () {
return execute_program('who', '| wc -l');
}
 
function loadavg ($bar = false) {
$s = $this->grab_key('vm.loadavg');
$s = ereg_replace('{ ', '', $s);
$s = ereg_replace(' }', '', $s);
$results['avg'] = explode(' ', $s);
 
if ($bar) {
if ($fd = $this->grab_key('kern.cp_time')) {
// Find out the CPU load
// user + sys = load
// total = total
preg_match($this->cpu_regexp2, $fd, $res );
$load = $res[2] + $res[3] + $res[4]; // cpu.user + cpu.sys
$total = $res[2] + $res[3] + $res[4] + $res[5]; // cpu.total
 
// we need a second value, wait 1 second befor getting (< 1 second no good value will occour)
sleep(1);
$fd = $this->grab_key('kern.cp_time');
preg_match($this->cpu_regexp2, $fd, $res );
$load2 = $res[2] + $res[3] + $res[4];
$total2 = $res[2] + $res[3] + $res[4] + $res[5];
$results['cpupercent'] = (100*($load2 - $load)) / ($total2 - $total);
}
}
return $results;
}
 
function cpu_info () {
$results = array();
$ar_buf = array();
 
$results['model'] = $this->grab_key('hw.model');
$results['cpus'] = $this->grab_key('hw.ncpu');
 
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
if (preg_match("/$this->cpu_regexp/", $buf, $ar_buf)) {
$results['cpuspeed'] = round($ar_buf[2]);
break;
}
}
return $results;
}
// get the scsi device information out of dmesg
function scsi () {
$results = array();
$ar_buf = array();
 
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
 
if (preg_match("/$this->scsi_regexp1/", $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[2];
$results[$s]['media'] = 'Hard Disk';
} elseif (preg_match("/$this->scsi_regexp2/", $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049;
}
}
// return array_values(array_unique($results));
// 1. more useful to have device names
// 2. php 4.1.1 array_unique() deletes non-unique values.
asort($results);
return $results;
}
 
// get the pci device information out of dmesg
function pci () {
$results = array();
 
if( !( is_array($results = $this->parser->parse_lspci()) || is_array($results = $this->parser->parse_pciconf() ))) {
for ($i = 0, $s = 0; $i < count($this->read_dmesg()); $i++) {
$buf = $this->dmesg[$i];
if(!isset($this->pci_regexp1) && !isset($this->pci_regexp2)) {
$this->pci_regexp1 = '/(.*): <(.*)>(.*) pci[0-9]$/';
$this->pci_regexp2 = '/(.*): <(.*)>.* at [.0-9]+ irq/';
}
if (preg_match($this->pci_regexp1, $buf, $ar_buf)) {
$results[$s++] = $ar_buf[1] . ": " . $ar_buf[2];
} elseif (preg_match($this->pci_regexp2, $buf, $ar_buf)) {
$results[$s++] = $ar_buf[1] . ": " . $ar_buf[2];
}
}
asort($results);
}
return $results;
}
 
// get the ide device information out of dmesg
function ide () {
$results = array();
 
$s = 0;
for ($i = 0, $max = count($this->read_dmesg()); $i < $max; $i++) {
$buf = $this->dmesg[$i];
 
if (preg_match('/^(ad[0-9]+): (.*)MB <(.*)> (.*) (.*)/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[3];
$results[$s]['media'] = 'Hard Disk';
$results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049;
} elseif (preg_match('/^(acd[0-9]+): (.*) <(.*)> (.*)/', $buf, $ar_buf)) {
$s = $ar_buf[1];
$results[$s]['model'] = $ar_buf[3];
$results[$s]['media'] = 'CD-ROM';
}
}
// return array_values(array_unique($results));
// 1. more useful to have device names
// 2. php 4.1.1 array_unique() deletes non-unique values.
asort($results);
return $results;
}
 
// place holder function until we add acual usb detection
function usb () {
return array();
}
 
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
 
function memory () {
$s = $this->grab_key('hw.physmem');
 
if (PHP_OS == 'FreeBSD' || PHP_OS == 'OpenBSD') {
// vmstat on fbsd 4.4 or greater outputs kbytes not hw.pagesize
// I should probably add some version checking here, but for now
// we only support fbsd 4.4
$pagesize = 1024;
} else {
$pagesize = $this->grab_key('hw.pagesize');
}
 
$results['ram'] = array();
 
$pstat = execute_program('vmstat');
$lines = explode("\n", $pstat);
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 19);
if ($i == 2) {
if(PHP_OS == 'NetBSD') {
$results['ram']['free'] = $ar_buf[5];
} else {
$results['ram']['free'] = $ar_buf[5] * $pagesize / 1024;
}
}
}
 
$results['ram']['total'] = $s / 1024;
$results['ram']['shared'] = 0;
$results['ram']['buffers'] = 0;
$results['ram']['used'] = $results['ram']['total'] - $results['ram']['free'];
$results['ram']['cached'] = 0;
 
$results['ram']['percent'] = round(($results['ram']['used'] * 100) / $results['ram']['total']);
 
if (PHP_OS == 'OpenBSD' || PHP_OS == 'NetBSD') {
$pstat = execute_program('swapctl', '-l -k');
} else {
$pstat = execute_program('swapinfo', '-k');
}
 
$lines = explode("\n", $pstat);
 
$results['swap']['total'] = 0;
$results['swap']['used'] = 0;
$results['swap']['free'] = 0;
 
for ($i = 1, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i], 6);
 
if ($ar_buf[0] != 'Total') {
$results['swap']['total'] = $results['swap']['total'] + $ar_buf[1];
$results['swap']['used'] = $results['swap']['used'] + $ar_buf[2];
$results['swap']['free'] = $results['swap']['free'] + $ar_buf[3];
 
$results['devswap'][$i - 1] = array();
$results['devswap'][$i - 1]['dev'] = $ar_buf[0];
$results['devswap'][$i - 1]['total'] = $ar_buf[1];
$results['devswap'][$i - 1]['used'] = $ar_buf[2];
$results['devswap'][$i - 1]['free'] = ($results['devswap'][$i - 1]['total'] - $results['devswap'][$i - 1]['used']);
$results['devswap'][$i - 1]['percent'] = $ar_buf[2] > 0 ? round(($ar_buf[2] * 100) / $ar_buf[1]) : 0;
}
}
$results['swap']['percent'] = round(($results['swap']['used'] * 100) / $results['swap']['total']);
 
if( is_callable( array( 'sysinfo', 'memory_additional' ) ) ) {
$results = $this->memory_additional( $results );
}
return $results;
}
 
function filesystems () {
return $this->parser->parse_filesystems();
}
 
function distro () {
$distro = execute_program('uname', '-s');
$result = $distro;
return($result);
}
}
 
?>
/gestion/phpsysinfo/includes/os/class.HP-UX.inc.php
0,0 → 1,423
<?php
 
// phpSysInfo - A PHP System Information Script
// http://phpsysinfo.sourceforge.net/
 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
// $Id: class.HP-UX.inc.php,v 1.20 2007/02/18 18:59:54 bigmichi1 Exp $
 
class sysinfo {
// get our apache SERVER_NAME or vhost
function vhostname () {
if (! ($result = getenv('SERVER_NAME'))) {
$result = 'N.A.';
}
return $result;
}
// get the IP address of our vhost name
function vip_addr () {
return gethostbyname($this->vhostname());
}
// get our canonical hostname
function chostname () {
return execute_program('hostname');
}
// get the IP address of our canonical hostname
function ip_addr () {
if (!($result = getenv('SERVER_ADDR'))) {
$result = gethostbyname($this->chostname());
}
return $result;
}
 
function kernel () {
return execute_program('uname', '-srvm');
}
 
function uptime () {
$result = 0;
$ar_buf = array();
 
$buf = execute_program('uptime');
if (preg_match("/up (\d+) days,\s*(\d+):(\d+),/", $buf, $ar_buf)) {
$min = $ar_buf[3];
$hours = $ar_buf[2];
$days = $ar_buf[1];
$result = $days * 86400 + $hours * 3600 + $min * 60;
}
 
return $result;
}
 
function users () {
$who = explode('=', execute_program('who', '-q'));
$result = $who[1];
return $result;
}
 
function loadavg ($bar = false) {
$ar_buf = array();
 
$buf = execute_program('uptime');
 
if (preg_match("/average: (.*), (.*), (.*)$/", $buf, $ar_buf)) {
$results['avg'] = array($ar_buf[1], $ar_buf[2], $ar_buf[3]);
} else {
$results['avg'] = array('N.A.', 'N.A.', 'N.A.');
}
return $results;
}
 
function cpu_info () {
$results = array();
$ar_buf = array();
 
$bufr = rfts( '/proc/cpuinfo' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
list($key, $value) = preg_split('/\s+:\s+/', trim($buf), 2);
// All of the tags here are highly architecture dependant.
// the only way I could reconstruct them for machines I don't
// have is to browse the kernel source. So if your arch isn't
// supported, tell me you want it written in.
switch ($key) {
case 'model name':
$results['model'] = $value;
break;
case 'cpu MHz':
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cycle frequency [Hz]': // For Alpha arch - 2.2.x
$results['cpuspeed'] = sprintf('%.2f', $value / 1000000);
break;
case 'clock': // For PPC arch (damn borked POS)
$results['cpuspeed'] = sprintf('%.2f', $value);
break;
case 'cpu': // For PPC arch (damn borked POS)
$results['model'] = $value;
break;
case 'revision': // For PPC arch (damn borked POS)
$results['model'] .= ' ( rev: ' . $value . ')';
break;
case 'cpu model': // For Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'cache size':
$results['cache'] = $value;
break;
case 'bogomips':
$results['bogomips'] += $value;
break;
case 'BogoMIPS': // For alpha arch - 2.2.x
$results['bogomips'] += $value;
break;
case 'BogoMips': // For sparc arch
$results['bogomips'] += $value;
break;
case 'cpus detected': // For Alpha arch - 2.2.x
$results['cpus'] += $value;
break;
case 'system type': // Alpha arch - 2.2.x
$results['model'] .= ', ' . $value . ' ';
break;
case 'platform string': // Alpha arch - 2.2.x
$results['model'] .= ' (' . $value . ')';
break;
case 'processor':
$results['cpus'] += 1;
break;
}
}
fclose($fd);
}
 
$keys = array_keys($results);
$keys2be = array('model', 'cpuspeed', 'cache', 'bogomips', 'cpus');
 
while ($ar_buf = each($keys2be)) {
if (! in_array($ar_buf[1], $keys)) {
$results[$ar_buf[1]] = 'N.A.';
}
}
return $results;
}
 
function pci () {
$results = array();
 
$bufr = rfts( '/proc/pci' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/Bus/', $buf)) {
$device = true;
continue;
}
 
if ($device) {
list($key, $value) = explode(': ', $buf, 2);
 
if (!preg_match('/bridge/i', $key) && !preg_match('/USB/i', $key)) {
$results[] = preg_replace('/\([^\)]+\)\.$/', '', trim($value));
}
$device = false;
}
}
}
asort($results);
return $results;
}
 
function ide () {
$results = array();
 
$bufd = gdc( '/proc/ide' );
 
foreach( $bufd as $file ) {
if (preg_match('/^hd/', $file)) {
$results[$file] = array();
// Check if device is CD-ROM (CD-ROM capacity shows as 1024 GB)
$buf = rfts( "/proc/ide/" . $file . "/media", 1 );
if( $buf != "ERROR" ) {
$results[$file]['media'] = trim( $buf );
if ($results[$file]['media'] == 'disk') {
$results[$file]['media'] = 'Hard Disk';
}
if ($results[$file]['media'] == 'cdrom') {
$results[$file]['media'] = 'CD-ROM';
}
}
 
$buf = rfts( "/proc/ide/" . $file . "/model", 1 );
if( $buf != "ERROR" ) {
$results[$file]['model'] = trim( $buf );
if (preg_match('/WDC/', $results[$file]['model'])) {
$results[$file]['manufacture'] = 'Western Digital';
} elseif (preg_match('/IBM/', $results[$file]['model'])) {
$results[$file]['manufacture'] = 'IBM';
} elseif (preg_match('/FUJITSU/', $results[$file]['model'])) {
$results[$file]['manufacture'] = 'Fujitsu';
} else {
$results[$file]['manufacture'] = 'Unknown';
}
}
 
$buf = rfts( "/proc/ide/" . $file . "/capacity", 1 );
if( $buf != "ERROR" ) {
$results[$file]['capacity'] = trim( $buf );
if ($results[$file]['media'] == 'CD-ROM') {
unset($results[$file]['capacity']);
}
}
}
}
asort($results);
return $results;
}
 
function scsi () {
$results = array();
$dev_vendor = '';
$dev_model = '';
$dev_rev = '';
$dev_type = '';
$s = 1;
 
$bufr = rfts( '/proc/scsi/scsi' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/Vendor/', $buf)) {
preg_match('/Vendor: (.*) Model: (.*) Rev: (.*)/i', $buf, $dev);
list($key, $value) = explode(': ', $buf, 2);
$dev_str = $value;
$get_type = 1;
continue;
}
 
if ($get_type) {
preg_match('/Type:\s+(\S+)/i', $buf, $dev_type);
$results[$s]['model'] = "$dev[1] $dev[2] ($dev_type[1])";
$results[$s]['media'] = "Hard Disk";
$s++;
$get_type = 0;
}
}
}
asort($results);
return $results;
}
 
function usb () {
$results = array();
$devstring = 0;
$devnum = -1;
 
$bufr = rfts( '/proc/bus/usb/devices' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/^T/', $buf)) {
$devnum += 1;
}
if (preg_match('/^S/', $buf)) {
$devstring = 1;
}
 
if ($devstring) {
list($key, $value) = explode(': ', $buf, 2);
list($key, $value2) = explode('=', $value, 2);
$results[$devnum] .= " " . trim($value2);
$devstring = 0;
}
}
}
return $results;
}
 
function sbus () {
$results = array();
$_results[0] = "";
// TODO. Nothing here yet. Move along.
$results = $_results;
return $results;
}
 
function network () {
$netstat = execute_program('netstat', '-ni | tail -n +2');
$lines = explode("\n", $netstat);
$results = array();
for ($i = 0, $max = sizeof($lines); $i < $max; $i++) {
$ar_buf = preg_split("/\s+/", $lines[$i]);
if (!empty($ar_buf[0]) && !empty($ar_buf[3])) {
$results[$ar_buf[0]] = array();
 
$results[$ar_buf[0]]['rx_bytes'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_packets'] = $ar_buf[4];
$results[$ar_buf[0]]['rx_errs'] = $ar_buf[5];
$results[$ar_buf[0]]['rx_drop'] = $ar_buf[8];
 
$results[$ar_buf[0]]['tx_bytes'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_packets'] = $ar_buf[6];
$results[$ar_buf[0]]['tx_errs'] = $ar_buf[7];
$results[$ar_buf[0]]['tx_drop'] = $ar_buf[8];
 
$results[$ar_buf[0]]['errs'] = $ar_buf[5] + $ar_buf[7];
$results[$ar_buf[0]]['drop'] = $ar_buf[8];
}
}
return $results;
}
function memory () {
$results['ram'] = array();
$results['swap'] = array();
$results['devswap'] = array();
 
$bufr = rfts( '/proc/meminfo' );
if( $bufr != "ERROR" ) {
$bufe = explode( "\n", $bufr );
foreach( $bufe as $buf ) {
if (preg_match('/Mem:\s+(.*)$/', $buf, $ar_buf)) {
$ar_buf = preg_split('/\s+/', $ar_buf[1], 6);
 
$results['ram']['total'] = $ar_buf[0] / 1024;
$results['ram']['used'] = $ar_buf[1] / 1024;
$results['ram']['free'] = $ar_buf[2] / 1024;
$results['ram']['shared'] = $ar_buf[3] / 1024;
$results['ram']['buffers'] = $ar_buf[4] / 1024;
$results['ram']['cached'] = $ar_buf[5] / 1024;
// I don't like this since buffers and cache really aren't
// 'used' per say, but I get too many emails about it.
$results['ram']['percent'] = round(($results['ram']['used'] * 100) / $results['ram']['total']);
}
 
if (preg_match('/Swap:\s+(.*)$/', $buf, $ar_buf)) {
$ar_buf = preg_split('/\s+/', $ar_buf[1], 3);
 
$results['swap']['total'] = $ar_buf[0] / 1024;
$results['swap']['used'] = $ar_buf[1] / 1024;
$results['swap']['free'] = $ar_buf[2] / 1024;
$results['swap']['percent'] = round(($ar_buf[1] * 100) / $ar_buf[0]);
// Get info on individual swap files
$swaps = rfts( '/proc/swaps' );
if( $swaps != "ERROR" ) {
$swapdevs = explode("\n", $swaps);
 
for ($i = 1, $max = (sizeof($swapdevs) - 1); $i < $max; $i++) {
$ar_buf = preg_split('/\s+/', $swapdevs[$i], 6);
$results['devswap'][$i - 1] = array();
$results['devswap'][$i - 1]['dev'] = $ar_buf[0];
$results['devswap'][$i - 1]['total'] = $ar_buf[2];
$results['devswap'][$i - 1]['used'] = $ar_buf[3];
$results['devswap'][$i - 1]['free'] = ($results['devswap'][$i - 1]['total'] - $results['devswap'][$i - 1]['used']);
$results['devswap'][$i - 1]['percent'] = round(($ar_buf[3] * 100) / $ar_buf[2]);
}
break;
}
}
}
}
retu