Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sams anti-hacker mod


dcrider1

Recommended Posts

This code is not in my account_edit.php file. How should I proceed?

 

This part of the instructions.

 

Find:

<?php

if (ACCOUNT_DOB == 'true') {

?>

<tr>

<td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>

<td class="main"><?php echo tep_draw_input_field('dob', tep_date_short($account['customers_dob'])) . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>

</tr>

<?php

}

?>

Replace with:

<?php

if (ACCOUNT_DOB == 'true') {

// anti-hacker account

$day = substr($account['customers_dob'], 8, 2);

$month = substr($account['customers_dob'], 5, 2);

$year = substr($account['customers_dob'], 0, 4);

$day = isset($_POST['dob_ind']) ? $_POST['dob_ind'] : $day;

$month = isset($_POST['dob_inm']) ? $_POST['dob_inm'] : $month;

$year = isset($_POST['dob_in']) ? $_POST['dob_in'] : $year;

 

?>

<tr>

<td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>

<td class="main"><?php echo tep_pull_down_date('dob_in', $day, $month, $year, true) . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>

 

</tr>

<?php

// EOF anti-hacker account

}

?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...