1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/filesystem/boaroot/cgi-bin/regprocess.cgi
2024-07-22 01:58:46 -03:00

26 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
echo -e "Content-Type: text/html\n"
echo "<html><head><meta http-equiv=Content-Script-Type
content=text/javascript><meta http-equiv=Content-Style-Type
content=text/css><meta http-equiv=Content-Type content=\"text/html;
charset=gb2312\"><LINK href=\"/JS/stylemain.css\" type=\"text/css\"
rel=\"stylesheet\"></head><script language=\"JavaScript\">function
onloadfuns{alert("OK");} </script>"
echo -e "<body onload=\"onloadfuns()\"><form id=\"regConfigForm\" name=\"regConfigForm\"><table width=\"580\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#CCCCCC\" bgcolor=\"#FFFFFF\">"
state=`/userfs/bin/tcapi get Register_Entry RegProcessState`
times=`/userfs/bin/tcapi get Register_Entry RegProcessTimes`
percent=`/userfs/bin/tcapi get Register_Entry RegProcessPercent`
echo -e "<tr> <td>"
echo -e "<input type=\"hidden\" name=\"state\" value=\"$state\">"
echo -e "<input type=\"hidden\" name=\"times\" value=\"$times\">"
echo -e "<input type=\"hidden\" name=\"percent\" value=\"$percent\">"
echo -e "</td></tr>"
echo "</table></form></body></html>"