Пример #1
0
 private function get_member_list()
 {
     // Call site settings for stored roster & member ranks to track
     $siteSettings = site::setting();
     // Decode JSON from stored roster data
     $roster = json_decode($siteSettings[0]['fullRoster'], true);
     $data = array();
     // Decode JSON from stored roster ranks
     $ranks = json_decode($siteSettings[0]['rosterRanks'], true);
     $filterRanks = array();
     // Ranks to track
     foreach ($ranks as $key => $value) {
         try {
             // echo $key . ' == ' . $value['track'] . '<br/>';
             if ($value['track']) {
                 $filterRanks[] = $key;
             }
         } catch (Exception $e) {
             //
         }
     }
     foreach ($roster['members'] as $key => $character) {
         // echo var_dump($character['character']);
         // echo $character['character']['name'];
         if (in_array($character['rank'], $filterRanks)) {
             $data[] = $character['character']['name'];
         }
     }
     json::resp(array('success' => true, 'data' => $data));
 }
Пример #2
0
<?php

require 'inc/config/backbone.php';
$siteSettings = site::setting();
?>

<!DOCTYPE html>
<html>
<head>
<title><?php 
echo guild_name . ' ' . guild_server . ' ' . guild_faction;
?>
</title>
<meta name="keywords" content="<?php 
echo guild_name;
?>
, <?php 
echo guild_server;
?>
, <?php 
echo guild_faction;
?>
, Guild Site, Guild, WoW, Official Guild Site" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta charset="utf-8">

	<link type="text/css" rel="stylesheet" href="<?php 
echo site_url;
?>
css/stylesheet.css"/>