<?php/*Plugin Name: RentalbookingPlugin URI: http://www.webomaze.com/Description: Rentalbooking FormVersion:1.0Author:Amit SharmaAuthor URI: http://www.webomaze.com/*///remove_action('load-update-core.php','wp_update_plugins');//add_filter('pre_site_transient_update_plugins','__return_null');//Register the main menu name “buffercode_menu”add_action( 'admin_menu', 'Conatctform');//adding menu menu in wordpress admin panelinclude('wp-config.php');function Conatctform() {add_menu_page( 'Conatctform plugin page', 'Conatctform settings','manage_options', __FILE__,'Conatctform3');add_submenu_page( __FILE__, 'Add New Form','Add New Form', 'manage_options',__FILE__.'_menu1', Conatctform1 );add_submenu_page( __FILE__, 'All Form','All Form', 'manage_options',__FILE__.'_menu2', Conatctform2 );}function Conatctform2() {echo '<div class="wrap">';echo "Details of all form";echo '</div>';}function Conatctform1() {	echo '<div class="wrap">';	echo '<p>Here is Conatctform please submit all field</p>';	      echo ' <h1>DisplayValue</h1>';	 	echo '<input type="text" name="n1">';			 echo '<input type="submit" name="s1" value="Submit">' ; 		echo '</div>';}if ( isset( $_POST['cf-submitted'] ) ) {		$name= $_POST['cf-name'];	$email= $_POST['cf-email'];	$subject=$_POST['cf-subject'];	$message=$_POST['cf-message'];			global $wpdb;    $wpdb->query("INSERT INTO new (name, email, subject, message) VALUES ('$name', '$email', '$subject', '$message')"  );}function con_form() {	echo '<form action="' . esc_url( $_SERVER['REQUEST_URI'] ) . '" method="post">';	echo '<p>';	echo 'Your Name <br/>';	echo '<input type="text" name="cf-name" pattern="[a-zA-Z0-9 ]+"  size="40" required />';	echo '</p>';	echo '<p>';	echo 'Your Email <br/>';	echo '<input type="email" name="cf-email" size="40" required />';	echo '</p>';	echo '<p>';	echo 'Subject <br/>';	echo '<input type="text" name="cf-subject"  size="40" required />';	echo '</p>';	echo '<p>';	echo 'Your Message <br/>';	echo '<textarea rows="10" cols="35" name="cf-message">' ; 	echo '</textarea>';	echo '</p>';	echo '<p><input type="submit" name="cf-submitted" value="Send"></p>';	echo '</form>';}function deliver_mail() {	// if the submit button is clicked, send the email	if ( isset( $_POST['cf-submitted'] ) ) {		// sanitize form values		$name    = sanitize_text_field( $_POST["cf-name"] );		$email   = sanitize_email( $_POST["cf-email"] );		$subject = sanitize_text_field( $_POST["cf-subject"] );		$message = esc_textarea( $_POST["cf-message"] );				$to = get_option( 'admin_email' );		$headers = "From: $name <$email>" . "\r\n";				$body = "Name: $name\n E-Mail: $email\n Subject: $subject\n Message:\n $message";		// If email has been process for sending, display a success message		if ( wp_mail( $to, $message, $body, $headers ) ) {			echo '<div>';			echo '<p>Thanks for contacting me.</p>';			echo '</div>';		} else {			echo 'An unexpected error occurred';		}	}}function cf_shortcode() {	ob_start();	deliver_mail();	con_form();	return ob_get_clean();}add_shortcode( 'rentalbooking', 'cf_shortcode' );?><?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//montemeuble-lyonnais-demenagement.fr/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://montemeuble-lyonnais-demenagement.fr/post-sitemap.xml</loc>
		<lastmod>2022-11-27T22:16:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://montemeuble-lyonnais-demenagement.fr/page-sitemap.xml</loc>
		<lastmod>2021-12-13T10:32:16+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://montemeuble-lyonnais-demenagement.fr/category-sitemap.xml</loc>
		<lastmod>2022-11-27T22:16:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://montemeuble-lyonnais-demenagement.fr/author-sitemap.xml</loc>
		<lastmod>2021-11-29T15:59:16+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->