Changeset 162

Show
Ignore:
Timestamp:
03/29/08 19:37:15 (9 months ago)
Author:
pdingle
Message:

removed unused functions: getCardHandle, getUserCardCount

Files:

Legend:

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

    r161 r162  
    586586                $output .= "<table border='1px' cellspacing='0'i cellpadding='4'><th><td>Card Identifier</td><td>Date Attached</td><td>Last Used</td><td colspan='2'>&nbsp;</td></th>\n"; 
    587587 
    588                 //$cardcount = pw_processing::getUserCardCount( $current_user->ID ); 
    589588                $cards = pw_processing::getCurrentUserCards( $current_user->ID ); 
    590589                if (is_array($cards)) 
     
    600599                                        . pw_admin::cardDeleteUrl($card->cardhash, $card->cardhandle) . "</td></tr>\n"; 
    601600                        } 
    602                         //$handle = pw_processing::getCardHandle( $current_user->ID ); 
    603601                } 
    604602                else 
     
    634632        function cardDeleteUrl($cardhash,$cardhandle) 
    635633        { 
    636                 $action_url = PW_SECUREPLUGINURL . '/' . PW_PLUGIN  . '/login/infocard-delete.php'; 
    637                 //return '<a href="' . wp_nonce_url($action_url . '?card=' . $cardhash)  
    638                 return '<a href="\''  
    639                 . '" onclick="confirm('  
    640                 . js_escape(sprintf(__("You are about to delete an information card with the handle of '%s'.\n'Cancel' to stop, 'OK' to delete."), $cardhandle))  
    641                 //. '\'test\''  
    642                 . '\');">' . __('Delete') . '</a> '; 
    643                 //return PW_SECUREPLUGINURL . '/' . PW_PLUGIN  . '/login/infocard-newcard.php'; 
     634?> 
     635<script type="text/javascript"> 
     636        function confirmSubmit() { 
     637        if (confirm("<?php echo "Are you sure you want to delete an information card with the handle of ".$cardhandle."?";?>")) 
     638                return true ; 
     639        else 
     640                return false ; 
     641        } 
     642</script> 
     643<?php 
     644                $action_url = PW_SECUREPLUGINURL . '/pwlib/processing/infocard-delete.php'; 
     645                return '<a href="' . wp_nonce_url($action_url . '?card=' . $cardhash . '&amp;action=deletecard')  
     646                 . '" onclick="return confirmSubmit();">Delete</a>';   
     647                //return '<a href="' . $action_url . '" onclick="return confirmSubmit();">Delete</a>';   
    644648        } 
    645649} // end class pw_admin