Freakkk
wzl-lid
Sinds 25/8/2006
T:21 -
R:8617
|
19/11/2008 -
23:05u
| Quote
|
http://www.noxa.net/profielfoto/Sheilaa/1845080
|
Flyboy
[mod] everywhere
Sinds 18/6/2003
T:43 -
R:4373
|
20/11/2008 -
9:04u
| Quote
|
<?php /////////////////////////////////////////////////////////////////// // pHpHp v0.1 written by Greg Lawler // September 5 2000 // from http://www.zinkwazi.com // Feel free to use/modify this little script. // // this script comes with no implied warranty. /////////////////////////////////////////////////////////////////// // // INSTALLATION INSTRUCTIONS // You NEED to have SNMP compiled into your PHP for this to work!!!! // check http://www.php.net/ for details // // Create a text file called printers.txt and place it in the same // directory as phphp.php. In the printers.txt file, list each // printer to be monitored on a separate line. // This script has only been tested on Linux. It should work on NT // but WILL NOT WORK ON WINDOWZ 9x because phphp uses SNMP. // if you get errors, check http://www.php.net // first to see how to get SNMP working on your machine. // // NB! you may need to change the community to match your printer's // do this by telnetting to the printer. or change $community below // to match your printers. // // i just wrote this today so expect bugs  // //////////////////////////////////////////////////////////////////////
$title = "pHpHp";
// html stuff, replace with your sites include() file print "<HTML><HEAD><TITLE>$title</title>"; print "<META HTTP-EQUIV=\"refresh\" CONTENT=\"60;URL=$PHP_SELF\">\n"; print "</HEAD>"; print "<BODY>"; print "<CENTER>"; print "<H3><B>$header</H3></B>";
function strip_quotes($input) { return (preg_replace("/\"/", "", $input) ); }
function print_test_page($target) { // i am still working on this } $printers = file("printers.txt" ; $number_of_printers = count ($printers); print "<table width=100%><tr>"; for ( $i = 0 ; $i < $number_of_printers ; $i++) {
$timeout = '300'; $retries = '10'; $cell_bg_color = "cccccc"; $table_header_color = "cccccc";
// you may need to change the community to match your printer's // do this by telnetting to the printer.i
$community = "public"; $status = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.3.9.1.1.3.0", $timeout, $retries); $ipx_name = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.10.8.0", $timeout, $retries); $sysname = snmpget($printers[$i], $community, "system.sysName.0", $timeout, $retries); $contact = snmpget($printers[$i], $community, "system.sysContact.0", $timeout, $retries); $location = snmpget($printers[$i], $community, "system.sysLocation.0", $timeout, $retries); $toner = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.3.9.4.2.2.11.1.1.6.1.1", $timeout, $retries); $pages_printed = snmpget($printers[$i], $community, ".1.3.6.1.2.1.43.10.2.1.4.1.1", $timeout, $retries);
$get_firmware = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.5", $timeout, $retries); eregi( "REVISION: (.*)", $get_firmware, $firmware);
$get_netmask = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.24", $timeout, $retries); eregi( "MASK: (.*)", $get_netmask, $netmask);
$get_gateway = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.25", $timeout, $retries); eregi( "GATEWAY: (.*)", $get_gateway, $gateway);
$get_bp_server = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.30", $timeout, $retries); eregi( "SERVER: (.*)", $get_bp_server, $bp_server);
$get_configby = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.22", $timeout, $retries); eregi( "BY: (.*)", $get_configby, $configby);
$get_mac = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.6", $timeout, $retries); eregi( ": (.*)", $get_mac, $mac);
$get_apple_name = snmpget($printers[$i], $community, ".1.3.6.1.4.1.11.2.4.3.1.12.1.2.75", $timeout, $retries); eregi( ": (.*)", $get_apple_name, $apple_name);
if ((strip_quotes($status) == "READY" || (strip_quotes($status) == "POWERSAVE ON" ) $alert = "GREEN"; else $alert = "RED"; print "<td>"; print "<table border=0 cellpadding=0 cellspacing=2>\n";
print "<tr>\n"; print "<td colspan=2 align=center bgcolor=$table_header_color>"; print strip_quotes($sysname); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td align=center colspan=2 bgcolor=$alert>"; print strip_quotes($status); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Pages Printed</td>\n"; print "<td bgcolor=$cell_bg_color>"; print $pages_printed; print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>IPX Name</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($ipx_name); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Appletalk Name</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($apple_name[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Location</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($location); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Net Config By</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($configby[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>DHCP Server</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($bp_server[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>IP Address</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($printers[$i]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Net Mask</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($netmask[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Gateway</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($gateway[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>MAC Address</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($mac[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Contact</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($contact); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td bgcolor=$cell_bg_color>Firmware</td>\n"; print "<td bgcolor=$cell_bg_color>"; print strip_quotes($firmware[1]); print "</td>\n"; print "</tr>\n";
print "<tr>\n"; print "<td colspan=2 bgcolor=$cell_bg_color>"; print strip_quotes($toner); print "</td>\n"; print "</tr>\n";
print "</table>\n"; print "</td>"; } print "</tr></table>";
// html stuff, replace with your sites include() file print "</CENTER></BODY></HTML>"; ?>
|
bol
wzl-lid
Sinds 2/12/2004
T:39 -
R:1749
|
20/11/2008 -
11:30u
| Quote
|
Alanis Morisette -
|
Brainless
wzl-lid
Sinds 4/3/2007
T:2 -
R:67
|
20/11/2008 -
22:35u
| Quote
|
http://www.rockpapershotgun.com/images/july08/l4dcoverbig.jpg
|
Flyboy
[mod] everywhere
Sinds 18/6/2003
T:43 -
R:4373
|
22/11/2008 -
23:26u
| Quote
|
|
Lotuk
wzl-lid
Sinds 25/4/2008
T:1 -
R:79
|
23/11/2008 -
0:59u
| Quote
|
http://www.biochemj.org/bj/355/0835/bj3550835a02.gif
|
Brainless
wzl-lid
Sinds 4/3/2007
T:2 -
R:67
|
24/11/2008 -
2:08u
| Quote
|
gegalvaniseerd
|
Zoidberg
wzl-lid
Sinds 26/1/2005
T:48 -
R:3285
|
24/11/2008 -
16:54u
| Quote
|
http://www.pixelpoodle.com/wordpress/wp-content/uploads/2008/11/we-are-scientists.jpg
|
D3ton8oR
Stella-man
Sinds 15/10/2003
T:32 -
R:1581
|
25/11/2008 -
8:22u
| Quote
|
Zoidberg schreef: http://www.pixelpoodle.com/wordpress/wp-content/uploads/2008/11/we-are-scientists.jpg
Cool
|
bol
wzl-lid
Sinds 2/12/2004
T:39 -
R:1749
|
3/12/2008 -
10:30u
| Quote
|
85.10.209.11
|
mc rules
WZL-lid
Sinds 7/8/2003
T:0 -
R:1
|
3/12/2008 -
10:51u
| Quote
|
Arfeiniel is a little red bird that's about to spread her wings zegt: ok ok, ik ben massas jaloers, ge zou beter mij binnendoen
(msngesprek)
|
excalibur
wzl-lid
Sinds 14/4/2006
T:2 -
R:55
|
3/12/2008 -
11:10u
| Quote
|
http://www.miekevangompel.nl/bellypaint%2001.jpg
|
mertar
wzl-lid
Sinds 7/6/2006
T:0 -
R:2
|
3/12/2008 -
11:11u
| Quote
|
http://s286.photobucket.com/albums/ll115/MISSROCHE/?start=2
|
Flyboy
[mod] everywhere
Sinds 18/6/2003
T:43 -
R:4373
|
3/12/2008 -
11:20u
| Quote
|
1 serv cottage pie coffee with baileys 2 glasses iced t w/splenda 1/4 giant cookie man
|
HappyHippie
wzl-lid
Sinds 21/7/2005
T:1 -
R:17
|
3/12/2008 -
12:12u
| Quote
|
Soil concentrations (Cs)and air concentrations (Ca) are regarded as stabile. Litterfall or evaporation is not a part of the model, as it is a plant model only. Moreover, air concentrations are variable in time, for example by seasonal cycles. (Brorström-Lundén, E. and Löfgren, C., 1998; Guoqing, L. et al., 2006)
|
Nix
wzl-lid
Sinds 2/8/2008
T:0 -
R:2
|
3/12/2008 -
12:17u
| Quote
|
v.re
|
solid snake nr1
wzl-lid
Sinds 7/3/2006
T:1 -
R:280
|
3/12/2008 -
12:48u
| Quote
|
http://www.zorg-en-gezondheid.be/hielprik_professioneel.aspx
|
Jiberish
wzl-lid
Sinds 5/12/2003
T:1 -
R:14
|
3/12/2008 -
12:50u
| Quote
|
guy dillen
|
Evian
wzl-lid
Sinds 5/10/2008
T:0 -
R:8
|
3/12/2008 -
13:06u
| Quote
|
Production: Lumber: 762 per hour Clay: 625 per hour Iron: 525 per hour Crop: 631 per hour
|
piti
wzl-lid
Sinds 15/1/2006
T:0 -
R:1
|
3/12/2008 -
13:20u
| Quote
|
http://www.facebook.com
|