[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-wpkg/sources/www/ -> profiles.php (source)

   1  <?php
   2  // ## $Id: profiles.php 2870 2008-04-23 17:36:15Z jlebail $ ##
   3  include  "inc/wpkg.auth.php";
   4  if ( $wpkgUser && ($login != "")) {
   5      $filename = "profiles.xml";
   6      $Maintenant = strftime ( "%D_%T" );
   7      exec ( "if [ $wpkgroot/profiles.xml -nt $wpkgroot/tmp/profiles.$login.xml ]; then xsltproc --output $wpkgroot/tmp/profiles.$login.xml --stringparam 'date' '$Maintenant' --stringparam 'user' '$login' $wpkgwebdir/bin/profilesXml.xsl $wpkgroot/profiles.xml 2>&1 ; fi", $output, $return_value);
   8      if ( $return_value == 0 ) {
   9          get_xml("tmp/profiles.$login.xml");
  10      } else {
  11          header("HTTP/1.1 505 Exec error");
  12          header("Status: 505 Erreur d'execution"); 
  13          print_r($output);
  14      }
  15  /*    $PathFichier = "$wpkgroot/$filename";
  16      if (file_exists("$PathFichier")) {
  17          // Date: Mon, 15 Jan 2007 10:06:50 GMT
  18          $dateLastModification = filemtime($PathFichier);
  19          if (httpConditional($dateLastModification)) {
  20              exit(); //No need to send anything
  21          } else {
  22              $DateFichier = gmdate("D, d M Y H:i:s", $dateLastModification) . " GMT" ;
  23              header("Content-type: application/xml");
  24              header("Last-Modified: $DateFichier");
  25              header("Cache-Control: must-revalidate");
  26              header("Content-Disposition: inline; filename=$filename");
  27              //$Maintenant = strftime ( "%D_%T" );
  28              $Maintenant = $DateFichier;
  29              passthru("xsltproc --stringparam 'date' '$Maintenant' --stringparam 'user' '$login' $wpkgwebdir/bin/profilesXml.xsl $wpkgroot/profiles.xml 2>&1", $return_value);
  30              if ( $return_value != 0 ) {
  31                  print_r("Err $return_value : xsltproc --stringparam 'date' '$Maintenant' --stringparam 'user' '$login' $wpkgwebdir/bin/profilesXml.xsl $wpkgroot/profiles.xml");
  32              }
  33          }
  34      } else {
  35          header("HTTP/1.1 404 Not found");
  36          header("Status: 404 Not found"); 
  37          echo "Erreur : Le fichier $PathFichier est introuvable !\n";
  38          echo "Sans doute un problème de droits.\n";
  39          return false;
  40      }
  41  */
  42  }
  43  ?>


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