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 12:30 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sat Aug 09, 2014 12:40 am 
Offline
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 105
Location: Boston, MA
Guy guys Rock!

My small contribution, I added the PC OS Bit to the Summary page
v_display_device.php
line 137
[code]$summary_attributes = array_slice($summary_attributes, 0, 8) +
array('man_os_group' => 'text') +
array('man_os_family' => 'text') +
array('man_os_name' => 'text') +
array('pc_os_bit' => '') +
array_slice($summary_attributes, 8, count($summary_attributes) - 1, true);[/code]

Also, one thing that was bothering me visually, I removed 2px from the top margin of the form label. It was driving me bonkers. I can still see the 1px from the top-padding but removing it made some weird indentation effects when the text was longer than the space I had. The two columns don't collapse very well either on narrow screens (I have small 1280x1024 monitors)
niceforms-default.css
line 18
[code]
form label {
line-height: 12px;
padding-left:2px;
padding-top:1px;
cursor:pointer;
display:block;
float:left;
margin:0px 10px 0px 0px;
text-align:right;
width:150px;
}[/code]

_________________
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: Wed Oct 29, 2014 3:47 am 
Offline
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 105
Location: Boston, MA
@JPA
Found a bug on the m_processor on line 116. There should be a 'first_timestamp'. It's throwing off an error for newly found processors.

[code]$sql = "INSERT INTO sys_hw_processor ( system_id, processor_count, processor_cores, processor_logical,
processor_description, processor_speed, processor_manufacturer, processor_power_management_supported,
timestamp, first_timestamp ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ? )";
$sql = $this->clean_sql($sql);
$data = array("$details->system_id",
"$input->processor_count",
"$input->processor_cores",
"$input->processor_logical",
"$input->processor_description",
"$input->processor_speed",
"$input->processor_manufacturer",
"$input->processor_power_management_supported",
"$details->timestamp",
--------------------------------------> "$details->timestamp");
"$details->first_timestamp");
$query = $this->db->query($sql, $data);
}[/code]

_________________
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: Wed Oct 29, 2014 9:06 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
In my code for 1.5 I have the below. As this is an insert, the $timestamp fields should not be using $first_timestamp.
It looks OK to me and does seem to work.
Can you check below against your actual model code (as it may have changed for 1.5) ?


[code]$sql = "INSERT INTO sys_hw_processor ( system_id, processor_count, processor_cores, processor_logical,
processor_description, processor_speed, processor_manufacturer, processor_architecture,
timestamp, first_timestamp ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )";
$sql = $this->clean_sql($sql);
$data = array("$details->system_id",
"$input->processor_count",
"$input->processor_cores",
"$input->processor_logical",
"$input->processor_description",
"$input->processor_speed",
"$input->processor_manufacturer",
"$input->processor_architecture",
"$details->timestamp",
"$details->timestamp");
$query = $this->db->query($sql, $data);[/code]

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


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.  [ 18 posts ]  Go to page Previous  1, 2

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:  
cron
Powered by phpBB® Forum Software © phpBB Group