Hook::func(HOOKTYPE_NAVBAR, 'sql_auth::add_navbar');
Hook::func(HOOKTYPE_PRE_HEADER, 'sql_auth::session_start');
Hook::func(HOOKTYPE_OVERVIEW_CARD, 'sql_auth::add_overview_card');
+ Hook::func(HOOKTYPE_FOOTER, 'sql_auth::add_footer_info');
if (defined('SQL_DEFAULT_USER')) // we've got a default account
{
}
}
+ public static function add_footer_info($empty)
+ {
+ if (!($user = unreal_get_current_user()))
+ return;
+
+ else {
+ echo "<code>Admin Panel v" . WEBPANEL_VERSION . "</code>";
+ }
+ }
+
public static function session_start($n)
{
do_log($_SESSION);
setting_value VARCHAR(255),
PRIMARY KEY (id)
)");
+ $conn->query("CREATE TABLE IF NOT EXISTS " . SQL_PREFIX . "fail2ban (
+ id int AUTO_INCREMENT NOT NULL,
+ ip VARCHAR(255) NOT NULL,
+ count VARCHAR(255),
+ PRIMARY KEY (id)
+ )");
new AuthSettings();
}
}
function fail2ban_check($ip)
-{}
\ No newline at end of file
+{
+
+}
\ No newline at end of file