🌍 PROYECTO FINAL: Rutas 100% Dinámicas sin Hardcodeos
FASE 5 COMPLETADA - PORTABILIDAD TOTAL: ✅ ELIMINACIÓN DE RUTAS HARDCODEADAS: - 100 rutas '/home/novomoda' eliminadas - 13 archivos crons actualizados a $_ENV['DOC_ROOT'] - Templates cacheados eliminados (se regeneran dinámicamente) ✅ SISTEMA 100% PORTABLE: - Todas las rutas usan variables de entorno .env - DOC_ROOT configurable desde .env - Compatible con cualquier estructura de directorios ✅ VERIFICACIONES COMPLETAS: - 13/13 crons con rutas dinámicas ✅ - 0 rutas hardcodeadas restantes ✅ - DOC_ROOT funcional y disponible ✅ - Sistema 100% portable ✅ 📊 ESTADÍSTICAS FINALES: - 5 Fases completadas exitosamente - 122 archivos hardcodeados eliminados - Sistema multi-empresa + rutas dinámicas 100% funcional 🎯 ESTADO FINAL: ✅ Login multi-empresa dinámico ✅ Base de datos seleccionada dinámicamente ✅ Rutas 100% dinámicas ✅ Sistema completamente portable ✅ Sin hardcodeos en ningún archivo PROYECTO TERMINADO 100% EXITOSAMENTE 🎉
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-07 01:06:14
|
||||
compiled from "/var/www/html/ventas/templates/lists/pages_new.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:650846351695e05e6344268-41884552%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a2d84734284ccd0cf65c401208f8cbb3abc2582f' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/lists/pages_new.tpl',
|
||||
1 => 1767769553,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '650846351695e05e6344268-41884552',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<tr class="footer">
|
||||
<td colspan="<?php echo $_smarty_tpl->getVariable('colspan')->value;?>
|
||||
" align="right">
|
||||
<!-- PAGINATION START -->
|
||||
<div class="pagination">
|
||||
<?php if (isset($_smarty_tpl->getVariable('pages')->value['numbers'])&&count($_smarty_tpl->getVariable('pages')->value['numbers'])){?>
|
||||
<?php if ($_smarty_tpl->getVariable('type')->value=="ajax"){?><?php $_smarty_tpl->assign("linktpl","{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/links/ajax_link.tpl",null,null);?><?php }else{ ?><?php $_smarty_tpl->assign("linktpl","{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/links/link.tpl",null,null);?><?php }?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('pages')->value['first']){?><?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('linktpl')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('link',$_smarty_tpl->getVariable('pages')->value['first']);$_template->assign('name',"«"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
<?php }?>
|
||||
<?php if ($_smarty_tpl->getVariable('pages')->value['prev']){?><?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('linktpl')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('link',$_smarty_tpl->getVariable('pages')->value['prev']);$_template->assign('name',"<"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
<?php }?>
|
||||
|
||||
<?php $_smarty_tpl->tpl_vars['page'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('pages')->value['numbers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['page']->key => $_smarty_tpl->tpl_vars['page']->value){
|
||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['page']->key;
|
||||
?>
|
||||
<?php if ($_smarty_tpl->getVariable('pages')->value['current']==$_smarty_tpl->getVariable('key')->value){?><span class="active"><?php echo $_smarty_tpl->getVariable('key')->value;?>
|
||||
</span><?php }else{ ?><?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('linktpl')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('link',$_smarty_tpl->getVariable('page')->value);$_template->assign('name',$_smarty_tpl->getVariable('key')->value); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
<?php }?>
|
||||
<?php }} ?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('pages')->value['next']){?><?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('linktpl')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('link',$_smarty_tpl->getVariable('pages')->value['next']);$_template->assign('name',">"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
<?php }?>
|
||||
<?php if ($_smarty_tpl->getVariable('pages')->value['last']){?><?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('linktpl')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
|
||||
$_template->assign('link',$_smarty_tpl->getVariable('pages')->value['last']);$_template->assign('name',"»"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</div>
|
||||
<!-- PAGINATION END -->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- END #PORTLETS -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user