|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
api_protect_admin_script(); |
|
|
|
|
|
|
|
|
|
//the plugin title |
|
|
|
|
$plugin_info['title'] = 'Edit htaccess'; |
|
|
|
|
@ -39,7 +38,7 @@ if (!file_exists($file)) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($editFile) { |
|
|
|
|
if ($editFile && api_is_platform_admin()) { |
|
|
|
|
$originalContent = file_get_contents($file); |
|
|
|
|
$beginLine = '###@@ This part was generated by the edit_htaccess plugin @@##'; |
|
|
|
|
$endLine = '###@@ End @@##'; |
|
|
|
|
|