
Originally Posted by
lat9
I've submitted v1.0.5 to the plugins; somewhere along the line

, the USPS shipping log files started starting with SHIP_usps instead of just usps.
It wasn't really until I actively started using this plugin on a local computer while developing some functionality that I realized I had been missing something on my active site. Apparently there are "instructions" displayed at line 209 of ADMIN/display_logs.php, but only if accessing the logs from a non secure site. The line provides two pieces of information, 1) A message about not using a SSL connection and that viewing the contents of the logs could present a security risk. and 2) instructions about usage of the log viewer, but they are concatenated together inside of the https test. So, here is what I did/changed at and around that line. (Changes made/to make attempted to be highlighted in red.) As said, wouldn't even know you were missing something unless you were using a non-SSL server setting.
V1.0.5 of the code (lines 202-213) change from:
Code:
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
<?php if (substr(HTTP_SERVER, 0, 5) != 'https') { // display security warning about downloads if not SSL ?>
<tr>
<td class="main"><?php echo WARNING_NOT_SECURE . sprintf(TEXT_INSTRUCTIONS, MAX_LOG_FILE_READ_SIZE, ((isset($_GET) && isset($_GET['sort']) && $_GET['sort'] == 'a') ? TEXT_OLDEST : TEXT_MOST_RECENT), (($numLogFiles > MAX_LOG_FILES_TO_VIEW) ? MAX_LOG_FILES_TO_VIEW : $numLogFiles), $numLogFiles); ?></td>
<td class="main" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
<?php } ?>
</table></td>
Change to:
Code:
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
<tr>
<td class="main"><?php if (substr(HTTP_SERVER, 0, 5) != 'https') { // display security warning about downloads if not SSL ?>
<?php echo WARNING_NOT_SECURE;
}
echo sprintf(TEXT_INSTRUCTIONS, MAX_LOG_FILE_READ_SIZE, ((isset($_GET) && isset($_GET['sort']) && $_GET['sort'] == 'a') ? TEXT_OLDEST : TEXT_MOST_RECENT), (($numLogFiles > MAX_LOG_FILES_TO_VIEW) ? MAX_LOG_FILES_TO_VIEW : $numLogFiles), $numLogFiles); ?></td>
<td class="main" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
Bookmarks