Changeset 63
- Timestamp:
- 06/10/07 20:27:03 (2 years ago)
- Files:
-
- trunk/wp-infocard/pw-config.php (modified) (1 diff)
- trunk/wp-infocard/pwlib/login/login.pwlib.php (modified) (1 diff)
- trunk/wp-infocard/wp/login/infocard-login.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-infocard/pw-config.php
r60 r63 7 7 define ('PW_SHOW_BINARY', false); 8 8 define ('PW_PLUGINPATH', '/wp-content/plugins/wp-infocard'); 9 define ('PW_SELECTORTRIGGER', ' html' );9 define ('PW_SELECTORTRIGGER', 'xhtml' ); 10 10 define ('PW_MANAGEDONLY', false ); 11 11 define ('PW_VERSION', 'b2'); trunk/wp-infocard/pwlib/login/login.pwlib.php
r56 r63 123 123 return; 124 124 } 125 126 function printXHTMLSelectorTrigger( $prettyprint=false ) 127 { 128 $obj = "<ic:informationCard name='xmlToken'"; 129 $obj .= "style='behavior:url(#default#informationCard)'"; 130 $obj .= 'tokenType="urn:oasis:names:tc:SAML:1.0:assertion">'; 131 $obj .= '<ic:add claimType="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" optional="false" />'; 132 $obj .= '<ic:add claimType= "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname" optional="false" />'; 133 $obj .= '<ic:add claimType="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname" optional="false" />'; 134 $obj .= '</ic:informationCard>'; 135 136 if ($prettyprint) 137 { 138 $linefeed = "<br/>"; 139 $tab = " "; 140 $objectstart = htmlspecialchars($objectstart); 141 $objectend = htmlspecialchars($objectend); 142 $objectclaims = htmlspecialchars($objectclaims); 143 } 144 else 145 { 146 $linefeed = "\n"; 147 $tab = "\t"; 148 } 149 //$output = $linefeed . $objectstart . $linefeed; 150 //$output .= ($objectclaims ? $tab.$objectclaims.$linefeed : ""); 151 //$output .= $objectend . $linefeed; 152 //$output = $objectstart . $objectclaims . $objectend; 153 $output = $objectstart . $objectend; 154 if ($prettyprint) 155 return htmlspecialchars($obj); 156 else 157 return $obj; 158 } // end function printXHTMLSelectorTrigger 159 125 160 } // end class pw_login 126 161 trunk/wp-infocard/wp/login/infocard-login.php
r56 r63 1 < DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 2 <?php 3 3 define( '_VALID_IC', 1 ); … … 6 6 include_once( dirname(__FILE__) . '/../../' . PW_PLUGIN . '/clickback.pw.php'); 7 7 include_once( dirname(__FILE__) . '/../../' . PW_PLUGIN . '/login/login.pw.php'); 8 9 8 ?> 10 < DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">11 <html xmlns="http://www.w3.org/1999/xhtml">9 <html xmlns="http://www.w3.org/1999/xhtml" 10 xmlns:ic="http://schemas.xmlsoap.org/ws/2005/05/identity"> 12 11 <head> 13 12 <title> … … 17 16 <link rel="stylesheet" href="<?php pw_utils::printCSSlink(); ?>" type="text/css" /> 18 17 <script type="text/javascript" src="<?php echo pw_utils::printJqueryLocation(); ?>"></script> 19 <script >18 <script type="text/javascript"> 20 19 // basic show and hide 21 20 $(document).ready(function() { … … 62 61 </div> 63 62 <div id="pw_login_intro"> 64 <p>Information Cards are a new way to access your accounts. Designed to relieve password & username fatigue, these digital cards can be created by you yourself, or hosted by an authority. Give them a try!</p>63 <p>Information Cards are a new way to access your accounts. Designed to relieve password & username fatigue, these digital cards can be created by you yourself, or hosted by an authority. Give them a try!</p> 65 64 </div> 66 65 <div id="pw_login"> … … 71 70 ?> 72 71 <button id="pw_login_submit" type="submit"><?php pw_utils::screenPrint('Login or Register Now!'); ?></button> 73 <div id="showrpobject">74 <?php pw_login::printIdentitySelectorTrigger('prettyprint'); ?>75 </div>76 72 </form> 73 <div id="showrpobject"> 74 <?php pw_login::printIdentitySelectorTrigger('prettyprint'); ?> 75 </div> 77 76 </div> 78 77 <div id="debug"> … … 95 94 </div> 96 95 <div id="pw_login_footer"> 97 <a id="pw_pamelaproject_logo" href="http://pamelaproject.com" alt="Powered by PamelaWare"><img src='<?php pw_utils::displayPamelaProjectLogo(); ?>'/></a>96 <a id="pw_pamelaproject_logo" href="http://pamelaproject.com"><img src='<?php pw_utils::displayPamelaProjectLogo(); ?>' alt="Powered by PamelaWare" /></a> 98 97 </div> 99 98 </div> 100 99 </body> 100 </html>
