403Webshell
Server IP : 152.53.162.115  /  Your IP : 216.73.217.85
Web Server : Apache/2
System : Linux host 6.12.0-55.40.1.el10_0.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 21 05:54:51 EDT 2025 x86_64
User : pbshosting ( 1005)
PHP Version : 8.3.30
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/pbshosting/domains/mangopeellive.com/public_html/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/pbshosting/domains/mangopeellive.com/public_html/js/contact.js
(function($) { "use strict";

	function Selector_Cache() {
		var collection = {};

		function get_from_cache( selector ) {
			if ( undefined === collection[ selector ] ) {
				collection[ selector ] = $( selector );
			}

			return collection[ selector ];
		}

		return { get: get_from_cache };
	}

	var selectors = new Selector_Cache();
	
		jQuery(document).ready(function ($) { // wait until the document is ready
			$('#send').on('click', function(){ // when the button is clicked the code executes
				$('.error').fadeOut('slow'); // reset the error messages (hides them)

				var error = false; // we will set this true if the form isn't valid

				var name = $('input#name').val(); // get the value of the input field
				if(name == "" || name == " ") {
					$('#err-name').fadeIn('slow'); // show the error message
					error = true; // change the error state to true
				}

				var email_compare = /^([a-z0-9_.-]+)@([da-z.-]+).([a-z.]{2,6})$/; // Syntax to compare against input
				var email = $('input#email').val(); // get the value of the input field
				if (email == "" || email == " ") { // check if the field is empty
					$('#err-email').fadeIn('slow'); // error - empty
					error = true;
				}else if (!email_compare.test(email)) { // if it's not empty check the format against our email_compare variable
					$('#err-emailvld').fadeIn('slow'); // error - not right format
					error = true;
				}

				if(error == true) {
					$('#err-form').slideDown('slow');
					return false;
				}

				var data_string = $('#ajax-form').serialize(); // Collect data from form

				$.ajax({
					type: "POST",
					url: $('#ajax-form').attr('action'),
					data: data_string,
					timeout: 6000,
					error: function(request,error) {
						if (error == "timeout") {
							$('#err-timedout').slideDown('slow');
						}
						else {
							$('#err-state').slideDown('slow');
							$("#err-state").html('An error occurred: ' + error + '');
						}
					},
					success: function() {
						$('#ajax-form').slideUp('slow');
						$('#ajaxsuccess').slideDown('slow');
					}
				});

				return false; // stops user browser being directed to the php file
			}); // end click function
		});
		
  })(jQuery); 

Youez - 2016 - github.com/yon3zu
LinuXploit