Originally Posted by Clegs
|
oh, cool
So this isn't converting code you wrote.
|
nope, not at all. the code in this thread is for the web ui, where there is a function to clear the nvram. however, i didnt want it to be so simple that you could just click ok to a confirm() prompt, so i did the more complex way where you have to manualy enter a confim code before it will let you clear nvram.
basically, the device works off of .asp files.
for exampel to reboot the device, you put <% reboot(); %> in the .asp file, and it reboots. i have created a folder in the docroot called commandp (command pages), and for every .asp function, there is a page that includeds it, reports whqat it is doing, the redirets to the main page of the gui after 10 secounds (90 fro rebooting)
there are also .asp functiosn that print HUGE (upwards of 2 pages) of strings about, for example, hard drive status, things liek that. so those need to be converted to something readble by humans.
clearign the nvram is the only (thus far) function that reqires a "super" confirm before working. things like enabling telnet only require a simple confirm().
soem of the more clever of you may havwe noticed that the code simply pulls up the page, which is unprotected without the prompt() box. i know this, and in future versions of the gui, this will be differnt. but for now, it is a provate beat, so it doesnt really matter.
chris