Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
91bc8ea6
Commit
91bc8ea6
authored
Dec 02, 2008
by
redray
Browse files
another dns serial fix
parent
0ba7fb66
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/validate_dns.inc.php
View file @
91bc8ea6
...
...
@@ -272,6 +272,10 @@ function increase_serial($serial){
$current_date
=
date
(
"Ymd"
);
if
(
$serial_date
>=
$current_date
){
$count
+=
1
;
if
(
$count
>
99
)
{
$serial_date
+=
1
;
$count
=
0
;
}
$count
=
str_pad
(
$count
,
2
,
"0"
,
STR_PAD_LEFT
);
$new_serial
=
$serial_date
.
$count
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment