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 5:50 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Wed Apr 07, 2010 8:31 am 
Offline
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 105
Location: Boston, MA
I discovered a number of errors when running Disk Usage Graphs
[quote]Deprecated: Function ereg_replace() is deprecated in C:\wamp\www\Audit\system_graphs.php on line 64


The PHP site recommends to use preg_replace() which uses a Perl-compatible regular expression syntax, and it seems to work very well. I made the following correction on System_Graphs.PHP file.

Original
[code]echo "<img src=\"system_graphs_image.php?disk_percent=" . $disk_percent . "&disk_free_warn=".$disk_free_warn."\" alt=\"".__("Partition").": " . ereg_replace (":", "", $myrow['disk_letter']) . "--\r";[/code]

Corrected
[code]echo "<img src=\"system_graphs_image.php?disk_percent=" . $disk_percent . "&disk_free_warn=".$disk_free_warn."\" alt=\"".__("Partition").": " . preg_replace ('/:/', '//', $myrow['disk_letter']) . "--\r";[/code]

This is the first time I use Open-AudIT and I'm really glad I was able to fix this problem myself with very basic PHP knoledge. I don't know if there are other similar problems.

_________________
Old OA Setup: 500 Windows 7 workstations & 200 Apple OSX with OA v1.5.2 on Windows Server 2003 and WAMP 2
New OA Setup: 100 Windows servers with OA 2.2 on Windows Server 2016 and WAMP 3


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 17, 2010 5:23 am 
Offline
Newbie

Joined: Sat Apr 17, 2010 5:20 am
Posts: 1
Thanks am new to it and I'm learning on my own as well.


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 23, 2010 9:50 am 
Offline
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 105
Location: Boston, MA
Hi HCRothschild

I've been working on Open Audit for 3 weeks now, I'm still learning as well.
I kept on running unto some errors similar to the one above, my guess is that Mark developed OA based on 5.2.x and has already moved onto OAv2, so I'm not expecting more development on it, I rather have him focus on OAv2 which is looking incredibly good. :!:

My recommendation is to downgrade to the latest 5.2.x and you should be all set.

_________________
Old OA Setup: 500 Windows 7 workstations & 200 Apple OSX with OA v1.5.2 on Windows Server 2003 and WAMP 2
New OA Setup: 100 Windows servers with OA 2.2 on Windows Server 2016 and WAMP 3


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2010 7:27 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Here is a workaround, in php.ini, set

[code]
display_errors = Off
[/code]

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2010 7:27 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Here is a workaround, in php.ini, set

[code]
display_errors = Off
[/code]

This works as the commands are only deprecated, not removed, so we only need to suppress the warning. Obviously sooner or later these commands will go, but by then we will all be on OAv2 wont we Mark :twisted:

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


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.  [ 5 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