Advertisement
SilentLtu

qqq

May 27th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. <?php
  2.  
  3. if(!$indexing) { exit; }
  4.  
  5. $dirCache = 'cache/';
  6. $filesCache = glob("$dirCache{*.txt}", GLOB_BRACE);
  7. foreach($filesCache as $file){
  8. if(filemtime($file) < (time()-86400)) {
  9. unlink($file);
  10. }
  11. }
  12.  
  13. require('private/classes/classIndex.php');
  14.  
  15. $accData = Index::accData($_SESSION['acc']);
  16. if(count($accData) == 0) {
  17. require("private/classes/classAccess.php");
  18. Access::logout();
  19. }
  20.  
  21. $lastLogins = Index::lastLogins($_SESSION['acc']);
  22.  
  23. $lastLogin[0]['ip'] = !empty($lastLogins[0]['ip']) ? $lastLogins[0]['ip'] : '-';
  24. $lastLogin[0]['date'] = !empty($lastLogins[0]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[0]['logdate']) : '-';
  25.  
  26. $lastLogin[1]['ip'] = !empty($lastLogins[1]['ip']) ? $lastLogins[1]['ip'] : '-';
  27. $lastLogin[1]['date'] = !empty($lastLogins[1]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[1]['logdate']) : '-';
  28.  
  29. $lastLogin[2]['ip'] = !empty($lastLogins[2]['ip']) ? $lastLogins[2]['ip'] : '-';
  30. $lastLogin[2]['date'] = !empty($lastLogins[2]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[2]['logdate']) : '-';
  31.  
  32. $lastLogin[3]['ip'] = !empty($lastLogins[3]['ip']) ? $lastLogins[3]['ip'] : '-';
  33. $lastLogin[3]['date'] = !empty($lastLogins[3]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[3]['logdate']) : '-';
  34.  
  35. $lastLogin[4]['ip'] = !empty($lastLogins[4]['ip']) ? $lastLogins[4]['ip'] : '-';
  36. $lastLogin[4]['date'] = !empty($lastLogins[4]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[4]['logdate']) : '-';
  37.  
  38.  
  39. ?>
  40.  
  41. <ul class="breadcrumb">
  42. <li><a href="./"><i class='fa fa-home'></i> Buy Premium Coins</a></li>
  43. </ul>
  44.  
  45.  
  46. <div class='box'>
  47. <h1><i class='fa fa-users'></i><?php echo 'Please chose Character to recieve Anniversary Coins'; ?></h1>
  48. <div class='mult'>
  49. <div class='selec'>
  50. <?php
  51.  
  52. $findChars = Index::findChars($_SESSION['acc']);
  53. if(count($findChars) > 0) {
  54. for($i=0, $c=count($findChars); $i < $c; $i++) {
  55.  
  56. echo "
  57. <div".($i == 0 ? " class='actived'" : "")." data-id='".$findChars[$i]['charId']."'>
  58. <img src='imgs/avatar/".genAvatar($findChars[$i]['base_class'], $findChars[$i]['sex'])."' />
  59. <div>".$findChars[$i]['char_name']."</div>
  60. </div>
  61. ";
  62. }
  63. }
  64. for($i=1; $i <= intval(7-count($findChars)); $i++) {
  65. $fchar= $findChars[$i]['char_name'];
  66. echo "<span></span>";
  67. }
  68. ?>
  69. </div>
  70.  
  71. <?php
  72. if(count($findChars) == 0) {
  73.  
  74. } else {
  75. for($i=0, $c=count($findChars); $i < $c; $i++) {
  76.  
  77. if(!empty($findChars[$i]['onlinetime'])) {
  78. $dias = intval(intval($findChars[$i]['onlinetime']) / 86400); $marcador = intval($findChars[$i]['onlinetime']) % 86400; $hora = intval($marcador / 3600); $marcador = $marcador % 3600; $minuto = intval($marcador / 60); $segundos = $marcador % 60;
  79. $onlineTime = '';
  80. if(!empty($dias)) { $onlineTime .= $dias.' '.$LANG[12014].'s, '; }
  81. if(!empty($hora)) { $onlineTime .= $hora.' hrs, '; }
  82. if(!empty($minuto)) { $onlineTime .= $minuto.' min'; }
  83. } else {
  84. $onlineTime = $LANG[16004];
  85. }
  86.  
  87. echo "
  88. <div class='infos".($i == 0 ? " actived" : "")."' data-id='".$findChars[$i]['charId']."'>
  89. <div class='lines'>
  90. <div>".$LANG[12013]."<span>".trim($findChars[$i]['char_name'])."</span></div>
  91. </div>
  92. </div>
  93. ";
  94. }
  95. }
  96.  
  97. ?>
  98. <?php echo "ECHO??"?>
  99. <?php echo "$fchar"?>
  100. <center>
  101. <form target="form1" action="./?module=donate&page=bpremium" method="post">
  102. <input type="hidden" name="cmd" value="_s-xclick">
  103. <table>
  104. <tr><td><input type="hidden" name="on0" value="coins"><select name="os0">
  105. <option value="1">1 Anneversary Coins = 50 Ncoins</option>
  106. <option value="3">3 Anneversary Coins = 100 Ncoins</option>
  107. <option value="7">7 Anneversary Coins = 200 Ncoins</option>
  108. <option value="15">15 Anneversary Coins = 400 Ncoins</option>
  109. <option value="30">30 Anneversary Coins = 800 Ncoins</option>
  110. </select> </td></tr>
  111. </table>
  112. <input type="hidden" name="on1" value="<?php echo $fchar?>">
  113. <input type="image" src="./imgs/premiumButton.png" border="0" name="submit" alt="Go Premium NOW!">
  114. </form>
  115.  
  116.  
  117.  
  118.  
  119. <?php if(count($findChars) > 7) { ?>
  120. <script>
  121. $(function(){
  122.  
  123. var divsCount = $('.mult .selec > div').length;
  124. if((divsCount * 103) > 718) {
  125. var newWidth = ((718 / divsCount) - 23);
  126. $('.mult .selec > div, .mult .selec > div > img').css({ 'width': newWidth+'px' });
  127. $('.mult .selec > div > div').css({ 'width': (newWidth-8)+'px' });
  128. }
  129.  
  130. });
  131. </script>
  132. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement