Plugin Directory

Changeset 571251


Ignore:
Timestamp:
07/12/2012 01:01:04 PM (14 years ago)
Author:
mthomas9
Message:

functions with Wordpress new page variable

Location:
purlem-personal-url-marketing/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • purlem-personal-url-marketing/trunk/purlem.php

    r521365 r571251  
    44Plugin URI: http://purlem.com
    55Description: Personalize your blog to visitors and track results with Personalized URLs (PURLs). <strong>The Plugin Requires a <a href='http://www.purlem.com'>Purlem Account</a>.</strong>
    6 Version: 1.1.6
     6Version: 1.1.3
    77Author: Marty Thomas
    88Author URI: http://purlem.com/company
     
    3333add_action('the_title', 'display_purl_header');
    3434add_action('widgets_init', create_function('', 'return register_widget("PurlemWidget");'));
    35 add_action('wp_head', 'purlCSS');
     35add_action('the_post', 'purlCSS');
    3636
    3737
     
    7171
    7272function display_purl_code() {
     73    $uri = explode('/',$_SERVER['REQUEST_URI']);
     74    if(!$_GET['page']) $_GET['page'] = $uri[2];
     75    if(!is_numeric($_GET['page'])) $_GET['page'] = $uri[3];
     76    if(!is_numeric($_GET['page'])) $_GET['page'] = $uri[4];
     77
    7378    if(get_option('purlapi') == 'file_get_contents') {
    7479        $data = @file_get_contents('http://www.purlapi.com/lp/index.php?ID='.$_GET["ID"].'&name='.$_GET["purl"].'&page='.$_GET["page"].'&test='.$_GET["test"].'&wordpress='.$_GET["wordpress"]);
     
    8186    $user = json_decode($data);
    8287    @session_start();
    83     if($_GET['username']) $_SESSION['visitor']=$_GET['username'];
    8488    if($user->{'login'} && ($_SESSION['visitor'] != $user->{'firstName'}.''.$user->{'lastName'})) {
    85         echo $user->{'login'};
     89        echo $user->{'login'};
    8690        exit;
    87     }   
     91    }
    8892    $_SESSION['user'] = $user;
    8993}
  • purlem-personal-url-marketing/trunk/readme.txt

    r521365 r571251  
    55Requires at least: 2.1
    66Tested up to: 3.2.1
    7 Stable tag: 1.1.6
     7Stable tag: 1.1.7
    88
    99Personalize your blog to visitors and track results with Personalized URLs (PURLs). The Plugin Requires a Purlem Account.
Note: See TracChangeset for help on using the changeset viewer.