[ Root System Explorer ]
Location:
Root
/
home
/
svaxkys
/
www
/
AcmaCulot
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
app
/
Common
/
Tools
+ Folder
+ File
Upload
Editing: Htaccess.php
<?php namespace AIOSEO\Plugin\Common\Tools; // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } class Htaccess { /** * The path to the .htaccess file. * * @since 4.0.0 * * @var string */ private $path = ''; /** * Class constructor. * * @since 4.0.0 */ public function __construct() { $this->path = ABSPATH . '.htaccess'; } /** * Get the contents of the .htaccess file. * * @since 4.0.0 * * @return string The contents of the file. */ public function getContents() { $wpfs = aioseo()->helpers->wpfs(); if ( ! @$wpfs->exists( $this->path ) ) { return false; } $contents = @$wpfs->get_contents( $this->path ); return aioseo()->helpers->encodeOutputHtml( $contents ); } /** * Saves the contents of the .htaccess file. * * @since 4.0.0 * * @param string $contents The contents to write. * @return boolean True if the file was updated. */ public function saveContents( $contents ) { $wpfs = aioseo()->helpers->wpfs(); $fileExists = @$wpfs->exists( $this->path ); if ( ! $fileExists || @$wpfs->is_writable( $this->path ) ) { $success = @$wpfs->put_contents( $this->path, $contents ); if ( false === $success ) { return false; } return true; } return false; } }
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 BadBotBlocker.php
FILE
Ren
[EDIT]
DEL
📄 Htaccess.php
FILE
Ren
[EDIT]
DEL
📄 RobotsTxt.php
FILE
Ren
[EDIT]
DEL
📄 SystemStatus.php
FILE
Ren
[EDIT]
DEL