Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 8:13 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Sun Feb 13, 2011 12:57 pm 
Offline
Newbie

Joined: Sun Feb 13, 2011 12:41 pm
Posts: 5
I am getting a formating error when I select PDF report
output shows this with the extra html formating error

Date First Audited 2011-02-12    14:49
Date Last Audited 2011-02-12    14:50

I can not seem to find which file is causing this, however if I right click and view source I see the formating error in the source as well.

<td align="left" class="system_tablebody_left" >Date First Audited:</td>
<td align="left" class="system_tablebody_right">2007-10-25&nbsp;&nbsp;&nbsp;&nbsp;17:09</td>
</tr>
<tr style="background-color:#F1F1F1;" >
<td align="left" class="system_tablebody_left" >Date Last Audited:</td>
<td align="left" class="system_tablebody_right">2011-02-11&nbsp;&nbsp;&nbsp;&nbsp;06:59</td>
</tr>



I have current Trunk from the svn running on wamp stack, I am viewing this with IE8

Thanks for any help
Montebond


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 14, 2011 12:35 pm 
Offline
Newbie

Joined: Sun Feb 13, 2011 12:41 pm
Posts: 5
It seems i have found the error

in include_functions.php

At line 79 Change this


function return_date_time($timestamp)
{
$timestamp = substr($timestamp, 0, 4) . "-" . substr($timestamp, 4, 2) . "-" . substr($timestamp, 6, 2) . "&nbsp;&nbsp;&nbsp;&nbsp;" . substr($timestamp, 8, 2) . ":" . substr($timestamp, 10, 2);
return $timestamp;

to this.....

function return_date_time($timestamp)
{
$timestamp = substr($timestamp, 0, 4) . "-" . substr($timestamp, 4, 2) . "-" . substr($timestamp, 6, 2) . " " . substr($timestamp, 8, 2) . ":" . substr($timestamp, 10, 2);
return $timestamp;

some one talking about changing the formating of date pushed me in the correct direction.
Montebond


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 15, 2011 3:46 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Patch system_export.php. It looks like this was handled in the past. Don't know why it was removed other than the PHP 4.3 requirement. There might be other repercussions but I doubt it.

[code]
Index: system_export.php
===================================================================
--- system_export.php (revision 1251)
+++ system_export.php (working copy)
@@ -245,7 +245,7 @@
if( (!isset($field["show"]) OR $field["show"]!="n") AND (!isset($field["print"]) OR $field["print"]="n") ){
$col_count++;
$show_value_2 = ConvertSpecialField($myrow, $field, $db, "system");
- //$show_value_2 = html_entity_decode ($show_value_2); /* >PHP 4.3 */
+ $show_value_2 = html_entity_decode ($show_value_2); /* >PHP 4.3 */
$show_value_1 = $field["head"];

//IF Horizontal Table-Layout

[/code]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group