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.  [ 2 posts ] 
Author Message
PostPosted: Thu Jul 24, 2008 6:30 am 
Offline
Contributor

Joined: Fri Jul 04, 2008 6:46 am
Posts: 153
Location: USA - WI
I added these to openaudit where I work, as we have several of these machines. A drivers/support link probably isn't possible due to the way they decided to structure those pages. Also, I don't have any GTW based machine, so I don't know the vendor string it reports to add that in as well.

[code]
elseif (preg_match("/BUYMPC/i", $myrow["system_vendor"]) || $myrow["system_vendor"] == "Omni Tech Corp") {
if(isset($myrow["system_id_number"]) AND $myrow["system_id_number"]!="") {
if ($myrow["system_vendor"] == "Omni Tech Corp") {
echo " <a href='http://support.mpccorp.com/apps/complist.asp?SerialNo=OTC" . $myrow["system_id_number"] . "' onclick=\"this.target='_blank';\">".__("Warranty Information")."</a>";
}
elseif (preg_match("/BUYMPC/i", $myrow["system_vendor"])) {
echo " <a href='http://support.mpccorp.com/apps/complist.asp?SerialNo=" . $myrow["system_id_number"] . "' onclick=\"this.target='_blank';\">".__("Warranty Information")."</a>";
}
$links_to_manu=1;
}
}
[/code]

_________________
OA Server: Debian Squeeze w/ Apache2
Auditing: 700 Workstations, 250 or so Retail Terminals, about 75 Servers
OS's: Windows XP/2003/2008/2008 R2/Vista/7, Debian
LDAP: Active Directory 2008 R2


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 24, 2008 10:55 pm 
Offline
Contributor

Joined: Fri Jul 04, 2008 6:46 am
Posts: 153
Location: USA - WI
My brain must have been a bit slow yesterday. The second elseif can really just be an else, since the first if already checked for the Omnitech string and if isn't either it wouldn't have passed the first if.

_________________
OA Server: Debian Squeeze w/ Apache2
Auditing: 700 Workstations, 250 or so Retail Terminals, about 75 Servers
OS's: Windows XP/2003/2008/2008 R2/Vista/7, Debian
LDAP: Active Directory 2008 R2


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