Changeset 94
- Timestamp:
- 02/19/08 15:13:56 (9 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
lib/action.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wassup.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/action.php
r93 r94 12 12 $wpurl = get_bloginfo('wpurl'); 13 13 $table_name = $wpdb->prefix . "wassup"; 14 14 15 15 16 //Retrieve command-line arguments... -
trunk/readme.txt
r90 r94 1 1 === Plugin Name === 2 2 Contributors: michelem, helened 3 Donate link: http ://www.michelem.org/3 Donate 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¤cy_code=EUR&lc=IT&bn=PP%2dDonationsBF&charset=UTF%2d8 4 4 Tags: tracker, tracking, statistics, analyze, web, realtime, stats, ajax, visitors, visits, online users, details, seo, admin, spy, visitors, widgets, widget, sidebar 5 5 Requires at least: 2.2 … … 81 81 - uncompress it with your preferred unzip/untar program or use the command line: tar xzvf wassup.tar.gz 82 82 - 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.85 83 - activate the WassUp Wordpress plugin at your Plugins admin page 86 84 -
trunk/wassup.php
r93 r94 174 174 function add_wassup_css() { 175 175 global $wpurl; 176 //$hash = wp_hash(SECRET_KEY);177 176 $plugin_page = attribute_escape($_GET['page']); 178 177 … … 251 250 var id = $(this).attr('id'); 252 251 $.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, 254 253 async: false 255 254 }) … … 337 336 limit: 10, 338 337 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"; ?>', 340 339 timeout: 2000, 341 340 'timestamp': myTimestamp, … … 1058 1057 } 1059 1058 } 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 } 1061 1065 $referrer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''); 1062 1066 $userAgent = (isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '');
