$datos = stat($arquivo); } if ($PFN_conf->g('inc', 'estado')) { include_once $PFN_paths['include'] . 'class_inc.php'; $PFN_inc = new PFN_INC($PFN_conf); } if ($PFN_vars->post('executa')) { if ($PFN_vars->post('formulario') == 'form_inc' && in_array('formulario', $capas)) { if ($PFN_conf->g('inc', 'estado')) { $PFN_inc->arquivos($PFN_arquivos); $arq_inc = $PFN_inc->crea_inc($arquivo . $fin, $tipo); } if ($PFN_conf->g('inc', 'indexar')) { include_once $PFN_paths['include'] . 'class_indexador.php'; $PFN_indexador = new PFN_Indexador($PFN_conf); $PFN_indexador->alta_modificacion("{$dir}/", "{$cal}{$fin}", $arq_inc); } } elseif ($PFN_vars->post('formulario') == 'protexer' && in_array('protexer', $capas) && $PFN_conf->g('usuario', 'admin') && $tipo == 'dir') { if (trim($PFN_vars->post('ht_usuario')) == '') { $PFN_arquivos->eliminar_htpasswd("{$arquivo}/"); } else { $PFN_arquivos->crear_htpasswd("{$arquivo}/"); } } } $ahref = '<a href="' . $PFN_niveles->enlace($dir, $PFN_vars->get('cal') . $fin) . '" target="_blank" class="ao14">' . $PFN_vars->get('cal') . '</a>'; if ($tipo == 'dir') { if ($PFN_vars->get('calcula_tamano')) { $tamano_real = $PFN_niveles->get_tamano("{$arquivo}/"); $tamano_disco = PFN_peso(PFN_espacio_disco($tamano_real)); $tamano_real .= ' Bytes';
$ancho_banda = $PFN_accions->log_ancho_banda($peso_este); if (!$ancho_banda) { @unlink($destino . '/' . $cal); $estado_accion = $PFN_conf->t('estado.novo_arq', 7); $erro = true; } if (!$erro && $PFN_conf->g('inc', 'estado')) { include_once $PFN_paths['include'] . 'class_arquivos.php'; $PFN_arquivos = new PFN_Arquivos($PFN_conf); $PFN_inc->arquivos($PFN_arquivos); $arq_inc = $PFN_inc->crea_inc($destino . '/' . $cal, 'arq'); } if (!$erro && $PFN_conf->g('inc', 'indexar')) { include_once $PFN_paths['include'] . 'class_indexador.php'; $PFN_indexador = new PFN_Indexador($PFN_conf); $PFN_indexador->alta_modificacion("{$dir}/", $cal, $arq_inc); } if (!$erro && $PFN_conf->g('raiz', 'peso_maximo') > 0) { $peso_este += $PFN_conf->g('raiz', 'peso_actual'); if ($PFN_conf->g('inc', 'estado')) { $peso_este += PFN_espacio_disco($arq_inc, true); } $PFN_conf->p($peso_este, 'raiz', 'peso_actual'); $PFN_usuarios->init('peso', $peso_este, $PFN_conf->g('raiz', 'id')); } } } if ($erro) { $PFN_accions->arquivos($PFN_arquivos); $editar_ancho = intval($PFN_vars->post('ancho')); $editar_alto = intval($PFN_vars->post('alto'));
include $PFN_paths['plantillas'] . 'cab.inc.php'; include $PFN_paths['web'] . 'opcions.inc.php'; $PFN_tempo->rexistra('precodigo'); if ($PFN_vars->post('executa') && $PFN_vars->post('nome_directorio') != '') { $donde = $PFN_conf->g('raiz', 'path') . $PFN_accions->path_correcto($dir . '/'); $cal = $PFN_accions->nome_correcto($PFN_vars->post('nome_directorio')); $PFN_accions->crear_dir($donde, $cal); $estado = $PFN_accions->estado_num('crear_dir'); $estado_accion = $PFN_conf->t('estado.crear_dir', intval($estado)); if ($PFN_accions->estado('crear_dir')) { if ($PFN_conf->g('inc', 'estado')) { include_once $PFN_paths['include'] . 'class_inc.php'; $PFN_inc = new PFN_INC($PFN_conf); $PFN_inc->arquivos($PFN_arquivos); $arq_inc = $PFN_inc->crea_inc($donde . '/' . $cal . '/', 'dir'); } if ($PFN_conf->g('inc', 'indexar')) { include_once $PFN_paths['include'] . 'class_indexador.php'; $PFN_indexador = new PFN_Indexador($PFN_conf); $PFN_indexador->alta_modificacion($dir . '/', $cal . '/', $arq_inc); } } include $PFN_paths['web'] . 'navega.inc.php'; } else { include_once $PFN_paths['include'] . 'class_inc.php'; $PFN_inc = new PFN_INC($PFN_conf); include $PFN_paths['plantillas'] . 'posicion.inc.php'; include $PFN_paths['plantillas'] . 'crear_dir.inc.php'; } $PFN_tempo->rexistra('postcodigo'); include $PFN_paths['plantillas'] . 'pe.inc.php';