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 6:10 pm

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: Sat Nov 24, 2007 1:29 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
I added the net_user_name and "internationalised" the Description on the Software Discovered ... feed . (Or should that be internationalized... then again I'm not in the USA) :twisted:

Now if you are using InfoRSS in Firefox (other RSS feeds are available :| ) and have all the newly discovered software scrolling ticker-tape fashion across your status bar, you can mouse over any hookey looking entries, and find out who was responsible without even needing to click the link.

_________________
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: Sat Nov 24, 2007 9:07 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
I didn't check this new feature (probably it wasn't yet uploaded), but could you please check the name link of a new detected software? It seems that dirname() adds a useless "\" char that in Firefox breaks the link (not in IE, it's added a "/" char instead). I fixed it modifying line 16 in rss_new_software.php
[code]
$sitebaseurl = $site_protocol . $_SERVER["SERVER_NAME"] . "/";
[/code]
Probably (I didn't verify) it could be worth modifying also other 2 rss pages. Thank you.

_________________
Edoardo


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 27, 2007 10:08 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
Hi Andrew, do you think it's better to create a new "bugs" topic for the name link in rss pages to be fixed, as I previously wrote here on 24 nov? Thank you

_________________
Edoardo


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 27, 2007 10:58 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Yes, please do. All three pages use the same line.

[code]
$sitebaseurl = $site_protocol . $_SERVER["SERVER_NAME"] . dirname($_SERVER["SCRIPT_NAME"]) . "/";
[/code]

which you want to change to

[code]
$sitebaseurl = $site_protocol . $_SERVER["SERVER_NAME"] . "/";
[/code]

I use Firefox, and Info RSS and this feature works fine for me.
Is that change correct. Will it not break the base URL?
What is the logic?

_________________
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: Wed Nov 28, 2007 2:24 am 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
$sitebaseurl is used in rss pages to create the following <link> tag for the summary view of a system
[code]
echo '<link>'.$sitebaseurl.'system.php?pc='.$myrow["system_uuid"].'&amp;view=summary</link>'."\n";
[/code]
If $sitebaseurl is left as it is now, the generated link is
[code]
http://SERVERNAME\/system.php?pc=UUID&view=summary
[/code]
which is wrong for Firefox (note the "\" char after SERVERNAME, due to the appended "dirname($_SERVER["SCRIPT_NAME"])" which is completely useless).
If you replace $sitebaseurl as I suggested, the generated link is instead
[code]
http://SERVERNAME/system.php?pc=UUID&view=summary
[/code]
which is correct. Let me know if it's more clear now. Thank you

_________________
Edoardo


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