Moin,
Mir ist beim BrainCMS aufgefallen das ein PHP Code nicht richtig ist nur weiss ich nicht wie er richtig geschrieben wird bei der client.php
wie Muss der code: <?php User::userData('auth_ticket') ?> richtig geschrieben sein?
PHP
<script>
var Client = new SWFObject("<?php echo $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
Client.addVariable("client.allow.cross.domain", "0");
Client.addVariable("client.notify.cross.domain", "1");
Client.addVariable("connection.info.host", "<?php echo $hotel['emuHost'] ?>");
Client.addVariable("connection.info.port", "<?php echo $hotel['emuPort'] ?>");
Client.addVariable("site.url", "<?php echo $config['hotelUrl'] ?>");
Client.addVariable("url.prefix", "<?php echo $config['hotelUrl'] ?>");
Client.addVariable("client.reload.url", "<?php echo $config['hotelUrl'] ?>/me");
Client.addVariable("client.fatal.error.url", "<?php echo $config['hotelUrl'] ?>/me");
Client.addVariable("client.connection.failed.url", "<?php echo $config['hotelUrl'] ?>/me");
Client.addVariable("external.override.texts.txt", "<?php echo $hotel['external_Texts_Override'] ?>");
Client.addVariable("external.override.variables.txt", "<?php echo $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?php echo $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?php echo $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?php echo $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?php echo $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?php echo $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?php echo $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?php User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
Client.addVariable("client.starting", "<?php echo $config['hotelName'] ?> is loading...");
Client.addVariable("flash.client.url", "<?php echo $hotel['swfFolder'] ?>/");
Client.addVariable("flash.client.origin", "popup");
Client.addVariable("nux.lobbies.enabled", "true");
Client.addVariable("country_code", "DE");
Client.addParam('base', '<?php echo $hotel['swfFolder'] ?>/');
Client.addParam('allowScriptAccess', 'always');
Client.addParam('menu', false);
Client.addParam('wmode', "opaque");
Client.write('client');
FlashExternalInterface.signoutUrl = "<?php echo $config['hotelUrl'] ?>/logout";
</script>
Alles anzeigen
Danke für Hilfe