Changeset 45321
- Timestamp:
- 05/12/08 00:58:03 (2 months ago)
- Files:
-
- login-box/trunk/login-box-options.php (modified) (1 diff)
- login-box/trunk/login-box.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
login-box/trunk/login-box-options.php
r45315 r45321 113 113 } 114 114 115 add_action('admin_menu', 'loginbox_add_page');116 117 115 // Function to set default options and update in database 118 116 function loginbox_set_default_options() { login-box/trunk/login-box.php
r45315 r45321 26 26 */ 27 27 28 // Is script running alone or included in WordPress core? 29 if (!defined('ABSPATH')) 30 include '../../../wp-config.php'; 31 28 32 // Get the Login-box definitions 29 @include "login-box-config.php"; 30 include "login-box-options.php"; 33 if (file_exists(ABSPATH.'/wp-content/plugins/login-box/login-box-config.php')) 34 include ABSPATH.'/wp-content/plugins/login-box/login-box-config.php'; 35 elseif (file_exists('login-box-config.php')) 36 include 'login-box-config.php'; 37 else 38 include 'login-box-options.php'; 39 40 31 41 32 42 // The primary Login-box function … … 115 125 } 116 126 127 add_action('admin_menu', 'loginbox_add_page'); 117 128 add_action('wp_head', 'loginbox_head'); 118 129 add_action('wp_footer', 'loginbox');
