initial re-coding
[configmanager.git] / lib / screenos.plugin.php
diff --git a/lib/screenos.plugin.php b/lib/screenos.plugin.php
new file mode 100644 (file)
index 0000000..7739cfe
--- /dev/null
@@ -0,0 +1,27 @@
+<?php 
+$HOST_TYPE["screenos"]["name"] = "Netscreen Screen OS";
+$HOST_TYPE["screenos"]["configform"] = "nsos_formFunction";
+$HOST_TYPE["screenos"]["postfunction"] = "nsos_postFunction";
+
+function nsos_formFunction()
+{
+       ?>
+Name <input type="text" name="username"><br>
+Password <input type="password" name="password"><br>
+Method <select name="methodtype"><option value="ssh">SSH</option><option value="telnet">Telnet</option></select>
+       <?php
+}
+
+function nsos_postFunction()
+{
+       echo "i am post function, your awesome<br>";
+       echo "<pre>";
+       print_r($_REQUEST);
+       echo "</pre>";
+}
+
+function nsos_getConfig($istest)
+{
+       
+}
+?>
\ No newline at end of file