mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
remove unused code
This commit is contained in:
parent
b1f45773f3
commit
c4873ff3d3
1 changed files with 0 additions and 29 deletions
|
|
@ -30,35 +30,6 @@ function htmlarray_ref(&$a, $exclude=null)
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
function stop_gpc(&$arr)
|
||||
{
|
||||
if (!is_array($arr)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Since PHP v5.4.0 magic quotes config option was removed from PHP.
|
||||
// In PHP v7.4 get_magic_quotes_gpc() is deprecated, in v8.0 is removed.
|
||||
// TODO: do not use get_magic_quotes_gpc() and stop_gpc()
|
||||
if (!@get_magic_quotes_gpc()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
reset($arr);
|
||||
foreach ($arr as $k=>$v)
|
||||
{
|
||||
if (is_array($arr[$k])) {
|
||||
stop_gpc($arr[$k]);
|
||||
}
|
||||
elseif (is_string($arr[$k])) {
|
||||
$arr[$k] = stripslashes($v);
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
*/
|
||||
|
||||
function _post($param,$defvalue = '')
|
||||
{
|
||||
if(!isset($_POST[$param])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue