mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	updates
git-svn-id: http://www.observium.org/svn/observer/trunk@302 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		
							
								
								
									
										25
									
								
								includes/static-config.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								includes/static-config.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
##############################
 | 
			
		||||
# No changes below this line #
 | 
			
		||||
##############################
 | 
			
		||||
 | 
			
		||||
$config['version'] = "0.4.0";
 | 
			
		||||
 | 
			
		||||
### Connect to database
 | 
			
		||||
if (!@mysql_connect($config['db_host'], $config['db_user'], $config['db_pass'])) {
 | 
			
		||||
        echo "<h2>MySQL Error</h2>";
 | 
			
		||||
        die;
 | 
			
		||||
}
 | 
			
		||||
mysql_select_db($config['db_name']);
 | 
			
		||||
 | 
			
		||||
# Set some times needed by loads of scripts (it's dynamic, so we do it here!)
 | 
			
		||||
 | 
			
		||||
$now = time();
 | 
			
		||||
$day = time() - (24 * 60 * 60);
 | 
			
		||||
$twoday = time() - (2 * 24 * 60 * 60);
 | 
			
		||||
$week = time() - (7 * 24 * 60 * 60);
 | 
			
		||||
$month = time() - (31 * 24 * 60 * 60);
 | 
			
		||||
$year = time() - (365 * 24 * 60 * 60);
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user