[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-ocs/sources/www/ -> tele_actives.php (source)

   1  <?
   2  //====================================================================================
   3  // OCS INVENTORY REPORTS
   4  // Copyleft Pierre LEMMET 2006
   5  // Web: http://ocsinventory.sourceforge.net
   6  //
   7  // This code is open source and may be copied and modified as long as the source
   8  // code is always made freely available.
   9  // Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
  10  //====================================================================================
  11  //Modified on 06/23/2006
  12  
  13  
  14  if( isset($_GET["suppack"])) {
  15      @mysql_query("DELETE FROM download_enable WHERE ID=".$_GET["suppack"], $_SESSION["writeServer"]) or die(mysql_error());    
  16      
  17      $reqSupp = "DELETE FROM devices WHERE name='DOWNLOAD' AND ivalue=".$_GET["suppack"];
  18      if( isset($_GET["nonnot"]) )
  19          $reqSupp .= " AND tvalue IS NULL";
  20      
  21      @mysql_query($reqSupp, $_SESSION["writeServer"]) or die(mysql_error());    
  22  }
  23      
  24  $canAc = 2;
  25  PrintEnTete( $l->g(481) );    
  26      
  27  $lbl = "pack";    
  28  $sql = "d.fileid = e.fileid";
  29  $whereId = "d.FILEID=e.FILEID AND d.FILEID";
  30  $linkId = "d.FILEID";
  31  $select = array("ID"=>$l->g(460), "d.FILEID"=>$l->g(475), "NAME"=>$l->g(49), 
  32  "PRIORITY"=>$l->g(440),"INFO_LOC"=>$l->g(470), "PACK_LOC"=>$l->g(471), 
  33  "FRAGMENTS"=>$l->g(480), "SIZE"=>$l->g(462), "OSNAME"=>$l->g(25));    
  34  $selectPrelim = array("d.FILEID"=>"d.FILEID");    
  35  $from = "download_available d, download_enable e";
  36  $fromPrelim = "";
  37  $group = "";
  38  $order = "";
  39  $countId = "e.ID";
  40  
  41  $requete = new Req($lbl,$whereId,$linkId,$sql,$select,$selectPrelim,$from,$fromPrelim,$group,$order,$countId,true);
  42  ShowResults($requete,true,false,false,false,false,false,$canAc);
  43  
  44  echo "<center>".$l->g(552)."</center>";
  45  
  46  ?>


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