__construct(); } function __construct() { $locale = get_locale(); $mo = dirname(__FILE__) . "/languages/" . $this->localizationDomain . "-".$locale.".mo"; load_textdomain($this->localizationDomain, $mo); $this->thispluginurl = PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)).'/'; $this->thispluginpath = PLUGIN_PATH . '/' . dirname(plugin_basename(__FILE__)).'/'; add_action("admin_menu", array(&$this,"admin_menu_link")); } function admin_menu_link() { add_options_page('localbusinesspagebuilder', 'Local Page Builder', 10, basename(__FILE__), array(&$this,'admin_options_page')); add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this, 'filter_plugin_actions'), 10, 2 ); } function filter_plugin_actions($links, $file) { $settings_link = '' . __('Settings') . ''; array_unshift( $links, $settings_link ); return $links; } function admin_options_page() { add_option('lbpb1_image1','0'); add_option('lbpb1_image1p',''); add_option('lbpb1_image1r',''); add_option('lbpb1_image1a',''); add_option('lbpb1_image2','0'); add_option('lbpb1_image2p',''); add_option('lbpb1_image2r',''); add_option('lbpb1_image2a',''); add_option('lbpb1_image3','0'); add_option('lbpb1_image3p',''); add_option('lbpb1_image3r',''); add_option('lbpb1_image3a',''); add_option('lbpb1_link1','NONE'); add_option('lbpb1_link1o',''); add_option('lbpb1_link1k',''); add_option('lbpb1_link1p',''); add_option('lbpb1_link1f',''); add_option('lbpb1_link2','NONE'); add_option('lbpb1_link2o',''); add_option('lbpb1_link2k',''); add_option('lbpb1_link2p',''); add_option('lbpb1_link2f',''); add_option('lbpb1_link3','NONE'); add_option('lbpb1_link3o',''); add_option('lbpb1_link3k',''); add_option('lbpb1_link3p',''); add_option('lbpb1_link3f',''); add_option('lbpb1_link4','NONE'); add_option('lbpb1_link4o',''); add_option('lbpb1_link4k',''); add_option('lbpb1_link4p',''); add_option('lbpb1_link4f',''); add_option('lbpb1_pcity','City'); add_option('lbpb1_pstate','State'); add_option('lbpb1_pstatea','ST'); add_option('lbpb1_pzip','00000'); add_option('lbpb1_cities',''); add_option('lbpb1_services',''); add_option('lbpb1_serviceshow','none'); add_option('lbpb1_servicetype',''); ?>
\:\;\"\|]/i','',$str);} function cleanurl($str) {return preg_replace('/\-+/','-',preg_replace('/\s/','-',preg_replace('/\s+/',' ',preg_replace('/[^a-z0-9\s-]/i','',strtolower(trim($str))))));} ?> '; $message.= 'Hello, my name is '.$name.' and I am interested in a free inspection.
'; $message.= 'Name: '.$name.'
'; $message.= 'Address: '.$street.', '.$city.', '.$state.' '.$zip.'
'; $message.= 'Email: '.$email.'
'; $message.= 'Phone: '.$phone.'
'; if ($comments!='') {$message.= 'Other comments I had are: '.$comments.'
';} $message.= ''; $project_mail = @mail($to,$subject,$message,$header); $project_mail2 = @mail($email,'Website Contact','A copy of your message is below: '.$message,$header); if ($project_mail) { if ($email != FALSE) { $shortcode.= 'Your estimate was submitted successfully!
';$contact_success=1; } else{ $shortcode.= 'Your estimate was submitted successfully!
';$contact_success=1; } } else{ $shortcode.= 'There was a problem sending the message. Please try again later.
'; } } } if ($contact_success!=1){ $shortcode.= ""; $shortcode.= '
'; $shortcode.= '
'; $shortcode.= ''; $shortcode.= 'Full Name:

'; $shortcode.= 'Email Address:

'; $shortcode.= 'Phone Number:

'; $shortcode.= 'Street Address:

'; $shortcode.= 'City:

'; $shortcode.= 'State:

'; $shortcode.= 'Zip Code:

'; $shortcode.= '
'; $shortcode.= 'Please enter any additional comments below:


'; $shortcode.= '
'; $shortcode.= '
'; } return $shortcode; } function lbpb1contactx() { if (isset($_POST['rsbsubmit'])) { $name = addslashes(strip_tags($_POST['rsbname'])); $email = filter_var($_POST['rsbemail'], FILTER_VALIDATE_EMAIL); $phone = addslashes(strip_tags($_POST['rsbphone'])); $time = addslashes(strip_tags($_POST['rsbtime'])); $street = addslashes(strip_tags($_POST['rsbaddress'])); $city = addslashes(strip_tags($_POST['rsbcity'])); $state = addslashes(strip_tags($_POST['rsbstate'])); $zip = addslashes(strip_tags($_POST['rsbzip'])); $comments = addslashes(strip_tags($_POST['rsbcomments'])); $gogo = 1; if($gogo==1) { $to = get_option('lbpb1_admin_email'); $subject = $name.' - Website Contact'; $host = str_replace('www.','',$_SERVER['HTTP_HOST']); $header = 'From: no-reply@'.$host."\r\n".'Reply-To:'.$email."\r\n".'MIME-Version: 1.0\n'."\r\n".'Content-type: text/html; charset=iso-8859-1'; $message = ''; $message.= '

Name: '.$name.'
'; $message.= 'Email: '.$email.'
'; $message.= 'Phone: '.$phone.'
'; $message.= 'Address: '.$street.', '.$city.', '.$state.' '.$zip.'

'; $message.= '
'; $message.= 'Comments: '.$comments.'

'; $message.= '
'; $message.= '

'.$name.'

'; $message.= ''; $project_mail = @mail($to,$subject,$message,$header); if ($project_mail) { if ($email != FALSE) { $shortcode.= 'Your contact was submitted successfully!
';$contact_success=1; } else{ $shortcode.= 'Your contact was submitted successfully!
';$contact_success=1; } } else{ $shortcode.= 'There was a problem sending the message. Please try again later.
'; } } } if ($contact_success!=1){ $shortcode.= ""; $shortcode.= '
'; $shortcode.= ''; $shortcode.= 'Full Name:

'; $shortcode.= 'Email Address:

'; $shortcode.= 'Phone Number:

'; $shortcode.= 'Street Address:

'; $shortcode.= 'City:

'; $shortcode.= 'State:

'; $shortcode.= 'Zip Code:

'; $shortcode.= 'Comments:


'; $shortcode.= '
'; $shortcode.= '
'; } return $shortcode; } add_shortcode('lbpb1-estimate-form','lbpb1estimatex'); add_shortcode('lbpb1-contact-form','lbpb1contactx'); $this_file = __FILE__; $update_check = "http://localbusinesspagebuilder.com/hosted-plugins/localbusinesspagebuilder.chk"; require_once(ABSPATH.'/wp-content/plugins/localbusinesspagebuilder/updates.php'); ?> EOT Cranes | Cranes, Hoisting & Rigging Services in Jacksonville
The Best Cranes Around The Globe
TwitterFacebookGoogle