Changeset 135860
- Timestamp:
- 07/16/2009 08:52:26 PM (17 years ago)
- File:
-
- 1 edited
-
remote-database-backup/trunk/wpframe.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
remote-database-backup/trunk/wpframe.php
r133972 r135860 6 6 7 7 $GLOBALS['wpframe_home'] = get_option('home'); 8 $GLOBALS['wpframe_wordpress'] = get_option('site');8 $GLOBALS['wpframe_wordpress'] = $GLOBALS['wpframe_siteurl'] = get_option('siteurl'); 9 9 if(!$GLOBALS['wpframe_wordpress']) $GLOBALS['wpframe_wordpress'] = $GLOBALS['wpframe_home']; 10 10 $GLOBALS['wpframe_plugin_name'] = basename(dirname(__FILE__)); 11 $GLOBALS['wpframe_plugin_folder'] = $GLOBALS['wpframe_ wordpress'] . '/wp-content/plugins/' . $GLOBALS['wpframe_plugin_name'];11 $GLOBALS['wpframe_plugin_folder'] = $GLOBALS['wpframe_siteurl'] . '/wp-content/plugins/' . $GLOBALS['wpframe_plugin_name']; 12 12 //$GLOBALS['wpframe_plugin_data'] = get_plugin_data($GLOBALS['wpframe_plugin_name'] . '.php'); 13 / * :DEBUG: :TODO: */ $GLOBALS['wpdb']->show_errors();13 //* :DEBUG: */ $GLOBALS['wpdb']->show_errors(); 14 14 15 15 if(!function_exists('stopDirectCall')) { //Make sure multiple plugins can be created using WPFrame 16 17 /// Need to register a page to use it in a plugin in WP2.8.1+. THIS IS A HACK. 18 function wpf_register_pages($pages, $folder) { 19 foreach($pages as $p) wpf_register_page($folder . DIRECTORY_SEPARATOR . $p); 20 } 21 function wpf_register_page($file) { 22 global $_registered_pages; 23 $hookname = get_plugin_page_hookname($file, '' ); 24 $_registered_pages[$hookname] = true; 25 } 16 26 17 27 /// Make sure that the user don't call this file directly - forces the use of the WP interface
Note: See TracChangeset
for help on using the changeset viewer.