FreeSTAR-Status-Engine/config.php.template

26 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-11-23 18:09:36 -05:00
<?php
//This is config file, please be careful
//You can change these:
define("NAME", '##name##'); //Website name
define("WEB_URL", "##url##"); //Used for links
define("MAILER_NAME", "##mailer##"); //Mailer name
define("MAILER_ADDRESS", "##mailer_email##"); //Mailer address
define("INSTALL_OVERRIDE", false);
//Database connection
$mysqli = new mysqli("##server##","##user##","##password##","##database##");
if ($mysqli->connect_errno) {
printf("Connection failed: %s\n", $mysqli->connect_error);
2017-11-23 18:09:36 -05:00
exit();
}
$mysqli->set_charset("utf8");
//This should later be translatable, maybe find a better solution?
2017-12-30 18:41:58 -05:00
$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
2017-11-23 18:09:36 -05:00
$classes = array("danger", "warning", "primary", "success" );
$icons = array("fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check" );
2017-12-30 18:41:58 -05:00
$some = array(_("Some systems are experiencing major outages"), _("Some systems are experiencing minor outages"), _("Some systems are under maintenance"));
$all = array(_("Our systems are experiencing major outages."), _("Our systems are experiencing minor outages"), _("Our systems are under maintenance"), _("All systems operational"));
$permissions = array(_("Super admin"), _("Admin"), _("Writer"));