Differences From:
File
src/wiki.c
part of check-in
[bdde7ddcc8]
- Show the "Files" menu option on the "home" page when the "h" privilege
is enabled.
by
drh on
2008-11-18 12:19:55.
Also file
src/wiki.c
part of check-in
[d14adf1032]
- Merge src & doc leaves back.
by
kejoki on
2008-11-19 16:55:14.
[view]
To:
File
src/wiki.c
part of check-in
[19f5d0b15f]
- Require wiki read permission in order to visit the /home URL.
by
drh on
2008-11-20 23:15:30.
[view]
@@ -79,18 +79,20 @@
** WEBPAGE: not_found
*/
void home_page(void){
char *zPageName = db_get("project-name",0);
+ login_check_credentials();
+ if( !g.okRdWiki ){
+ cgi_redirect("/login?g=/home");
+ }
if( zPageName ){
login_check_credentials();
g.zExtra = zPageName;
cgi_set_parameter_nocopy("name", g.zExtra);
- g.okRdWiki = 1;
g.argv[1] = "home";
wiki_page();
return;
}
- login_check_credentials();
style_header("Home");
@ <p>This is a stub home-page for the project.
@ To fill in this page, first go to
@ <a href="%s(g.zBaseURL)/setup_config">setup/config</a>