403Webshell
Server IP : 194.30.32.123  /  Your IP : 216.73.216.89
Web Server : Apache
System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64
User : ftpbegirale ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /expert/htwebs/www.begirale.com/public/wp-content/plugins/maintenance/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /expert/htwebs/www.begirale.com/public/wp-content/plugins/maintenance/includes//update.php
<?php
	add_action( 'admin_init', 'maintenance_version_check' );
	function maintenance_version_check() {
	  $old_version = get_option( 'maintenance_db_version' );
	  $options     = get_option( 'maintenance_options' );
		
	if ( empty( $old_version ) && false === $options )
		maintenance_install();
	elseif ( empty( $old_version ) && !empty( $options ) )
		maintenance_update();
	elseif ( intval( $old_version ) < intval( MAINTENANCE_DB_VERSION ) )
		maintenance_update();
	}
	
	function maintenance_install() {
		$options = mt_get_plugin_options();
		add_option( 'maintenance_db_version',  MAINTENANCE_DB_VERSION );
		add_option( 'maintenance_options', 	   $options);
	}
	
	function maintenance_update() {
		$options   = mt_get_plugin_options();
		$settings  = get_option( 'maintenance_options' );
		
		update_option( 'maintenance_db_version', MAINTENANCE_DB_VERSION);

		foreach ( $options as $key => $value ) {
		if ( !isset( $settings[$key] ) )
					 $settings[$key] = $value;
		}
		update_option( 'maintenance_options',  $options);
	}

Youez - 2016 - github.com/yon3zu
LinuXploit