mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
fix security plugin
This commit is contained in:
parent
b2bae8f4d8
commit
48ac05b6e1
|
@ -15,6 +15,13 @@
|
|||
---------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Запрещаем напрямую через браузер обращение к этому файлу.
|
||||
*/
|
||||
if (!class_exists('Plugin')) {
|
||||
die('Hacking attemp!');
|
||||
}
|
||||
|
||||
class PluginPage extends Plugin {
|
||||
|
||||
/**
|
||||
|
|
2
plugins/page/classes/.htaccess
Normal file
2
plugins/page/classes/.htaccess
Normal file
|
@ -0,0 +1,2 @@
|
|||
Order Deny,Allow
|
||||
Deny from all
|
2
plugins/page/config/.htaccess
Normal file
2
plugins/page/config/.htaccess
Normal file
|
@ -0,0 +1,2 @@
|
|||
Order Deny,Allow
|
||||
Deny from all
|
5
plugins/page/templates/.htaccess
Normal file
5
plugins/page/templates/.htaccess
Normal file
|
@ -0,0 +1,5 @@
|
|||
Options -Indexes
|
||||
<Files ~ "\.tpl$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
|
@ -15,6 +15,13 @@
|
|||
---------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Запрещаем напрямую через браузер обращение к этому файлу.
|
||||
*/
|
||||
if (!class_exists('Plugin')) {
|
||||
die('Hacking attemp!');
|
||||
}
|
||||
|
||||
class PluginProfiler extends Plugin {
|
||||
/**
|
||||
* Активация плагина Профайлер.
|
||||
|
|
2
plugins/profiler/classes/.htaccess
Normal file
2
plugins/profiler/classes/.htaccess
Normal file
|
@ -0,0 +1,2 @@
|
|||
Order Deny,Allow
|
||||
Deny from all
|
2
plugins/profiler/config/.htaccess
Normal file
2
plugins/profiler/config/.htaccess
Normal file
|
@ -0,0 +1,2 @@
|
|||
Order Deny,Allow
|
||||
Deny from all
|
5
plugins/profiler/templates/.htaccess
Normal file
5
plugins/profiler/templates/.htaccess
Normal file
|
@ -0,0 +1,5 @@
|
|||
Options -Indexes
|
||||
<Files ~ "\.tpl$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
Loading…
Reference in a new issue