| | @@ -962,22 +962,30 @@ |
| 962 | 962 | } |
| 963 | 963 | db_begin_transaction(); |
| 964 | 964 | if( P("clear")!=0 ){ |
| 965 | 965 | db_multi_exec("DELETE FROM config WHERE name='css'"); |
| 966 | 966 | cgi_replace_parameter("css", zDefaultCSS); |
| 967 | + db_end_transaction(0); |
| 968 | + cgi_redirect("setup_editcss"); |
| 967 | 969 | }else{ |
| 968 | 970 | textarea_attribute(0, 0, 0, "css", "css", zDefaultCSS); |
| 969 | 971 | } |
| 972 | + if( P("submit")!=0 ){ |
| 973 | + db_end_transaction(0); |
| 974 | + cgi_redirect("setup_editcss"); |
| 975 | + } |
| 970 | 976 | style_header("Edit CSS"); |
| 971 | 977 | @ <form action="%s(g.zBaseURL)/setup_editcss" method="POST"> |
| 972 | 978 | login_insert_csrf_secret(); |
| 973 | 979 | @ Edit the CSS below:<br /> |
| 974 | 980 | textarea_attribute("", 40, 80, "css", "css", zDefaultCSS); |
| 975 | 981 | @ <br /> |
| 976 | 982 | @ <input type="submit" name="submit" value="Apply Changes"> |
| 977 | 983 | @ <input type="submit" name="clear" value="Revert To Default"> |
| 978 | 984 | @ </form> |
| 985 | + @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 986 | + @ CSS in order to pull in the modified CSS file.</p> |
| 979 | 987 | @ <hr> |
| 980 | 988 | @ The default CSS is shown below for reference. Other examples |
| 981 | 989 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 982 | 990 | @ See also the <a href="setup_header">header</a> and |
| 983 | 991 | @ <a href="setup_footer">footer</a> editing screens. |
| | @@ -1091,14 +1099,18 @@ |
| 1091 | 1099 | db_finalize(&ins); |
| 1092 | 1100 | db_multi_exec( |
| 1093 | 1101 | "REPLACE INTO config(name, value) VALUES('logo-mimetype',%Q)", |
| 1094 | 1102 | zMime |
| 1095 | 1103 | ); |
| 1104 | + db_end_transaction(0); |
| 1105 | + cgi_redirect("setup_logo"); |
| 1096 | 1106 | }else if( P("clr")!=0 ){ |
| 1097 | 1107 | db_multi_exec( |
| 1098 | 1108 | "DELETE FROM config WHERE name GLOB 'logo-*'" |
| 1099 | 1109 | ); |
| 1110 | + db_end_transaction(0); |
| 1111 | + cgi_redirect("setup_logo"); |
| 1100 | 1112 | } |
| 1101 | 1113 | style_header("Edit Project Logo"); |
| 1102 | 1114 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1103 | 1115 | @ like this:</p> |
| 1104 | 1116 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| | @@ -1117,8 +1129,13 @@ |
| 1117 | 1129 | @ Logo Image file: |
| 1118 | 1130 | @ <input type="file" name="im" size="60" accepts="image/*"><br> |
| 1119 | 1131 | @ <input type="submit" name="set" value="Change Logo"> |
| 1120 | 1132 | @ <input type="submit" name="clr" value="Revert To Default"> |
| 1121 | 1133 | @ </form> |
| 1134 | + @ |
| 1135 | + @ <p><b>Note:</b> Your browser has probably cached the logo image, so |
| 1136 | + @ you will probably need to press the Reload button on your browser after |
| 1137 | + @ changing the logo to provoke your browser to reload the new logo image. |
| 1138 | + @ </p> |
| 1122 | 1139 | style_footer(); |
| 1123 | 1140 | db_end_transaction(0); |
| 1124 | 1141 | } |
| 1125 | 1142 | |