mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-14 10:14:55 +02:00
Small voting box improvement (#337)
* Add OTServers.eu voting * Hide voting by default and use simple vote url if the user isn't logged in * Fix indentation * Convert to tabs * Convert to tabs
This commit is contained in:

committed by
Stefan A. Brannfjell

parent
f79a48fc06
commit
9404c902f5
@@ -30,7 +30,7 @@
|
||||
// ------------------------ \\
|
||||
|
||||
if ($config['ServerEngine'] !== 'OTHIRE') {
|
||||
|
||||
|
||||
// TFS DATABASE CONFIGS
|
||||
// phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.).
|
||||
$config['sqlUser'] = 'tfs13';
|
||||
@@ -44,7 +44,7 @@
|
||||
// Hostname is usually localhost or 127.0.0.1.
|
||||
$config['sqlHost'] = '127.0.0.1';
|
||||
} else {
|
||||
|
||||
|
||||
// OTHIRE DATABASE CONFIG
|
||||
// phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.).
|
||||
$config['sql_user'] = 'tfs13';
|
||||
@@ -56,7 +56,7 @@
|
||||
$config['sql_db'] = 'tfs13';
|
||||
|
||||
// Hostname is usually localhost or 127.0.0.1.
|
||||
$config['sql_host'] = '127.0.0.1';
|
||||
$config['sql_host'] = '127.0.0.1';
|
||||
}
|
||||
|
||||
// QR code authenticator Only works with TFS 1.2+
|
||||
@@ -1027,6 +1027,7 @@
|
||||
// You can find your secret token by logging in on OTServers.eu and go to 'MY SERVER' then 'Encourage players to vote'.
|
||||
$config['otservers_eu_voting'] = [
|
||||
'enabled' => false,
|
||||
'simpleVoteUrl' => '', //This url is used if the player isn't logged in.
|
||||
'voteUrl' => 'https://api.otservers.eu/vote_link.php',
|
||||
'voteCheckUrl' => 'https://api.otservers.eu/vote_check.php',
|
||||
'secretToken' => '', //Enter your secret token. Do not share with anyone!
|
||||
|
Reference in New Issue
Block a user