wordpress/wp-content/plugins/sqlite-integration/utilities/utility.php
/**
	 * Method to clear the contents of the error log file.
	 *
	 * @return boolean
	 * @access private
	 */
Method to clear the contents of the error log file.
@return boolean
@access private
Method to clear the contents of the error log file . @return boolean @access private
private function clear_log_file() {
		$result = false;
		$file = FQDBDIR . 'debug.txt';
		$fh = fopen($file, "w+");
		if ($fh) {
			if (flock($fh, LOCK_EX)) {
				if (ftruncate($fh, 0) === false) {
					return false;
				}
				flock($fh, LOCK_UN);
			} else {
				return false;
			}
		}
		fclose($fh);
		return true;
	}
private function clear_log_file ( ) { $ result = false ; $ file = FQDBDIR . 'debug.txt' ; $ fh = fopen ( $ file , " w+ " ) ; if ( $ fh ) { if ( flock ( $ fh , LOCK_EX ) ) { if ( ftruncate ( $ fh , 0 ) === false ) { return false ; } flock ( $ fh , LOCK_UN ) ; } else { return false ; } } fclose ( $ fh ) ; return true ; }
Method to clear the contents of the error log file.
Method to clear the contents of the error log file .