WordPress.org

Plugin Directory

Changeset 152753


Ignore:
Timestamp:
09/07/09 13:04:00 (8 years ago)
Author:
sparun
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-fb/tags/0.2/wp-fb.php

    r152725 r152753  
    3131*/ 
    3232 
    33 add_action('admin_menu', 'wp-fb' ); 
    34 add_action('admin_head', 'wp-fb_show_stats' ); 
    35 register_activation_hook(__FILE__, 'wp-fb_activate' ); 
     33add_action('admin_menu', 'wp_fb' ); 
     34add_action('admin_head', 'wp_fb_show_stats' ); 
     35register_activation_hook(__FILE__, 'wp_fb_activate' ); 
    3636 
    37 function wp-fb_activate() 
     37function wp_fb_activate() 
    3838{ 
    39     add_option('wp-fb_uri', ''); 
    40     add_option('wp-fb_old', 0); 
     39    add_option('wp_fb_uri', ''); 
     40    add_option('wp_fb_old', 0); 
    4141} 
    4242     
    43 function wp-fb() {   
     43function wp_fb() {   
    4444    //Add options page 
    45     add_options_page('Wp Feedburner Settings', 'WP-Feed Burner', 8, __FILE__, 'wp-fb_settings'); 
     45    add_options_page('Wp Feedburner Settings', 'WP-Feed Burner', 8, __FILE__, 'wp_fb_settings'); 
    4646} 
    4747 
    48 function wp-fb_show_stats(){ 
    49     $feeduri = get_option('wp-fb_uri'); 
    50     $old = get_option('wp-fb_old'); 
     48function wp_fb_show_stats(){ 
     49    $feeduri = get_option('wp_fb_uri'); 
     50    $old = get_option('wp_fb_old'); 
    5151     
    5252    if($old == 'on'){ 
     
    9090} 
    9191 
    92 function wp-fb_settings(){ 
     92function wp_fb_settings(){ 
    9393    global $wpdb; 
    9494     
    9595    if(isset($_POST['feeduri'])){ 
    96         update_option('wp-fb_uri', $_POST['feeduri']); 
    97         update_option('wp-fb_old', $_POST['old']); 
     96        update_option('wp_fb_uri', $_POST['feeduri']); 
     97        update_option('wp_fb_old', $_POST['old']); 
    9898        ?> 
    9999        <script type="text/javascript"> 
     
    105105    if($_GET['update']) echo '<div class="updated"><p><strong>'.__('Settings saved').'</strong></p></div>'; 
    106106     
    107     $feeduri = get_option('wp-fb_uri'); 
    108     $old = get_option('wp-fb_old'); 
     107    $feeduri = get_option('wp_fb_uri'); 
     108    $old = get_option('wp_fb_old'); 
    109109    ?> 
    110110    <div class="wrap"> 
Note: See TracChangeset for help on using the changeset viewer.