Changeset 94

Show
Ignore:
Timestamp:
02/19/08 15:13:56 (9 months ago)
Author:
root
Message:
 
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/action.php

    r93 r94  
    1212$wpurl =  get_bloginfo('wpurl'); 
    1313$table_name = $wpdb->prefix . "wassup"; 
     14 
    1415 
    1516        //Retrieve command-line arguments... 
  • trunk/readme.txt

    r90 r94  
    11=== Plugin Name === 
    22Contributors: michelem, helened 
    3 Donate link: http://www.michelem.org/ 
     3Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=michele%40befree%2eit&item_name=wp%2dstatpress&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=IT&bn=PP%2dDonationsBF&charset=UTF%2d8 
    44Tags: tracker, tracking, statistics, analyze, web, realtime, stats, ajax, visitors, visits, online users, details, seo, admin, spy, visitors, widgets, widget, sidebar 
    55Requires at least: 2.2 
     
    8181- uncompress it with your preferred unzip/untar program or use the command line: tar xzvf wassup.tar.gz 
    8282- copy the directory wassup in your plugins directory at your wordpress blog (/wp-content/plugins) 
    83 - add the following line to your wp-config.php: 
    84     define('SECRET_KEY', 'your secret key please change it!'); // Change this to a unique phrase. 
    8583- activate the WassUp Wordpress plugin at your Plugins admin page 
    8684 
  • trunk/wassup.php

    r93 r94  
    174174function add_wassup_css() { 
    175175        global $wpurl; 
    176         //$hash = wp_hash(SECRET_KEY); 
    177176        $plugin_page = attribute_escape($_GET['page']); 
    178177 
     
    251250           var id = $(this).attr('id'); 
    252251                 $.ajax({ 
    253                   url: "<?php echo $wpurl; ?>/wp-content/plugins/<?php echo WASSUPFOLDER; ?>/lib/action.php?action=delete&id=" + id, 
     252                  url: "<?php echo $wpurl; ?>/wp-content/plugins/<?php echo WASSUPFOLDER; ?>/lib/action.php?action=delete&whash=<?php echo $whash; ?>&id=" + id, 
    254253                  async: false 
    255254                 }) 
     
    337336                limit: 10,  
    338337                fadeLast: 5,  
    339                 ajax: '<?php echo $wpurl."/wp-content/plugins/".WASSUPFOLDER."/lib/action.php?action=spy"; ?>', 
     338                ajax: '<?php echo $wpurl."/wp-content/plugins/".WASSUPFOLDER."/lib/action.php?action=spy&whash=$whash"; ?>', 
    340339                timeout: 2000,  
    341340                'timestamp': myTimestamp,  
     
    10581057                }  
    10591058        } 
    1060         $urlRequested = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '' ); 
     1059 
     1060        if (isset($_SERVER['REQUEST_URI']) && !ereg("^/$", $_SERVER['REQUEST_URI'])) {  
     1061                $urlRequested = eregi_replace("/$", "", $_SERVER['REQUEST_URI']); 
     1062        } else { 
     1063                $urlRequested = $_SERVER['REQUEST_URI']; 
     1064        } 
    10611065        $referrer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''); 
    10621066        $userAgent = (isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '');