Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!$indexing) { exit; }
- $dirCache = 'cache/';
- $filesCache = glob("$dirCache{*.txt}", GLOB_BRACE);
- foreach($filesCache as $file){
- if(filemtime($file) < (time()-86400)) {
- unlink($file);
- }
- }
- require('private/classes/classIndex.php');
- $accData = Index::accData($_SESSION['acc']);
- if(count($accData) == 0) {
- require("private/classes/classAccess.php");
- Access::logout();
- }
- $lastLogins = Index::lastLogins($_SESSION['acc']);
- $lastLogin[0]['ip'] = !empty($lastLogins[0]['ip']) ? $lastLogins[0]['ip'] : '-';
- $lastLogin[0]['date'] = !empty($lastLogins[0]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[0]['logdate']) : '-';
- $lastLogin[1]['ip'] = !empty($lastLogins[1]['ip']) ? $lastLogins[1]['ip'] : '-';
- $lastLogin[1]['date'] = !empty($lastLogins[1]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[1]['logdate']) : '-';
- $lastLogin[2]['ip'] = !empty($lastLogins[2]['ip']) ? $lastLogins[2]['ip'] : '-';
- $lastLogin[2]['date'] = !empty($lastLogins[2]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[2]['logdate']) : '-';
- $lastLogin[3]['ip'] = !empty($lastLogins[3]['ip']) ? $lastLogins[3]['ip'] : '-';
- $lastLogin[3]['date'] = !empty($lastLogins[3]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[3]['logdate']) : '-';
- $lastLogin[4]['ip'] = !empty($lastLogins[4]['ip']) ? $lastLogins[4]['ip'] : '-';
- $lastLogin[4]['date'] = !empty($lastLogins[4]['logdate']) ? date('F d, Y \a\t H:i', $lastLogins[4]['logdate']) : '-';
- ?>
- <ul class="breadcrumb">
- <li><a href="./"><i class='fa fa-home'></i> Buy Premium Coins</a></li>
- </ul>
- <div class='box'>
- <h1><i class='fa fa-users'></i><?php echo 'Please chose Character to recieve Anniversary Coins'; ?></h1>
- <div class='mult'>
- <div class='selec'>
- <?php
- $findChars = Index::findChars($_SESSION['acc']);
- if(count($findChars) > 0) {
- for($i=0, $c=count($findChars); $i < $c; $i++) {
- echo "
- <div".($i == 0 ? " class='actived'" : "")." data-id='".$findChars[$i]['charId']."'>
- <img src='imgs/avatar/".genAvatar($findChars[$i]['base_class'], $findChars[$i]['sex'])."' />
- <div>".$findChars[$i]['char_name']."</div>
- </div>
- ";
- }
- }
- for($i=1; $i <= intval(7-count($findChars)); $i++) {
- $fchar= $findChars[$i]['char_name'];
- echo "<span></span>";
- }
- ?>
- </div>
- <?php
- if(count($findChars) == 0) {
- } else {
- for($i=0, $c=count($findChars); $i < $c; $i++) {
- if(!empty($findChars[$i]['onlinetime'])) {
- $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;
- $onlineTime = '';
- if(!empty($dias)) { $onlineTime .= $dias.' '.$LANG[12014].'s, '; }
- if(!empty($hora)) { $onlineTime .= $hora.' hrs, '; }
- if(!empty($minuto)) { $onlineTime .= $minuto.' min'; }
- } else {
- $onlineTime = $LANG[16004];
- }
- echo "
- <div class='infos".($i == 0 ? " actived" : "")."' data-id='".$findChars[$i]['charId']."'>
- <div class='lines'>
- <div>".$LANG[12013]."<span>".trim($findChars[$i]['char_name'])."</span></div>
- </div>
- </div>
- ";
- }
- }
- ?>
- <?php echo "ECHO??"?>
- <?php echo "$fchar"?>
- <center>
- <form target="form1" action="./?module=donate&page=bpremium" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <table>
- <tr><td><input type="hidden" name="on0" value="coins"><select name="os0">
- <option value="1">1 Anneversary Coins = 50 Ncoins</option>
- <option value="3">3 Anneversary Coins = 100 Ncoins</option>
- <option value="7">7 Anneversary Coins = 200 Ncoins</option>
- <option value="15">15 Anneversary Coins = 400 Ncoins</option>
- <option value="30">30 Anneversary Coins = 800 Ncoins</option>
- </select> </td></tr>
- </table>
- <input type="hidden" name="on1" value="<?php echo $fchar?>">
- <input type="image" src="./imgs/premiumButton.png" border="0" name="submit" alt="Go Premium NOW!">
- </form>
- <?php if(count($findChars) > 7) { ?>
- <script>
- $(function(){
- var divsCount = $('.mult .selec > div').length;
- if((divsCount * 103) > 718) {
- var newWidth = ((718 / divsCount) - 23);
- $('.mult .selec > div, .mult .selec > div > img').css({ 'width': newWidth+'px' });
- $('.mult .selec > div > div').css({ 'width': (newWidth-8)+'px' });
- }
- });
- </script>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement