!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.3.29 

uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
x86_64
 

 

Safe-mode: OFF (not secure)

/home/memoriacel/public_html/2018/panel/   drwxr-xr-x
Free 985.27 GB of 1859.98 GB (52.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     modificar-modulo-noticias.php (3.53 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
$pagina_actual
="administrar-categorias";
$categoria_actual="categorias";
require_once(
"includes/config.php");
require_once(
"includes/funciones.php");

if (isset(
$_POST["id"])){
    
    
extract($_POSTEXTR_SKIP);
    
    
$result=$mysqli->query("
    UPDATE modulos_noticias SET 
    id_categoria_noticias='"
.utf8_decode($id_categoria_noticias)."',
    color_fondo='"
.utf8_decode($color_fondo)."',
    titulo='"
.utf8_decode($titulo)."',
    cantidad='"
.utf8_decode($cantidad)."'
    WHERE id='"
.$id."'
    "
);        
    if (
$id_categoria==0){
        
header('Location: administrar-modulos-noticias.php?exito=si&inicio=si');
    } else {
        
header('Location: administrar-modulos-noticias.php?exito=si&id='.$id_categoria);
    }
}

if (isset(
$_GET["id"])){
    
$id=cadena_segura($_GET["id"],11);
    
$id_categoria=cadena_segura($_GET["id_categoria"],11);

    
$categorias=$mysqli->query("
    SELECT id, nombre, id_padre
    FROM categoria_cliente
    WHERE id_padre=0
    "
);
    
    
$result=$mysqli->query("
    SELECT id, id_categoria_noticias, color_fondo, id_modulo, titulo, cantidad
    FROM modulos_noticias
    WHERE id='
$id'
    "
);
    
$item mysqli_fetch_assoc($result);

    
$colores=$mysqli->query("
    SELECT id, nombre, valor
    FROM color
    ORDER BY nombre
    "
);
?>
<div class="modal-content">
    <form method="post" action="modificar-modulo-noticias.php">
    <input type="hidden" name="id" value="<?=$id?>">
    <input type="hidden" name="id_categoria" value="<?=$id_categoria?>">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title"></h4>
    </div>
    <div class="modal-body">

        <? if (isset($modulos_modificables[$item["id_modulo"]]["titulo"])){?>

        <div class="form-group">
            <label>Título</label>
            <input name="titulo" class="form-control" value="<?=utf8_encode($item["titulo"])?>">                
        </div> 

        <? }?>

        <? if (isset($modulos_modificables[$item["id_modulo"]]["categoria"])){?>

        <div class="form-group">
            <label>Categoría</label>
            <select name="id_categoria_noticias" class="form-control">
                <? while ($categoria mysqli_fetch_assoc($categorias)){?>
                <option <?=$categoria["id"]==$item["id_categoria_noticias"]?"selected":""?> value="<?=$categoria["id"]?>"><?=utf8_encode($categoria["nombre"])?></option>
                <? }?>
            </select>
        </div>  

        <? }?>

        <? if (isset($modulos_modificables[$item["id_modulo"]]["cantidad"])){?>

        <div class="form-group">
            <label>Cantidad</label>
            <input name="cantidad" type="number" class="form-control" value="<?=utf8_encode($item["cantidad"])?>" min="1">                
        </div> 

        <? }?>

        <? if (isset($modulos_modificables[$item["id_modulo"]]["color"])){?>

        <div class="form-group">
            <label>Color de fondo</label>
            <select name="color_fondo" class="form-control">
                <? while ($color mysqli_fetch_assoc($colores)){?>                                                
                <option <?=$color["id"]==$item["color_fondo"]?"selected":""?> value="<?=$color["id"]?>"><?=utf8_encode($color["nombre"])?></option>
                <? }?>
            </select>
        </div> 

        <? }?>

    </div>
    <div class="modal-footer">
        <a href="#" class="btn btn-white" data-dismiss="modal">Cerrar</a>
        <input type="submit" class="btn btn-primary" value="Modificar">
    </div>
    </form>
</div><!-- /.modal-content -->
<? }?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0011 ]--