Advertisement
Guest User

here

a guest
Jul 25th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.90 KB | None | 0 0
  1. <?php if (!defined('FLUX_ROOT')) exit; ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.     <head>
  5.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.         <?php if (isset($metaRefresh)): ?>
  7.         <meta http-equiv="refresh" content="<?php echo $metaRefresh['seconds'] ?>; URL=<?php echo $metaRefresh['location'] ?>" />
  8.         <?php endif ?>
  9.         <title><?php echo Flux::config('SiteTitle'); if (isset($title)) echo ": $title" ?></title>
  10.         <link rel="stylesheet" href="<?php echo $this->themePath('css/flux.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
  11.         <link href="<?php echo $this->themePath('css/flux/unitip.css') ?>" rel="stylesheet" type="text/css" media="screen" title="" charset="utf-8" />
  12.         <?php if (Flux::config('EnableReCaptcha')): ?>
  13.         <link href="<?php echo $this->themePath('css/flux/recaptcha.css') ?>" rel="stylesheet" type="text/css" media="screen" title="" charset="utf-8" />
  14.        
  15.         <?php endif ?>
  16.  
  17.      
  18.         <script type="text/javascript" src="<?php echo $this->themePath('js/jquery-1.8.3.min.js') ?>"></script>
  19.         <script type="text/javascript" src="<?php echo $this->themePath('js/flux.datefields.js') ?>"></script>
  20.         <script type="text/javascript" src="<?php echo $this->themePath('js/flux.unitip.js') ?>"></script>
  21.         <script type="text/javascript" src="<?php echo $this->themePath('js/drawmove.monsterdevil_.js') ?>"></script>
  22.  
  23.                
  24.         <!--[if lt IE 9]>
  25.         <link rel="stylesheet" href="<?php echo $this->themePath('css/flux/ie.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
  26.         <![endif]-->   
  27.        
  28.         <!--[if lt IE 9]>
  29.         <script src="<?php echo $this->themePath('js/ie9.js') ?>" type="text/javascript"></script>
  30.         <![endif]-->
  31.        
  32.         <!--[if lt IE 6]>
  33.         <script type="text/javascript" src="<?php echo $this->themePath('js/flux.unitpngfix.js') ?>"></script>
  34.         <![endif]-->
  35.        
  36.         <script type="text/javascript">
  37.             jQuery(document).ready(function(){
  38.                 var inputs = 'input[type=text],input[type=password],input[type=file]';
  39.                 jQuery(inputs).focus(function(){
  40.                     jQuery(this).css({
  41.                         'background-color': '#f9f5e7',
  42.                         'border-color': '#dcd7c7',
  43.                         'color': '#726c58'
  44.                     });
  45.                 });
  46.                 jQuery(inputs).blur(function(){
  47.                     jQuery(this).css({
  48.                         'backgroundColor': '#ffffff',
  49.                         'borderColor': '#dddddd',
  50.                         'color': '#444444'
  51.                     }, 500);
  52.                 });
  53.                 jQuery('.menuitem a').hover(
  54.                     function(){
  55.                         jQuery(this).fadeTo(200, 0.85);
  56.                         jQuery(this).css('cursor', 'pointer');
  57.                     },
  58.                     function(){
  59.                         jQuery(this).fadeTo(150, 1.00);
  60.                         jQuery(this).css('cursor', 'normal');
  61.                     }
  62.                 );
  63.                 jQuery('.money-input').keyup(function() {
  64.                     var creditValue = parseInt(jQuery(this).val() / <?php echo Flux::config('CreditExchangeRate') ?>, 10);
  65.                     if (isNaN(creditValue))
  66.                         jQuery('.credit-input').val('?');
  67.                     else
  68.                         jQuery('.credit-input').val(creditValue);
  69.                 }).keyup();
  70.                 jQuery('.credit-input').keyup(function() {
  71.                     var moneyValue = parseFloat(jQuery(this).val() * <?php echo Flux::config('CreditExchangeRate') ?>);
  72.                     if (isNaN(moneyValue))
  73.                         jQuery('.money-input').val('?');
  74.                     else
  75.                         jQuery('.money-input').val(moneyValue.toFixed(2));
  76.                 }).keyup();
  77.                
  78.                 // In: js/flux.datefields.js
  79.                 processDateFields();
  80.             });
  81.            
  82.             function reload(){
  83.                 window.location.href = '<?php echo $this->url ?>';
  84.             }
  85.         </script>
  86.        
  87.         <script type="text/javascript">
  88.             function updatePreferredServer(sel){
  89.                 var preferred = sel.options[sel.selectedIndex].value;
  90.                 document.preferred_server_form.preferred_server.value = preferred;
  91.                 document.preferred_server_form.submit();
  92.             }
  93.            
  94.             // Preload spinner image.
  95.             var spinner = new Image();
  96.             spinner.src = '<?php echo $this->themePath('img/spinner.gif') ?>';
  97.            
  98.             function refreshSecurityCode(imgSelector){
  99.                 jQuery(imgSelector).attr('src', spinner.src);
  100.                
  101.                 // Load image, spinner will be active until loading is complete.
  102.                 var clean = <?php echo Flux::config('UseCleanUrls') ? 'true' : 'false' ?>;
  103.                 var image = new Image();
  104.                 image.src = "<?php echo $this->url('captcha') ?>"+(clean ? '?nocache=' : '&nocache=')+Math.random();
  105.                
  106.                 jQuery(imgSelector).attr('src', image.src);
  107.             }
  108.             function toggleSearchForm()
  109.             {
  110.                 //jQuery('.search-form').toggle();
  111.                 jQuery('.search-form').slideToggle('fast');
  112.             }
  113.         </script>
  114.        
  115.         <?php if (Flux::config('EnableReCaptcha') && Flux::config('ReCaptchaTheme')): ?>
  116.         <script type="text/javascript">
  117.              var RecaptchaOptions = {
  118.                 theme : '<?php echo Flux::config('ReCaptchaTheme') ?>'
  119.              };
  120.         </script>
  121.         <?php endif ?>
  122.        
  123.     </head>
  124.    
  125.    
  126.     <body>
  127.        
  128.         <div id="wrapper">
  129.            
  130.             <div id="header" style="background-image: url('<?php echo $this->themePath('img/bg.jpg'); ?>');">
  131.                 <div id="topbar">
  132.                     <div id="toppanel">
  133.                         <div class="statusInfo">Server: <a id="server"  class="<?php echo $serverOnline; ?>" href="<?php echo $this->url('server', 'status'); ?>"><?php echo $serverOnline; ?></a></div>
  134.                         <div class="statusInfo">Players: <a id="players" href="<?php echo $this->url('character', 'online'); ?>"><?php echo $onlinePlayersCount; ?></a> </div>
  135.                         <div class="statusInfo">WoE: <a id="woeUp" class="<?php echo $woeUp; ?>"href="<?php echo $this->url('woe', 'index'); ?>"><?php echo $woeUp; ?></a> </div>
  136.  
  137.                     </div> <!-- toppanel -->
  138.                 </div> <!-- topbar -->
  139.                
  140.                 <div class="colwidth">
  141.                    
  142.                    
  143.                     <div id="logo">
  144.                             <a href="<?php echo $this->basePath ?>">
  145.                                 <img src='<?php echo $this->themePath('img/logo.png') ?>' />
  146.                             </a>
  147.                     </div> <!-- logo -->
  148.                    
  149.                     <div id="monsterdevil">
  150.                        
  151.                     </div> <!-- drawmove canvas -->
  152.                 </div> <!-- colwidth -->
  153.        
  154.             </div> <!-- header -->
  155.        
  156.         <div id="menu" style="background-image: url('<?php echo $this->themePath('img/menufond.png'); ?>');">
  157.             <div class="colwidth">
  158.                 <ul>
  159.                     <!--------------------------------------->
  160.                     <!-- Top Menu, You may add links here! -->
  161.                     <!--------------------------------------->
  162.                     <li><a href='?module=news&action=view'><b>News</b></a></li>
  163.                     <li><a href='?module=server&action=info'>Informations</a></li>
  164.                     <li><a href='?module=donate'>Donation</a></li>
  165.                     <li><a href='?module=pages&action=content&path=staff'>Staff</a></li>
  166.                     <!--------------------------------------->
  167.  
  168.                 </ul>
  169.                
  170.                 <div id="loginbox">
  171.                     <?php if ($session->isLoggedIn()): ?>
  172.                         <?php include ('main/loginbox.php'); ?>
  173.                     <?php else:?>
  174.                         <?php include ('main/loginsmall.php'); ?>
  175.                     <?php endif?>
  176.                 </div> <!-- login box -->
  177.                  
  178.             </div> <!-- col width menu -->
  179.         </div>   <!-- menu -->
  180.        
  181.         <div id="content" style="background-image: url('<?php echo $this->themePath('img/deggreysite.png'); ?>');">
  182.            
  183.             <div class="colwidth">
  184.        
  185.                                
  186.                 <?php include 'main/sidebar.php' ?>
  187.  
  188.                 <div id="wrapperMain">
  189.                
  190.                     <!-- admin menu -->
  191.                     <?php include 'main/adminmenu.php' ?>
  192.    
  193.                     <div id="main">
  194.                        
  195.                         <?php if (Flux::config('DebugMode') && @gethostbyname(Flux::config('ServerAddress')) == '127.0.0.1'): ?>
  196.                             <p class="notice">Please change your <strong>ServerAddress</strong> directive in your application config to your server's real address (e.g., myserver.com).</p>
  197.                         <?php endif ?>
  198.                        
  199.                         <!-- Messages -->
  200.                         <?php if ($message=$session->getMessage()): ?>
  201.                             <p class="message"><?php echo htmlspecialchars($message) ?></p>
  202.                         <?php endif ?>
  203.                        
  204.                         <!-- Sub menu -->
  205.                         <?php include 'main/submenu.php' ?>
  206.                        
  207.                         <!-- Page menu -->
  208.                         <?php include 'main/pagemenu.php' ?>
  209.                        
  210.                         <!-- Credit balance -->
  211.                         <?php if (in_array($params->get('module'), array('donate', 'purchase'))) include 'main/balance.php' ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement