Example #1
0
elección) de cualquier versión posterior. 

Este programa se distribuye con la esperanza de que sea útil, pero SIN NINGUNA
GARANTÍA, incluso sin la garantía MERCANTIL implícita o sin garantizar la
CONVENIENCIA PARA UN PROPÓSITO PARTICULAR. Véase la Licencia Pública General de
GNU para más detalles. 

Debería haber recibido una copia de la Licencia Pública General junto con este
programa. Si no ha sido así, escriba a la Free Software Foundation, Inc., en
675 Mass Ave, Cambridge, MA 02139, EEUU. 
*******************************************************************************/
include 'paths.php';
include_once $PFN_paths['include'] . 'basicweb.php';
session_write_close();
include_once $PFN_paths['include'] . 'class_arquivos.php';
include_once $PFN_paths['include'] . 'class_imaxes.php';
include_once $PFN_paths['include'] . 'class_accions.php';
include_once $PFN_paths['include'] . "class_arquivos.php";
$PFN_arquivos = new PFN_Arquivos($PFN_conf);
$PFN_imaxes = new PFN_Imaxes($PFN_conf);
$PFN_accions = new PFN_Accions($PFN_conf);
$PFN_arquivos = new PFN_Arquivos($PFN_conf);
$PFN_imaxes->arquivos($PFN_arquivos);
$PFN_accions->arquivos($PFN_arquivos);
$imaxe = $PFN_conf->g('raiz', 'path') . $PFN_niveles->path_correcto($dir . '/' . $PFN_vars->get('cal'));
$imaxe = $PFN_vars->get('peq') == 1 ? $PFN_imaxes->nome_pequena($imaxe) : $imaxe;
$tamano = PFN_espacio_disco($imaxe, true);
if ($PFN_accions->log_ancho_banda($tamano)) {
    echo $PFN_imaxes->volcar_imaxe($imaxe, $PFN_vars->get('ancho'), $PFN_vars->get('alto'));
}
exit;
Example #2
0
Debería haber recibido una copia de la Licencia Pública General junto con este
programa. Si no ha sido así, escriba a la Free Software Foundation, Inc., en
675 Mass Ave, Cambridge, MA 02139, EEUU. 
*******************************************************************************/
include 'paths.php';
$borra_cache = is_array($_GET) ? $_GET['accion'] . $_POST['accion'] : $HTTP_GET_VARS['accion'] . $HTTP_POST_VARS['accion'];
$borra_cache = $borra_cache != 'descargar';
include $PFN_paths['include'] . 'basicweb.php';
session_write_close();
$PFN_tempo->rexistra('precarga');
$PFN_vars->server('PHP_SELF', 'navega.php');
$accion = $PFN_niveles->nome_correcto($PFN_vars->get('accion') . $PFN_vars->post('accion'));
include_once $PFN_paths['include'] . "class_imaxes.php";
include_once $PFN_paths['include'] . "class_arquivos.php";
$PFN_imaxes = new PFN_Imaxes($PFN_conf);
$PFN_arquivos = new PFN_Arquivos($PFN_conf);
if (!empty($accion) && $PFN_conf->g('permisos', $accion) && is_file($PFN_paths['accions'] . "{$accion}.inc.php")) {
    define('ACCION', true);
    $PFN_conf->textos('estado');
    include_once $PFN_paths['include'] . 'class_accions.php';
    $PFN_accions = new PFN_Accions($PFN_conf);
    $PFN_tempo->rexistra('precomprobacion');
    $cal = $arquivo = $ucal = $tipo = $enlace_abs = '';
    $e_imaxe = $redimensionar = $redimensionar_dir = $ver_contido = false;
    $editar = $PFN_extraer = $ver_comprimido = $descargar = $correo = false;
    if (strstr($accion, 'multiple_')) {
        $multiple_escollidos = (array) $PFN_vars->post('multiple_escollidos');
        if (count($multiple_escollidos) == 1) {
            $accion = substr($accion, strlen('multiple_'));
            $PFN_vars->get('cal', $multiple_escollidos[0]);
*******************************************************************************/
defined('OK') && defined('ACCION') or die;
$txt = '';
$mais = 0;
$valen = array();
$sobreescribir = $PFN_vars->get('sobreescribir');
$previsualizar = $PFN_vars->get('previsualizar');
$destino = $PFN_conf->g('raiz', 'path') . $PFN_niveles->path_correcto($dir);
$imx_path = $PFN_niveles->path_correcto($destino . '/' . $cal);
$pos = intval($PFN_vars->get('pos'));
if ($PFN_vars->get('executa') && !empty($cal) && $pos > -1) {
    @set_time_limit($PFN_conf->g('tempo_maximo'));
    @ini_set('memory_limit', $PFN_conf->g('memoria_maxima'));
    include_once $PFN_paths['include'] . "class_imaxes.php";
    include_once $PFN_paths['include'] . "class_arquivos.php";
    $PFN_imaxes = new PFN_Imaxes($PFN_conf);
    $PFN_arquivos = new PFN_Arquivos($PFN_conf);
    $PFN_conf->p(1500, 'paxinar');
    $contido = $PFN_niveles->get_contido($imx_path, 'nome', 'asc', true);
    foreach ($contido['arq']['nome'] as $v) {
        if ($PFN_imaxes->e_imaxe($imx_path . '/' . $v)) {
            $valen[] = $v;
        }
    }
    $imaxe = $imx_path . '/' . $valen[$pos];
    $url_imaxe = $dir . '/' . $cal . '/' . $valen[$pos];
    if (empty($imaxe)) {
        $txt .= $PFN_conf->t('estado.redimensionar_dir', 2) . ' <strong>' . $url_imaxe . '</strong><br />';
    }
    $txt .= $previsualizar ? '<span class="mini">' : '(' . ($pos + 1) . '/' . count($valen) . ') ';
    if ($sobreescribir || !is_file($PFN_imaxes->nome_pequena($imaxe))) {