CasperSecurity

Current Path : /var/www/uim.org.in/admin/
Upload File :
Current File : /var/www/uim.org.in/admin/mng_contact_us.php

<?php
include("../includes/connection.php");
if (!isset($_SESSION['id'])):
    header("location:index.php");
endif;

$page1	= "contact";


$content  = $_POST['city_content'];

$heading=$_POST['colg_content'];
$address=$_POST['conct_content'];
$email=$_POST['email'];
$maplink=$_POST['maplink'];
$contact_num=$_POST['contact_num'];
$contact_num_exam=$_POST['contact_num_exam'];
$contact_num_princ=$_POST['contact_num_princ'];

$stage = $_POST['stage'];



if ($stage == 2) {

	$bannersql 	= db_query("SELECT * FROM contact_section");
	$bannerrow 	= mysqli_num_rows($bannersql);
	if($bannerrow > 0){
		$sql2="update contact_section set city_address='".$content."', colleg_address='".$heading."', contact_person='".$address."', email='".$email."', maplink='".$maplink."', contact_num='".$contact_num."', contact_num_exam='".$contact_num_exam."', contact_num_princ='".$contact_num_princ."' where id='1'";
		

		$result2 = db_query($sql2);
		//include('pagemanipulate.php');
	}else{
		$sql = "INSERT INTO `contact_section`(`city_address`, `colleg_address`, `contact_person`, `email`, `maplink`) VALUES ('$content','$heading','$address','$email','$maplink')";

		db_query($sql);
	}
	//include('pagemanipulate.php');
    $msg = "Content Added Successfully.";
    setcookie("msg", $msg, time() + 3);
    print "<script>";
    print "self.location = 'mng_contact_us.php';";
    print "</script>";
    exit;
}
// print_r($sql);

/*SELECT BANNER*/

$sql="SELECT * FROM contact_section";
            
$result = db_query($sql);
               
$row = $result->fetch_assoc();

// print_r($row['page_image']);
// die();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include("css.php"); ?>
<script src="tinymce/tinymce.min.js" referrerpolicy="origin"></script>

<script>
      tinymce.init({
		selector: '#buyers,#sellers,#content',
		height: 300,
	plugins: 'print preview paste importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern noneditable help charmap emoticons',
	menubar: 'file edit view insert format tools table help',
	toolbar: 'undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent |  numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen  preview save print | insertfile image media template link anchor codesample | ltr rtl',
  toolbar_sticky: false,
  image_advtab: true,
	external_filemanager_path:"filemanager/",
   filemanager_title:"Filemanager" ,
   external_plugins: { "filemanager" : "../filemanager/plugin.min.js"},
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//www.tiny.cloud/css/codepen.min.css'
  ],
  extended_valid_elements: 'span[class=]',
  importcss_append: false,

});

function chnageLang(val){
	self.location = 'mng_motivation_section.php';
}


</script>
</head>
<body class="sidebar-pinned">
<?php include("left.php") ?>
<main class="admin-main">
<!--site header begins-->
<?php include("admin_header.php");?>
<!--site header ends -->
    <section class="admin-content ">
        <div class="bg-dark">
            <div class="container  m-b-30">
                <div class="row">
                    <div class="col-12 text-white p-t-40 p-b-90">

                        <h4 class="">Manage Contact Form Section</h4>
                        <p class="opacity-75 "></p>


                    </div>
                </div>
            </div>
        </div>
		
		<div class="container  pull-up">

            <div class="row" style="margin: 0 auto; width:100%; align-items: center;
  justify-content: center;">
  
			<!--message-->
			<?php if ($_COOKIE['msg']) { ?>
				<div class="clearfix"></div>
				<div class="col-lg-8">				
				<div class="alert alert-success">
					<a href="#" class="close" data-dismiss="alert" onClick="$('.alert').hide('slow');">&times;</a>
					<?php print str_replace("+", " ", $_COOKIE['msg']); ?>
				</div>
				</div>
			<?php } ?>
			<!--message-->
			
                <div class="col-lg-12">
				<div class="card m-b-30">
                        <div class="card-header">
                            <h5 class="m-b-0">
 
                            </h5>
                            <p class="m-b-0 text-muted">
                                 
                            </p>
                        </div>
							<form method="POST" name="cms" action="" enctype="multipart/form-data">
						<input type="hidden" name="stage" value="2">
						<input type="hidden" name="recaptchaResponse" id="recaptchaResponse">
                        <div class="card-body ">
				
							
							<div class="form-row m-b-30">
							<label for="username">College Address</label>
							 <textarea class="form-control" id="content" name="city_content" ><?php print $row['city_address'];?></textarea>
                            </div>

                            <div class="form-row m-b-30">
							<label for="buyers">City Office Address</label>
                            <textarea class="form-control" name="colg_content" id="content" ><?php print $row['colleg_address'];?></textarea>
                            </div>
							 <div class="form-row m-b-30">
							<label for="username">Contact Person</label>
                        <textarea class="form-control" name="conct_content" id="content" ><?php print $row['contact_person'];?></textarea>
						 </div>
						<div class="form-row m-b-30">
							<label for="username">Email</label>
							<input type="text" class="form-control" value="<?php print $row['email'];?>" name="email" >
						 </div>
						  <div class="form-row m-b-30">
							<label for="buyers">Map Link</label>
                            <textarea class="form-control" name="maplink" ><?php print $row['maplink'];?></textarea>
                            </div>
							
							 <div class="form-row m-b-30">
							<label for="username">Admission Number</label>
                        
													<input type="text" class="form-control" value="<?php print $row['contact_num'];?>" name="contact_num" >

						 </div>
						 <div class="form-row m-b-30">
							<label for="username">Examination Number</label>
                        
													<input type="text" class="form-control" value="<?php print $row['contact_num'];?>" name="contact_num_exam" >

						 </div>
						 <div class="form-row m-b-30">
							<label for="username">Principal Number</label>
                        
													<input type="text" class="form-control" value="<?php print $row['contact_num'];?>" name="contact_num_princ" >

						 </div>
                            </div>

                            <div class="buttoncls" style="margin-top: 20px;">
                                <button type="submit" class="btn btn-primary">Submit</button>
                            </div>
                        </div>
						</form>
                    </div>
				</div>
			</div>
		</div>
		
    </section>
</main>

<?php include("js.php"); ?>

<!--Additional Page includes-->
<script src="assets/vendor/apexchart/apexcharts.min.js"></script>
<!--chart data for current dashboard-->
<script src="assets/js/dashboard-01.js" type="text/javascript"></script>

<script>
grecaptcha.ready(function () {
	grecaptcha.execute('<?php print $sitekey; ?>',{action:'login'}).then(function(token){
		var recaptchaResponse = document.getElementById('recaptchaResponse');
		recaptchaResponse.value = token;
	});
});
</script>
</body>
</html>
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY