Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php require('../top.php'); $id = $_POST['id']; $type = trim($_POST['type']); ..
Decoded Output download
<?php
require('../top.php');
$id = $_POST['id'];
$type = trim($_POST['type']);
if($type=='subcat'){
?>
<?php
$GetAllcategory = $mydb->fetchCondrow('tbl_category',"where status='1' and parent='".$id."' order by name asc");
?>
<select name="subcat" class="chosen-select" onChange="getsubcat(this.value,'subsubcat')" >
<option value="0">Select Sub Category</option>
<?php for($i=0;$i< count($GetAllcategory);$i++){?>
<option value="<?php echo $GetAllcategory[$i]['id']?>" <?php if($GetAllcategory[$i]['id']==$alldata[0][' ']){ echo "selected"; } ?>><?php echo $GetAllcategory[$i]['name']?></option>
<?php } ?>
</select>
<?php }
if($type=='subsubcat'){
?>
<?php
$GetAllcategory = $mydb->fetchCondrow('tbl_category',"where status='1' and parent='".$id."' order by name asc");
?>
<select name="subsubcat" class="chosen-select" onChange="getsubcat(this.value,'type')" >
<option value="0">Select Sub Category</option>
<?php for($i=0;$i< count($GetAllcategory);$i++){?>
<option value="<?php echo $GetAllcategory[$i]['id']?>" <?php if($GetAllcategory[$i]['id']==$alldata[0][' ']){ echo "selected"; } ?>><?php echo $GetAllcategory[$i]['name']?></option>
<?php } ?>
</select>
<?php } ?>
<link rel="stylesheet" type="text/css" href="<?=ADMIN_PATH?>/assets-minified/demo-widgets.css">
<script type="text/javascript" src="<?=ADMIN_PATH?>/assets-minified/demo-widgets.js"></script>
Did this file decode correctly?
Original Code
<?php
require('../top.php');
$id = $_POST['id'];
$type = trim($_POST['type']);
if($type=='subcat'){
?>
<?php
$GetAllcategory = $mydb->fetchCondrow('tbl_category',"where status='1' and parent='".$id."' order by name asc");
?>
<select name="subcat" class="chosen-select" onChange="getsubcat(this.value,'subsubcat')" >
<option value="0">Select Sub Category</option>
<?php for($i=0;$i< count($GetAllcategory);$i++){?>
<option value="<?php echo $GetAllcategory[$i]['id']?>" <?php if($GetAllcategory[$i]['id']==$alldata[0][' ']){ echo "selected"; } ?>><?php echo $GetAllcategory[$i]['name']?></option>
<?php } ?>
</select>
<?php }
if($type=='subsubcat'){
?>
<?php
$GetAllcategory = $mydb->fetchCondrow('tbl_category',"where status='1' and parent='".$id."' order by name asc");
?>
<select name="subsubcat" class="chosen-select" onChange="getsubcat(this.value,'type')" >
<option value="0">Select Sub Category</option>
<?php for($i=0;$i< count($GetAllcategory);$i++){?>
<option value="<?php echo $GetAllcategory[$i]['id']?>" <?php if($GetAllcategory[$i]['id']==$alldata[0][' ']){ echo "selected"; } ?>><?php echo $GetAllcategory[$i]['name']?></option>
<?php } ?>
</select>
<?php } ?>
<link rel="stylesheet" type="text/css" href="<?=ADMIN_PATH?>/assets-minified/demo-widgets.css">
<script type="text/javascript" src="<?=ADMIN_PATH?>/assets-minified/demo-widgets.js"></script>
Function Calls
None |
Stats
MD5 | eed179160b93cbb0529135c817edb5e4 |
Eval Count | 0 |
Decode Time | 52 ms |