mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-20 16:31:51 +01:00
14 lines
583 B
PHP
14 lines
583 B
PHP
<?php // BEGIN PHP
|
|
$websitekey=basename(__DIR__);
|
|
if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__.'/master.inc.php'; } // Load env if not already loaded
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php';
|
|
require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php';
|
|
ob_start();
|
|
header('Cache-Control: max-age=3600, public, must-revalidate');
|
|
header('Content-type: application/javascript');
|
|
// END PHP ?>
|
|
/* JS content (all pages) */
|
|
<?php // BEGIN PHP
|
|
$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "js");
|
|
// END PHP
|