/branches/ant-ng/lib/core.php |
---|
86,7 → 86,8 |
$rq =& $this->db->query($query); |
switch ($format) { |
case 'html': |
$show = "<fieldset><legend>".$info."</legend>\n<select id='".$name."' name='".$name."'>\n"; |
$show = "<fieldset><legend>".$info."</legend>\n<select id='".$name."' name='".$name."'>\n"; |
$show .= "<option value=''>".$info."</option>\n"; |
while ($rq->fetchInto($element)) { |
$show .= "<option value='".$this->secure->checkInt($element["dist_id"])."'>".$this->secure->checkStr($element["distname"],1)."</option>\n"; |
} |
287,8 → 288,11 |
} |
// sourses.list |
public function showSourcesList() { |
public function showSourcesList($requestID) { |
//TODO Написать генератор sources.list |
list($distID,$versID,$repsIDs) = split(":",$requestID); |
$reps = array(); |
$reps = split("-",$repsIDs); |
} |
// Проверка пароля (из формы авторизации) |
354,6 → 358,7 |
return $result; |
} |
} |
?> |
/branches/ant-ng/index.php |
---|
70,7 → 70,10 |
</script> |
"; |
$body = $core->showDistributionList("dist");; |
$tmpl->assign('scripts', $scripts); |
$tmpl->assign('body', $body); |
$tmpl->display('default.tpl'); |
/branches/ant-ng/request.php |
---|
Новый файл |
0,0 → 1,36 |
<?php |
/** |
* |
* Codename: ant-ng - generator of sources.list for Debian and |
* distributives, based on Debian |
* http://alex-w.org.ru/p/antng/ |
* |
* Copyright (c) 2009 Alexander Wolf |
* Dual licensed under the MIT and GNU LGPL licenses. |
* http://alex-w.org.ru/p/antng/license |
* |
*/ |
require_once dirname(__FILE__)."/init.php"; |
$ID = $_GET["reqID"]; |
list($step,$dist,$vers,$reps) = split(":",$ID); |
$stepId = $secure->checkInt($step); |
$distId = $secure->checkInt($dist); |
$versId = $secure->checkInt($vers); |
if ($reps!="") { |
$repsIDs = array(); |
$repsIDs = split("-",$reps); |
} |
switch($stepId) { |
case '1': |
$result = $core->showDistributionList("dist"); |
break; |
} |
print $result; |
?> |