Changeset 150

Show
Ignore:
Timestamp:
01/01/08 20:01:18 (1 year ago)
Author:
pdingle
Message:

fixed up Admin Screen to call pwlib functions, fixed table structure, added more info links, added PW_ADMIN_HELP_URL constant to pw-config.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/RB-0.91/wp-infocard/pw-config.php

    r148 r150  
    3333include_once( dirname(__FILE__) . '/' . PW_PLUGIN. '/pw-claimtypes.php'); 
    3434define ('PW_FP_ICON', 'infocard_60x42.png' ); // icon must be in /pwlib/images 
     35define ('PW_ADMIN_HELP_URL', 'http://code.pamelaproject.com' ); // PamelaWare Wiki base 
    3536?> 
  • branches/RB-0.91/wp-infocard/wp/admin.pw.php

    r149 r150  
    387387                <form  action="" method="post"> 
    388388                        <table border="0"><tr><th valign="bottom" colspan="2" align="left"> 
    389                         <tr><td>&nbsp</td><td/></tr> 
    390  
    391                         <tr><th colspan="2" align="left">Information Card Configuration</td></tr> 
     389                        <tr><td colspan="4">&nbsp</td></tr> 
     390 
     391                        <tr><th colspan="4" align="left">Information Card Configuration</td></tr> 
    392392                        <tr><td valign="top"> 
    393393                        <label for="securesiteurl" title="Secure Site URL"> 
    394394                        <?php pw_utils::screenPrint('Secure Site URL'); ?> 
    395395                        </label> 
    396                         </td><td
     396                        </td><td colspan="3"
    397397                        <input type="text" name="pw_securesiteurl" id="pw_securesiteurl" size="50" value="<?php print $opts['pw_securesiteurl']; ?>" /> 
    398398                        </td></tr> 
     
    402402                        <?php pw_utils::screenPrint('SSL Private Key'); ?> 
    403403                        </label> 
    404                         </td><td
     404                        </td><td colspan="3"
    405405                        <textarea cols="60" rows="4" name="pw_infocard_key" id="pw_infocard_key"><?php print $opts['pw_infocard_key']; ?></textarea> 
    406406                        </td></tr> 
     
    409409                        <?php pw_utils::screenPrint('SSL Passphrase'); ?> 
    410410                        </label> 
    411                         </td><td
     411                        </td><td colspan="3"
    412412                        <input type="text" name="pw_infocard_opener" id="pw_infocard_opener" size="50" value="<?php print $opts['pw_infocard_opener']; ?>" /> 
    413413<?php /* 
     
    418418                        </td></tr> 
    419419*/ ?> 
    420                         <tr><td>&nbsp;</td><td/></tr> 
    421                         <tr><th colspan="2" align="left">To Enable Information Card User Login</td></tr> 
    422                         <tr><td colspan="2"><?php pw_utils::screenPrint('The following changes will result in a login form with the option "Use an Information Card". Please make a copy of the wp-login.php file before you begin, so that you can revert to that original file in case of difficulties.'); ?></td></tr>                        <tr><td colspan="2" id="code"> 
     420                        <tr><td colspan="4">&nbsp;</td></tr> 
     421                        <tr><th colspan="4" align="left">To Enable Information Card User Login</td></tr> 
     422                        <tr><td colspan="4"><?php pw_utils::screenPrint('The following changes will result in a login form with the option "Use an Information Card". Please make a copy of the wp-login.php file before you begin, so that you can revert to that original file in case of difficulties.'); ?></td></tr>                        <tr><td colspan="2" id="code"> 
    423423<?php 
    424424                        pw_admin::printInstallData(); 
    425425?>       
    426426                        </td></tr> 
    427                         <tr><td>&nbsp</td><td/></tr> 
    428                         <tr><th colspan="2" align="left"> 
    429                                 <?php pw_utils::ScreenPrint('Advanced Settings'); ?> 
    430                         </td></tr> 
    431                         <tr><td colspan="2"> 
    432                                 <?php pw_utils::screenPrint('Don\'t mess with these unless you understand and accept the consequences. Security breaches or errors could occur if you change these settings under the wrong circumstances.'); ?> 
    433                         </td></tr> 
    434                         <tr><td colspan="2">&nbsp;</td></tr> 
    435                         <tr><td> 
    436                                 <?php pw_utils::screenPrint('Debug Mode'); ?> 
    437                         </td><td> 
    438                                 <input name="pw_debug_on" type="radio" id="pw_debug_on" value="1" <?php echo ($opts['pw_debug_on'])?"checked":""; ?> /> 
    439                                 <?php pw_utils::screenPrint('On'); ?> 
    440  
    441                                 <input name="pw_debug_on" type="radio" id="pw_debug_on" value="0" <?php echo ($opts['pw_debug_on'])?"":"checked"; ?> /> 
    442                                 <?php pw_utils::screenPrint('Off'); ?> 
    443                         </td></tr> 
    444                         <tr><td> 
    445                                 <?php pw_utils::screenPrint('Time Validation'); ?> 
    446                         </td><td> 
    447                                 <input name="pw_time_validation" type="radio" id="pw_time_validation" value="1" <?php echo ($opts['pw_time_validation'])?"checked":""; ?> /> 
    448                                 <?php pw_utils::screenPrint('On'); ?> 
    449                                 <input name="pw_time_validation" type="radio" id="pw_time_validation" value="0" <?php  echo ($opts['pw_time_validation'])?"":"checked"; ?> /> 
    450                                 <?php pw_utils::screenPrint('Off'); ?> 
    451                         <tr><td> 
    452                                 <?php pw_utils::screenPrint('Use Custom Data'); ?> 
    453                         </td><td> 
    454                                 <input name="pw_custom_data" type="radio" id="pw_custom_data" value="1" <?php echo ($opts['pw_custom_data'])?"checked":""; ?> /> 
    455                                 <?php pw_utils::screenPrint('On'); ?> 
    456                                 <input name="pw_custom_data" type="radio" id="pw_custom_data" value="0" <?php  echo ($opts['pw_custom_data'])?"":"checked"; ?> /> 
    457                                 <?php pw_utils::screenPrint('Off'); ?> 
    458                         </td></tr> 
    459                         <tr><td> 
    460                                 <?php pw_utils::screenPrint('Selector Trigger'); ?> 
    461                         </td><td> 
    462                                 <input name="pw_selector_trigger" type="radio" id="pw_selector_trigger" value="html" <?php echo ($opts['pw_selector_trigger'] === 'html')?"checked":""; ?> /> 
    463                                 <?php pw_utils::screenPrint('HTML'); ?> 
    464                                 <input name="pw_selector_trigger" type="radio" id="pw_selector_trigger" value="xhtml" <?php echo ($opts['pw_selector_trigger'] === 'xhtml')?"checked":""; ?> /> 
    465                                 <?php pw_utils::screenPrint('XHTML'); ?> 
    466                         </td></tr> 
    467 <?php 
     427<?php 
     428                        print pw_admin::getPWAdminAdvancedSettings( $opts ); 
    468429                        print pw_admin::getPWAdminCardOptions( $opts ); 
    469430?>