Update footer.php
This commit is contained in:
22
footer.php
22
footer.php
@@ -1,5 +1,25 @@
|
||||
<?
|
||||
|
||||
if (@$_REQUEST["tokenEditorV2"]){ $_SESSION["tokenEditorV2"] = @$_REQUEST["tokenEditorV2"]; }
|
||||
if (@$_REQUEST["uploadTokenV2"]){ $_SESSION["uploadTokenV2"] = @$_REQUEST["uploadTokenV2"]; }
|
||||
if (@$_REQUEST["disableTokenEditorV2"]){
|
||||
unset($_SESSION["tokenEditorV2"]);
|
||||
unset($_SESSION["uploadTokenV2"]);
|
||||
}
|
||||
if (@$_SESSION["tokenEditorV2"] && !@$_REQUEST["disableTokenEditorV2"]){
|
||||
CocoWS::setToken(@$_SESSION["tokenEditorV2"]);
|
||||
if (CocoWS::validateUploadToken(@$_SESSION["uploadTokenV2"])) {
|
||||
|
||||
?>
|
||||
<script>
|
||||
var tokenEditor = "<?=@$_SESSION["tokenEditorV2"];?>";
|
||||
var uploadToken = "<?=@$_SESSION["uploadTokenV2"];?>";
|
||||
</script>
|
||||
<script src="/cms/lib/plugins/builder_saas/js/acai_editor_script.js"></script>
|
||||
<?
|
||||
}else{
|
||||
?><!-- token not validated --><?
|
||||
}
|
||||
}
|
||||
$otros_contenidos = CocoDB::get("otros_contenidos", "visible_en_el_menu=1", "siblingOrder DESC", null, ["ignoreSchema" => true]);
|
||||
$config_footer = array(
|
||||
'pie_de_pagina' => t($configuracionRecord,"pie_de_pagina"),
|
||||
|
||||
Reference in New Issue
Block a user