403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.231
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/js/core.js
$(function(){
	$('input[title!=""]').hint();
	
	$(".article_body a.fancybox, .mod_photos a, .module a.fancybox").fancybox({type:"image", openEffect:"elastic", closeEffect:"elastic", openOpacity: true, helpers:{overlay:{opacity:0.6}}});	
	
	$(".print_icon a").click(function(e){
		e.preventDefault();
		var autoPrint = true;
		
		var html = '<html>\n<head>\n' + $("head").html();
		html += '\n<link rel="stylesheet" type="text/css" href="css/print.css" />';
		html += '\n</head>\n<body>';
		html += '\n<div class="article">\n' + $(".article").html() + '\n</div>\n';			
		html += '\n</body>\n</html>';
		
		var printWin = window.open("","printFrendly",'toolbar=0,scrollbars=1,statusbar=0,menubar=0,resizable=1,width=660,height=600');
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		
		if (autoPrint)
			printWin.print();
	});

	$(".email_icon a").click(function(e){
		e.preventDefault();

		$.fancybox($("#article_mailto"),{padding: 30, helpers:{overlay:{opacity: 0.6, closeClick: false}}});
	});

	$("input.article_mailto_send").click(function(e){
		e.preventDefault();

		var allok = true;
		var emailok = true;
		
		$("#article_mailto_form").find("input.required").each(function(){
			if ($(this).val()=="")
			{
				$(this).addClass("error");
				allok = false;
			}
			else if ($(this).hasClass("email"))
			{
				$(this).removeClass("error");

				if (checkEmail($(this).val())!=true)
				{
					$(this).addClass("error");
					emailok = false;
				}
			}
			else
			{
				$(this).removeClass("error");
			}
		});
		
		if (allok==true)
		{
			if (emailok==true)
			{
				$.post("index.php?article_mailto_send=1", $("#article_mailto_form").serializeArray(), function(responseText){
					var response_status = $(responseText).find('#response_status').text();
					var response_text = $(responseText).find('#response_text').text();

					if (response_status == 1)
					{
						$("#article_mailto").html('<p class="success">'+response_text+'</p>');
					}
					else
					{
						$("#article_mailto").html('<p class="error">'+response_text+'</p>');
					}
				});		
			}
			else
			{
				alert("Please give a valid email");
			}
		}
		else
		{
			alert("All fields are required");
		}
	});

	$("input.article_mailto_cancel").click(function(e){
		e.preventDefault();
		parent.$.fancybox.close();
	});

	$(".mod_newsletter input[name=submit]").click(function(e){
		e.preventDefault();
		
		var form = $(this).parents("form");
		
		form.find("input[type=text]").each(function(){
			if ($(this).val()==$(this).attr("title"))
			{
				$(this).val("");
			}
		});
		
		$.post(form.attr("action"), form.serializeArray(), function(responseText){
			var response_text = $(responseText).find('.article_body p:first-child').text();

			$.fancybox('<div style="max-width: 500px; padding: 20px; line-height: 1.5;">'+response_text+'</div>',{padding: 0, helpers:{overlay:{opacity: 0.6, closeClick: true}}});

			form.find("input[name=form_id]").val(genRandomString(10));
		});

		form.find("input[type=text]").each(function(){
			if ($(this).val()=="")
			{
				$(this).val($(this).attr("title")).addClass('blur');
			}
		});
	});

	$("#comments_form input, #comments_form textarea").keyup(function(){
		$(this).removeClass("error_field");
		$(this).parent("div").find("p.error_txt").remove();
	});

	$("#comments_form #comment").keyup(function(){
		$("#comments_form .chars_left strong").text($(this).attr("maxlength")-$(this).val().length);
	});

	$(".comment_reply").click(function(e){
		e.preventDefault();
		$("#replyto strong").text($(this).attr("data-replytoauthor"));
		$("#replyto").show(300);
		$("html, body").animate({ scrollTop: $('#comments_post').offset().top }, 500);
		$("#comments_form #parent_id").val($(this).attr("data-replyto"));		
	});

	$("#replyto_cancel").click(function(e){
		e.preventDefault();
		$("#comments_form #parent_id").val("0");		
		$("#replyto").hide(300);
	});
});

function checkEmail(email)
{
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if (reg.test(email) == true)
	{
		return true;
	}
	else
	{
		return false;
	}
}

function genRandomString(length)
{
	var characters = "0123456789abcdefghijklmnopqrstuvwxyz";
	var string = "";
	
	if (length=="")
	{
		length = 10;
	}

	for (p = 0; p < length; p++) {
		string = string + characters.charAt(Math.floor((Math.random()*characters.length)));
	}

	return string;
}

function checkRegistrationForm(form, action)
{
	for(i=0; i < form.elements.length; i++)
	{
		form.elements[i].className = form.elements[i].className.replace(" error_field","");
	}	
	
	if (form.fullname.value == '')
	{
		alert("Παρακαλώ δώστε το Ονοματεπώνυμό σας");
		form.fullname.focus();
		form.fullname.className += " error_field";
		return false;
	}

	if (form.username.value == '' && action == 'registration')
	{
		alert("Παρακαλώ δώστε το Username");
		form.username.focus();
		form.username.className += " error_field";
		return false;
	}
	
	if (form.password.value == '' && action == 'registration')
	{
		alert("Παρακαλώ δώστε το Password");
		form.password.focus();
		form.password.className += " error_field";
		return false;
	}

	if (form.password2.value == '' && action == 'registration')
	{
		alert("Παρακαλώ επιβεβαιώστε το Password");
		form.password2.focus();
		form.password2.className += " error_field";
		return false;
	}

	if (form.password.value != form.password2.value)
	{
		alert("Λάθος Password επιβεβαίωσης");
		form.password2.focus();
		form.password2.className += " error_field";
		return false;
	}

	if (form.email.value == '')
	{
		alert("Παρακαλώ δώστε το Email");
		form.email.focus();
		form.email.className += " error_field";
		return false;
	}

	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	if (reg.test(form.email.value) == false)
	{
		alert('Το email δεν είναι έγκυρο');
		form.email.focus();
		form.email.className += " error_field";
		return false;
	}
	
	return true;
}

function checkContactForm(form)
{
	for(i=0; i < form.elements.length; i++)
	{
		form.elements[i].className = form.elements[i].className.replace(" error_field","");
	}
	
	if (form.contact_fullname.value == '')
	{
		alert("Παρακαλώ δώστε το Ονοματεπώνυμό σας");
		form.contact_fullname.focus();
		form.contact_fullname.className += " error_field";
		return false;
	}

	if (form.contact_email.value == '')
	{
		alert("Παρακαλώ δώστε το Email");
		form.contact_email.focus();
		form.contact_email.className += " error_field";
		return false;
	}

	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	if (reg.test(form.contact_email.value) == false)
	{
		alert('Το email δεν είναι έγκυρο');
		form.contact_email.focus();
		form.contact_email.className += " error_field";
		return false;
	}

	if (form.contact_msg.value == '')
	{
		alert("Παρακαλώ συμπληρώστε το μήνυμά σας");
		form.contact_msg.focus();
		form.contact_msg.className += " error_field";
		return false;
	}
	
	return true;
}

Youez - 2016 - github.com/yon3zu
LinuXploit