[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/registre/ -> choisir_protect.php (source)

   1  <?php
   2  
   3     /**
   4     
   5     * Gestion des cles pour clients Windows (affiche les modeles a appliquer aux templates)
   6     * @Version $Id: choisir_protect.php 2949 2008-05-04 18:45:49Z plouf $ 
   7     
   8    
   9     * @Projet LCS / SambaEdu 
  10     
  11     * @auteurs  Sandrine Dangreville
  12     
  13     * @Licence Distribue selon les termes de la licence GPL
  14     
  15     * @note 
  16     
  17     */
  18  
  19     /**
  20  
  21     * @Repertoire: registre
  22     * file: choisir_protect.php
  23  
  24    */    
  25  
  26  
  27  
  28  require  "include.inc.php";
  29  connexion();
  30  include  "entete.inc.php";
  31  include  "ldap.inc.php";
  32  include  "ihm.inc.php";
  33  
  34  require_once  ("lang.inc.php");
  35  bindtextdomain('se3-registre',"/var/www/se3/locale");
  36  textdomain ('se3-registre');
  37  
  38  if (ldap_get_right("computers_is_admin",$login)!="Y")
  39          die (gettext("Vous n'avez pas les droits suffisants pour acc&#233;der &#224; cette fonction")."</BODY></HTML>");
  40  
  41  $_SESSION["pageaide"]="Gestion_des_clients_windows#Description_du_processus_de_configuration_du_registre_Windows";
  42  
  43  
  44  $testniveau=getintlevel();
  45  
  46  if ($testniveau==1) { $affiche="non"; } else { $affiche="oui"; }
  47  echo "<h1>".gettext("Gestion des templates")."  (".afficheniveau($testniveau).")</h1>";
  48  $template=$_POST['salles'];
  49  $mod=$_POST['mod'];
  50  if (!$template) { $template=$_GET['salles'];}
  51  
  52  if ($template) { 
  53  
  54      $query4="DELETE FROM restrictions WHERE groupe='$template';";
  55      mysql_query($query4);
  56  
  57      applique_modele($mod,$template,"oui");
  58           
  59      echo "<HEAD><META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=affiche_restrictions.php?salles=$template\"></HEAD>";
  60  
  61  } else {
  62      echo gettext("Choisir un template &#224 modifier")."<br>";
  63        $handle=opendir('/home/templates');
  64          while ($file = readdir($handle)) {
  65              if ($file<>'.' and $file<>'..' and $file<>'registre.vbs' and $file<>'skeluser') {
  66                      echo "<a href=\"choisir_protect.php?salles=$file\">$file</a><br>";
  67          }
  68      }
  69  }
  70  
  71  include("pdp.inc.php");
  72  
  73  ?>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1