[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/includes/ -> se3orlcs_import_sconet.php (source)

   1  <?php
   2  
   3  
   4     /**
   5     
   6     * Page servant a detecter si on est en presence d'un Se3 ou d'un LCS pour les pages d'import Sconet
   7     * @Version $Id$ 
   8     
   9     * @Projet LCS / SambaEdu 
  10     
  11     * @auteurs Stephane Boireau (Animateur de Secteur pour les TICE sur Bernay/Pont-Audemer (27))
  12     * @auteurs jLCF jean-luc.chretien@tice.ac-caen.fr Portage LCSorSE3
  13     
  14     * @Licence Distribue selon les termes de la licence GPL
  15     
  16     * @note Include depuis import_sconet.php
  17     */
  18  
  19     /**
  20  
  21     * @Repertoire: includes
  22     * file: se3orlcs_import_sconet.php
  23     */
  24  
  25  
  26  
  27  
  28  /* se3orlcs_import_sconet.php Derniere version : 18/06/07 */
  29  // Detection LCS ou SE3
  30  if ( file_exists("/var/www/se3") ) {
  31      // Section SE3
  32      $user_web = "www-se3";
  33      // Chemin:
  34      $pathlcsorse3 = "";
  35      $path_crob_ldap_functions = "";
  36      $racine_www= "/var/www/se3";
  37      $chemin_www_includes= "/var/www/se3/includes";
  38      $dossier_tmp_import_comptes= "/var/lib/se3/import_comptes";
  39      $chemin_csv="/setup/csv";
  40      $php="/usr/bin/php";
  41      $chemin="/usr/share/se3/scripts";
  42      $chemin_fich="$dossier_tmp_import_comptes";
  43      // Style du rapport
  44      $background ="/elements/images/fond_SE3.png";
  45      $stylecss="/elements/style_sheets/sambaedu.css";
  46      $helpinfo="../elements/images/system-help.png";
  47  
  48      include  "entete.inc.php";
  49      include  "ldap.inc.php";
  50      include  "ihm.inc.php";
  51  
  52      require_once  ("lang.inc.php");
  53      bindtextdomain('se3-annu',"/var/www/se3/locale");
  54      textdomain ('se3-annu');
  55  
  56      echo "<h1>".gettext("Importation des comptes et des groupes.")."</h1>\n";
  57      $_SESSION["pageaide"]="gestion_des_utilisateurs";
  58  
  59  } else {
  60      // Section LCS
  61      $user_web = "www-data";
  62      // Chemin:
  63      $pathlcsorse3 = "../lcs/includes/";
  64      $path_crob_ldap_functions = "includes/";
  65      $racine_www= "/var/www";
  66      $chemin_www_includes= "/var/www/lcs/includes";
  67      $dossier_tmp_import_comptes= "/var/lib/lcs/import_comptes";
  68      $chemin_csv="/setup/csv";
  69      $php="/usr/bin/php";
  70      $chemin="/usr/share/lcs/scripts";
  71      $chemin_fich="$dossier_tmp_import_comptes";
  72      // Style du rapport
  73      $background ="Images/espperso.jpg";
  74      $stylecss="style/style.css";
  75      $helpinfo="../images/system-help.png";
  76  
  77      include "../lcs/includes/headerauth.inc.php";
  78      include "includes/ldap.inc.php";
  79      include "includes/ihm.inc.php";
  80  
  81      list ($idpers,$login)= isauth();
  82      if ($idpers == "0") header("Location:$urlauth");
  83  
  84      header_html();
  85  }
  86  ?>


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