[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/annu/ -> pop_user.php (source)

   1  <?php
   2  
   3  
   4     /**
   5     
   6     * Expedie une popup a un utilisateur
   7     * @Version $Id: pop_user.php 2932 2008-05-04 08:12:26Z plouf $ 
   8     
   9     * @Projet LCS / SambaEdu 
  10     
  11     * @auteurs Philippe Peter
  12     * @auteurs Equipe Tice academie de Caen
  13  
  14     * @Licence Distribue selon les termes de la licence GPL
  15     
  16     * @note 
  17     */
  18  
  19     /**
  20  
  21     * @Repertoire: annu
  22     * file: pop_user.php
  23     */
  24  
  25  
  26  
  27  
  28  
  29  
  30  include  "entete.inc.php";
  31  require_once  ("lang.inc.php");
  32  include  "ihm.inc.php"; 
  33  bindtextdomain('se3-annu',"/var/www/se3/locale");
  34  textdomain ('se3-annu');
  35  
  36  
  37  if ((is_admin("annu_can_read",$login)=="Y") || (is_admin("Annu_is_admin",$login)=="Y") || (is_admin("savajon_is_admin",$login)=="Y"))  {
  38      // Aide
  39      $_SESSION["pageaide"]="Gestion_des_parcs#Envoi_d.27un_popup";
  40  
  41      echo "<h1>".gettext("Annuaire")."</h1>\n";
  42   
  43      $uid=escapeshellarg($_GET['uid']);
  44      $connect=`smbstatus -u $uid|grep $uid`;
  45  
  46      if (empty($connect)) {
  47              echo "<H2>Pop Down :-)</H2><P>";
  48              echo "<br>";
  49              echo "<br>";
  50              echo "<small>".gettext("L'envoi de Pop Up &#224;")." <b>$uid </b> ".gettext("n'est pas possible")." <br>";
  51              echo gettext("car")." <b>$uid </b> ".gettext("n'a pas de session ouverte actuellement.")."</small>";
  52      } else {
  53              echo "<H2>".gettext("Pop Up")."</H2><P>";
  54          echo "<small>";
  55          echo "<B><H3>".gettext("Message du Pop Up pour")." $uid:</H3></B><BR>";
  56          echo "<form action=\"respop_user.php\" method=\"post\">";
  57          echo "<textarea cols=60 rows=5 name=\"message\" maxlength=\"1200\"></textarea>";
  58          echo "<br><br>";
  59          echo "<input type=hidden name=\"uid\" value=\"".$uid."\">\n";
  60          echo "<br>";
  61          echo "<input type=\"submit\" value=\"".gettext("Envoyer le Pop Up")."\">";
  62          echo "</form>";
  63      }
  64  
  65  }
  66  include ("pdp.inc.php");
  67  ?>


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