265,8 → 265,9 |
$repsche = abs(intval($_POST["scheme"])); |
$origin = abs(intval($_POST["orign"])); |
$reproot = abs(intval($_POST["rootFolder"])); |
$default = abs(intval($_POST["default"])); |
|
$res =& $db->query("INSERT INTO repository SET repname='$repname', repdescribe='$repinfo', scheme_id='$repsche', orig_id='$origin', root_id='$reproot'"); |
$res =& $db->query("INSERT INTO repository SET repname='$repname', repdescribe='$repinfo', scheme_id='$repsche', orig_id='$origin', root_id='$reproot', default='$default'"); |
$res =& $db->query("SELECT rep_id FROM repository ORDER BY rep_id DESC LIMIT 1"); |
$res->fetchInto($rep, DB_FETCHMODE_ASSOC); |
$rep_id = $rep["rep_id"]; |