Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
e55c5bf3
Commit
e55c5bf3
authored
Sep 09, 2011
by
xaver
Browse files
Added part of #1594, hope last part, last ereg functions replaced
parent
ba035595
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/listform.inc.php
View file @
e55c5bf3
...
...
@@ -295,7 +295,7 @@ class listform {
case
'DATETSTAMP'
:
if
(
$record
[
$key
]
>
0
)
{
// is value int?
if
(
e
reg
(
"^[0-9]+[.]?[0-9]*$"
,
$record
[
$key
],
$p
))
{
if
(
p
reg
_match
(
"
/
^[0-9]+[.]?[0-9]*$
/
"
,
$record
[
$key
],
$p
))
{
$record
[
$key
]
=
date
(
$this
->
lng
(
'conf_format_dateshort'
),
$record
[
$key
]);
}
else
{
$record
[
$key
]
=
date
(
$this
->
lng
(
'conf_format_dateshort'
),
strtotime
(
$record
[
$key
]));
...
...
@@ -305,7 +305,7 @@ class listform {
case
'DATE'
:
if
(
$record
[
$key
]
>
0
)
{
// is value int?
if
(
e
reg
(
"^[0-9]+[.]?[0-9]*$"
,
$record
[
$key
],
$p
))
{
if
(
p
reg
_match
(
"
/
^[0-9]+[.]?[0-9]*$
/
"
,
$record
[
$key
],
$p
))
{
$record
[
$key
]
=
date
(
$this
->
lng
(
'conf_format_dateshort'
),
$record
[
$key
]);
}
else
{
$record
[
$key
]
=
date
(
$this
->
lng
(
'conf_format_dateshort'
),
strtotime
(
$record
[
$key
]));
...
...
@@ -316,7 +316,7 @@ class listform {
case
'DATETIME'
:
if
(
$record
[
$key
]
>
0
)
{
// is value int?
if
(
e
reg
(
"^[0-9]+[.]?[0-9]*$"
,
$record
[
$key
],
$p
))
{
if
(
p
reg
_match
(
"
/
^[0-9]+[.]?[0-9]*$
/
"
,
$record
[
$key
],
$p
))
{
$record
[
$key
]
=
date
(
$this
->
lng
(
'conf_format_datetime'
),
$record
[
$key
]);
}
else
{
$record
[
$key
]
=
date
(
$this
->
lng
(
'conf_format_datetime'
),
strtotime
(
$record
[
$key
]));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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