wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * This method makes database direcotry and .htaccess file.
	 *
	 * It is executed only once when the installation begins.
	 */
This method makes database direcotry and .htaccess file.
It is executed only once when the installation begins.
This method makes database direcotry and . htaccess file . It is executed only once when the installation begins .
private function prepare_directory() {
		global $wpdb;
		$u = umask(0000);
		if (!is_dir(FQDBDIR)) {
			if (!@mkdir(FQDBDIR, 0704, true)) {
				umask($u);
				$message = 'Unable to create the required directory! Please check your server settings.';
				wp_die($message, 'Error!');
			}
		}
		if (!is_writable(FQDBDIR)) {
			umask($u);
			$message = 'Unable to create a file in the directory! Please check your server settings.';
			wp_die($message, 'Error!');
		}
		if (!is_file(FQDBDIR . '.htaccess')) {
			$fh = fopen(FQDBDIR . '.htaccess', "w");
			if (!$fh) {
				umask($u);
				$message = 'Unable to create a file in the directory! Please check your server settings.';
				echo $message;
				return false;
			}
			fwrite($fh, 'DENY FROM ALL');
			fclose($fh);
		}
		if (!is_file(FQDBDIR . 'index.php')) {
			$fh = fopen(FQDBDIR . 'index.php', "w");
			if (!$fh) {
				umask($u);
				$message = 'Unable to create a file in the directory! Please check your server settings.';
				echo $message;
				return false;
			}
			fwrite($fh, '<?php // Silence is gold. ?>');
			fclose($fh);
		}
		umask($u);
		return true;
	}
private function prepare_directory ( ) { global $ wpdb ; $ u = umask ( 0000 ) ; if ( ! is_dir ( FQDBDIR ) ) { if ( ! @ mkdir ( FQDBDIR , 0704 , true ) ) { umask ( $ u ) ; $ message = 'Unable to create the required directory! Please check your server settings.' ; wp_die ( $ message , 'Error!' ) ; } } if ( ! is_writable ( FQDBDIR ) ) { umask ( $ u ) ; $ message = 'Unable to create a file in the directory! Please check your server settings.' ; wp_die ( $ message , 'Error!' ) ; } if ( ! is_file ( FQDBDIR . '.htaccess' ) ) { $ fh = fopen ( FQDBDIR . '.htaccess' , " w " ) ; if ( ! $ fh ) { umask ( $ u ) ; $ message = 'Unable to create a file in the directory! Please check your server settings.' ; echo $ message ; return false ; } fwrite ( $ fh , 'DENY FROM ALL' ) ; fclose ( $ fh ) ; } if ( ! is_file ( FQDBDIR . 'index.php' ) ) { $ fh = fopen ( FQDBDIR . 'index.php' , " w " ) ; if ( ! $ fh ) { umask ( $ u ) ; $ message = 'Unable to create a file in the directory! Please check your server settings.' ; echo $ message ; return false ; } fwrite ( $ fh , '<?php // Silence is gold. ?>' ) ; fclose ( $ fh ) ; } umask ( $ u ) ; return true ; }
This method makes database direcotry and .htaccess file.
This method makes database direcotry and . htaccess file .