Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
059c4216
Commit
059c4216
authored
Dec 22, 2008
by
fantu
Browse files
replace ereg how is deprecated in php 5.3 and removed in php 6
parent
829e84b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tpl.inc.php
View file @
059c4216
...
...
@@ -1095,7 +1095,7 @@ if (!defined('vlibTemplateClassLoaded')) {
switch
(
strtolower
(
$this
->
OPTIONS
[
'UNKNOWNS'
]))
{
case
'comment'
:
$comment
=
addcslashes
(
'<!-- unknown variable '
.
e
reg_replace
(
'<!--|-->'
,
''
,
$wholetag
)
.
'//-->'
,
'"'
);
$comment
=
addcslashes
(
'<!-- unknown variable '
.
p
reg_replace
(
'
/
<!--|-->
/
'
,
''
,
$wholetag
)
.
'//-->'
,
'"'
);
$retstr
.
=
' else { print("'
.
$comment
.
'"); $this->_setUnknown("'
.
$varname
.
'"); }'
;
return
$retstr
;
...
...
interface/lib/classes/tpl_cache.inc.php
View file @
059c4216
...
...
@@ -82,7 +82,7 @@ class tplc extends tpl {
* @return boolean
*/
function
setCacheExtension
(
$str
=
null
)
{
if
(
$str
==
null
||
!
e
reg
(
'^[a-z0-9]+$'
,
strtolower
(
$str
)))
return
false
;
if
(
$str
==
null
||
!
p
reg
_match
(
'
/
^[a-z0-9]+$
/
'
,
strtolower
(
$str
)))
return
false
;
$this
->
OPTIONS
[
'CACHE_EXTENSION'
]
=
strtolower
(
$str
);
return
true
;
}
...
...
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