summaryrefslogtreecommitdiff
path: root/polux/application/boa/spc200/cgi-bin/reboot.html
diff options
context:
space:
mode:
Diffstat (limited to 'polux/application/boa/spc200/cgi-bin/reboot.html')
-rwxr-xr-xpolux/application/boa/spc200/cgi-bin/reboot.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/polux/application/boa/spc200/cgi-bin/reboot.html b/polux/application/boa/spc200/cgi-bin/reboot.html
new file mode 100755
index 0000000000..064dff651b
--- /dev/null
+++ b/polux/application/boa/spc200/cgi-bin/reboot.html
@@ -0,0 +1,69 @@
+#!/bin/uphp
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+ <html>
+ <head>
+ <title>SPIDCOM Technologies changes</title>
+<style type="text/css">
+input.text{
+ font-family:TrebuchetMS;
+ font-size:14pt;
+ font-weight:bold;
+ background-color:FFFFFF;
+ border-color:FFFFFF;
+ border-style:outset;
+ border-width:0px;
+ color:0000FF;
+}
+</style>
+</head>
+<body>
+<script>
+var start=new Date();
+ start=Date.parse(start)/1000;
+ var counts=30;
+function CountDown(){
+ var now=new Date();
+ now=Date.parse(now)/1000;
+ var x=parseInt(counts-(now-start),10);
+ if(document.form1){document.form1.clock.value = x;}
+ if(x>0){
+ timerID=setTimeout("CountDown()", 100)
+ }else{
+ form1.submit();
+ //location.href="http://<?php print($IPb); ?>";
+ }
+ }
+//function getgoing()
+//{
+// var xIP="http://<?php print($IPb); ?>";
+// top.location=xIP;
+//}
+</script>
+
+<script>
+window.setTimeout('CountDown()',100);
+</script>
+
+
+<FORM ACTION="http://<?php print($IPb);?>" NAME="form1" TARGET="_top">
+<table>
+<tr>
+<INPUT.TEXT>
+<td><font size=4 COLOR="#0000FF">
+The modem is going to be restarted in <INPUT class="text" TYPE="text" NAME="clock" SIZE="1" VALUE="1" READONLY>seconds.</font></td>
+</INPUT.TEXT>
+</tr>
+</table>
+</FORM>
+</body>
+</html>
+
+<?php
+system('echo "#! /bin/sh" > /usr/share/cgi-bin/execute');
+//system('echo "wait 1 &" >> /usr/share/cgi-bin/execute');
+system('echo "/sbin/reboot &" >> /usr/share/cgi-bin/execute');
+system("chmod 777 /usr/share/cgi-bin/execute");
+system("/usr/share/cgi-bin/execute");
+?>
+
+