403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/sql-buddy/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/sql-buddy/includes/namespace.php
<?php
/**
 * Plugin initialization file.
 *
 * @package   SQL_Buddy
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://github.com/deliciousbrains/sql-buddy/
 */

namespace SQL_Buddy;

/**
 * Handles plugin activation.
 *
 * Throws an error if the site is running on PHP < 7.0
 *
 * @since 1.0.0
 *
 * @param bool $network_wide Whether to activate network-wide.
 *
 * @return void
 */
function activate( $network_wide ) {
	if ( version_compare( PHP_VERSION, SQL_BUDDY_MINIMUM_PHP_VERSION, '<' ) ) {
		wp_die(
		/* translators: %s: PHP version number */
			esc_html( sprintf( __( 'SQL Buddy requires PHP %s or higher.', 'sql-buddy' ), SQL_BUDDY_MINIMUM_PHP_VERSION ) ),
			esc_html__( 'Plugin could not be activated', 'sql-buddy' )
		);
	}

	do_action( 'sql_buddy_activation', $network_wide );
}

/**
 * Handles plugin deactivation.
 *
 * @since 1.0.0
 *
 * @param bool $network_wide Whether to deactivate network-wide.
 *
 * @return void
 */
function deactivate( $network_wide ) {
	if ( version_compare( PHP_VERSION, SQL_BUDDY_MINIMUM_PHP_VERSION, '<' ) ) {
		return;
	}

	do_action( 'sql_buddy_deactivation', $network_wide );
}

register_activation_hook( SQL_BUDDY_PLUGIN_FILE, '\SQL_Buddy\activate' );
register_deactivation_hook( SQL_BUDDY_PLUGIN_FILE, '\SQL_Buddy\deactivate' );

if ( ! class_exists( \SQL_Buddy\Plugin::class ) ) {
	/**
	 * Displays an admin notice about why the plugin is unable to load.
	 *
	 * @return void
	 */
	function _print_missing_build_admin_notice() {
		?>
		<div class="notice notice-error">
			<p>
				<strong><?php esc_html_e( 'SQL Buddy plugin could not be initialized.', 'sql-buddy' ); ?></strong>
			</p>
			<p>
				<?php
				echo wp_kses(
					sprintf(
					/* translators: %s: build commands. */
						__( 'You appear to be running an incomplete version of the plugin. Please run %s to finish installation.', 'sql-buddy' ),
						'<code>composer install &amp;&amp; npm install &amp;&amp; npm run build</code>'
					),
					[
						'code' => [],
					]
				);
				?>
			</p>
		</div>
		<?php
	}

	add_action( 'admin_notices', __NAMESPACE__ . '\_print_missing_build_admin_notice' );
}

global $sql_buddy;

$sql_buddy = new Plugin();
$sql_buddy->register();

Youez - 2016 - github.com/yon3zu
LinuXploit