0 , 'nombre' => 'Ninguno' , 'comunidad' => '' ) ); $GLOBALS['banks'] = array_merge($GLOBALS['banks'], $GLOBALS['bancos']); require_once '../app/code/data.comunidades.class.inc'; $GLOBALS['comunidades'] = Comunidades::get(); $GLOBALS['comunidades_files'] = $GLOBALS['comunidades']; $GLOBALS['comunidades_files'][count($GLOBALS['comunidades_files'])] = array( 'id' => 50 , 'nombre' => 'ITACA' ); $GLOBALS['isdebug'] = ($_SESSION['twafwkusrinfo']['user'] === 'debug') ? '1' : '0'; $GLOBALS['app'] = new MyApp('../app/webapp.xml'); if (!isset($GLOBALS['twaapp'])) { $GLOBALS['twaapp'] = $GLOBALS['app']; } /** * Cargamos código explícito para las secciones internas de la aplicación */ $sects = array('clientes', 'proveedores', 'products', 'solicitudes', 'usuarios', 'notificaciones', 'almacen', 'configuracion'); if (isset($_GET['s1']) && in_array($_GET['s1'],$sects)) { require_once '../app/code/app_include.inc'; } // $app->debug = true; // $GLOBALS['app']->htaccess_defaultcontent = "RewriteCond %{SERVER_PORT} 80 \nRewriteRule ^(.*)$ https://tienda.azasa.es/$1 [R,L]"; // $GLOBALS['app']->htaccess_defaultcontent = "\nFileETag None\n\nHeader unset ETag\nHeader set Cache-Control \"max-age=0, no-cache, no-store, must-revalidate\"\nHeader set Pragma \"no-cache\"\n Header set Expires \"Wed, 11 Jan 1984 05:00:00 GMT\"\n"; $GLOBALS['app']->Get(); // echo ""; // echo "";