End Of Life - discontinue this branch!
[tomato.git] / release / src / router / www / admin-tomatoanon.asp
blob63148e0f2d479624a8b27e13ec91a0682e7f4678
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='color.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,tomatoanon_notify"); %>
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 E('_f_tomatoanon_notify').disabled = !o || !s;
32 return 1;
35 function save()
37 if (verifyFields(null, 0)==0) return;
38 var fom = E('_fom');
40 fom.tomatoanon_notify.value = E('_f_tomatoanon_notify').checked ? 1 : 0;
42 fom._service.value = 'tomatoanon-restart';
43 form.submit('_fom', 1);
46 function init()
49 </script>
50 </head>
52 <body onLoad="init()">
53 <table id='container' cellspacing=0>
54 <tr><td colspan=2 id='header'>
55 <div class='title'>Tomato</div>
56 <div class='version'>Version <% version(); %></div>
57 </td></tr>
58 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
59 <td id='content'>
60 <div id='ident'><% ident(); %></div>
61 <form id='_fom' method='post' action='tomato.cgi'>
62 <input type='hidden' name='_nextpage' value='admin-tomatoanon.asp'>
63 <input type='hidden' name='_service' value='tomatoanon-restart'>
64 <input type='hidden' name='tomatoanon_notify'>
65 <div class='section-title'>About TomatoAnon Project</div>
66 <div class="fields"><div class="about">
67 <b>Hello,</b><br>
68 <br>
69 I would like to present you with a new project I've been working on, called TomatoAnon.<br>
70 The TomatoAnon script will send (to a database) information about your router's model and installed version of Tomato.<br>
71 The information submitted is 100% anonymous and will ONLY be used for statistical purposes.<br>
72 <b>This script does NOT send any private or personal information whatsoever (like MAC`s, IP`s etc)!</b><br>
73 Script is fully open, and written in bash. Anyone is free to look at the content that is submitted to the database.<br>
74 <br>
75 The submitted results can be viewed on the <a href=http://tomato.groov.pl/tomatoanon.php target=_blanc><b>http://tomato.groov.pl/tomatoanon.php</b></a> page.<br>
76 This information may help you when choosing the best and most popular router available in your country.<br>
77 You can check which version of Tomato is most commonly used and which one is the most stable.<br>
78 <br>
79 If you don't agree with this script, or do not wish to use it, you can simply disable it.<br>
80 You can always re-enable it at any time.<br>
81 <br>
82 The following data is sent by TomatoAnon:<br>
83 - MD5SUM of WAN+LAN MAC addresses - this will identify a router. Ex: 1c1dbd4202d794251ec1acf1211bb2c8<br>
84 - Model of router. Ex: Asus RT-N66U<br>
85 - Installed version of Tomato. Ex: 102 K26 USB<br>
86 - Builtype. Ex: Mega-VPN-64K<br>
87 - Uptime of your router. Ex: 3 days<br>
88 That`s it !!<br>
89 <br>
90 Thank you for reading and please make the right choice to help this project.<br>
91 <br>
92 <b>Best Regards!</b></font>
93 </div></div>
94 <br>
95 <br>
96 <div class='section-title'>TomatoAnon Settings <script>W(anon_link);</script></div>
97 <div class='section'>
98 <script type='text/javascript'>
99 createFieldTable('', [
100 { 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: ' '},
101 { 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: ' '},
102 { 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>' }
104 </script>
105 </div>
107 <div class='section-title'>Tomato Update Notification System</div>
108 <div class='section'>
109 <script type='text/javascript'>
110 createFieldTable('', [
111 { title: 'Enable', name: 'f_tomatoanon_notify', type: 'checkbox', value: nvram.tomatoanon_notify == '1' }
113 </script>
114 <ul>
115 <li>When new tomato version will be available, you will be notified about this on status-overview page.
116 </ul>
117 </div>
118 </form>
119 </div>
120 </td></tr>
121 <tr><td id='footer' colspan=2>
122 <form>
123 <span id='footer-msg'></span>
124 <input type='button' value='Save' id='save-button' onclick='save()'>
125 <input type='button' value='Cancel' id='cancel-button' onclick='javascript:reloadPage();'>
126 </form>
127 </div>
128 </td></tr>
129 </table>
130 <script type='text/javascript'>verifyFields(null, 1);</script>
131 </body>
132 </html>