Пример #1
0
                if ($PFN_conf->g('inc', 'indexar')) {
                    include_once $PFN_paths['include'] . 'class_indexador.php';
                    $PFN_indexador = new PFN_Indexador($PFN_conf);
                    $i_destino = $PFN_accions->path_correcto($PFN_vars->post('escollido') . '/');
                    $PFN_indexador->copiar("{$dir}/", "{$i_destino}/", "{$cal}/");
                }
            }
        } elseif (!$erro) {
            $PFN_accions->enlazar($orixinal, $destino);
            $estado = $PFN_accions->estado_num('enlazar_arq');
            $estado_accion = $PFN_conf->t('estado.enlazar_arq', intval($estado));
            if ($PFN_accions->estado('enlazar_arq')) {
                if ($PFN_conf->g('inc', 'estado')) {
                    include_once $PFN_paths['include'] . 'class_inc.php';
                    $PFN_inc = new PFN_INC($PFN_conf);
                    $PFN_inc->copiar($orixinal, $destino);
                }
                if ($PFN_conf->g('inc', 'indexar')) {
                    include_once $PFN_paths['include'] . 'class_indexador.php';
                    $i_destino = $PFN_accions->path_correcto($PFN_vars->post('escollido') . '/');
                    $PFN_indexador = new PFN_Indexador($PFN_conf);
                    $PFN_indexador->copiar("{$dir}/", "{$i_destino}/", $cal);
                }
                if ($PFN_conf->g('imaxes', 'pequena')) {
                    $PFN_imaxes->copiar($orixinal, $destino);
                }
            }
        }
    }
    include $PFN_paths['web'] . 'navega.inc.php';
} else {