/**
  * Publish status
  */
 public function status($msg)
 {
     $msg = \Lobby\Time::now("H:i:s") . " - " . $msg;
     $this->app->data->saveArray("log", array($this->statusID => $msg));
     $this->statusID++;
 }
Esempio n. 2
0
              </optgroup>
              <?php 
$regions = array("Africa" => DateTimeZone::AFRICA, "America" => DateTimeZone::AMERICA, "Antartica" => DateTimeZone::ANTARCTICA, "Asia" => DateTimeZone::ASIA, "Atlantic" => DateTimeZone::ATLANTIC, "Australia" => DateTimeZone::AUSTRALIA, "Europe" => DateTimeZone::EUROPE, "Indian" => DateTimeZone::INDIAN, "Pacific" => DateTimeZone::PACIFIC, "UTC" => DateTimeZone::UTC);
$ctz = Lobby\DB::getOption("lobby_timezone");
foreach ($regions as $region => $id) {
    $tzs = \DateTimeZone::listIdentifiers($id);
    echo '<optgroup label="' . $region . '">';
    foreach ($tzs as $tz) {
        echo '<option value="' . $tz . '" ' . ($ctz === $tz ? "selected" : "") . '>' . $tz . '</option>';
    }
    echo '</optgroup>';
}
?>
            </select>
            <p>Timestamp Now : <?php 
echo \Lobby\Time::now();
?>
</p>
          </label>
          <button clear class="btn green">Save Settings</button>
        </form>
        <h2>About</h2>
        <table>
          <col width="100">
          <col width="120">
          <tbody>
            <tr>
              <td>Version</td>
              <td><?php 
echo \Lobby::$version;
?>