| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | 
							- <?php
 
- if (!class_exists("plug_login")) {
 
- 	class plug_login {	
 
- 		function __construct($ns) {
 
- 			$this->title = __("Login","dagsopt");
 
- 			$this->pluginname = $ns->pluginname;
 
- 			$this->file = $ns->file;
 
- 			$this->ns = $ns;
 
- 			}
 
- 		function start() {
 
- 			add_filter('login_headerurl',array(&$this,'login_headerurl'));
 
- 			add_filter('login_headertext',array(&$this,'login_headertitle'));
 
- 			add_filter('login_message',array(&$this,'login_message'));
 
- 		}
 
- 			function login_headerurl($t){	return "https://dags.dk/";	}
 
- 			function login_headertitle($t){	return "Dags dk";	}
 
- 			function login_message($t){	
 
- 				return '<style type="text/css"> 
 
- 							.login h1 a  {padding-bottom: 5px; width: auto; height: 65px; background-size: auto; background-image: url(/wp-content/plugins/dagsplug/login_logo.png);} 
 
- 							.login_holder {margin: 0px 0px 20px 0px; text-align: center}
 
- 						</style>
 
- 							<div class="login_holder">
 
- 									<p>'.get_option($this->pluginname."_login_support_splash").'</p>
 
- 							</div>';	
 
- 				}
 
- 				
 
- 			function help(){
 
- 				?>
 
- 				<?php echo(__("Adds logo to login page","dagsopt")) ?>
 
-  				<a href="/wp-login.php"><?php echo(__("Login page","dagsopt")) ?></a>
 
- 			<?php		
 
- 			}
 
- 	 
 
- 	 	function Option($pre){
 
- 			update_option ( $pre.'_support_splash', $_POST [ $pre.'_support_splash' ] );
 
-  		}
 
-  
 
- 	 	function admin_line($pre){
 
- 		  ?>
 
- 		  <?php echo(__("Login splash html:","dagsopt")) ?><br><textarea style="width: 100%; height: 150px;" name="<?php echo( $pre.'_support_splash' ); ?>"><?php echo(get_option($pre."_support_splash")); ?></textarea>
 
- 		  <?php  
 
- 		}	
 
- 		
 
- 	 	 
 
- 	}
 
- 	global $plug_login;
 
- 	$plug_login = new plug_login($this);		
 
- 			$this->dagsopt['plug_login'] = $plug_login;
 
- 			
 
- }
 
 
  |