Перенос функций, вызываемых один раз в файлы, из которых они вызываются. Раскрытие функций-однострочников.
This commit is contained in:
7
ch.php
7
ch.php
@@ -250,6 +250,13 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
|
||||
}
|
||||
if ($row['invis'] == 0 || $row['id'] == $_SESSION['uid']) {
|
||||
if (!empty($row['action'])) {
|
||||
function stripslashes_deep($text)
|
||||
{
|
||||
while (strstr($text, "\\")) {
|
||||
$text = stripslashes($text);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
$rrr = $row['action'];
|
||||
$act = explode("<>:<>", $rrr);
|
||||
$aa = htmlspecialchars(stripslashes_deep($act[1]));
|
||||
|
||||
Reference in New Issue
Block a user