TomatoAnon project
[tomato.git] / release / src / router / www / admin-tomatoanon.asp
blobb33085ac03056c31efee9b0a10a931f9cb2383ff
1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
2 <!--
3 Tomato GUI
4 Copyright (C) 2012 Shibby
5 http://openlinksys.info
6 For use with Tomato Firmware only.
7 No part of this file may be used without permission.
8 -->
9 <html>
10 <head>
11 <meta http-equiv='content-type' content='text/html;charset=utf-8'>
12 <meta name='robots' content='noindex,nofollow'>
13 <title>[<% ident(); %>] Admin: TomatoAnon Project</title>
14 <link rel='stylesheet' type='text/css' href='tomato.css'>
15 <link rel='stylesheet' type='text/css' href='<% nv('web_css'); %>.css'>
16 <script type='text/javascript' src='tomato.js'></script>
17 <script type='text/javascript'>
18 // <% nvram("tomatoanon_enable,tomatoanon_answer,tomatoanon_cru,tomatoanon_id"); %>
20 var anon_link = '&nbsp;&nbsp;<a href="http://tomato.groov.pl/tomatoanon.php?search=9&routerid=<% nv('tomatoanon_id'); %>" target="_blank"><i>[Checkout my router]</i></a>';
22 function verifyFields(focused, quiet)
24 var o = (E('_tomatoanon_answer').value == '1');
25 E('_tomatoanon_enable').disabled = !o;
27 var s = (E('_tomatoanon_enable').value == '1');
28 E('_tomatoanon_cru').disabled = !o || !s;
30 return 1;
33 function save()
35 if (verifyFields(null, 0)==0) return;
36 var fom = E('_fom');
38 fom._service.value = 'tomatoanon-restart';
39 form.submit('_fom', 1);
42 function init()
45 </script>
46 </head>
48 <body onLoad="init()">
49 <table id='container' cellspacing=0>
50 <tr><td colspan=2 id='header'>
51 <div class='title'>Tomato</div>
52 <div class='version'>Version <% version(); %></div>
53 </td></tr>
54 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
55 <td id='content'>
56 <div id='ident'><% ident(); %></div>
57 <form id='_fom' method='post' action='tomato.cgi'>
58 <input type='hidden' name='_nextpage' value='admin-tomatoanon.asp'>
59 <input type='hidden' name='_service' value='tomatoanon-restart'>
60 <div class='section-title'>About TomatoAnon Project</div>
61 <div class="fields">
62 <b>Hello</b><br>
63 <br>
64 I would like to present You a new Project named TomatoAnon.<br>
65 TomatoAnon script will send anonymous or incompleted information about router`s model and installed tomato version.<br>
66 Those information will be used ONLY for stats.<br>
67 <b>Any of private information (like MAC`s, IP`s etc) will NOT be send!</b><br>
68 Script is open, writen is bash, well anybody can look what truly is send to database.<br>
69 <br>
70 Results you can explore on <a href=http://tomato.groov.pl/tomatoanon.php target=_blanc><b>http://tomato.groov.pl/tomatoanon.php</b></a> page.<br>
71 Those informations may help you with a choice the best and most popular router in your country.<br>
72 You can check which tomato version is used by the most people and which one is the most stable.<br>
73 <br>
74 If you don`t agree to run this script you can simple disable it<br>
75 Remember, you can enable it any time you want.<br>
76 <br>
77 Sended information:<br>
78 - MD5SUM of WAN+LAN MAC addresses - this will identify a router. Ex: 1c1dbd4202d794251ec1acf1211bb2c8<br>
79 - Model of router. Ex: Asus RT-N66U<br>
80 - Version of installed tomato. Ex: 102 K26 USB<br>
81 - Builtype. Ex: Mega-VPN-64K<br>
82 - Country. Ex: POLAND<br>
83 - ISO Country code. Ex: PL<br>
84 - Uptime of your router. Ex: 3 days<br>
85 That`s all !!<br>
86 <br>
87 Thank You for read that and please make a right choice.<br>
88 <br>
89 <b>Best Regards!</b>
90 </div>
91 <br>
92 <br>
93 <div class='section-title'>TomatoAnon Settings <script>W(anon_link);</script></div>
94 <div class='section'>
95 <script type='text/javascript'>
96 createFieldTable('', [
97 { title: 'Do you know what TomatoAnon doing ?', name: 'tomatoanon_answer', type: 'select', options: [ ['0','No, i don`t. Have to read all information, before i will make a choice'], ['1','Yes, i do and want to make a choice'] ], value: nvram.tomatoanon_answer, suffix: ' '},
98 { title: 'Do you want enable TomatoAnon ?', name: 'tomatoanon_enable', type: 'select', options: [ ['-1','I`m not sure right now'], ['1','Yes, i`m sure i do'], ['0','No, i definitely wont enable it'] ], value: nvram.tomatoanon_enable, suffix: ' '},
99 { title: 'Send every', indent: 2, name: 'tomatoanon_cru', type: 'text', maxlen: 5, size: 7, value: nvram.tomatoanon_cru, suffix: ' <small>hours (range: 1 - 12; default: 6)</small>' }
101 </script>
102 </div>
103 </form>
104 </div>
105 </td></tr>
106 <tr><td id='footer' colspan=2>
107 <form>
108 <span id='footer-msg'></span>
109 <input type='button' value='Save' id='save-button' onclick='save()'>
110 <input type='button' value='Cancel' id='cancel-button' onclick='javascript:reloadPage();'>
111 </form>
112 </div>
113 </td></tr>
114 </table>
115 <script type='text/javascript'>verifyFields(null, 1);</script>
116 </body>
117 </html>