Пример #1
0
        if ( $status[2] == "audiovideoOn") $html.="checked>".msgaide($msg_audiovideo)."<br>\n"; else $html.=">".msgaide($msg_audiovideo)."<br>\n";
    	$html .= "Validation liste noire blogs : <input type='checkbox' value='blogOn' name='blog'";
        if ( $status[7] == "blogOn") $html.="checked>".msgaide($msg_blogs)."<br>\n"; else $html.=">".msgaide($msg_blogs)."<br>\n";
		$html .= "Validation liste noire publicit&eacute; : <input type='checkbox' value='adsOn' name='ads'";
		if ( $status[3] == "adsOn") $html.="checked>".msgaide($msg_pub)."<br>\n"; else $html.=">".msgaide($msg_pub)."<br>\n";
		$html .= "Validation liste noire logiciels malveillants : <input type='checkbox' value='malwareOn' name='malware'";
		if ( $status[4] == "malwareOn") $html.="checked>".msgaide($msg_malware)."<br>\n"; else $html.=">".msgaide($msg_malware)."<br>\n";
		$html .= "Validation liste noire marketingware : <input type='checkbox' value='marketingwareOn' name='marketingware'";
		if ( $status[5] == "marketingwareOn") $html.="checked>".msgaide($msg_marketingware)."<br>\n"; else $html.=">".msgaide($msg_marketingware)."<br>\n";
		$html .= "Validation liste noire phishing : <input type='checkbox' value='phishingOn' name='phishing'";
		if ( $status[6] == "phishingOn") $html.="checked>".msgaide($msg_pishing)."<br>\n"; else $html.=">".msgaide($msg_pishing)."<br>\n";
		$html .= "Validation liste noire redirecteurs : <input type='checkbox' value='redirecteursOn' name='redirecteurs'";
		if ( $status[8] == "redirecteursOn") $html.="checked>".msgaide($msg_redir)."<br>\n"; else $html.=">".msgaide($msg_redir)."<br>\n";
		$html .= "Validation liste noire LCS + listes Nationales sur Proxy LCS : <input type='checkbox' value='bl_full' name='bl'";
		if ( $status[9] == "bl_full") $html.="checked>".msgaide($msg_lcsnat)."<br>\n"; else $html.=">".msgaide($msg_lcsnat)."<br>\n";
		$html .= "R&eacute;initialisation de la liste noire LCS : <input type='checkbox' value='1' name='raz_db'>".msgaide($msg_raz)."<br>\n";
		$html .= "	<input type='hidden' value='1' name='modif_status'>\n";
		$html .= "	<input type='submit' value='Modifier'></td>\n";
                                     $html .='<input name="jeton" type="hidden"  value="'.md5($_SESSION['token'].htmlentities($_SERVER['PHP_SELF'])).'" />';
		$html .= "</form>\n";
		echo $html;
	} elseif ( $action == "Ajouter" ) {
		// AJOUT
		// Verification des entrees saisies
		// ================================
		// Mise en tableau des entrees saisies
		$result = split ("[\r]|[\ \]",$list_add,256);
		// Verifications de l'existance des entrees
		$i=0;$j=0;
		for ($loop=0; $loop < count($result); $loop++) {
			// suppression des espaces
Пример #2
0
}
$msg1="Régénération du certificat SSL pour les services LCS (CAS, apache-ssl, imap-ssl) une période de 365 jours.";

$html = "
	  <head>\n
	  <title>...::: Génération certificat apache ssl  :::...</title>\n
	  <meta http-equiv='content-type' content='text/html;charset=utf-8' />\n
	  <link  href='../Annu/style.css' rel='StyleSheet' type='text/css'>\n
	  </head>\n
	  <body>\n";
$html .= "<div id='container'><h2>Services intranet LCS</h2>\n";
echo $html;
if (is_admin("system_is_admin",$login)=="Y") {
	$html = "<h3>Regénération certificat SSL LCS</h3>\n";
	if ( ! isset($newcert) ) {
		$html .= "<ul>\n<li>\n";  
		$html .= "\t<a href=\"gencertssl.php?newcert=1&jeton=".md5($_SESSION['token'].htmlentities($_SERVER['PHP_SELF']))."\">Lancer la régénération du certificat.</a>".msgaide($msg1)."\n";
		$html .= "</ul>\n</li>\n";
		echo $html;
	} else {
		exec("/usr/bin/sudo /usr/sbin/lcs-certmanager -c");
		$html .= "<ul>\n<li>\n";  
		$html .= "\tLe certificat SSL du serveur LCS a été regénéré pour une période de 365 jours. \n";
		$html .= "</ul>\n</li>\n";
		echo $html;        
	}
}// fin is_admin
else echo "Vous n'avez pas les droits nécessaires pour ordonner cette action...";
echo "</div><!-- Fin container-->\n";
include ("../lcs/includes/pieds_de_page.inc.php");
?>
Пример #3
0
                                                    if ( $tab[$i] == $users[$loop]["uidnumber"] ) {
                                                        $NoRecup = true;
                                                        break;
                                                    }
                                                }
                                                unset($attribut,$tab);
                                                $attribut[0]="uid";
                                                $tab=get_tab_attribut("people", "uid=*", $attribut);
                                                for($i=0;$i<count($tab);$i++){
                                                    if ( $tab[$i] == $users[$loop]["uid"] ) {
                                                        $NoRecup = true;
                                                        break;
                                                    }
                                                }
                                                if ( $NoRecup ) {
						  $html.="<td colspan='3' style='align: center; width: 150px; font-size:0.7em; font-weight:bold; color:#FDAF4E;'>&nbsp;Ce compte n'est pas r&#233;cup&#233;rable.&nbsp;".msgaide($msg6)."</td>\n";
                                                } else {
						  $html.="<td style='align: center; width: 50px;'><input type='radio' name='cat[$loop]' value='".$users[$loop]["uid"]."@@Eleves'></td>\n";
						  $html.="<td style='width: 50px;'><input type='radio' name='cat[$loop]' value='".$users[$loop]["uid"]."@@Profs'></td>\n";
						  $html.="<td style='width: 50px;'><input type='radio' name='cat[$loop]' value='".$users[$loop]["uid"]."@@Administratifs'></td></tr>\n";
                                                }
      					}
					$html.="</tbody>\n</table>\n";
					$html.="<input type='hidden' name='phase' Value='2'>\n";
					$html.="<input type='hidden' name='nbr' Value='$loop'>\n";
                                                                                          $html.='<input name="jeton" type="hidden"  value="'.md5($_SESSION['token'].htmlentities($_SERVER['PHP_SELF'])).'" />';
					$html.="<div style='margin-left: 200px'>\n";
					$html.="<input type='submit' Value='R&#233;cup&#233;rer'>\n";
					$html.=" <input type='reset' Value='R&#233;initialisier'>\n";
					$html.="</form></div>\n";