Guest User

Untitled

a guest
Jul 15th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 19.00 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app>
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  5.     <title><?PHP echo $title; ?> ::Alternative Open Tibia Server::</title>
  6.     <meta name="author" content="Bufostudio.pl"/>
  7.     <link rel="stylesheet" href="<?PHP echo $layout_name; ?>/_css/default.css" type="text/css" />
  8.     <link rel="stylesheet" href="<?PHP echo $layout_name; ?>/_css/basic.css" type="text/css" />
  9.  
  10.     <link rel="icon" href="<? echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">
  11.    
  12.     <script type="text/javascript" src="<?PHP echo $layout_name; ?>/_js/slideshow.js"></script>
  13.     <script type="text/javascript" src="<?PHP echo $layout_name; ?>/_js/jquery-1.4.2.min.js"></script>
  14. <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"></script>
  15.    
  16.     <script type='text/javascript'>
  17.         $(document).ready(function(){
  18.         $("img.a").hover(
  19.             function() {
  20.                 $(this).stop().animate({"opacity": "0"}, "slow");
  21.             },
  22.             function() {
  23.                 $(this).stop().animate({"opacity": "1"}, "slow");
  24.             });
  25.         });
  26.     </script>
  27. <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>
  28. <style>
  29. #fbox-background {
  30.     display: none;
  31.     background: rgba(0,0,0,0.8);
  32.     width: 100%;
  33.     height: 100%;
  34.     position: fixed;
  35.     top: 0;
  36.     left: 0;
  37.     z-index: 99999;
  38. }
  39.  
  40. #fbox-close {
  41.     width: 100%;
  42.     height: 100%;
  43. }
  44.  
  45. #fbox-display {
  46.     background: #eaeaea;
  47.     border: 5px solid #828282;
  48.     width: 340px;
  49.     height: 230px;
  50.     position: absolute;
  51.     top: 32%;
  52.     left: 37%;
  53.     -webkit-border-radius: 5px;
  54.     -moz-border-radius: 5px;
  55.     border-radius: 5px;
  56. }
  57.  
  58. #fbox-button {
  59.     float: right;
  60.     cursor: pointer;
  61.     position: absolute;
  62.     right: 0px;
  63.     top: 0px;
  64. }
  65.  
  66. #fbox-button:before {
  67.     content: "CLOSE";
  68.     padding: 5px 8px;
  69.     background: #828282;
  70.     color: #eaeaea;
  71.     font-weight: bold;
  72.     font-size: 10px;
  73.     font-family: Tahoma;
  74. }
  75.  
  76. #fbox-link,#fbox-link a.visited,#fbox-link a,#fbox-link a:hover {
  77.     color: #aaaaaa;
  78.     font-size: 9px;
  79.     text-decoration: none;
  80.     text-align: center;
  81.     padding: 5px;
  82. }
  83. </style>
  84. <script type='text/javascript'>
  85. //<![CDATA[
  86. jQuery.cookie = function (key, value, options) {
  87. // key and at least value given, set cookie...
  88. if (arguments.length > 1 && String(value) !== "[object Object]") {
  89. options = jQuery.extend({}, options);
  90. if (value === null || value === undefined) {
  91. options.expires = -1;
  92. }
  93. if (typeof options.expires === 'number') {
  94. var days = options.expires, t = options.expires = new Date();
  95. t.setDate(t.getDate() + days);
  96. }
  97. value = String(value);
  98. return (document.cookie = [
  99. encodeURIComponent(key), '=',
  100. options.raw ? value : encodeURIComponent(value),
  101. options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
  102. options.path ? '; path=' + options.path : '',
  103. options.domain ? '; domain=' + options.domain : '',
  104. options.secure ? '; secure' : ''
  105. ].join(''));
  106. }
  107. // key and possibly options given, get cookie...
  108. options = value || {};
  109. var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
  110. return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
  111. };
  112. //]]>
  113. </script>
  114.     <?php echo $layout_header; ?>
  115. </head>
  116. <body>
  117.     <div id="page">
  118.         <div id="logo"></div>
  119.        
  120.         <div id="content">
  121.             <div id="menu_top">
  122.                 <div class='img'>
  123.                     <div class="left">
  124.                         <div id='menu_top_home'>
  125.                             <a href="?subtopic=latestnews">
  126.                                 <div class='fadehover'>
  127.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/news_1a.png' alt='<?PHP echo $title; ?> ::Soft Cores:: ' class='a' />
  128.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/news_1b.png' alt='<?PHP echo $title; ?> ::Soft Cores:: ' class='b' />
  129.                                 </div>
  130.                             </a>
  131.                         </div>
  132.                         <div id='menu_top_acc'>
  133.                             <a href="?subtopic=accountmanagement">
  134.                                 <div class='fadehover'>
  135.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/account_1a.png' alt='Account ::Soft Cores:: ' class='a' />
  136.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/account_1b.png' alt='Account ::Soft Cores:: ' class='b' />
  137.                                 </div>
  138.                             </a>
  139.                         </div>
  140.                         <div id='menu_top_shop'>
  141.                             <a href="?subtopic=shopsystem">
  142.                                 <div class='fadehover'>
  143.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/shop_1a.png' alt='Shop ::Soft Cores:: ' class='a' />
  144.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/shop_1b.png' alt='Shop ::Soft Cores:: ' class='b' />
  145.                                 </div>
  146.                             </a>
  147.                         </div>
  148.                        
  149.                     <div class="online">
  150.                         <?PHP
  151.                            $players_online = $SQL->query("SELECT COUNT(*) AS online FROM players WHERE world_id = '.$world_id.' and online = 1");
  152.                             foreach($players_online as $players);
  153.                            
  154.                             if($config['status']['serverStatus_online'] == 1){
  155.                                     echo '<center style="text-shadow: 1px 1px #2d2d2d; text-transform: uppercase;"><img src='. $layout_name .'/_img/online/online.png /><br/>                                  
  156.                                         <a style="color:#FFF;" href="index.php?subtopic=whoisonline">Online: '.$config['status']['serverStatus_players'].' ('.($players['online']-$config['status']['serverStatus_players']).' AFK)</a><br/>
  157.                                         UpTime: <FONT color="green"><b>'.$config['status']['serverStatus_uptime'].'</b></FONT><br/>
  158.                                         Monsters:  '. $config['status']['serverStatus_monsters'] .'
  159.                                         </center>';
  160.                                     }else{
  161.                                 echo '<center style="text-shadow: 1px 1px #2d2d2d; text-transform: uppercase;"><img src='. $layout_name .'/_img/online/online.png /><br/>                                  
  162.                                         <a style="color:#FFF;" href="index.php?subtopic=whoisonline">Online: '.$config['status']['serverStatus_players'].' ('.($players['online']-$config['status']['serverStatus_players']).' AFK)</a><br/>
  163.                                         UpTime: <FONT color="green"><b>'.$config['status']['serverStatus_uptime'].'</b></FONT><br/>
  164.                                         Monsters:  '. $config['status']['serverStatus_monsters'] .'
  165.                                         </center>';}
  166.                         ?>
  167.                     </div>
  168.                    
  169.                     <div class="right">
  170.                         <div id='menu_top_forum'>
  171.                             <a href="?subtopic=forum">
  172.                                 <div class='fadehover'>
  173.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/forum_1a.png' alt='Forum ::Soft Cores:: ' class='a' />
  174.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/forum_1b.png' alt='Forum ::Soft Cores:: ' class='b' />
  175.                                 </div>
  176.                             </a>
  177.                         </div>
  178.                         <div id='menu_top_highscores'>
  179.                             <a href="?subtopic=highscores">
  180.                                 <div class='fadehover'>
  181.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/highscores_1a.png' alt='Highscores ::Soft Cores:: ' class='a' />
  182.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/highscores_1b.png' alt='Highscores ::Soft Cores:: ' class='b' />
  183.                                 </div>
  184.                             </a>
  185.                         </div>
  186.                         <div id='menu_top_register'>
  187.                             <a href="?subtopic=createaccount">
  188.                                 <div class='fadehover'>
  189.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/register_1a.png' alt='Register ::Soft Cores:: ' class='a' />
  190.                                     <img src='/<?PHP echo $layout_name; ?>/_img/menu/register_1b.png' alt='Register ::Soft Cores:: ' class='b' />
  191.                                 </div>
  192.                             </a>
  193.                         </div>
  194.                     </div>
  195.                     </div>
  196.                 </div>
  197.             </div>
  198.            
  199.             <div id="menu_left">
  200.                 <div id="menu-label">
  201.                     <div id="icon-news"></div>
  202.                     <div id="text-news"></div>
  203.                 </div>
  204.                 <div id="menu_links">
  205.                     <ul>
  206.                         <li><a href="?subtopic=latestnews">&nbsp;&raquo; Latest news</a></li>
  207.                         <li><a href="?subtopic=archive">&nbsp;&raquo; News archive</a></li>
  208.                     </ul>
  209.                 </div>
  210.                
  211.                 <div class="clean_5"></div>
  212.                
  213.                 <div id="menu-label">
  214.                     <div id="icon-account"></div>
  215.                     <div id="text-account"></div>
  216.                 </div>
  217.                 <div id="menu_links">
  218.                     <ul>
  219.                         <?PHP if($logged){
  220.                                if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
  221.                                     echo '<li><a href="?subtopic=phpmyadmin"><font color="red">&nbsp;&raquo; PhpMyAdmin</font></a></li>
  222.                                 <li><a href="?subtopic=shopadmin"><font color="red">&nbsp;&raquo; Shop Admin</font></a></li>';
  223.                                 if($logged)
  224.                             echo '<li><a href="?subtopic=accountmanagement"><font color="orange"><b>Acc. Management</b></font></a></li>';
  225.                                 }else{
  226.                             echo '<li><a href="?subtopic=accountmanagement"><b>&nbsp;&raquo; Login</b></a></li>
  227.                                 <li><a href="?subtopic=createaccount"><b>&nbsp;&raquo; Create Account</b></a></li>
  228.                                 <li><a href="?subtopic=lostaccount"><b>&nbsp;&raquo; Lost Account</b></a></li>';}?>
  229.                                 <li><a href="?subtopic=tibiarules"><b>&nbsp;&raquo; Server Rules</b></a></li>
  230.                     </ul>
  231.                 </div>
  232.                
  233.                 <div class="clean_5"></div>
  234.                
  235.                 <div id="menu-label">
  236.                     <div id="icon-community"></div>
  237.                     <div id="text-community"></div>
  238.                 </div>
  239.                 <div id="menu_links">
  240.                     <li><a href="?subtopic=characters">&nbsp;&raquo; Characters</a></li>
  241.                     <li><a href="?subtopic=whoisonline">&nbsp;&raquo; Who is Online?</a></li>
  242.                     <li><a href="?subtopic=highscores">&nbsp;&raquo; Highscores</a></li>
  243.                     <li><a href="?subtopic=killstatistics">&nbsp;&raquo; Kill Statistics</a></li>
  244.                     <li><a href="?subtopic=guilds">&nbsp;&raquo; Guilds</a></li>
  245.                     <li><a href="?subtopic=wars">&nbsp;&raquo; Guild Wars</a></li>
  246.                     <li><a href="?subtopic=forum">&nbsp;&raquo; Forum</a></li>
  247.                     <li><a href="?subtopic=team">&nbsp;&raquo; Support</a></li>
  248.                 </div>
  249.                
  250.                 <div class="clean_5"></div>
  251.                
  252.                 <div id="menu-label">
  253.                     <div id="icon-library"></div>
  254.                     <div id="text-library"></div>
  255.                 </div>
  256.                 <div id="menu_links">
  257.                     <li><a href="?subtopic=serverinfo">&nbsp;&raquo; Server Info</a></li>
  258.                     <li><a href="?subtopic=tasks">&nbsp;&raquo; Task Info</a></li>
  259.                     <li><a href="?subtopic=downloads">&nbsp;&raquo; Downloads</a></li>
  260.                 </div>
  261.                
  262.                 <div class="clean_5"></div>
  263.                
  264.                 <div id="menu-label">
  265.                     <div id="icon-shop"></div>
  266.                     <div id="text-shop"></div>
  267.                 </div>
  268.                 <div id="menu_links">
  269.                         <li><a href="?subtopic=buypoints&system=homepay"><b><font color="red">&nbsp;&raquo; Buy Points</font></b></a></li>
  270.                         <li><a href="?subtopic=shopsystem"><b><font color="green">&nbsp;&raquo; Shop Offers</font></b></a></li>
  271.                         <?PHP
  272.                            if($logged)
  273.                                echo '<li><a href="?subtopic=shopsystem&action=show_history"><b>&nbsp;&raquo; Trans History</b></a></li>';
  274.                         ?>
  275.                 </div>
  276.  
  277.             </div>
  278.            
  279.             <div id="content_text">
  280.                 <?PHP echo $main_content; ?>
  281.             </div>
  282.                
  283.             <div id="menu_right">
  284.                 <div id="menu-label">
  285.                     <div id="icon-info"></div>
  286.                     <div id="text-info"></div>
  287.                 </div>
  288.                         <span class="white" style="font-weight: bold;">&nbsp;&raquo; Exp: </span><i>Stage 20x</i><br/>
  289.                         <span class="white" style="font-weight: bold;">&nbsp;&raquo; Skill: </span><i>7x</i><br/>
  290.                         <span class="white" style="font-weight: bold;">&nbsp;&raquo; Magic: </span><i>3x</i><br/>
  291.                         <span class="white" style="font-weight: bold;">&nbsp;&raquo; Loot: </span><i>3x</i>
  292.            
  293.                 <div class="clean_5"></div>
  294.            
  295.                 <div id="menu-label">
  296.                     <div id="icon-search"></div>
  297.                     <div id="text-search"></div>
  298.                 </div>
  299.                
  300.                 <div class="clean_5"></div>
  301.                     <center>
  302.                         <FORM ACTION="?subtopic=characters" METHOD=post>
  303.                             <INPUT NAME="name" VALUE="" class="search" SIZE=20 MAXLENGTH=29>
  304.                             <div class="clean_5"></div>
  305.                             <INPUT TYPE=image NAME="Submit" SRC="layouts/cyber/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18>
  306.                         </FORM>
  307.                     </center>
  308.            
  309.                 <div class="clean_5"></div>
  310.  
  311.                 <?php
  312.                    $skills = $SQL->query('SELECT name,online,level,experience,vocation,promotion FROM players WHERE players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" AND name != "Rook Sample" AND name != "Sorcerer Sample" AND name != "Druid Sample" AND name != "Paladin Sample" AND name != "Knight Sample" ORDER BY level DESC, experience DESC LIMIT 10;');
  313.                    if ($skills) {
  314.                ?>
  315.                     <div id="menu-label">
  316.                         <div id="icon-toplevel"></div>
  317.                         <div id="text-toplevel"></div>
  318.                     </div>
  319.                
  320.                     <table width="100%" border="0">
  321.                     <?PHP
  322.                        $order = 0;
  323.                        $number_of_people = 0;
  324.                        foreach($skills as $skill) {
  325.                            $order++;
  326.                            if(is_int($number_of_people / 2))
  327.                                $bgcolor = $config['site']['darkborder'];
  328.                            else
  329.                                $bgcolor = $config['site']['lightborder'];
  330.                                $number_of_people++;
  331.                                $players_skill .= '<tr BGCOLOR="'.$bgcolor.'"><td align="center">'.$order.'.</td><td align="left"><B><a href="?subtopic=characters&name='.urlencode($skill['name']).'">'.($skill['online']>0 ? "<font color=\"green\">".$skill['name']."</font>" : "".$skill['name']."</font>").'</a></td> <td align="center"><font color="#7073FC"><em>LvL '.$skill['level'].'</em></font></td>';
  332.                         }
  333.                         echo "$players_skill";
  334.                     ?>
  335.                     </table>
  336.                
  337.                     <div class="clean_5"></div>
  338.                 <?php } ?>
  339.  
  340.                 <?php
  341.                    $guilds = $SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`,
  342.                             `g`.`logo_gfx_name` AS `logo`, COUNT(`g`.`name`) as `frags`
  343.                     FROM `killers` k
  344.                             LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id`
  345.                             LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id`
  346.                             LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id`
  347.                             LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id`
  348.                     WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1
  349.                             GROUP BY `name`
  350.                             ORDER BY `frags` DESC, `name` ASC
  351.                             LIMIT 0, 10;');
  352.                     if ($guilds) {
  353.                 ?>
  354.                         <div id="menu-label">
  355.                             <div id="icon-topguilds"></div>
  356.                             <div id="text-topguilds"></div>
  357.                         </div>
  358.                    
  359.                         <table width="100%" border="0">
  360.                         <?PHP
  361.                            $i = 0;
  362.                            foreach($guilds as $guild) {
  363.                                $i++;
  364.                                echo '<tr BGCOLOR="'.$bgcolor.'">
  365.                                         <td align="center">'.$i.'. </td>
  366.                                         <td align="left">
  367.                                             <B><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '">' . $guild['name'] . '</a></b>
  368.                                         </td>
  369.                                         <td align="center">' . $guild['frags'] . ' kills</td>
  370.                                     </tr>';
  371.                             }
  372.                         ?>
  373.                         </table>
  374.                 <?php
  375.                    }
  376.                ?>
  377.             </div>
  378.         </div>
  379.        
  380.         <div id="content_bot"></div>
  381.     </div>
  382. </body>
  383. </html>
Add Comment
Please, Sign In to add comment