예제 #1
0
파일: resources.php 프로젝트: Evolix/lilac
        $resourceCfg->save();
        $success = "Updated Resource Configuration.";
    }
}
print_header("Environment Resources");
print_window_header("Nagios Resources", "100%", "center");
?>
		Nagios resources are used as macros when defining Nagios commands.  Text strings which are commonly used are good examples of 
		resources.  These include passwords, file paths and usernames.
		<form name="resource_config[resource_config_form" method="post" action="resources.php">
		<input type="hidden" name="request" value="update" />
		<table width="100%" cellspacing="10" align="center" border="0">
		<tr>
			<td width="50%" valign="top">
			<b>$USER1$:</b> <input type="text" size="60" name="resource_config[user1]" value="<?php 
echo $resourceCfg->getUser1();
?>
"><br />
			<br />
			
			<b>$USER2$:</b> <input type="text" size="60" name="resource_config[user2]" value="<?php 
echo $resourceCfg->getUser2();
?>
"><br />
			<br />
			
			<b>$USER3$:</b> <input type="text" size="60" name="resource_config[user3]" value="<?php 
echo $resourceCfg->getUser3();
?>
"><br />
			<br />