[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/tests/ -> entete_ajax.inc.php (source)

   1  <?php
   2  
   3     /**
   4     
   5     * Include de debut des pages utilsant ajax 
   6     * @Version $Id: entete_ajax.inc.php 4764 2009-11-08 17:31:37Z crob $ 
   7     * @Projet LCS / SambaEdu 
   8     * @auteurs Philippe Chadefaux  MrT
   9     * @Licence Distribue selon les termes de la licence GPL
  10     * @note
  11     * Modifications proposées par Sébastien Tack (MrT)
  12     * Optimisation du lancement des scripts bash par la technologie asynchrone Ajax.
  13   
  14     
  15     */
  16  
  17     /**
  18  
  19     * @Repertoire: /tests/
  20     * file: entete_ajax.inc.php
  21     */
  22  
  23  
  24  
  25  @session_start();
  26  $_SESSION["pageaide"]="Table_des_mati&#232;res";
  27  
  28  require("config.inc.php");
  29  require_once  ("functions.inc.php");
  30  
  31  require_once  ("lang.inc.php");
  32  bindtextdomain('se3-core',"/var/www/se3/locale");
  33  textdomain ('se3-core');
  34  
  35  
  36  $login=isauth();
  37  
  38  
  39  // Prise en compte de la page demandee initialement - leb 25/6/2005
  40  if (($login == "") || (ldap_get_right("se3_is_admin",$login)!="Y") )  {
  41      //    header("Location:$urlauth");
  42      $request = $PHP_SELF;
  43      if ( $_SERVER['QUERY_STRING'] != "") $request .= "?".$_SERVER['QUERY_STRING'];
  44      echo "<script language=\"JavaScript\" type=\"text/javascript\">\n<!--\n";
  45      echo "top.location.href = '$urlauth?request=" . rawurlencode($request) . "';\n";
  46      echo "//-->\n</script>\n";
  47  } 
  48  ?>


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