[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 4 /** 5 6 * Verifie le fonctionnement de CUPS 7 * @Version $Id: server_CUPS.php 4389 2009-09-15 08:28:00Z gnumdk $ 8 9 * @Projet LCS / SambaEdu 10 11 * @auteurs Patrice Andre <h.barca@free.fr> 12 * @auteurs Carip-Academie de Lyon 13 14 * @Licence Distribue selon les termes de la licence GPL 15 16 * @note 17 18 */ 19 20 /** 21 22 * @Repertoire: printers/ 23 * file: server_CUPS.php 24 25 */ 26 27 28 29 // Etat du serveur d'impression CUPS 30 31 include "entete.inc.php"; 32 include "ihm.inc.php"; // pour is_admin() 33 34 require_once ("lang.inc.php"); 35 bindtextdomain('se3-printers',"/var/www/se3/locale"); 36 textdomain ('se3-printers'); 37 38 //aide 39 $_SESSION["pageaide"]="Imprimantes"; 40 41 if (is_admin("se3_is_admin",$login)=="Y") { 42 echo "<H1>".gettext("Serveur CUPS")."</H1>"; 43 echo gettext("Serveur actif : "); 44 $status=exec("LC_ALL=C /usr/bin/lpstat -r"); 45 if ($status=="scheduler is running") 46 echo "<FONT COLOR=\"green\">".gettext("OUI")."</FONT>"; 47 else 48 echo "<FONT COLOR=\"red\">".gettext("NON")."</FONT>"; 49 } 50 51 include "pdp.inc.php"; 52 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |