Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Provide a "Revert to Default" button for editing CSS. Grammar fix on login page. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
adefb6c8dba43644c5fce844f4afbb19 |
User & Date: | eric 2008-11-26 22:24:45.000 |
References
2008-11-27
| ||
23:37 | • Closed ticket [1dd22c3a]: Setup : CSS : Edit CSS misses 'Revert To Default' button plus 1 other change ... (artifact: 74747d3d user: eric) | |
Context
2008-11-27
| ||
02:30 | Update the version of SQLite used to 3.6.6.2. ... (check-in: f84bfc31 user: drh tags: trunk) | |
2008-11-26
| ||
22:24 | Provide a "Revert to Default" button for editing CSS. Grammar fix on login page. ... (check-in: adefb6c8 user: eric tags: trunk) | |
21:59 | Tidy up the raw tags web page, and provide a way to get there, for admins only ... (check-in: 8d529a7a user: eric tags: trunk) | |
Changes
Changes to src/login.c.
︙ | ︙ | |||
192 193 194 195 196 197 198 | @ <td></td> @ <td><input type="submit" name="in" value="Login"></td> @ </tr> @ </table> if( g.zLogin==0 ){ @ <p>To login }else{ | | | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | @ <td></td> @ <td><input type="submit" name="in" value="Login"></td> @ </tr> @ </table> if( g.zLogin==0 ){ @ <p>To login }else{ @ <p>You are currently logged in as <b>%h(g.zLogin)</b></p> @ <p>To change your login to a different user } @ enter the user-id and password at the left and press the @ "Login" button. Your user name will be stored in a browser cookie. @ You must configure your web browser to accept cookies in order for @ the login to take.</p> if( g.zLogin==0 ){ |
︙ | ︙ |
Changes to src/setup.c.
︙ | ︙ | |||
812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 | ** WEBPAGE: setup_editcss */ void setup_editcss(void){ login_check_credentials(); if( !g.okSetup ){ login_needed(); } style_header("Edit CSS"); @ <form action="%s(g.zBaseURL)/setup_editcss" method="POST"> login_insert_csrf_secret(); @ Edit the CSS:<br /> textarea_attribute("", 40, 80, "css", "css", zDefaultCSS); @ <br /> @ <input type="submit" name="submit" value="Apply Changes"> @ </form> @ <hr> @ Here is the default CSS: @ <blockquote><pre> @ %h(zDefaultCSS) @ </pre></blockquote> style_footer(); } /* ** WEBPAGE: setup_header */ void setup_header(void){ login_check_credentials(); | > > > > > > > > > | 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 | ** WEBPAGE: setup_editcss */ void setup_editcss(void){ login_check_credentials(); if( !g.okSetup ){ login_needed(); } db_begin_transaction(); if( P("clear")!=0 ){ db_multi_exec("DELETE FROM config WHERE name='css'"); cgi_replace_parameter("css", zDefaultCSS); }else{ textarea_attribute(0, 0, 0, "css", "css", zDefaultCSS); } style_header("Edit CSS"); @ <form action="%s(g.zBaseURL)/setup_editcss" method="POST"> login_insert_csrf_secret(); @ Edit the CSS:<br /> textarea_attribute("", 40, 80, "css", "css", zDefaultCSS); @ <br /> @ <input type="submit" name="submit" value="Apply Changes"> @ <input type="submit" name="clear" value="Revert To Default"> @ </form> @ <hr> @ Here is the default CSS: @ <blockquote><pre> @ %h(zDefaultCSS) @ </pre></blockquote> style_footer(); db_end_transaction(0); } /* ** WEBPAGE: setup_header */ void setup_header(void){ login_check_credentials(); |
︙ | ︙ |