. * * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ */ if ( ! defined( 'ABSPATH' ) ) { die( 'Kangaroos cannot jump here' ); } class Ai1wm_File_Htaccess { /** * Create .htaccess file (ServMask) * * @param string $path Path to file * @return boolean */ public static function create( $path ) { return Ai1wm_File::create( $path, implode( PHP_EOL, array( '', 'AddType application/octet-stream .wpress', '', '', 'DirectoryIndex index.php', '', '', 'Options -Indexes', '', ) ) ); } /** * Create .htaccess file (LiteSpeed) * * @param string $path Path to file * @return boolean */ public static function litespeed( $path ) { return Ai1wm_File::create_with_markers( $path, 'LiteSpeed', array( '', 'SetEnv noabort 1', '', ) ); } }