Advertisement
Guest User

Client

a guest
Mar 19th, 2015
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 20.58 KB | None | 0 0
  1. <?php
  2.  
  3. if(empty($page['header']) || $page['header'] != TRUE){ header("HTTP/1.0 404 Forbidden"); exit; }
  4. if(FetchSITESetting('flashclient') == "0"){ ?>
  5. <meta name="google" content="notranslate" />
  6. <meta name="google" content="noautotranslate" />
  7. <meta http-equiv="refresh" content="60;url=/client" />
  8. <div style="position:absolute;top:0px;left:0px;height:100%;width:100%;background-color: #000;z-index:10;display:block;" id="loader">
  9. <center><img src="/web-gallery/images/frank/sorry2.gif" style="position:absolute;top:30%;left:50%;"></center>
  10.  
  11. &nbsp;</div>
  12.  
  13. <?php } else  { ?>
  14. <link rel="stylesheet" type="text/css" href="<?php echo $site->url; ?>hhnewloader/css/load.css">
  15. <link rel="stylesheet" type="text/css" href="<?php echo $site->url; ?>hhnewloader/css/style.css">
  16. <link rel="stylesheet" type="text/css" href="<?php echo $site->url; ?>hhnewloader/css/windows.css">
  17. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/jquery_006.js"></script>
  18. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/jquery_002.js"></script>
  19. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/jquery_004.js"></script>
  20. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/jquery_003.js"></script>
  21. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/jquery.js"></script>
  22. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/jquery_005.js"></script>
  23. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/tooltip.js"></script>
  24. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/client_windows.js"></script>
  25. <script type="text/javascript" src="<?php echo $site->url; ?>hhnewloader/js/connect.js"></script>
  26.  
  27. <script type="text/javascript">
  28. $(function() {
  29.  
  30.     $("#search_results").hide();
  31.     $("#search input[name=searchstring]").keyup(function(){
  32.         if( $(this).val().length >= 1 ){
  33.  
  34.             $.ajax({
  35.                 url: '../hhnewloader/ajax/ajax.suche.php',
  36.                 data:'suchbegriff='+$(this).val(),
  37.                 type:'POST',
  38.                 success: function(data) {
  39.                     $("#search_results").show().html(data)
  40.                 }
  41.             });
  42.         }else{
  43.             $("#search_results").show().html('mindestens 1 Zeichen eingeben');
  44.         }
  45.                $( "#search_results").fadeIn();
  46.  
  47.  
  48.     });
  49.     $(document.body).click(function(){
  50.         $("#search_results").hide();
  51.     });
  52. });
  53.  
  54. </script>
  55.  
  56. <script type="text/javascript">
  57.  
  58. function DoResize()
  59. {
  60.     var nHeight;
  61.     if (typeof window.innerHeight == 'undefined')
  62.     {
  63.         nHeight = document.body.clientHeight -47;
  64.        
  65.     }
  66.     else
  67.     {
  68.         nHeight = window.innerHeight -47;
  69.     }
  70.    
  71.     document.getElementById('flash').style.height = nHeight+'px';
  72. }
  73.      var flashvars = {
  74.             "client.allow.cross.domain" : "1",
  75.             "client.notify.cross.domain" : "0",
  76.             "connection.info.host" : "<?php echo base64_encode($client->IP); ?>",
  77.             "connection.info.port" : "<?php echo $client->port; ?>",
  78.             "site.url" : "<?php echo $site->url; ?>",
  79.             "url.prefix" : "<?php echo $site->url; ?>",
  80.             "client.reload.url" : "<?php echo $site->url; ?>client",
  81.             "client.fatal.error.url" : "<?php echo $site->url; ?>client/error",
  82.             "client.connection.failed.url" : "<?php echo $site->url; ?>client/error",
  83.             "external.variables.txt" : "<?php echo $client->variables; ?>",
  84.             "external.texts.txt" : "<?php echo $client->texts; ?>",
  85.             "productdata.load.url" : "<?php echo $client->productdata; ?>",
  86.             "furnidata.load.url" : "<?php echo $client->furnidata; ?>",
  87.             "use.sso.ticket" : "1",
  88.             "new.identity" : "0",
  89.             "sso.ticket" : "<?php echo $_SESSION['ticket']; ?>",
  90.             "processlog.enabled" : "0",
  91.             "account_id" : "<?php echo $user->id; ?>",
  92.             "client.starting" : "Ladeschnittstelle...",
  93.             "client.hotel_view.image.url" : "<?php echo $cimagesurl; ?>/hotel_view_images_hq/enterenter.png",
  94.             "flash.client.url" : "<?php echo $client->swf_path; ?>",
  95.             "user.hash" : "<?php echo $_SESSION['ticket']; ?>",
  96.             "has.identity" : "1",
  97.             "flash.client.origin" : "popup"
  98.     };
  99.  
  100. flashvars['connection.info.host'] = crookie_cms(flashvars['connection.info.host']);
  101.  
  102.  
  103.     var params = {
  104.         "base" : "<?php echo $client->swf_path; ?>",
  105.         "allowScriptAccess" : "always",
  106.         "menu" : "false",    
  107.         "wmode" : "opaque"        
  108.     };
  109.  
  110.  
  111.     FlashExternalInterface.signoutUrl = "<?php echo $site->url; ?>account/logout?token=<?php echo sha1($myrow['password']); ?>";
  112.  
  113.     var clientUrl = "<?php echo $client->habbo_swf; ?>";
  114.  
  115.     swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "hhnewloader/expressInstall.swf", flashvars, params);
  116.     window.onbeforeunload = unloading;
  117.     function unloading() {
  118.         var clientObject;
  119.         if (navigator.appName.indexOf("Microsoft") != -1) {
  120.             clientObject = window["flash-container"];
  121.         } else {
  122.             clientObject = document["flash-container"];
  123.         }
  124.         try {
  125.             clientObject.unloading();
  126.         } catch (e) {}
  127.     }
  128.         window.onresize = DoResize;
  129.     window.onload = DoResize;
  130. </script>
  131.  
  132.  
  133.     <div id="tooltip"></div>
  134.     <div id="load-container" style="display:none;">
  135.         <div id="floatingCirclesG">
  136.             <div class="f_circleG" id="frotateG_01"></div>
  137.             <div class="f_circleG" id="frotateG_02"></div>
  138.             <div class="f_circleG" id="frotateG_03"></div>
  139.             <div class="f_circleG" id="frotateG_04"></div>
  140.             <div class="f_circleG" id="frotateG_05"></div>
  141.             <div class="f_circleG" id="frotateG_06"></div>
  142.             <div class="f_circleG" id="frotateG_07"></div>
  143.             <div class="f_circleG" id="frotateG_08"></div>
  144.         </div>
  145.     </div>
  146.     <div id="hidden-container">
  147.    
  148.     </div>
  149.  
  150.     <div id="heggo-overflow-container"><div id="Alerts"></div></div>
  151.    
  152.     <script type="text/javascript" src="<?php echo $site->url; ?>HHNewLoader/js/dom-drag.js"></script>
  153.  
  154.    <div id="Extraheggo-overflow-container">
  155.         <div id="ExtraAlerts"></div>
  156.    </div>
  157.  
  158. <script language="javascript">
  159.     var theHandle = document.getElementById("ExtraAlerts");
  160.     var theRoot   = document.getElementById("Extraheggo-overflow-container");
  161.     Drag.init(theHandle, theRoot);
  162. </script>
  163.  
  164. <script type="text/javascript">
  165. $(document).ready(function () {
  166.     $('.drop').each(function() {
  167.         $(this).click(function() {
  168.             var li = $(this), active = li.hasClass('active');
  169.            
  170.             close();
  171.             if (!active) {
  172.                 li.toggleClass('active').children('ul').toggle();
  173.             }
  174.             return false;
  175.         });
  176.     });
  177.    
  178.     function close() {
  179.         $('.drop').removeClass('active').children('ul').hide();
  180.     }
  181.    
  182.     $(document).bind('click',function() {
  183.         close();
  184.     });
  185. });
  186. </script>
  187.  
  188. <body id="client" class="flashclient">
  189.  
  190. <script type="text/javascript">
  191. jjLoader.init('client', 6, '<?php echo $site->url; ?>web-gallery/v2/images/logo.png', '<?php echo $site->url; ?>SWF/c_images/hotel_view_images_hq/client_loading_backg.png');
  192.  
  193. function showRadio() {
  194.     if ($('.radio_on').length > 0) {
  195.         document.getElementById("radio").className = "radio_off"
  196.         document.getElementById('player').style.display = "none";
  197.         new Ajax.Request('<?php echo $site->url; ?>habblet/client/update_radio.php?enum=0', {
  198.         method:  'get',
  199.         onSuccess:  function(response){
  200.         }
  201.      });
  202.     } else {
  203.         document.getElementById("radio").className = "radio_on"
  204.         document.getElementById('player').style.display = "";
  205.         new Ajax.Request('<?php echo $site->url; ?>habblet/client/update_radio.php?enum=1', {
  206.         method:  'get',
  207.         onSuccess:  function(response){
  208.         }
  209.      });
  210.     }
  211. }
  212. </script>
  213.  
  214.  
  215. <div id="bar"> 
  216.  
  217. <div id="welcome">
  218.  
  219. <a href="javascript:void(0);" onclick="openWindows('about');"><div class="logo"><div id="navis"></div></div></a>
  220. <div class="Break"></div>
  221. <a href="javascript:void(0);" <?php if($user->gast == 0){ ?>onclick="openWindows('rooms')"<?php } else { ?>style="opacity:0.5"<?php } ?>><div class="rooms"></div></a>
  222. <div class="Break"></div>
  223. <a href="#" <?php if($user->gast == 0){ ?>onclick="showBots();return false;"<?php } else { ?>style="opacity:0.5"<?php } ?>><div class="bot"></div></a>
  224. <div class="Break"></div>
  225. <a <?php if($user->gast == 0){ ?>onclick="openWindows('shop');" <?php } else { ?>style="opacity:0.5"<?php } ?> href="javascript:void(0)"><div class="shop"></div></a>
  226. <div class="Break"></div>
  227. <a href="#" onclick="showRadio();"><div id="radio" class="radio_<?php if($user->radio == "1"){ echo"on"; } else { echo"off"; } ?>" title="Radio An/Aus"></div></a>
  228. <div id="player" style="visibility:hidden;<?php if($user->radio == "1"){ echo"display:true"; } else { echo"display:none"; } ?>;">
  229. <script type="text/javascript" src="/web-gallery/flash/swfobject.js"></script>
  230. <div id="playerdata">Du benötigst Flash um diese Seite anzuzeigen.</div>
  231. <script type="text/javascript">
  232. var so = new SWFObject('<?php echo $site->url; ?>/web-gallery/flash/player_radio.swf','mpl','175','20','8');
  233. so.addParam('allowscriptaccess','always');
  234. so.addParam('allowfullscreen','false');
  235. so.addParam('flashvars','&file=http://188.165.170.168:8000/;stream.nsv&amp;type=mp3&amp;volume=50&amp;autostart=true');
  236. so.write('playerdata');
  237. </script>
  238. </div>
  239.  
  240. </div>
  241.  
  242. <div id="share">
  243. <ul id="main">
  244. <li class="drop">
  245. <div class="row"></div>
  246.             <ul>
  247.            
  248. <?php if($user->rank > 5){?>
  249. <li><a onclick="openHK();return false;" href="javascript:void(0)">Housekeeping</a></li>
  250. <?php } ?>
  251.  
  252. <?php if($user->rank == 7){?>
  253. <li><a onclick="openWindows('magicstack');" href="javascript:void(0)">Magic-Stapelfel (ADM)</a></li>
  254. <?php } ?>
  255.  
  256. <li><a onclick="vollbild();" href="javascript:void(0)">Vollbild-Modus</a></li>
  257.  
  258. <li><a <?php if($user->gast == 0){ ?>onclick="openWindows('mycommands');"<?php } else { ?>style="opacity:0.5;"<?php } ?> href="javascript:void(0)">Meine Kommandos</a></li>
  259. <li><a <?php if($user->gast == 0){ ?>onclick="openPOLL();return false;"<?php } else { ?>style="opacity:0.5;"<?php } ?> href="javascript:void(0)">Umfrage erstellen</a></li>
  260.  
  261.  
  262. <li><a <?php if($user->gast == 0){ ?>onclick="start_quiz();Load('hhnewloader/ajax/ajax.raumalert.php?step=5&amp;ajax=true')"<?php } else { ?>style="opacity:0.5;"<?php } ?> href="javascript:void(0)">Raumalert senden</a></li>
  263.  
  264. <?php if($user->vip == 1){?>
  265. <li><a onclick="openWindows('roommodels');" href="javascript:void(0)">Raummodelle<div class="vipalert"></div></a></li>
  266. <?php }else{ ?>
  267. <li><a href="javascript:void(0)"><div style="opacity:0.5;">Raummodelle</div><div class="vipalert"></div></a></li>
  268. <?php } ?>
  269.  
  270. <?php if($user->vip == 1){?>
  271. <li><a onclick="openWindows('codesystem');" href="javascript:void(0)">Code-Generator<div class="vipalert"></div></a></li>
  272. <?php }else{ ?>
  273. <li><a href="javascript:void(0)"><div style="opacity:0.5;">Code-Generator</div><div class="vipalert"></div></a></li>
  274. <?php } ?>
  275.  
  276.                
  277.              
  278.             </ul>
  279.         </li>
  280.        
  281.     </ul>  
  282. </div>
  283.  
  284. <div class="Breakr"></div>
  285.  
  286. <div class="suche">
  287.    <form method="" onsubmit="return false;" action="#" id="search" autocomplete="off">
  288.  
  289. <input name="searchstring" placeholder="Suche nach einem <?php echo $site->name; ?>..." size="25" type="text" id="s" autocomplete="off" Autocomletetype="disabled">
  290.  
  291. </form>
  292. </div>
  293.  
  294.  
  295.  
  296.  
  297. <div id="onlinewrapper"><span id="responsecontainer"></span></div><div id="search_results"></div></div>
  298.  
  299. <script type="text/javascript" src="<?php echo $site->url; ?>HHNEWLOADER/js/dom-drag.js"></script>
  300. <div id="contenido" style="left:500px; top:70px;"><div id="nav"><div onclick="close_quiz();" class="n12"></div></div>  
  301. <div id="contente"></div>          
  302. </div></div>
  303.  
  304. <script language="javascript">
  305.     var theHandle = document.getElementById("contente");
  306.     var theRoot   = document.getElementById("contenido");
  307.     Drag.init(theHandle, theRoot);
  308. </script>
  309.  
  310. <?php if(FetchSITESetting('flashclient') == "1" && $user->rank < 7) { ?>
  311. <!--- CLIENTWERBUNG --->
  312. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  313. <script type="text/javascript">
  314. function countDown(init)
  315. {
  316. if (init || --document.getElementById( "counter" ).firstChild.nodeValue > 0 )
  317.     window.setTimeout( "countDown()" , 1000 );
  318. };
  319.  
  320.  
  321. </script>
  322. <center>
  323. <div style="position:absolute;left:60%;z-index:2000; margin-left: -364px;">
  324. <div style="position:relative;">
  325. <div class="werbung_timer">
  326. <div style="background-image: url(../web-gallery/v2/images/client/ads_background.png); height: 63px; width: 474px;">
  327.  
  328. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  329. <!-- Huggo, clientbanner -->
  330. <ins class="adsbygoogle"
  331.      style="display:inline-block;width:468px;height:60px"
  332.      data-ad-client="ca-pub-9756883190172613"
  333.      data-ad-slot="3908531888"></ins>
  334. <script>
  335. (adsbygoogle = window.adsbygoogle || []).push({});
  336. </script>
  337.  
  338. <script>
  339. $(document).ready(function(){
  340. if($('.werbung_timer').length > 0){
  341.    
  342.  $('.werbung_timer').animate({opacity: 1.0}, 120000).fadeOut('fast', function() {
  343.    
  344.       $(this).remove();
  345.    });
  346. }
  347. });
  348. </script>
  349.  
  350. </div></div></div></div></center>
  351. <!--- CLIENTWERBUNG ENDE --->
  352. <?php } ?>
  353.  
  354.  
  355.  
  356.     <div id="flash">  
  357.         <noscript><div style="width:400px;margin:20px auto 0 auto;text-align:center;color:#FFF;background:#83CBE7;border-radius:15px;padding:5px;">          <h3>Kein Javascript</h3></div></noscript>
  358.       <div id="overlay">
  359.       </div>
  360.      
  361.       <div id="client-ui">      
  362.         <div id="flash-wrapper">      
  363.           <div id="flash-container">          
  364.             <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">            
  365.                                
  366.               <h2 class="title">Bitte besorg dir die neueste Adobe Flash Player Version.</h2>                
  367.                 <div class="box-content"><p>Hier kannst Du den Adobe Flashplayer herunterladen und installieren: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. Mehr Informationen und Anweisungen zur Installation sind hier zu finden: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">Mehr Informationen</a></p><p> <a href="http://www.adobe.com/go/getflashplayer"> <img src="/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" />                  </a></p></div>          
  368.                      
  369.             </div>      
  370.           </div>      
  371.         </div>     
  372.         <div id="content" class="client-content">
  373.         </div>
  374.       </div>
  375.  
  376.       <?php if($user->gast != 1){ ?>
  377.        <div id="hk_content" class="popup"><dc style="text-shadow:0 0 10px #FFFFFF;font-weight:bold;font-size:14px;padding:10px 0 0 10px;position:absolute;">Housekeeping</dc>
  378.         <div style="float:right;padding:5px;">
  379.  
  380. <div id="nav"><div id="baner_close" class="n12"></div></div>
  381.  
  382.         </div>
  383.         <iframe src="<?php echo $site->url; ?>housekeeping" width="100%" scrolling="yes" height="542" frameborder="0" marginheight="0" marginwidth="0">Wird geladen...</iframe>
  384.       </div>
  385.      
  386.        <div id="poll_content" class="popup"><dc style="text-shadow:0 0 10px #FFFFFF;font-weight:bold;font-size:14px;padding:10px 0 0 10px;position:absolute;">Umfrage f&uuml;r deinen Raum erstellen</dc>
  387.         <div style="float:right;padding:5px;">
  388.  
  389. <div id="nav"><div id="baner_close" class="n12"></div></div>
  390.  
  391.         </div>
  392.         <iframe src="<?php echo $site->url; ?>habblet/client/poll.php" width="100%" scrolling="no" height="380" frameborder="0" marginheight="0" marginwidth="0">Wird geladen...</iframe>
  393.       </div>
  394.      
  395.   <div id="bots_content" class="popup">
  396.     <iframe src="<?php echo $site->url; ?>hhnewloader/bots" width="100%" scrolling="no" height="550" frameborder="0" marginheight="0" marginwidth="0" >Wird geladen...</iframe>
  397. </div>
  398.  
  399. <script type="text/javascript">
  400.  
  401. (function crookiesjava(interval) {
  402.     interval = interval || 10000;
  403.     setTimeout(function () {
  404.         $.ajax({
  405.             url: '<?php echo $site->url; ?>HHNewLoader/ajax/ajax.hotelalertcheck.php',
  406.             success: function (response) {
  407.                 if (response == '1') {
  408.  
  409.                     item = document.getElementById('overlaycrookie');
  410.                     if (item.style.display == "none") {
  411.                         showAlert();
  412.                         var nachricht = $.ajax({
  413.                             url: "<?php echo $site->url; ?>HHNewLoader/ajax/ajax.hotelalert.php",
  414.                             async: false
  415.                         }).responseText;
  416.                         setTimeout(nachricht, 100);
  417.                         document.getElementById('nachricht').innerHTML = nachricht;
  418.                         crookiesjava();
  419.                         $('#overlaycrookie').fadeIn("slow").style.display = 'block';
  420.  
  421.                     } else {
  422.                         crookiesjava();
  423.                     }
  424.  
  425.                 } else {
  426.                     crookiesjava();
  427.                 }
  428.             }
  429.         });
  430.         $.ajaxSetup({
  431.             cache: false
  432.         });
  433.     }, interval);
  434. })();
  435.  
  436. function close_crookies_box(){
  437. $( '#overlaycrookie' ).fadeOut("slow").style.display='none';
  438. }
  439.  
  440.  <!--
  441.     function openHK() {
  442.         $('#hk_content').popup(
  443.           {
  444.           starttime : 0,
  445.           multipages_timer : false,
  446.           selfclose : 0,
  447.           popup_div : 'spop',
  448.           overlay_div : 'popuplayer',
  449.           close_id : 'baner_close',
  450.           overlay : true,
  451.           opacity_level : 0.6,
  452.           overlay_cc : true,
  453.           centered : true,
  454.           floating : true,
  455.           floating_reaction : 700,
  456.           floating_speed : 12,
  457.           fly_in : true,
  458.           fly_from : 'top',
  459.           fly_out : true,
  460.           fly_to : 'right'
  461.           }
  462.         );
  463.     }
  464.        
  465.     function openPOLL() {
  466.         $('#poll_content').popup(
  467.           {
  468.           starttime : 0,
  469.           multipages_timer : false,
  470.           selfclose : 0,
  471.           popup_div : 'spop',
  472.           overlay_div : 'popuplayer',
  473.           close_id : 'baner_close',
  474.           overlay : true,
  475.           opacity_level : 0.6,
  476.           overlay_cc : true,
  477.           centered : true,
  478.           floating : true,
  479.           floating_reaction : 700,
  480.           floating_speed : 12,
  481.           fly_in : true,
  482.           fly_from : 'top',
  483.           fly_out : true,
  484.           fly_to : 'right'
  485.           }
  486.         );
  487.     }
  488.     -->
  489.    
  490. function showBots() { $('#bots_content').popup( {
  491. starttime : 0,
  492.  multipages_timer : false,
  493.  selfclose : 0,
  494.  popup_div : 'bpop',
  495.  overlay_div : 'popuplayer',
  496.  close_id : 'baner_close',
  497.  overlay : true,
  498.  opacity_level : 0.6,
  499.  overlay_cc : true,
  500.  centered : true,
  501.  floating : true,
  502.  floating_reaction : 700,
  503.  floating_speed : 12,
  504.  fly_in : false,
  505.  fly_from : 'top',
  506.  fly_out : true,
  507.  fly_to : 'top'
  508.  
  509. } ); }
  510.  
  511. </script>
  512.  
  513. <div id="overlaycrookie" style="display:none;"></div>
  514. <div id="crookie_alert" class="popup">
  515. <div id="helpbox" class="ilubox" style="width: 420px; height: auto;">
  516.  
  517. <div class="topbox" style="color:gray;"><b><center>Nachricht vom Hotelmanagement</center></b></div>
  518. <div id="nachricht"></div>
  519. <div id="baner_close" class="betaclosecrookie" onclick="close_crookies_box();">Fenster schliessen</div>
  520. </div>
  521. </div>  
  522. <?php } ?>
  523. </div>
  524.  
  525. <script src="http://code.jquery.com/jquery-latest.js"></script>
  526. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>  
  527. <script src="<?php echo $site->url; ?>hhnewloader/js/jquery.floating_popup.1.4.min.js"></script>  
  528.  
  529. <script type="text/javascript">
  530. function showAlert() {
  531.         $('#crookie_alert').popup(
  532.           {
  533.           starttime : 0,
  534.           multipages_timer : false,
  535.           selfclose : 0,
  536.           popup_div : 'hotelalert',
  537.           overlay_div : false,
  538.           close_id : 'baner_close',
  539.           overlay : true,
  540.           opacity_level : 0.6,
  541.           overlay_cc : true,
  542.           centered : true,
  543.           floating : true,
  544.           floating_reaction : 700,
  545.           floating_speed : 12,
  546.           fly_in : true,
  547.           fly_from : 'top',
  548.           fly_out : true,
  549.           fly_to : 'right'
  550.           }
  551.         );
  552.     }
  553.  
  554.     var counter = 0;
  555.        
  556.     function showtimer(){
  557.         counter++;
  558.         if(counter == 30){
  559.             $('#responsecontainer').fadeOut('slow').load('habblet/client/counter.php?u=<?php echo $user->id; ?>').fadeIn("slow");
  560.             counter = 0;
  561.         }
  562.         setTimeout('showtimer()', 1200);    
  563.     }
  564. </script>    
  565. <script type="text/javascript" data-cfasync="false">
  566.     $(document).ready(function() { 
  567.       showtimer();
  568.     });
  569.  
  570. </script>
  571.   </body>  
  572. </html>
  573. <?php } ?>
  574.  
  575. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement