REQUIREMENTS:
- XOOPS 2.5.10
- PHP 7.3+
For a working demo of the module
https://erenyumak.com/ato/modules/countdown/
https://erenyumak.com/ato/modules/countdown/event.php?id=2
So modifying the Xoops 2.5.11 autoload process to exclude the index.php file was not the resolution, and now all modules that use preloads must use the index.html file and not index.php for protection in their preloads/ directory. Is that correct?
<script>history.go(-1);script>
================================ start with clean Xoops 2510 ==================================
local-test-site [04/Apr/2022:17:25:45 -0400] "GET / HTTP/1.1" 200 15168
================================ install xsitemap, go to home page ==============================
local-test-site [04/Apr/2022:17:26:30 -0400] "GET /admin.php HTTP/1.1" 200 37858
local-test-site [04/Apr/2022:17:26:35 -0400] "GET /modules/system/admin.php?fct=modulesadmin HTTP/1.1" 200 48318
local-test-site [04/Apr/2022:17:26:38 -0400] "GET /modules/system/admin.php?fct=modulesadmin&op=installlist HTTP/1.1" 200 33177
local-test-site [04/Apr/2022:17:26:44 -0400] "GET /modules/system/admin.php?fct=modulesadmin&op=install&module=xsitemap HTTP/1.1" 200 23461
local-test-site [04/Apr/2022:17:26:48 -0400] "POST /modules/system/admin.php HTTP/1.1" 200 33186
local-test-site [04/Apr/2022:17:26:52 -0400] "GET / HTTP/1.1" 200 15324
================================ close browser/reopen website, refresh page =====================
local-test-site [04/Apr/2022:17:28:12 -0400] "GET / HTTP/1.1" 302 310
local-test-site [04/Apr/2022:17:28:12 -0400] "GET / HTTP/1.1" 404 15439
local-test-site [04/Apr/2022:17:29:33 -0400] "GET /themes/xswatch4/js/bootstrap.bundle.min.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:29:33 -0400] "GET /themes/xswatch4/js/cookieconsent.min.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:29:33 -0400] "GET /themes/xswatch4/js/js.cookie.min.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:29:33 -0400] "GET /include/xoops.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:29:33 -0400] "GET / HTTP/1.1" 404 15439
local-test-site [04/Apr/2022:17:29:33 -0400] "GET /browse.php?Frameworks/jquery/jquery.js HTTP/1.1" 200 86927
local-test-site [04/Apr/2022:17:29:34 -0400] "GET /themes/xswatch4/images/logo.png HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:29:34 -0400] "GET /themes/xswatch4/images/favicon.png HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:29:34 -0400] "GET /themes/xswatch4/images/toolsicon.png HTTP/1.1" 304 -
================================ close browser/reopen website ===================================
local-test-site [04/Apr/2022:17:39:28 -0400] "GET / HTTP/1.1" 302 310
local-test-site [04/Apr/2022:17:39:28 -0400] "GET / HTTP/1.1" 404 15439
================================ uninstall xsitemap, go to home page ============================
local-test-site [04/Apr/2022:17:40:34 -0400] "GET /admin.php HTTP/1.1" 404 39613
local-test-site [04/Apr/2022:17:40:38 -0400] "GET /modules/system/admin.php?fct=modulesadmin HTTP/1.1" 404 54733
local-test-site [04/Apr/2022:17:40:44 -0400] "GET /modules/system/admin.php?fct=modulesadmin&op=uninstall&module=xsitemap HTTP/1.1" 404 24801
local-test-site [04/Apr/2022:17:40:47 -0400] "POST /modules/system/admin.php HTTP/1.1" 404 2858
local-test-site [04/Apr/2022:17:40:50 -0400] "GET / HTTP/1.1" 200 15053
================================= close browser/reopen website, refresh page ====================
local-test-site [04/Apr/2022:17:42:38 -0400] "GET / HTTP/1.1" 302 310
local-test-site [04/Apr/2022:17:42:38 -0400] "GET / HTTP/1.1" 200 15168
local-test-site [04/Apr/2022:17:42:41 -0400] "GET /themes/xswatch4/js/cookieconsent.min.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:42:41 -0400] "GET /themes/xswatch4/js/bootstrap.bundle.min.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:42:41 -0400] "GET /include/xoops.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:42:41 -0400] "GET /themes/xswatch4/js/js.cookie.min.js HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:42:41 -0400] "GET / HTTP/1.1" 200 15168
local-test-site [04/Apr/2022:17:42:41 -0400] "GET /browse.php?Frameworks/jquery/jquery.js HTTP/1.1" 200 86927
local-test-site [04/Apr/2022:17:42:42 -0400] "GET /themes/xswatch4/images/logo.png HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:42:42 -0400] "GET /themes/xswatch4/images/toolsicon.png HTTP/1.1" 304 -
local-test-site [04/Apr/2022:17:42:42 -0400] "GET /themes/xswatch4/images/favicon.png HTTP/1.1" 304 -
==================================================================================================