echo "Would add package as $n";
+ $pkgs[$n]["name"] = $_REQUEST["pkgname"];
$pkgs[$n]["arch"] = $_REQUEST["arch"];
$pkgs[$n]["type"] = $_REQUEST["type"];
$pkgs[$n]["fileurl"] = $ultfileurl;
file_put_contents("$repostore/adhoc/$n", $fetfile);
}
+ $this->config->setConfigVar("adhocpackages", serialize($pkgs));
$this->config->saveConfig();
echo "Done";
echo "<hr>";
echo "<h3>Add a Package</h3><br>";
+ $pkgs = unserialize($this->config->getConfigVar("adhocpackages"));
+ foreach($pkgs as $key => $var) {
+ $name = $var["pkgname"];
+ $arch = $var["arch"];
+ $type = $var["type"];
+ echo "$key: $name $arch, $type<br>";
+ }
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"?action=addpackage\">";
echo "Name <input type=\"text\" name=\"pkgname\"><br>";
echo "Arch <select name=\"arch\">";