Changeset 44

Show
Ignore:
Timestamp:
05/22/07 15:45:15 (2 years ago)
Author:
pdingle
Message:

deleted wp-infocard-settings.php from version control

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-infocard/pw-claimtypes.php

    r42 r44  
    11<?php 
     2include_once( dirname(__FILE__) . '/pwlib/claimtypes.pwlib.php'); 
    23 
    34$claimslist['privatepersonalidentifier'] = new pw_claimtype( 
     
    4142        'user_email', 
    4243        'Email Address', 
    43         PW_TABLE_PREFIX . '_users', 
     44        PW_TABLE_PREFIX . 'users', 
    4445        'return $claimslist[\'emailaddress\']->token_value;' ); 
    4546         
     
    5657        'return $' . 'claimslist[\'privatepersonalidentifier\']->token_value;' ); 
    5758         
     59<<<<<<< .mine 
     60$datamap['user_login'] = new pw_mapping( 
     61        'user_login', 
     62        'Login ID', 
     63        PW_TABLE_PREFIX . 'users', 
     64======= 
    5865$datamap['user_login'] = new pw_mapping( 
    5966        'user_login', 
    6067        'Login ID', 
    6168        PW_TABLE_PREFIX . '_users', 
     69>>>>>>> .r42 
    6270        'return pw_userdata::getLoginID();', 
    6371        'Calls out to the getLoginID function in pw_userdata' ); 
    64  
    65 class pw_claimtype 
    66 { 
    67         var $schemaURI = ''; 
    68         var $handle = ''; 
    69         var $required = FALSE; 
    70         var $displayname = ''; 
    71         var $token_value; 
    72          
    73         function pw_claimtype( $sch, $han, $req, $dn ) 
    74         { 
    75                 $this->schemaURI = $sch; 
    76                 $this->handle = $han; 
    77                 $this->required = $req; 
    78                 $this->displayname = $dn; 
    79         } //end function pw_claimtype 
    80  
    81         function add_token_value( $val ) 
    82         { 
    83                 $this->token_value = $val; 
    84         } // end function add_token_value; 
    85 } // end class pw_claimtype 
    86  
    87 class pw_mapping 
    88 { 
    89         var $handle; 
    90         var $displayname; 
    91         var $mappingattribute; 
    92         var $mappingtable; 
    93         var $mappingfunction; 
    94         var $new_value; 
    95         var $db_value; 
    96         var $description = '';   //to describe the mapping for others 
    97          
    98         function pw_mapping( $dn, $ma, $mt, $mf, $desc='' ) 
    99         { 
    100                 $this->handle = $dn; 
    101                 $this->displayname = $dn; 
    102                 $this->mappingattribute = $ma; 
    103                 $this->mappingtable = $mt; 
    104                 $this->mappingfunction = $mf; 
    105                 $this->description = $desc; 
    106         } // end function pw_mapping     
    107          
    108         function add_new_value( $val ) 
    109         { 
    110                 $this->new_value = $val; 
    111         } // end function add_new_value 
    112  
    113         function add_db_value( $val ) 
    114         { 
    115                 $this->db_value = $val; 
    116         } 
    117  
    118         function compare( $nodebug='' ) 
    119         { 
    120                 if (strcmp($this->db_value, $this->new_value) == 0) 
    121                 { 
    122                         // sometimes we just want the value, even when 
    123                         // in debug mode 
    124                         if (!$nodebug) 
    125                         {        
    126                                 pw_utils::printDebug("&nbsp; $this->displayname: matches ($this->db_value)<br/>"); 
    127                         } 
    128                         return (TRUE); 
    129                 } 
    130                 else 
    131                 { 
    132                         // sometimes we just want the value, even when 
    133                         // in debug mode 
    134                         if (!$nodebug) 
    135                         {        
    136                                 pw_utils::printDebug("&nbsp; $this->displayname:&nbsp;DB: $this->db_value &nbsp;&nbsp;TOKEN: $this->new_value<br/>");            
    137                         } 
    138                         return (FALSE); 
    139                 } 
    140          
    141         } 
    142                  
    143 } // end class pw_mapping 
    14472?> 
  • trunk/wp-infocard/pw-config.php

    r42 r44  
    11<?php 
    22define ('PW_PLUGIN', 'wp'); 
     3require( dirname(__FILE__) . '/../../../wp-config.php' ); 
     4define ('PW_TABLE_PREFIX', $table_prefix); 
    35define ('PW_VALIDITY_WINDOW', 300); 
    46define ('PW_CLICKBACK_LENGTH', 16); 
    5 define ('PW_PLUGINPATH', 'wp-content/plugins/wp-infocard'); 
     7define ('PW_SHOW_BINARY', false); 
     8define ('PW_PLUGINPATH', '/wp-content/plugins/wp-infocard'); 
     9define ('PW_SELECTORTRIGGER', 'html' ); 
     10define ('PW_MANAGEDONLY', true ); 
    611define ('PW_VERSION', 'b2'); 
    712define ('PW_VERSION_DATE', '17May07'); 
    813define ('PW_SELECTORTRIGGER', 'html'); 
    914 
    10 require( dirname(__FILE__) . '/../../../wp-config.php' ); 
    11 define ('PW_TABLE_PREFIX', $table_prefix); 
    12 include_once( dirname(__FILE__) . '/pw-claimtypes.php'); // this file uses the TABLE_PREFIX define. 
     15include_once( dirname(__FILE__) . '/' . PW_PLUGIN. '/pw-claimtypes.php'); 
    1316define ('PW_DEBUG_ON', get_settings('pw_debug_on')); 
    1417define ('PW_TIMEVALIDATION_ON', false); 
     
    1619define ('PW_IMGPATH', PW_PATH . '/pwlib/images'); 
    1720define ('PW_SITEMESGPATH', PW_PATH . '/site-messages'); 
    18 define ('PW_PLUGINURL', get_settings('siteurl') . '/' . PW_PLUGINPATH ); 
     21define ('PW_PLUGINURL', get_settings('siteurl') . PW_PLUGINPATH ); 
    1922define ('PW_IMGURL', PW_PLUGINURL . '/pwlib/images'); 
    2023define ('PW_SECUREPLUGINURL', get_settings('pw_securesiteurl') . '/' . PW_PLUGINPATH ); 
    2124define ('PW_SITEMESGURL', PW_PLUGINURL . '/site-messages/infocard-usermessage.php'); 
     25/////Temporary 
     26define ('PW_SECURESITEURL', get_settings('securesiteurl') ); 
    2227?> 
  • trunk/wp-infocard/pwlib/processing/infocard-post.php

    r39 r44  
    9393        } 
    9494 
     95        $incominguser = pw_userdata::evaluateIncomingRequest(); 
    9596        pw_userdata::mapTokenData(); 
    9697        $user_email     = trim($claims['emailaddress']); 
     
    103104        $modulusHash    = $claims['modulusHash']; 
    104105        $pass2rounds    = MD5($modulusHash); 
    105  
    106         $incominguser = pw_userdata::evaluateIncomingRequest(); 
     106         
     107        // changed order of token mapping & request evaluation 
     108        //$incominguser = pw_userdata::evaluateIncomingRequest(); 
    107109 
    108110        if (!$incominguser) 
     
    265267        pw_utils::printDebug("&nbsp;Error: $error <br/>"); 
    266268        pw_utils::printDebug("&nbsp;Status: ".$incominguser['status']." <br/>"); 
    267         //$relocationUrl = "error"; 
    268         $relocationUrl='http://pamelaproject.com/hotornot/index.php?option=pwjos&task=error&error_code='.$error; 
    269         pw_utils::redirectToURL($relocationUrl); 
     269        $relocationUrl = "error"; 
     270        //$relocationUrl='http://pamelaproject.com/hotornot/index.php?option=pwjos&task=error&error_code='.$error; 
     271        //pw_utils::redirectToURL($relocationUrl); 
    270272    } 
    271273    else  
     
    306308                else  
    307309                { 
    308                         $relocationUrl = "index.php?option=com_hotornot2"; 
     310                        $relocationUrl = "index.php"; 
    309311                } 
    310312 
     
    340342        } 
    341343    } else { 
    342                 //pw_utils::errorPageRedirect($error); 
     344                pw_utils::errorPageRedirect($error); 
    343345         
    344                 $error_redirect='http://pamelaproject.com/hotornot/index.php?option=pwjos&task=error&error_code='.$error; 
    345                 pw_utils::printDebug('<br/>Error url: '. $error_redirect); 
    346                 echo '<br/>Error url: '. $error_redirect; 
     346                //$error_redirect='http://pamelaproject.com/hotornot/index.php?option=pwjos&task=error&error_code='.$error; 
     347                //pw_utils::printDebug('<br/>Error url: '. $error_redirect); 
     348                //echo '<br/>Error url: '. $error_redirect; 
    347349                //pw_utils::redirectToURL('http://pamelaproject.com/hotornot/index.php?option=pwjos&task=error&error_code='.$error); 
    348350    }