mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-31 06:52: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="container"> | ||||
|         <div class="navbar-header"> | ||||
|             <a class="navbar-brand" href="#"><?php | ||||
|                 require_once './includes/settings.php'; | ||||
|                 $settings = new Settings(false); | ||||
|                 echo $settings->name; | ||||
|                 ?></a>
 | ||||
|             <a class="navbar-brand" href="<?php echo $settings->name_link; ?>"><?php echo $settings->name; ?></a>
 | ||||
|         </div> | ||||
|         <div class="navbar-collapse collapse"> | ||||
|             <ul class="nav navbar-nav"> | ||||
|  | ||||
| @ -7,6 +7,9 @@ final class Settings { | ||||
|         // Server name, shown on the main page and on the header
 | ||||
|         $this->name = 'LiteBans'; | ||||
| 
 | ||||
|         // Clicking on the header name will send you to this address.
 | ||||
|         $this->name_link = '#'; | ||||
| 
 | ||||
|         // Database information
 | ||||
|         $host = 'localhost'; | ||||
|         $port = 3306; | ||||
| @ -28,23 +31,23 @@ final class Settings { | ||||
|         // If you set a table prefix in config.yml, put it here too
 | ||||
|         $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_mutes = "{$table_prefix}mutes"; | ||||
|         $this->table_warnings = "{$table_prefix}warnings"; | ||||
|         $this->table_kicks = "${table_prefix}kicks"; | ||||
|         $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 = ""; | ||||
| 
 | ||||
|         if ($driver === "pgsql") { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ruan
						ruan