Plugin Directory

Changeset 762173


Ignore:
Timestamp:
08/26/2013 12:43:55 AM (13 years ago)
Author:
mthomas9
Message:

protect other pages from PURL code

Location:
purlem-personal-url-marketing
Files:
3 added
2 edited

Legend:

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

    r759586 r762173  
    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.2.6
     6Version: 1.2.8
    77Author: Marty Thomas
    88Author URI: http://purlem.com/company
     
    2626*/
    2727
    28 
    29 add_action('update_option_purlemID', 'add_htaccess_code');
    30 add_action('update_option_purlemURI', 'add_htaccess_code');
    31 add_action('the_title', 'display_purl_code');
    32 add_action('the_content', 'display_purl_content');
    33 add_action('the_title', 'display_purl_header');
    34 add_action('widgets_init', create_function('', 'return register_widget("PurlemWidget");'));
    35 add_action('wp_head', 'purlCSS');
    36 
     28if($_GET['purl'] && $_GET['purl'] != '') {
     29    add_action('update_option_purlemID', 'add_htaccess_code');
     30    add_action('update_option_purlemURI', 'add_htaccess_code');
     31    add_action('get_header', 'display_purl_code');
     32    add_action('the_content', 'display_purl_content');
     33    add_action('the_title', 'display_purl_header');
     34    add_action('widgets_init', create_function('', 'return register_widget("PurlemWidget");'));
     35    add_action('wp_head', 'purlCSS');
     36}
    3737
    3838function add_htaccess_code() {
     
    107107    @session_start();
    108108   
    109     if(!$_SESSION['visitor'] && !$_GET['refreshed']) {
     109    if(!$_SESSION['visitor'] && !$_GET['refreshed'] && $_GET['purl']) {
    110110        header( 'Location: http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI].'?ID='.$_GET['ID'].'&purl='.$_GET['purl'].'&test='.$_GET['test'].'&wordpress='.$_GET['wordpress'].'&refreshed=Y' ) ;
    111111    }
  • purlem-personal-url-marketing/trunk/readme.txt

    r759586 r762173  
    55Requires at least: 2.1
    66Tested up to: 3.2.1
    7 Stable tag: 1.2.6
     7Stable tag: 1.2.8
    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.