This repository has been archived by the owner on Dec 14, 2020. It is now read-only.
/
Restarting.asp
48 lines (45 loc) · 1.55 KB
/
Restarting.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="-1">
<link rel="shortcut icon" href="images/favicon.png">
<link rel="icon" href="images/favicon.png">
<title>ASUS Wireless Router Web Manager</title>
<link rel="stylesheet" type="text/css" href="other.css">
<script>
if(parent.tmo_support)
var theUrl = "cellspot.router";
else
var theUrl = "router.asus.com";
var reboot_needed_time = <% get_default_reboot_time(); %>;
var action_mode = '<% get_parameter("action_mode"); %>';
function redirect(){
parent.stopFlag = 1;
setTimeout("redirect1();", reboot_needed_time*1000);
}
function redirect1(){
if(action_mode == "Restore"){
parent.document.getElementById('drword').innerHTML = "<#Setting_factorydefault_iphint#><br/>".replace("192.168.1.1", '<% nvram_default_get("lan_ipaddr"); %>');
setTimeout("parent.hideLoading()",1000);
setTimeout("parent.dr_advise();",1000);
if((!parent.tmo_support && parent.location.hostname.search('router.asus') != -1)
||(parent.tmo_support && parent.location.hostname.search('cellspot.router') != -1))
parent.location.href = 'http://'+ theUrl +'/QIS_default.cgi?flag=welcome';
else
parent.location.href = 'http://<% nvram_default_get("lan_ipaddr"); %>/QIS_default.cgi?flag=welcome';
}
else{
parent.location.href = "/";
return false;
}
}
</script>
</head>
<body onLoad="redirect();">
<script>
parent.hideLoading();
parent.showLoading(reboot_needed_time, "waiting");
</script>
</body>
</html>