mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 22:42:25 +00:00 
			
		
		
		
	Add name_link to the configuration
This commit is contained in:
		
							parent
							
								
									01898a4145
								
							
						
					
					
						commit
						880ecf43f9
					
				| @ -1,11 +1,11 @@ | |||||||
|  | <?php | ||||||
|  | require_once './includes/settings.php'; | ||||||
|  | $settings = new Settings(false); | ||||||
|  | ?>
 | ||||||
| <div class="navbar navbar-default navbar-fixed-top" role="navigation"> | <div class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||||||
|     <div class="container"> |     <div class="container"> | ||||||
|         <div class="navbar-header"> |         <div class="navbar-header"> | ||||||
|             <a class="navbar-brand" href="#"><?php |             <a class="navbar-brand" href="<?php echo $settings->name_link; ?>"><?php echo $settings->name; ?></a>
 | ||||||
|                 require_once './includes/settings.php'; |  | ||||||
|                 $settings = new Settings(false); |  | ||||||
|                 echo $settings->name; |  | ||||||
|                 ?></a>
 |  | ||||||
|         </div> |         </div> | ||||||
|         <div class="navbar-collapse collapse"> |         <div class="navbar-collapse collapse"> | ||||||
|             <ul class="nav navbar-nav"> |             <ul class="nav navbar-nav"> | ||||||
|  | |||||||
| @ -7,6 +7,9 @@ final class Settings { | |||||||
|         // Server name, shown on the main page and on the header
 |         // Server name, shown on the main page and on the header
 | ||||||
|         $this->name = 'LiteBans'; |         $this->name = 'LiteBans'; | ||||||
| 
 | 
 | ||||||
|  |         // Clicking on the header name will send you to this address.
 | ||||||
|  |         $this->name_link = '#'; | ||||||
|  | 
 | ||||||
|         // Database information
 |         // Database information
 | ||||||
|         $host = 'localhost'; |         $host = 'localhost'; | ||||||
|         $port = 3306; |         $port = 3306; | ||||||
| @ -28,23 +31,23 @@ final class Settings { | |||||||
|         // If you set a table prefix in config.yml, put it here too
 |         // If you set a table prefix in config.yml, put it here too
 | ||||||
|         $table_prefix = ""; |         $table_prefix = ""; | ||||||
| 
 | 
 | ||||||
|  |         // The date format can be changed here.
 | ||||||
|  |         // https://secure.php.net/manual/en/function.date.php
 | ||||||
|  |         // Example of default: July 2, 2015, 9:19 pm
 | ||||||
|  |         $this->date_format = 'F j, Y, g:i a'; | ||||||
|  |         date_default_timezone_set("UTC"); | ||||||
|  | 
 | ||||||
|  |         // Supported drivers: mysql, pgsql
 | ||||||
|  |         $driver = 'mysql'; | ||||||
|  | 
 | ||||||
|  |         /*** End of configuration ***/ | ||||||
|  | 
 | ||||||
|         $this->table_bans = "{$table_prefix}bans"; |         $this->table_bans = "{$table_prefix}bans"; | ||||||
|         $this->table_mutes = "{$table_prefix}mutes"; |         $this->table_mutes = "{$table_prefix}mutes"; | ||||||
|         $this->table_warnings = "{$table_prefix}warnings"; |         $this->table_warnings = "{$table_prefix}warnings"; | ||||||
|         $this->table_kicks = "${table_prefix}kicks"; |         $this->table_kicks = "${table_prefix}kicks"; | ||||||
|         $this->table_history = "{$table_prefix}history"; |         $this->table_history = "{$table_prefix}history"; | ||||||
| 
 | 
 | ||||||
|         // The date format can be changed here.
 |  | ||||||
|         // https://secure.php.net/manual/en/function.date.php
 |  | ||||||
|         // Example of default:
 |  | ||||||
|         // July 2, 2015, 9:19 pm
 |  | ||||||
|         $this->date_format = 'F j, Y, g:i a'; |  | ||||||
|         date_default_timezone_set("UTC"); |  | ||||||
| 
 |  | ||||||
|         $driver = 'mysql'; |  | ||||||
| 
 |  | ||||||
|         /*** End of configuration ***/ |  | ||||||
| 
 |  | ||||||
|         $this->active_query = ""; |         $this->active_query = ""; | ||||||
| 
 | 
 | ||||||
|         if ($driver === "pgsql") { |         if ($driver === "pgsql") { | ||||||
|  | |||||||
| @ -2,7 +2,6 @@ | |||||||
| include './includes/head.php'; | include './includes/head.php'; | ||||||
| include './includes/header.php'; | include './includes/header.php'; | ||||||
| include_once './includes/settings.php'; | include_once './includes/settings.php'; | ||||||
| $settings = new Settings(false); |  | ||||||
| ?>
 | ?>
 | ||||||
| <title>Index - <?php echo $settings->name; ?></title>
 | <title>Index - <?php echo $settings->name; ?></title>
 | ||||||
| <div class="container"> | <div class="container"> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ruan
						ruan