Changeset 61

Show
Ignore:
Timestamp:
06/04/07 16:10:49 (2 years ago)
Author:
pdingle
Message:

infocard-clickback.php now contains the RP object

Files:

Legend:

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

    r56 r61  
    7878        { 
    7979                global $mosConfig_live_site; 
    80                 $clickbackUrl = $mosConfig_live_site . "/index.php?option=com_pwjos&task=clickback&clickbackID=" . $clickbackID; 
     80                $clickbackUrl = PW_SECUREPLUGINURL . "/" . PW_PLUGIN . "/login/infocard-clickback.php?clickbackID=" . $clickbackID; 
    8181 
    8282                $message  = sprintf('Please complete your registration at %s by opening the link below.', pw_utils::printTitle()) . "\r\n\r\n"; 
  • trunk/wp-infocard/wp/login/infocard-clickback.php

    r56 r61  
    11<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <?php 
    3 //////////////////////////////////////////////////////// 
    4 // infocard-clickback.php 
    5 // 
    6 // infocard-clickback.php is an html template that uses CSS look/feel from  
    7 // infocard.css, and calls functions from class.infocard-login.php.   
    8 // It is used in links that have been emailed to users and which require 
    9 // validation. 
    10 // 
    11 /////////////////////////////////////////////////////// 
    12 define( '_VALID_IC', 1 );  
     2<?php  
     3define( '_VALID_IC', 1 ); 
    134include_once( dirname(__FILE__) . '/../../pw-config.php'); 
    14 include_once( dirname(__FILE__) . '/../utils.pw.php'); 
    15 include_once( 'class.infocard-login.php');  
     5include_once( dirname(__FILE__) . '/../../' . PW_PLUGIN . '/utils.pw.php'); 
     6include_once( dirname(__FILE__) . '/../../' . PW_PLUGIN . '/clickback.pw.php'); 
     7include_once( dirname(__FILE__) . '/../../' . PW_PLUGIN . '/login/login.pw.php'); 
     8$clickback = $_REQUEST['clickbackID']; 
     9if ($clickback === NULL) 
     10
     11        pw_utils::errorPageRedirect('NOCLICKBACK'); 
     12
    1613 
    17 // Get clickback value to pass along to infocard-submit 
    18 // 
    19 $clickback = $_REQUEST['clickbackID']; 
    20 if ($clickback == NULL)  
    21 { 
    22         pw_utils::errorPageRedirect('NOCLICKBACK'); 
    23 } 
    2414?> 
     15<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2516<html xmlns="http://www.w3.org/1999/xhtml"> 
    2617<head> 
    27         <title><?php pw_utils::printTitle(); ?> &rsaquo; <?php pw_utils::screenPrint('Verify'); ?></title> 
     18        <title> 
     19                <?php pw_utils::screenPrint('Verify your Account'); ?> 
     20        </title> 
    2821        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    2922        <link rel="stylesheet" href="<?php pw_utils::printCSSlink(); ?>" type="text/css" /> 
    30         <script type="text/javascript" src="<?php echo PW_PLUGINURL . '/pwlib/login/detect.js'; ?>"></script> 
     23        <script type="text/javascript" src="<?php echo pw_utils::printJqueryLocation(); ?>"></script> 
     24        <script> 
     25                // basic show and hide 
     26                $(document).ready(function() { 
     27                        $("#showrpobject").hide(); 
     28<?php  
     29                        if (!PW_DEBUG_ON) 
     30                                echo "$(\"#debug\").hide();"; 
     31?> 
     32                        $("#togglerpobject").click( function() { 
     33                                 $("#showrpobject").toggle('slow'); 
     34                                 return false; 
     35                        }); 
     36                }); 
     37        </script> 
    3138</head> 
    3239<body> 
    33  
    34 <div id="background_box"> 
    35         <h3><?php pw_utils::screenPrint('Verify your Account at'); ?></h3> 
    36         <h1><?php pw_utils::printTitle(); ?></h1> 
    37  
    38 <div id="iclogin"> 
    39         <table> 
    40         <tr><td colspan="2"> 
    41                 <?php pw_utils::screenPrint('You must click on the infocard login button below - and use the same card as last time - to complete the verification process.'); ?> 
    42         </td></tr> 
    43         <tr><td colspan="2"> 
    44                 &nbsp; 
    45         </td></tr> 
    46  
    47         <tr><td rowspan="2"> 
    48              <a id="imgref" href="<?php InfocardLogin::printICSecureSubmitLink(); ?>"> 
    49                 <img src="<?php InfocardLogin::printInfocardLogo(); ?>"/> 
    50               </a> 
    51         </td><td id="ICtitle"> 
    52                 <a href="<?php InfocardLogin::printICSecureSubmitLink($clickback); ?>"><?php pw_utils::screenPrint('Use your Card Now'); ?></a> 
    53         </td></tr> 
    54         <tr><td> 
    55                 <script type="text/javascript"> 
    56                         ShowDetection('<table><tr><td><img src="../../pwlib/images/go.gif"/></td><td>Selector Installed</td></tr></table>','<table><tr><td><img src="../../pwlib/images/yellow.gif"/></td><td><a href="<?php pw_utils::errorPageLink('NOSELECTOR');?>">Do you have a selector installed?</a></td></tr></table>'); 
    57  
    58                 </script> 
    59         </td></tr> 
    60         </table> 
    61 </div> 
    62  
    63 </div> 
    64  
     40  <div id="pw_login_main"> 
     41        <div id="pw_login_header"> 
     42                <h1><?php pw_utils::screenPrint('Verify your account at: ') . pw_utils::printTitle(); ?></h1> 
     43        </div> 
     44        <div id="pw_login_links"> 
     45                <table id="pw_login_linklist"><tr> 
     46                        <td id="home"> 
     47                                <a href="<?php pw_utils::printHomeLink(); ?>"> 
     48                                        <?php pw_utils::screenPrint('Home'); ?> 
     49                                </a> 
     50                        </td> 
     51                        <td id="mainloginpage"> 
     52                                <a href="<?php pw_utils::printOtherLoginOptionsLink(); ?>"> 
     53                                        <?php pw_utils::screenPrint('See All Login Options'); ?> 
     54                                </a> 
     55                        </td> 
     56                        <td id="learnmore"> 
     57                                <a href="<?php pw_utils::printLearnMoreLink(); ?>"> 
     58                                        <?php pw_utils::screenPrint('Learn More'); ?> 
     59                                </a> 
     60                        </td> 
     61                        <td id="rpobject"> 
     62                                <a id="togglerpobject" href=""> 
     63                                        Show/Hide RP Object 
     64                                </a> 
     65                        </td> 
     66                </tr></table> 
     67        </div> 
     68        <div id="pw_login_intro"> 
     69                <p>Use your information card here to verify your account - you will have full access once this process is done, and you will not have to do this again unless you change your card, or your email address.</p> 
     70        </div> 
     71        <div id="pw_login"> 
     72                <form name="ctl00" id="ctl00" method="post" action="<?php pw_login::printICPostDestination(); ?>"> 
     73<?php 
     74                        $trigger_debug = pw_login::printIdentitySelectorTrigger(); 
     75                        $cb_debug = pw_clickback::printHiddenClickback($clickback); 
     76?> 
     77                        <button id="pw_login_submit" type="submit"><?php pw_utils::screenPrint('Use your Card Now!'); ?></button> 
     78                        <div id="showrpobject"> 
     79                                <?php pw_login::printIdentitySelectorTrigger('prettyprint' ); ?> 
     80                        </div> 
     81                </form> 
     82        </div> 
     83        <div id="debug"> 
     84<?php 
     85                $userAgent = $_SERVER['HTTP_USER_AGENT']; 
     86                pw_utils::printDebugHeader('DEBUG MODE ON'); 
     87                pw_utils::printDebug("This site is under maintenance - anything is possible<br/>" 
     88                . "<br/>This page contains the hidden form object that specifies required and optional claims, and invokes the Identity Selector.<br/>" 
     89                . "View the page source to see the object.<br/><br />"); 
     90                pw_utils::printDebug("Plugin: " . PW_PLUGIN . "<br/>\n"); 
     91                pw_utils::printDebug("Table Prefix: " . PW_TABLE_PREFIX . "<br/>\n"); 
     92                pw_utils::printDebug("User Agent: $userAgent<br/>\n"); 
     93                pw_utils::printDebug("Clickback: $cb_debug<br/>\n"); 
     94                pw_utils::printDebug("Selector Trigger: $trigger_debug<br/>\n"); 
     95                pw_utils::showClaimList($claimslist); 
     96                pw_utils::showDataMap($datamap); 
     97?> 
     98        </div> 
     99        <div id="pw_login_help"> 
     100        </div> 
     101        <div id="pw_login_footer"> 
     102                <a id="pw_pamelaproject_logo" href="http://pamelaproject.com" alt="Powered by PamelaWare"><img src='<?php pw_utils::displayPamelaProjectLogo(); ?>' /></a> 
     103        </div> 
     104  </div> 
    65105</body> 
    66 </html> 
    67  
    68 <?php  
    69         // test  
    70 ?>