Changeset 404671
- Timestamp:
- 07/05/2011 07:49:14 AM (15 years ago)
- Location:
- logoreplacer/trunk
- Files:
-
- 2 edited
-
logoReplacer.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
logoreplacer/trunk/logoReplacer.php
r271968 r404671 19 19 Description: Replace registration and admin Logo 20 20 Author: http://www.BisonTech.net 21 Version: 1. 0.121 Version: 1.2.0 22 22 */ 23 23 24 24 25 25 add_action('plugins_loaded', 'lr_init'); 26 26 … … 29 29 30 30 function lr_init(){ 31 $version = get_bloginfo('version'); 31 32 32 $src_login = LOGO_DIR . 'logo-login.gif'; 33 list($version,$release, $minor) = explode('.',$version); 34 35 //wp 3.1 36 if (($version >= 3) && ($release >=2) ){ 37 $src_login = LOGO_DIR . 'logo-login.png'; 38 }else{ 39 $src_login = LOGO_DIR . 'logo-login.gif'; 40 } 33 41 $src_head = LOGO_DIR . 'wp-logo-vs.png'; 34 35 $dst_login = ABSPATH . '/wp-admin/images/logo-login.gif'; 42 if (($version >= 3) && ($release >=2) ){ 43 $dst_login = ABSPATH . '/wp-admin/images/logo-login.png'; 44 }else{ 45 $dst_login = ABSPATH . '/wp-admin/images/logo-login.gif'; 46 } 36 47 $dst_head = ABSPATH . '/wp-admin/images/wp-logo-vs.png'; 37 48 $dst_head2 = ABSPATH . '/wp-admin/images/wp-logo.png'; … … 43 54 $logo_head_current = md5_file($dst_head); 44 55 $logo_head_current2 = md5_file($dst_head2); 45 46 56 57 58 47 59 if ($logo_login_current == $logo_login_md5){ 48 60 //log... … … 50 62 lr_installLogo($src_login,$dst_login); 51 63 } 52 64 53 65 if ($logo_head_current == $logo_head_md5){ 54 66 //log 55 67 }else{ 56 lr_installLogo($src_head,$dst_head); 68 lr_installLogo($src_head,$dst_head); 57 69 } 58 70 59 71 if ($logo_head_current2 == $logo_head_md5){ 60 72 //log 61 }else{ 62 lr_installLogo($src_head,$dst_head2); 73 }else{ 74 lr_installLogo($src_head,$dst_head2); 63 75 } 64 76 -
logoreplacer/trunk/readme.txt
r271968 r404671 1 1 === Plugin Name === 2 2 Contributors: Bison Airon 3 Donate link: http s://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=socialic%40gmail%2ecom&item_name=logoReplacer&item_number=Support%20Open3 Donate link: http://flattr.com/thing/264874/ICSocial-Network 4 4 5 5 Tags: logo, graphics, admin, registration 6 6 Requires at least: 2.0.2 7 7 Tested up to: 2.1 8 Stable tag: 1. 08 Stable tag: 1.2 9 9 10 10 This plugin replace WP default admin/login/register page. … … 15 15 The technique used is pretty brutal but the best currently possible, the plugin replaces the modified files automatically. 16 16 To make the plugin run the web server must be able to write to the wp-admin directory. 17 http://www.bisontech.net17 more info @ http://www.bisontech.net 18 18 19 19 == Installation == 20 20 21 21 1. Download the .zip file of logoReplacer from the WordPress plugins directory. 22 1. Unzip it into temp directory, edit logo-login.gif and wp-logo-vs.png and save with same format.22 1. Unzip it into temp directory, edit logo-login.gif or logo-login.png and wp-logo-vs.png and save with same format. 23 23 1. Upload logoReplacer direcotry into the /wp-content/plugins/ 24 1. Activate the plugin through the Pluginsmenu in WordPress.24 1. Activate the plugin through the "Plugins" menu in WordPress. 25 25 26 26 == Screenshots == … … 30 30 31 31 == Changelog == 32 = 1.2.0 = 33 * Added support for Wordpress 3.2 admin (now login image is a png) 34 * Added wp-logo.png for old wordpress admin grey theme 32 35 33 36 = 1.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.