+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
Web Development Thread, Computer Inventory in Coding and Web Development; Originally Posted by zag The original VBS script didnt check Operating System unfortunately so I never included it. It should ...
  1. #16


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,588
    Thank Post
    228
    Thanked 856 Times in 735 Posts
    Rep Power
    296
    Quote Originally Posted by zag View Post
    The original VBS script didnt check Operating System unfortunately so I never included it.

    It should be easy to copy and paste the code to add it though.

    We're Windows 7 all round here so not really much point for me to add this.
    fair enough ive got a mix from xp to 8.1 lol

  2. #17


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,588
    Thank Post
    228
    Thanked 856 Times in 735 Posts
    Rep Power
    296
    nope not getting anywhere with the php i can get a straight text of windows7 ent. . . but just cant seem to get an icon working code below

    have defined winosconfig in settings as
    Code:
    // List of os icon filenames (case sensitive)
    $winosconfig['Microsoft Windows 7 Enterprise  sp 1']=win7.png;
    Code:
    // Display the windows version
    					// echo "".$winver."";
    					// Loop through the os list and display an icon
    					foreach($winosconfig as $osname=>$ospic)
    					{
    						if (strpos($winver,$osname) !== false) {
    							echo "";
    						$checkos = 1;
    						}
    					}
    					if ($checkos != 1) {echo "damn";}
    well now ive got it to display damn for no data and its displaying a blank for ones with data
    Last edited by sted; 7th November 2013 at 01:11 PM. Reason: muppet

  3. #18
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,765
    Thank Post
    898
    Thanked 416 Times in 350 Posts
    Blog Entries
    12
    Rep Power
    87
    Try to debug it by echo'ing the variable $ospic

    If the string is empty then there is a problem with that. Remember its also case sensitive.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. OCS Inventory
    By Geoff in forum Downloads
    Replies: 5
    Last Post: 3rd June 2011, 08:40 AM
  2. Replies: 1
    Last Post: 17th January 2011, 02:36 PM
  3. computer inventory
    By itgeek in forum Wireless Networks
    Replies: 10
    Last Post: 18th November 2010, 02:51 PM
  4. Computer And Software Inventory!! HELP!
    By joshjacklin in forum Network and Classroom Management
    Replies: 12
    Last Post: 2nd August 2010, 09:09 AM
  5. Computer keeps crashing
    By StewartKnight in forum Windows
    Replies: 15
    Last Post: 18th July 2005, 09:54 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •