wordpress/wp-content/plugins/sqlite-integration/utilities/utility.php
/**
	 * Method to display update notice on the admin dashboard.
	 *
	 * Check if db.php file is replaced with the apropriate version,
	 * and if not, display notice.
	 *
	 * This is not required for now. So this method only returns and
	 * do nothing.
	 *
	 */
Method to display update notice on the admin dashboard.
Check if db.php file is replaced with the apropriate version,
and if not, display notice.

This is not required for now. So this method only returns and
do nothing.
Method to display update notice on the admin dashboard . Check if db . php file is replaced with the apropriate version and if not display notice . This is not required for now . So this method only returns and do nothing .
public static function show_admin_notice() {
		return;
		$notice_string = __('Upgrading Notice: To finish upgrading, please activate SQLite Integration and go Setting >> SQLite Integration >> Miscellaneous, and click the button &quot;update&quot; at the bottom of the page. Or else replace wp-content/db.php with the one in sqlite-integration directory manually.', 'sqlite-integration');
		$current_version = defined('SQLITE_INTEGRATION_VERSION') ? SQLITE_INTEGRATION_VERSION : '';
		if (version_compare($current_version, '1.8.1', '=')) return;
		$version = '';
		if (defined('WP_CONTENT_DIR')) {
			$path = WP_CONTENT_DIR . '/db.php';
		} else {
			$path = ABSPATH . 'wp-content/db.php';
		}
		if (!$file_handle = @fopen($path, 'r')) return;
		while (($buffer = fgets($file_handle)) !== false) {
			if (stripos($buffer, '@version') !== false) {
				$version = str_ireplace('*@version ', '', $buffer);
				$version = trim($version);
				break;
			}
		}
		fclose($file_handle);
		if (empty($version) || version_compare($version, $current_version, '<')) {
			echo '<div class="updated sqlite-notice" style="padding:10px;line-height:150%;font-size:12px"><span>'.$notice_string.'</span></div>';
		}
	}
public static function show_admin_notice ( ) { return ; $ notice_string = __ ( 'Upgrading Notice: To finish upgrading, please activate SQLite Integration and go Setting >> SQLite Integration >> Miscellaneous, and click the button &quot;update&quot; at the bottom of the page. Or else replace wp-content/db.php with the one in sqlite-integration directory manually.' , 'sqlite-integration' ) ; $ current_version = defined ( 'SQLITE_INTEGRATION_VERSION' ) ? SQLITE_INTEGRATION_VERSION : '' ; if ( version_compare ( $ current_version , '1.8.1' , '=' ) ) return ; $ version = '' ; if ( defined ( 'WP_CONTENT_DIR' ) ) { $ path = WP_CONTENT_DIR . '/db.php' ; } else { $ path = ABSPATH . 'wp-content/db.php' ; } if ( ! $ file_handle = @ fopen ( $ path , 'r' ) ) return ; while ( ( $ buffer = fgets ( $ file_handle ) ) !== false ) { if ( stripos ( $ buffer , '@version' ) !== false ) { $ version = str_ireplace ( '*@version ' , '' , $ buffer ) ; $ version = trim ( $ version ) ; break ; } } fclose ( $ file_handle ) ; if ( empty ( $ version ) || version_compare ( $ version , $ current_version , '<' ) ) { echo '<div class="updated sqlite-notice" style="padding:10px;line-height:150%;font-size:12px"><span>' . $ notice_string . '</span></div>' ; } }
Method to display update notice on the admin dashboard.
Method to display update notice on the admin dashboard .