Server Name:Linux webbox5.ncrdns.net 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64 | |
User :conflictreader (1363) Group : conflictreader (1367) | |
Server IP :103.104.73.69 [BING] [Dossier] | Port : 443 | Your IP: 3.135.183.190 | |
Server Type : unknown | Website : ?? Domains | |
Safe Mode: OFF | |
Disable Functions:NONE | |
Server Software: LiteSpeed [Exploit DB] | |
Directory : /home2/conflictreader/public_html/ | |
Filename : subscribe.php [ view ] [ edit ] [ rename ] [ download ] [ delete ]
<?php
require('includes/application_top.php');
?>
<? include('header.php');?>
<div class="container-fluid">
<div class="container">
<div class="col-sm-12 reviews-wrap ">
<h3><span>Subscribe Here For Conflict Weekly</span></h3>
<div class="col-sm-12">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="css/style.css">
<script>
$(document).ready(function(){
$('#subscribeBtn').on('click', function(){
// Remove previous status message
$('.status').html('');
// Email and name regex
var regEmail = /^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
var regName = /^[a-zA-Z]+ [a-zA-Z]+$/;
// Get input values
var name = $('#name').val();
var email = $('#email').val();
// Validate input fields
if(name.trim() == '' ){
alert('Please enter your name.');
$('#name').focus();
return false;
}else if (!regName.test(name)){
alert('Please enter a valid name (first & last name).');
$('#name').focus();
return false;
}else if(email.trim() == '' ){
alert('Please enter your email.');
$('#email').focus();
return false;
}else if(email.trim() != '' && !regEmail.test(email)){
alert('Please enter a valid email.');
$('#email').focus();
return false;
}else{
// Post subscription form via Ajax
$.ajax({
type:'POST',
url:'subscription.php',
dataType: "json",
data:{subscribe:1,name:name,email:email},
beforeSend: function () {
$('#subscribeBtn').attr("disabled", "disabled");
$('.content-frm').css('opacity', '.5');
},
success:function(data){
if(data.status == 'ok'){
$('#subsFrm')[0].reset();
$('.status').html('<p class="success">'+data.msg+'</p>');
}else{
$('.status').html('<p class="error">'+data.msg+'</p>');
}
$('#subscribeBtn').removeAttr("disabled");
$('.content-frm').css('opacity', '');
}
});
}
});
});
$(document).ajaxSuccess(function(){
alert("AJAX request successfully completed");
});
</script>
<!-- Display form submission status -->
<table width="50%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td style="text-align:justify;"><font color="red"> <span class="status"></span></font>
<form action="subscription.php" id="subsFrm" method="post">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="0" >
<tr>
<td width="50%">Full Name<font color="#FF0000">*</font> : </td>
<td width="50%"><input type="text" id="name" size="30" placeholder="Full Name" required="" maxlength="100" value=""></td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
<td width="50%">Email<font color="#FF0000">*</font> : </td>
<td width="50%"><input type="email" id="email" size="30" placeholder="E-mail" required="" maxlength="100" /></td>
</tr>
<tr>
<td colspan="2" height="15"></td>
</tr>
<tr>
<td colspan="2" align="center" ><input type="submit" id="subscribeBtn" value="Subscribe Now">
</td>
</tr>
<tr>
<td colspan="2" height="15"></td>
</tr>
<tr>
<td colspan="2" height="100"><img src="CR-Subscribe-Note.jpg"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<? include('footer.php');?>