* (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com * (c) 2007-2012 Mandriva, http://www.mandriva.com * * $Id$ * * This file is part of Mandriva Management Console (MMC). * * MMC is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MMC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC. If not, see <http://www.gnu.org/licenses/>. */ require_once "modules/pkgs/includes/xmlrpc.php"; $papiid = $_GET['papiid']; if (!isset($_GET['tempdir'])) { // No tempdir defined, get default value $tempdir = getTemporaryFiles($papiid); $tempdir = $tempdir[0][0]; } else { $tempdir = $_GET['tempdir']; } $datas = getTemporaryFileSuggestedCommand($papiid, $tempdir); header("X-JSON: " . json_encode($datas));
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC. If not, see <http://www.gnu.org/licenses/>. */ require_once "modules/pkgs/includes/xmlrpc.php"; require_once "modules/pkgs/includes/functions.php"; // This session variable is used for auto-check upload button if (isset($_SESSION['pkgs-add-reloaded'][$_GET['papi']])) { $_SESSION['pkgs-add-reloaded'][$_GET['papi']]++; } else { $_SESSION['pkgs-add-reloaded'][$_GET['papi']] = 0; } $_SESSION['p_api_id'] = $_GET['papi']; $files = getTemporaryFiles($_GET['papi']); if (count($files)) { $r = new SelectItem("rdo_files"); $vals = array(); $keys = array(); foreach ($files as $fi) { if ($fi[1] == True) { $vals[] = $fi[0]; $keys[] = $fi[0]; } } $r->setElementsVal($vals); $r->setElements($keys); $r->display(); ?> <script type="text/javascript">