Open-AudIT https://www.open-audit.org/phpBB3/ |
|
Add support for LENOVO devices & fix IBM support https://www.open-audit.org/phpBB3/viewtopic.php?f=5&t=2717 |
Page 1 of 1 |
Author: | ptaylor874 [ Tue Apr 08, 2008 12:27 am ] |
Post subject: | Add support for LENOVO devices & fix IBM support |
IBM apparently changed their website recently, as the warranty info link no longer works in the SVN version of open-audit. In addition, new workstations we are getting are branded as Lenovo. I updated the IBM section of code in the system.php file: [code] } elseif ($myrow["system_vendor"] == "IBM" || $myrow["system_vendor"] == "LENOVO") { if(isset($myrow["system_id_number"]) AND $myrow["system_id_number"]!=""){ echo " <a href='http://www-307.ibm.com/pc/support/site.wss/quickPath.do?quickPathEntry=" . $myrow["system_model"] . "' onclick=\"this.target='_blank';\">".__("Product Page")."</a>"; echo " / "; $links_to_manu=1; } if(isset($myrow["system_model"]) AND $myrow["system_model"]!= "" AND isset($myrow["system_id_number"]) AND $myrow["system_id_number"]!=""){ echo " <a href='http://www-307.ibm.com/pc/support/site.wss/warrantyLookup.do?type=".substr($myrow["system_model"],0,4)."&serial=".$myrow["system_id_number"]."&country=897&iws=off&sitestyle=lenovo' onclick=\"this.target='_blank';\">".__("Warranty Information")."</a>"; $links_to_manu=1; } [/code] With this minor code change, our old IBM devices work as well as the new LENOVOs. (Though the sitestyle part of the URL is hard coded for LENOVO in my code) Paul |
Author: | A_Hull [ Tue Apr 08, 2008 11:58 pm ] |
Post subject: | Re: Add support for LENOVO devices & fix IBM support |
Thanks for that, added to SVN BTW please post any changes to the support forum, rather than the general forum. Thanks. |
Page 1 of 1 | All times are UTC + 10 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |