mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-10-29 23:16:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			360 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			360 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use MyAAC\Models\Account;
 | |
| 
 | |
| defined('MYAAC') or die('Direct access not allowed!');
 | |
| 
 | |
| $coins = 0;
 | |
| 
 | |
| if (HAS_ACCOUNT_COINS) {
 | |
| 	$whatToGet = ['id', 'coins'];
 | |
| 	if (USE_ACCOUNT_NAME) {
 | |
| 		$whatToGet[] = 'name';
 | |
| 	}
 | |
| 
 | |
| 	$coins = Account::orderByDesc('coins')->limit(10)->get($whatToGet)->toArray();
 | |
| }
 | |
| 
 | |
| $twig->display('coins.html.twig', array(
 | |
| 	'coins' => $coins
 | |
| ));
 | 
