Перенос функций, вызываемых один раз в файлы, из которых они вызываются. Раскрытие функций-однострочников.

This commit is contained in:
Igor Barkov [iwork]
2018-07-02 18:35:25 +03:00
parent 54e64ff1ec
commit 44d106696f
15 changed files with 2108 additions and 2099 deletions

7
ch.php
View File

@@ -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]));