403Webshell
Server IP : 130.225.57.55  /  Your IP : 216.73.216.60
Web Server : Apache
System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /srv/www/reco2st.eu/https/wp-content/plugins/search-and-replace/inc/Page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /srv/www/reco2st.eu/https/wp-content/plugins/search-and-replace/inc/Page/AbstractPage.php
<?php

namespace Inpsyde\SearchReplace\Page;

/**
 * Class AbstractPage
 *
 * @package Inpsyde\SearchReplace\Page
 */
abstract class AbstractPage {

	/**
	 * Returns the translated title for the page.
	 *
	 * @return string
	 */
	abstract public function get_page_title();

	/**
	 * By default "Search & Replace". Can be overwritten in child-classes.
	 *
	 * @return string
	 */
	public function get_menu_title() {

		return esc_html__( 'Search & Replace', 'search-and-replace' );
	}

	/**
	 * @var array
	 */
	protected $errors = array();

	/**
	 * @param string $msg
	 */
	public function add_error( $msg ) {

		$this->errors[] = (string) $msg;
	}

	/**
	 * Echoes the content of the $errors array as formatted HTML if it contains error messages.
	 */
	public function display_errors() {

		if ( count( $this->errors ) < 1 ) {
			return;
		}

		?>
		<div class="error notice is-dismissible">
			<p>
				<strong>
					<?php esc_html_e( 'Errors:', 'search-and-replace' ); ?>
				</strong>
			</p>
			<ul>
				<?php foreach ( $this->errors as $error ) : ?>
					<li><?= esc_html( $error ); ?></li>
				<?php endforeach; ?>
			</ul>
		</div>

		<?php
	}

	/**
	 * Displays the html for the submit button.
	 *
	 * @param string $name
	 */
	public function show_submit_button( $name = 'submit' ) {

		printf(
			'<input type="hidden" name="action" value="%s" />',
			esc_attr( $this->get_slug() )
		);
		submit_button( $this->get_submit_button_title(), 'primary', $name );
		wp_nonce_field( 'replace_domain', 'insr_nonce' );
	}

	/**
	 * @return string
	 */
	protected function get_submit_button_title() {

		return esc_html__( 'Submit', 'search-replace' );
	}

	/**
	 * @return string
	 */
	public function get_slug() {

		return sanitize_title_with_dashes( $this->get_page_title() );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit