mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-12-02 09:05:11 -05:00
Fixes issue #64
This commit is contained in:
parent
41fd9a2745
commit
02cd19a439
@ -163,7 +163,7 @@ class Service implements JsonSerializable
|
|||||||
?>
|
?>
|
||||||
<div class="item clearfix">
|
<div class="item clearfix">
|
||||||
<div class="service"><?php echo $this->name; ?></div>
|
<div class="service"><?php echo $this->name; ?></div>
|
||||||
<?php if ($this->status!=-1){?><div class="status <?php echo $classes[$this->status];?>"><?php echo $statuses[$this->status];?></div><?php }?>
|
<?php if ($this->status!=-1){?><div class="status <?php echo $classes[$this->status];?>"><?php echo _($statuses[$this->status]);?></div><?php }?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ if (!isset($_SESSION['locale'])||isset($_GET['lang']))
|
|||||||
$_SESSION['locale'] = $best_match;
|
$_SESSION['locale'] = $best_match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
putenv('LANGUAGE='.$_SESSION['locale'].'.UTF-8');
|
||||||
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
|
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
|
||||||
setlocale(LC_MESSAGES, $_SESSION['locale'].".UTF-8");
|
setlocale(LC_MESSAGES, $_SESSION['locale'].".UTF-8");
|
||||||
bindtextdomain("server-status", __DIR__ . "/locale/");
|
bindtextdomain("server-status", __DIR__ . "/locale/");
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once("template.php");
|
|
||||||
|
|
||||||
if (!file_exists("config.php"))
|
if (!file_exists("config.php"))
|
||||||
{
|
{
|
||||||
|
require_once("template.php");
|
||||||
require_once("install.php");
|
require_once("install.php");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
require_once("config.php");
|
require_once("config.php");
|
||||||
|
require_once("template.php");
|
||||||
require_once("classes/constellation.php");
|
require_once("classes/constellation.php");
|
||||||
|
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user