Changeset 45321

Show
Ignore:
Timestamp:
05/12/08 00:58:03 (2 months ago)
Author:
danillonunes
Message:

Login-box 2.0 alpha, now with a important funcionality: works

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • login-box/trunk/login-box-options.php

    r45315 r45321  
    113113} 
    114114 
    115 add_action('admin_menu', 'loginbox_add_page'); 
    116  
    117115// Function to set default options and update in database 
    118116function loginbox_set_default_options() { 
  • login-box/trunk/login-box.php

    r45315 r45321  
    2626*/ 
    2727 
     28// Is script running alone or included in WordPress core? 
     29if (!defined('ABSPATH')) 
     30      include '../../../wp-config.php'; 
     31 
    2832// Get the Login-box definitions 
    29 @include "login-box-config.php"; 
    30 include "login-box-options.php"; 
     33if (file_exists(ABSPATH.'/wp-content/plugins/login-box/login-box-config.php')) 
     34      include ABSPATH.'/wp-content/plugins/login-box/login-box-config.php'; 
     35elseif (file_exists('login-box-config.php')) 
     36      include 'login-box-config.php'; 
     37else 
     38      include 'login-box-options.php'; 
     39 
     40 
    3141 
    3242// The primary Login-box function 
     
    115125} 
    116126 
     127add_action('admin_menu', 'loginbox_add_page'); 
    117128add_action('wp_head', 'loginbox_head'); 
    118129add_action('wp_footer', 'loginbox');