From 8fabf77b2a7720a357c63817c07035a9908818a0 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 10 Nov 2021 17:53:50 +0100 Subject: Update --- Neutron-trunk/api/admin/cache_pages_update.php | 72 -------------------------- 1 file changed, 72 deletions(-) delete mode 100644 Neutron-trunk/api/admin/cache_pages_update.php (limited to 'Neutron-trunk/api/admin/cache_pages_update.php') diff --git a/Neutron-trunk/api/admin/cache_pages_update.php b/Neutron-trunk/api/admin/cache_pages_update.php deleted file mode 100644 index 3122731..0000000 --- a/Neutron-trunk/api/admin/cache_pages_update.php +++ /dev/null @@ -1,72 +0,0 @@ -hiddenPages))) { - append("\n{$page}|" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $page . "/pagename")); - $index++; - } -} -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/enabled")) { - append("\n@galery|" . $lang["viewer"]["galery"]); -} - -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/cache/pagelist.mtd", $cache); - -$cache = ""; -$index = 0; -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/enabled")) {$index = 1;} -append("@home|@indexHomeIcon"); -foreach ($pages as $page) { - if ((($page != ".." && $page != ".")) && (is_dir($_SERVER['DOCUMENT_ROOT'] . "/" . $page)) && (file_exists($_SERVER['DOCUMENT_ROOT'] . "/" . $page . "/pagename")) && (!in_array($page, $customSettings->hiddenPages))) { - append("\n{$page}|" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $page . "/pagename")); - $index++; - } -} -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/enabled")) { - append("\n@galery|" . $lang["viewer"]["galery"]); -} - -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/cache/pagelist-full.mtd", $cache); - -/* --------------------------- */ -// Backwards compatibility with the old engine-cyclic -$cache = ""; - -$pages = scandir($_SERVER['DOCUMENT_ROOT']); -uasort($pages, 'compareASCII'); -foreach ($pages as $page) { - if ($page != ".." && $page != ".") { - if (is_dir($_SERVER['DOCUMENT_ROOT'] . "/" . $page)) { - if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/" . $page . "/pagename")) { - if (!in_array($page, $customSettings->hiddenPages)) { - append("" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $page . "/pagename") . ""); - } - } - } - } -} -if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/enabled")) {append("" . $lang["viewer"]["galery"] . "");} - -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/cache/pagelist-old.mtd", $cache); \ No newline at end of file -- cgit