UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
add_video.php
<?php include "top.php";?> <script type="text/javascript"> $(document).ready(function() { var id = getUrlVars()['id']; var op = getUrlVars()['op']; if (id != "") { $.ajax({ method: 'POST', url: 'get_video.php', data: '&id=' + id, dataType: "JSON", success: function(data) { $('#hdid').val(data.hdid); $('#title').val(data.title); $('#iframe').val(data.iframe); if (op == "Update") { $('#pageheading').text("Edit Video"); $('#pageheading1').text("Edit Video Title"); $('#btnopration').text("Update"); document.getElementById("title").focus(); document.getElementById("iframe").focus(); } else if (op == "Delete") { $('#pageheading').text("Delete Video"); $('#pageheading1').text("Delete Video Title"); $('#btnopration').text("Delete"); document.getElementById("title").setAttribute('disabled', true); document.getElementById("iframe").setAttribute('disabled', true); } } }); } }); function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } function savevideo() { var flag = true; var inputField1 = document.getElementById("title"); if (inputField1.value == "") { flag = false; alert("Please enter video title"); document.getElementById("title").focus(); return false; } var title = document.getElementById("title").value; var iframe = document.getElementById("iframe").value; var hdid = document.getElementById("hdid").value; var btnopration = document.getElementById("btnopration").innerHTML; var text = "Do you want " + btnopration + " video"; if (confirm(text) == false) { flag = false; return false; } try { if (flag == true) { var urlgetcode = 'manage_video.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&title=' + title + '&iframe=' + iframe + '&hdid=' + hdid + '&btnopration=' + btnopration, dataType: 'json', async: true, cache: false, success: function(msg) { if (msg == "1") { alert("Save Successfully"); $('#hdid').val(""); $('#title').val(""); $('#iframe').val(""); $('#btnopration').text("Save"); window.location.href = "list_video.php"; } else if (msg == "2") { alert("Already Exist"); $('#hdid').val(""); $('#title').val(""); $('#iframe').val(""); $('#btnopration').text("Save"); window.location.href = "list_video.php"; } else if (msg == "3") { alert("Update Successfully"); $('#hdid').val(""); $('#title').val(""); $('#iframe').val(""); $('#btnopration').text("Save"); window.location.href = "list_video.php"; } else if (msg == "4") { alert("Delete Successfully"); $('#hdid').val(""); $('#title').val(""); $('#iframe').val(""); $('#btnopration').text("Save"); window.location.href = "list_video.php"; } }, error: function(request) { alert(request.responseText); } }); } } catch (Error) { alert(Error); } return; } </script> <div id="page-wrapper" class="gray-bg dashbard-1"> <div class="content-main"> <!--banner--> <div class="banner"> <table width="100%"> <tr> <td width="50%"><b><label name="pageheading" id="pageheading">Add Video</label></b></td> <td width="50%" align="right"><a class="btn btn-default" href="list_video.php">Video List</a></td> </tr> </table> </div> <!--//banner--> <!--grid--> <div class=" profile"> <div class="profile-bottom"> <h3><i class="fa fa-edit"></i><label name="pageheading1" id="pageheading1" class="control-label">Add Video Title</label></h3> <div class="col-md-12 form-group1 group-mail"> <input type="hidden" class="form-control1" name="hdid" id="hdid"> <label class="control-label">Video Title</label> <input type="text" class="form-control1" id="title" name="title" placeholder="Video Title"> </div> <div class="clearfix"> </div> <div class="col-md-12 form-group1 group-mail"> <input type="hidden" class="form-control1" name="hdid" id="hdid"> <label for="statename" class="control-label">Video Iframe</label> <input type="text" class="form-control1" id="iframe" name="iframe" placeholder="Video Iframe"> </div> <div class="clearfix"> </div> <div class="col-md-12 form-group"> <button type="submit" id="btnopration" class="btn btn-default" onclick="savevideo();">Save</button> </div> <div class="clearfix"> </div> </div> </div> <!--//grid--> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec