Private
Server IP : 192.124.249.33  /  Your IP : 66.248.200.33
Web Server : Apache
System : Linux 141.134.66.148.host.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els6.x86_64 #1 SMP Fri Sep 13 13:42:20 UTC 2024 x86_64
User : tarangglobal ( 1001)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tarangglobal/public_html/cyber/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/tarangglobal/public_html/cyber/enquiry_widget.php
<script src="https://www.tarangglobal.com/cyber/admin/scripts/jquery.min.js" type="text/javascript"></script>
<?php require_once('pdoconfig.php');
$usr=$_SESSION['poster_id'];
if(isset($_SESSION['poster_id'])){
$sql="select * from aa_user_master where usr_id=$usr";
$res=$action->select($sql);
foreach($res as $id=>$row)
{
$name=$row['name'];
$email=$row['email'];
$cntct=$row['contact'];
}
}

?>
<form method="post" action="https://www.tarangglobal.com/cyber/enquiry_save.php">


<input type="hidden" value="<?=$usr_id;?>" name="usr">
    
<div class="col-md-12" style="margin-bottom:5px;">
<label>Course Name</label><select class="form-control" name="cat" onchange="city_val(this.value)" id="state">
<option value="-1">-- Select Course --</option>
<?php 
$sql1="select * from aa_course_master";
$res= $action->select($sql1);
foreach ($res as $id=>$row){
$catt=$row['crs_name'];
?>
<option value="<?=$row['crs_id'];?>" <?php if($row['crs_id']==$catname) echo "Selected";?>><?=$row['crs_name'];?></option>
<?php } ?>
</select>
</div>
<div class="col-md-12" style="margin-bottom:10px;"><label>Name</label><input class="form-control" type="text" name="name" value="" id="user_mail" placeholder="Please Enter Your Name *" required="required" data-error="Name is required."></div>
<div class="help-block with-errors"></div>

<div class="col-md-12" style="margin-bottom:10px;">
<label>Email</label><input class="form-control" type="text" name="email" value="" id="user_mail" placeholder="Please Enter Your Email *" required="required" data-error="Valid email is required."></div>

<div class="col-md-12" style="margin-bottom:10px;">
<label>Contact no.</label><input class="form-control" type="text" name="contact" value="" id="user_mail" placeholder="Please Enter Your Contact No."></div>

<div class="col-md-12" style="margin-bottom:10px;">
<label>Subject</label><input class="form-control" type="text" name="subject" value="" id="user_mail" placeholder="Please Enter Subject"></div>

<div class="col-md-12" style="margin-bottom:10px;">
<label>Remarks</label><input type="text" class="form-control" name="enquiry" placeholder="Please Enter Your Remarks"/></div>
<div class="form-group col-md-5" style="margin-bottom:10px;">
<label>Enter the contents of image</label><input id="c_captcha" class="form-control" maxlength="6" name="captcha" size="6" type="text" />
</div>
<div class="form-group col-md-7" style="margin-bottom:10px;margin-top:10px;text-align:left;padding-top:15px;">
    <img id="captchaimg2" src="http://www.tarangglobal.com/cyber/captcha.php"><img id="refimg2" onclick="reload1()" src="http://www.tarangglobal.com/wp/images/clear-refresh.png" style="width: 25px; margin-left: 10px;">
</div>	
<div class="col-md-12" style="text-align:center;margin-top:10px;"><input type="hidden" id="usr_type" name="poster_id" value="<?=$poster_id;?>">
<input style="margin:0px;" class="btn btn-second transform-default color-text-white color-hover-white align-left vc_custom_1540987656630" type="button" onclick="c_chk()" id="save" name="submit1" value="Submit" /></div>
</form>
</div>



<script>
function reload1()
{ 
    //alert('hello');
	$('#refimg2').attr('src','http://www.tarangglobal.com/wp/images/loader.gif');
	$('#captchaimg2').attr('src','http://www.tarangglobal.com/cyber/captcha.php');
	$('#refimg2').attr('src','http://www.tarangglobal.com/wp/images/clear-refresh.png');
}
     
function c_chk(){
	$.get("http://www.tarangglobal.com/cyber/save.php", function(data){
	//alert("hello");
	var c_name = $('#email').val();
    var c_pwd = $('#pwd').val();	
	var c_captcha = $('#c_captcha').val();	
	
//user name
/*		if( c_name.length == 0){
            err_c_name=false;
            alert('Please fill user name'); return false;
        }
	   else{
            err_c_name=true;
        }*/

//pwd
		/*if( c_pwd.length == 0){
            err_c_pwd=false;
            alert('Please fill password'); return false;
        }
	   else{
            err_c_pwd=true;
        }*/

//cpatcha        
        
		if(data.trim()==c_captcha){
			captach_flag=true;
		}
		else{
			captach_flag=false;
		}        
 		if( c_captcha.length == 0){
            err_cap_c=false;
            alert('Captcha must be filled'); return false;
        }
        else if(data.trim()!=c_captcha)
        {
            err_cap_c=false;
            alert('Captcha mismatch');  return false;          
        }
        else{
        	if (captach_flag)
            err_cap_c=true;
        }
        if(captach_flag){
            document.c_theForm.submit();              
		}
        return false;
	});       			
}        
</script>


Private