[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  <?php
   2  // ## $Id: AffichePage.php 7308 2012-06-28 15:21:55Z olikin $ ##
   3  //$DEBUG=1;
   4  foreach($_GET AS $key => $value) {
   5      ${$key} = $value;
   6  }
   7  $login = "";
   8  $wpkgAdmin = false;
   9  $wpkgUser = false;
  10  
  11  include  "inc/wpkg.auth.php";
  12  
  13  
  14  if ( $wpkgUser && ($login != "")) {
  15      $xml="$wpkgroot/tmp/wpkg.$login.xml";
  16      $xsl="";
  17      switch ( $page ) {
  18          case "PackagesProfiles":
  19              $xsl="$wpkgwebdir/PackagesProfiles.xsl";
  20              $parametres=array("login" => $login, "Navigateur" => $Navigateur, "sortPackages" => $sortPackages, "sortProfiles" => $sortProfiles);
  21              break;
  22          case "AjoutPackage":
  23              if(! is_file("$wpkgwebdir/forum.xml")) {
  24                  if ($handle = fopen("$wpkgwebdir/forum.xml", 'w')) {
  25                      fwrite($handle, '<packages/>');
  26                      fclose($handle);                
  27                  }
  28              }
  29              $xsl="$wpkgwebdir/AjoutPackage.xsl";
  30              $parametres=array("login" => $login, "Navigateur" => $Navigateur, "MAJPackages" => $MAJPackages, "urlWawadeb" => $urlWawadeb, "urlWawadebMD5" => $urlWawadebMD5, "wpkgAdmin" => $wpkgAdmin?1:0, "wpkgUser" => $wpkgUser?1:0);
  31              break;
  32          case "AfficheProfile":
  33              $xsl="$wpkgwebdir/AfficheProfile.xsl";
  34              $parametres=array("login" => $login, "Navigateur" => $Navigateur, "idProfile" => $idProfile);
  35              break;
  36          case "AffichePackage":
  37              $xsl="$wpkgwebdir/AffichePackage.xsl";
  38              $parametres=array("login" => $login, "Navigateur" => $Navigateur, "idPackage" => $idPackage, "idProfile" => $idProfile);
  39              break;
  40          case "AfficheHost":
  41              $xsl="$wpkgwebdir/AfficheHost.xsl";
  42              $parametres=array("login" => $login, "Navigateur" => $Navigateur, "idHost" => $idHost);
  43              break;
  44          default:
  45              header("HTTP/1.1 505 Exec error");
  46              header("Status: 505 Erreur d'execution"); 
  47              echo "Parametre page non défini !";
  48      }
  49      $Maintenant = strftime ( "%D_%T" );
  50      exec ( "$wpkgwebdir/bin/wpkgXml.sh '$login'", $output, $return_value);
  51      if ( $return_value == 0 ) {
  52          get_html($xsl, $xml, $parametres);
  53      } else {
  54          header("HTTP/1.1 505 Exec error");
  55          header("Status: 505 Erreur d'execution"); 
  56          print_r($output);
  57      }
  58  }
  59  ?>


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