Changeset 125
- Timestamp:
- 12/02/07 16:55:01 (1 year ago)
- Files:
-
- branches/RB-0.9/wp-infocard/pw-config.php (modified) (1 diff)
- branches/RB-0.9/wp-infocard/wp/clickback.pw.php (modified) (2 diffs)
- branches/RB-0.9/wp-infocard/wp/login/infocard-clickback.php (modified) (2 diffs)
- branches/RB-0.9/wp-infocard/wp/userdata.pw.php (modified) (1 diff)
- branches/RB-0.9/wp-infocard/wp/utils.pw.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/RB-0.9/wp-infocard/pw-config.php
r123 r125 11 11 define ('PW_USECAPTCHAS', false ); 12 12 define ('PW_DEBUG_ON', get_settings('pw_debug_on')); 13 define ('PW_DEBUG_LEVEL', '0'); 13 14 define ('PW_SELECTOR_TRIGGER', get_settings('pw_selector_trigger')); 14 15 define ('PW_CUSTOM_DATA', get_settings('pw_custom_data')); branches/RB-0.9/wp-infocard/wp/clickback.pw.php
r106 r125 42 42 } 43 43 44 pw_utils::printDebug("Clickback: Challenge Created. <br/>" 45 . "Clickback: salted data is " . (($data)?$data:"empty") . "<br/>" 46 . "Clickback: length is " . PW_CLICKBACK_LENGTH 47 . "<br/>Clickback: salt is $clickback_salt <br/>"); 44 pw_utils::printDebug("Clickback: Challenge Created (" . PW_CLICKBACK_LENGTH . " characters)<br/>"); 45 pw_utils::printDebug("<ul><li>salted data is " . (($data)?$data:"empty") . "</li>" 46 . "<li>Clickback: salt is $clickback_salt </li>", 2); 48 47 49 48 $data = MD5($clickback_salt . $data); … … 51 50 $chopped = substr($data, 0, PW_CLICKBACK_LENGTH); 52 51 53 pw_utils::printDebug(" Clickback: Hash of the salted challenge data: $data<br/>"54 . " Clickback: Chopped challenge data: $chopped <br/>");52 pw_utils::printDebug("<li>Hash of the salted challenge data: $data</li>" 53 . "<li>Chopped challenge data: $chopped</li></ul>", 2); 55 54 56 55 return ($chopped); branches/RB-0.9/wp-infocard/wp/login/infocard-clickback.php
r98 r125 21 21 </title> 22 22 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 23 <link rel="stylesheet" href="<?php pw_utils::printCSSlink( ); ?>" type="text/css" />23 <link rel="stylesheet" href="<?php pw_utils::printCSSlink('ssl'); ?>" type="text/css" /> 24 24 <script type="text/javascript" src="<?php echo pw_utils::printJqueryLocation(); ?>"></script> 25 25 <script> … … 101 101 </div> 102 102 <div id="pw_login_footer"> 103 <a id="pw_pamelaproject_logo" href="http ://pamelaproject.com" alt="Powered by PamelaWare"><img src='<?php pw_utils::displayPamelaProjectLogo(); ?>' /></a>103 <a id="pw_pamelaproject_logo" href="https://pamelaproject.com" alt="Powered by PamelaWare"><img src='<?php pw_utils::displayPamelaProjectLogo('ssl'); ?>' /></a> 104 104 </div> 105 105 </div> branches/RB-0.9/wp-infocard/wp/userdata.pw.php
r124 r125 215 215 $userdata = compact('user_login', 'user_pass', 'user_email', 'user_nicename', 'user_url', 'display_name', 'first_name', 'last_name'); 216 216 217 pw_utils::printDebug("<br/>Action: createNewAccount<br>");218 217 $user_ID = wp_insert_user($userdata); 219 218 220 219 if ($user_ID) 221 220 { 222 pw_utils::printDebug(" Inserted record # $user_ID<br>");223 221 $datamap['user_login']->add_db_value($datamap['user_login']->new_value); 222 pw_utils::printDebug("<br />Created New Account with ID: " . $user_ID . "<br />"); 224 223 return $user_ID; 225 224 } 226 225 else 227 226 { 228 pw_utils::printDebug(" Error - new user not created<br/>");227 pw_utils::printDebug("<br />Error: New Account Not created.<br />"); 229 228 return FALSE; 230 229 } branches/RB-0.9/wp-infocard/wp/utils.pw.php
r122 r125 42 42 { 43 43 if (PW_DEBUG_ON) 44 {45 44 echo "<h3>$content</h3>\n"; 46 }47 45 } // end function printDebugHeader 48 46 49 function printDebug( $content )47 function printDebug( $content, $level=0 ) 50 48 { 51 49 // … … 58 56 59 57 if (PW_DEBUG_ON) 60 { 61 print $content; 62 } 58 if ((int)$level <= (int)PW_DEBUG_LEVEL) 59 print $content; 63 60 } // end function printDebug 64 61
