예제 #1
0
function cerrar()
{
    Session::init();
    Session::destroy();
    principal();
}
예제 #2
0
        $auxSvr = split("@", $k);
        $file = $auxSvr[0];
        $srvr = $auxSvr[1];
        print "<h4>Borrando registros</h4>";
        print "borrando: {$file}<br />";
        $ftp = new Ftp($servers[$srvr][0], $servers[$srvr][1], $servers[$srvr][2]);
        if (!$ftp->login()) {
            die("no se logueó");
        }
        if (!$ftp->borrar($file)) {
            print "No se pudo borrar: {$file}<br />";
            error("No se pudo borrar: {$file}", true);
        }
    }
    $sql = " DELETE FROM contenidos where id={$newId} LIMIT 1; ";
    $result = mysql_query($sql, $db);
    if (!$result) {
        error("Error al borrar el contenido {$newId} -  sql: {$sql}", true);
    }
    print "contenido {$newId} eliminado!\n";
    $sql = " DELETE FROM contcol_whitelist where contenido={$newId} LIMIT 1; ";
    $result = mysql_query($sql, $db);
    if (!$result) {
        error("Error al borrar de witelist {$newId} -  sql: {$sql}", true);
    }
    print "contenido {$newId} eliminado de whitelist!\n";
    $ftp->logout();
}
//======== ejecutar todo
principal();