index 0040b745f747d9c5dd1c6b59b2e12d1874658876..ec56ed885bf14dc326de4d57bcc74ce677f5445f 100644 (file)
for($d= 1; $d<32; $d++){
$days[$d]= $d;
}
- $years = array();
- $start = date("Y") - 100;
- $end = $start +100;
+ $years= array();
+
+ if(($date['year']-100)<1901){
+ $start = 1901;
+ }else{
+ $start = $date['year']-100;
+ }
+
+ $end = $start +100;
for($y= $start; $y<=$end; $y++){
$years[]= $y;
}
+ $years['-']= "- ";
$months= array(_("January"), _("February"), _("March"), _("April"),
_("May"), _("June"), _("July"), _("August"), _("September"),
- _("October"), _("November"), _("December"));
+ _("October"), _("November"), _("December"), '-' => '- ');
$smarty->assign("day", $date["mday"]);
$smarty->assign("days", $days);
$smarty->assign("months", $months);
foreach($_POST as $name => $value){
if(preg_match("/^chooseBase/",$name) && $once){
$once = false;
- $this->dialog = new baseSelectDialog($this->config,$this->allowedBasesToMoveTo());
+ $this->dialog = new baseSelectDialog($this->config,$this,$this->allowedBasesToMoveTo());
$this->dialog->setCurrentBase($this->base);
}
}
$this->pw_storage= $this->config->current['HASH'];
}
- $temp = passwordMethod::get_available_methods();
+ $temp = @passwordMethod::get_available_methods();
$hashes = $temp['name'];
$smarty->assign("pwmode", $hashes);