- style_footer();
+ style_finish_page("alerts");
return 1;
}
/*
** Insert a "Subscriber List" submenu link if the current user
@@ -308,11 +308,11 @@
@
@
@
db_end_transaction(0);
- style_footer();
+ style_finish_page("alerts");
}
#if 0
/*
** Encode pMsg as MIME base64 and append it to pOut
@@ -1435,11 +1435,11 @@
@
An email has been sent to "%h(zEAddr)". That email contains a
@ hyperlink that you must click to activate your
@ subscription.
}
alert_sender_free(pSender);
- style_footer();
+ style_finish_page("alerts");
}
return;
}
style_header("Signup For Email Alerts");
if( P("submit")==0 ){
@@ -1552,11 +1552,11 @@
@ Enter the 8 characters above in the "Security Code" box
@
}
@
fossil_free(zErr);
- style_footer();
+ style_finish_page("alerts");
}
/*
** Either shutdown or completely delete a subscription entry given
** by the hex value zName. Then paint a webpage that explains that
@@ -1590,11 +1590,11 @@
@ edit or delete
@ the corresponding user "%h(zLogin)"
}
}
db_finalize(&q);
- style_footer();
+ style_finish_page("alerts");
return;
}
/*
** WEBPAGE: alerts
@@ -1914,11 +1914,11 @@
@
@
@
fossil_free(zErr);
db_finalize(&q);
- style_footer();
+ style_finish_page("alerts");
db_commit_transaction();
return;
}
/* This is the message that gets sent to describe how to change
@@ -2021,11 +2021,11 @@
}else{
@
An email has been sent to "%h(zEAddr)" that explains how to
@ unsubscribe and/or modify your subscription settings
}
alert_sender_free(pSender);
- style_footer();
+ style_finish_page("alerts");
return;
}
/* Non-logged-in users have to enter an email address to which is
** sent a message containing the unsubscribe link.
@@ -2071,11 +2071,11 @@
@
@ Enter the 8 characters above in the "Security Code" box
@
@
fossil_free(zErr);
- style_footer();
+ style_finish_page("alerts");
}
/*
** WEBPAGE: subscribers
**
@@ -2182,11 +2182,11 @@
@
}
@
db_finalize(&q);
style_table_sorter();
- style_footer();
+ style_finish_page("alerts");
}
#if LOCAL_INTERFACE
/*
** A single event that might appear in an alert is recorded as an
@@ -2802,11 +2802,11 @@
login_check_credentials();
if( zAdminEmail==0 || zAdminEmail[0]==0 ){
style_header("Outbound Email Disabled");
@
Outbound email is disabled on this repository
- style_footer();
+ style_finish_page("alerts");
return;
}
if( P("submit")!=0
&& P("subject")!=0
&& P("msg")!=0
@@ -2834,11 +2834,11 @@
}else{
@
Your message has been sent to the repository administrator.
@ Thank you for your input.
}
alert_sender_free(pSender);
- style_footer();
+ style_finish_page("alerts");
return;
}
if( captcha_needed() ){
uSeed = captcha_seed();
zDecoded = captcha_decode(uSeed);
@@ -2881,11 +2881,11 @@
@
@ Enter the 8 characters above in the "Security Code" box
@
}
@
- style_footer();
+ style_finish_page("alerts");
}
/*
** Send an annoucement message described by query parameter.
** Permission to do this has already been verified.
@@ -2989,11 +2989,11 @@
@
}else{
@
%h(zMtime)
}
@
@
db_finalize(&q);
- style_footer();
+ style_finish_page("test");
}
/*
** Remove all prior backlinks for the wiki page given. Then
** add new backlinks for the latest version of the wiki page.
Index: src/branch.c
==================================================================
--- src/branch.c
+++ src/branch.c
@@ -514,11 +514,11 @@
@
}
@
db_finalize(&q);
style_table_sorter();
- style_footer();
+ style_finish_page("branch");
}
/*
** WEBPAGE: brlist
** Show a list of branches. With no query parameters, a sortable table
@@ -622,11 +622,11 @@
}
if( cnt ){
@
}
db_finalize(&q);
- style_footer();
+ style_finish_page("branch");
}
/*
** This routine is called while for each check-in that is rendered by
** the timeline of a "brlist" page. Add some additional hyperlinks
@@ -698,7 +698,7 @@
if( PB("ng")==0 ) tmFlags |= TIMELINE_GRAPH;
if( PB("brbg")!=0 ) tmFlags |= TIMELINE_BRCOLOR;
if( PB("ubg")!=0 ) tmFlags |= TIMELINE_UCOLOR;
www_print_timeline(&q, tmFlags, 0, 0, 0, 0, 0, brtimeline_extra);
db_finalize(&q);
- style_footer();
+ style_finish_page("branch");
}
Index: src/browse.c
==================================================================
--- src/browse.c
+++ src/browse.c
@@ -336,11 +336,11 @@
/* If the "noreadme" query parameter is present, do not try to
** show the content of the README file.
*/
if( P("noreadme")!=0 ){
- style_footer();
+ style_finish_page("dir");
return;
}
/* If the directory contains a readme file, then display its content below
** the list of files
@@ -397,11 +397,11 @@
document_emit_js();
}
}
}
db_finalize(&q);
- style_footer();
+ style_finish_page("dir");
}
/*
** Objects used by the "tree" webpage.
*/
@@ -913,11 +913,11 @@
}
}
@
@
builtin_request_js("tree.js");
- style_footer();
+ style_finish_page("tree");
/* We could free memory used by sTree here if we needed to. But
** the process is about to exit, so doing so would not really accomplish
** anything useful. */
}
@@ -1167,7 +1167,7 @@
fossil_free(zAge);
}
@
db_finalize(&q1);
db_finalize(&q2);
- style_footer();
+ style_finish_page("fileage");
}
Index: src/builtin.c
==================================================================
--- src/builtin.c
+++ src/builtin.c
@@ -103,11 +103,11 @@
char *zUrl = href("%R/builtin?name=%T&id=%.8s&mimetype=text/plain",
z,fossil_exe_id());
@
- style_footer();
+ style_finish_page("test");
}
/*
** Check to see if the current request is coming from an agent that might
** be a spider. If the agent is not a spider, then return 0 without doing
@@ -627,11 +627,11 @@
@
- style_footer();
+ style_finish_page("captcha");
return 1;
}
/*
** Generate a WAV file that reads aloud the hex digits given by
Index: src/clone.c
==================================================================
--- src/clone.c
+++ src/clone.c
@@ -406,7 +406,7 @@
@
Document %h(zOrigName) not found
if( fossil_strcmp(zCheckin,"ckout")!=0 ){
@ in %z(href("%R/tree?ci=%T",zCheckin))%h(zCheckin)
}
- style_footer();
+ style_finish_page("doc");
return;
}
/*
** The default logo.
@@ -1202,7 +1202,7 @@
*/
void doc_search_page(void){
login_check_credentials();
style_header("Document Search");
search_screen(SRCH_DOC, 0);
- style_footer();
+ style_finish_page("docsrch");
}
Index: src/event.c
==================================================================
--- src/event.c
+++ src/event.c
@@ -113,11 +113,11 @@
}
db_finalize(&q1);
if( rid==0 || (specRid!=0 && specRid!=rid) ){
style_header("No Such Tech-Note");
@ Cannot locate a technical note called %h(zId).
- style_footer();
+ style_finish_page("event");
return;
}
zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
zVerbose = P("v");
if( !zVerbose ){
@@ -229,11 +229,11 @@
" FROM tag"
" WHERE tagname GLOB 'event-%q*'",
zId);
attachment_list(zFullId, "
Attachments:
");
document_emit_js();
- style_footer();
+ style_finish_page("event");
manifest_destroy(pTNote);
}
/*
** Add or update a new tech note to the repository. rid is id of
@@ -473,11 +473,11 @@
zMimetype, zComment, zTags,
zClrFlag[0] ? zClr : 0) ){
style_header("Error");
@ Internal error: Fossil tried to make an invalid artifact for
@ the edited technote.
- style_footer();
+ style_finish_page("event");
return;
}
cgi_redirectf("%R/technote?name=%T", zId);
}
if( P("cancel")!=0 ){
@@ -567,11 +567,11 @@
if( P("preview") ){
@
}
@
@
- style_footer();
+ style_finish_page("event");
}
/*
** Add a new tech note to the repository. The timestamp is
** given by the zETime parameter. rid must be zero to create
Index: src/extcgi.c
==================================================================
--- src/extcgi.c
+++ src/extcgi.c
@@ -416,7 +416,7 @@
@
}
db_finalize(&q);
@
@
- style_footer();
+ style_finish_page("extcgi");
}
Index: src/fileedit.c
==================================================================
--- src/fileedit.c
+++ src/fileedit.c
@@ -1606,11 +1606,11 @@
"values matching files which may be edited online."
"\n");
}else{
CX("
Online editing is disabled for this repository.
\n");
}
- style_footer();
+ style_finish_page("fileedit");
return;
}
/* Dispatch AJAX methods based tail of the request URI.
** The AJAX parts do their own permissions/CSRF check and
@@ -2061,7 +2061,7 @@
style_script_end();
}
blob_reset(&err);
CheckinMiniInfo_cleanup(&cimi);
db_end_transaction(0);
- style_footer();
+ style_finish_page("fileedit");
}
Index: src/finfo.c
==================================================================
--- src/finfo.c
+++ src/finfo.c
@@ -367,11 +367,11 @@
ridFrom = name_to_rid_www("from");
zPrevDate[0] = 0;
cookie_render();
if( fnid==0 ){
@ No such file: %h(zFilename)
- style_footer();
+ style_finish_page("finfo");
return;
}
if( g.perm.Admin ){
style_submenu_element("MLink Table", "%R/mlink?name=%t", zFilename);
}
@@ -754,11 +754,11 @@
@
}
}
@
timeline_output_graph_javascript(pGraph, TIMELINE_FILEDIFF, iTableId);
- style_footer();
+ style_finish_page("finfo");
}
/*
** WEBPAGE: mlink
** URL: /mlink?name=FILENAME
@@ -934,7 +934,7 @@
db_finalize(&q);
@
@
@
}
- style_footer();
+ style_finish_page("finfo");
}
Index: src/forum.c
==================================================================
--- src/forum.c
+++ src/forum.c
@@ -878,11 +878,11 @@
/* Emit Forum Javascript. */
builtin_request_js("forum.js");
forum_emit_js();
/* Emit the page style. */
- style_footer();
+ style_finish_page("forum");
}
/*
** Return true if a forum post should be moderated.
*/
@@ -1074,11 +1074,11 @@
@
@
@
@
@
builtin_request_js("ci_edit.js");
- style_footer();
+ style_finish_page("ci_edit");
}
/*
** Prepare an ammended commit comment. Let the user modify it using the
** editor specified in the global_config table or either
Index: src/interwiki.c
==================================================================
--- src/interwiki.c
+++ src/interwiki.c
@@ -384,11 +384,11 @@
@ No mappings are currently defined.
}
if( !g.perm.Setup ){
/* Do not show intermap editing fields to non-setup users */
- style_footer();
+ style_finish_page("interwiki");
return;
}
@
To add a new mapping, fill out the form below providing a unique name
@ for the tag. To edit an exist mapping, fill out the form and use the
@@ -417,7 +417,7 @@
@
@
@
}
}
- style_footer();
+ style_finish_page("login");
}
/*
** Attempt to find login credentials for user zLogin on a peer repository
** with project code zCode. Transfer those credentials to the local
@@ -1544,11 +1544,11 @@
int doAlerts = 0; /* True if subscription is wanted too */
if( !db_get_boolean("self-register", 0) ){
style_header("Registration not possible");
@
This project does not allow user self-registration. Please contact the
@ project administrator to obtain an account.
- style_footer();
+ style_finish_page("register");
return;
}
zPerms = db_get("default-perms", "u");
/* Prompt the user for email alerts if this repository is configured for
@@ -1703,11 +1703,11 @@
}
alert_sender_free(pSender);
if( zGoto ){
@
- style_footer();
+ style_finish_page("version");
}
/*
** Set the g.zBaseURL value to the full URL for the toplevel of
@@ -3095,7 +3095,7 @@
cgi_reset_content();
webpage_error("Case 7 from /test-warning");
}
@
@
End of test
- style_footer();
+ style_finish_page("test");
}
Index: src/moderate.c
==================================================================
--- src/moderate.c
+++ src/moderate.c
@@ -189,11 +189,11 @@
);
db_prepare(&q, "%s", blob_sql_text(&sql));
www_print_timeline(&q, 0, 0, 0, 0, 0, 0, 0);
db_finalize(&q);
}
- style_footer();
+ style_finish_page("modreq");
}
/*
** Disapproves any entries in the modreq table which belong to any
** user whose name is no longer found in the user table. This is only
Index: src/name.c
==================================================================
--- src/name.c
+++ src/name.c
@@ -668,11 +668,11 @@
@
@
}
@
db_finalize(&q);
- style_footer();
+ style_finish_page("ambiguous");
}
/*
** Convert the name in CGI parameter zParamName into a rid and return that
** rid. If the CGI parameter is missing or is not a valid artifact tag,
@@ -1328,11 +1328,11 @@
for(i=1; i<=mx; i+=n){
@
%z(href("%R/bloblist?s=%d&n=%d",i,n))
@ %d(i)..%d(i+n-1
}
@
- style_footer();
+ style_finish_page("bloblist");
return;
}
if( phantomOnly || privOnly || mx>n ){
style_submenu_element("Index", "bloblist");
}
@@ -1407,11 +1407,11 @@
}
@
}
@
db_finalize(&q);
- style_footer();
+ style_finish_page("bloblist");
}
/*
** Output HTML that shows a table of all public phantoms.
*/
@@ -1477,11 +1477,11 @@
}
if( g.perm.Write ){
style_submenu_element("Artifact Stats", "artifact_stats");
}
table_of_public_phantoms();
- style_footer();
+ style_finish_page("phantoms");
}
/*
** WEBPAGE: bigbloblist
**
@@ -1541,11 +1541,11 @@
@
}
@
db_finalize(&q);
style_table_sorter();
- style_footer();
+ style_finish_page("bigbloblist");
}
/*
** COMMAND: test-unsent
**
@@ -1665,7 +1665,7 @@
collision_report("SELECT (SELECT uuid FROM blob WHERE rid=objid)"
" FROM event WHERE event.type='ci'"
" ORDER BY 1");
@
Hash Prefix Collisions on All Artifacts
collision_report("SELECT uuid FROM blob ORDER BY 1");
- style_footer();
+ style_finish_page("hash-collisions");
}
Index: src/path.c
==================================================================
--- src/path.c
+++ src/path.c
@@ -651,7 +651,7 @@
@
@ %h(db_column_text(&q,1))
}
@
db_finalize(&q);
- style_footer();
+ style_finish_page("test");
return;
}
style_header("Summary of ftsdocs");
db_prepare(&q,
"SELECT type, sum(idxed IS TRUE), sum(idxed IS FALSE), count(*)"
@@ -2099,7 +2099,7 @@
@
@
Total
%d(cnt1)
%d(cnt2)
@
%d(cnt3)
@
@
- style_footer();
+ style_finish_page("test");
}
Index: src/security_audit.c
==================================================================
--- src/security_audit.c
+++ src/security_audit.c
@@ -585,11 +585,11 @@
table_of_public_phantoms();
@
}
@
- style_footer();
+ style_finish_page("secaudit");
}
/*
** WEBPAGE: takeitprivate
**
@@ -627,11 +627,11 @@
@
- style_footer();
+ style_finish_page("takeitprivate");
}
/*
** The maximum number of bytes of log to show
*/
@@ -668,11 +668,11 @@
@ If the server is running using one of
@ the "fossil http" or "fossil server" commands then add
@ a command-line option "--errorlog FILENAME" to that
@ command.
@
- style_footer();
+ style_finish_page("errorlog");
return;
}
if( P("truncate1") && cgi_csrf_safe(1) ){
fclose(fopen(g.zErrlog,"w"));
}
@@ -688,20 +688,20 @@
@
- style_footer();
+ style_finish_page("errorlog");
return;
}
@
The server error log at "%h(g.zErrlog)" is %,lld(szFile) bytes in size.
style_submenu_element("Download", "%R/errorlog?download");
style_submenu_element("Truncate", "%R/errorlog?truncate");
in = fossil_fopen(g.zErrlog, "rb");
if( in==0 ){
@
}
@
- style_footer();
+ style_finish_page("setup");
}
/*
** A URL Alias originally called zOldName is now zNewName/zValue.
** Write SQL to make this change into pSql.
@@ -1948,7 +1948,7 @@
@
To delete an entry from the alias table, change its name or value to an
@ empty string and press "Apply Changes".
@
@
To add a new alias, fill in the name and value in the bottom row
@ of the table above and press "Apply Changes".
- style_footer();
+ style_finish_page("setup");
}
Index: src/setupuser.c
==================================================================
--- src/setupuser.c
+++ src/setupuser.c
@@ -180,11 +180,11 @@
fossil_free(zAge);
}
@
db_finalize(&s);
style_table_sorter();
- style_footer();
+ style_finish_page("setupuser");
}
/*
** WEBPAGE: setup_ulist_notes
**
@@ -226,11 +226,11 @@
@
@
- style_footer();
+ style_finish_page("setupuser");
return;
}
}
cgi_redirect(cgi_referer("setup_ulist"));
return;
@@ -874,7 +874,7 @@
@ template for users who are allowed more access than
@ anonymous,
@ but less than a developer.
@
@
- style_footer();
+ style_finish_page("setupuser");
}
Index: src/shun.c
==================================================================
--- src/shun.c
+++ src/shun.c
@@ -263,11 +263,11 @@
if( cnt==0 ){
@ no artifacts are shunned on this server
}
db_finalize(&q);
@
- style_footer();
+ style_finish_page("shun");
fossil_free(zCanonical);
}
/*
** Remove from the BLOB table all artifacts that are in the SHUN table.
@@ -403,11 +403,11 @@
@
}
}
db_finalize(&q);
@
- style_footer();
+ style_finish_page("rcvfromlist");
}
/*
** WEBPAGE: rcvfrom
**
@@ -549,7 +549,7 @@
@
}
}
@
db_finalize(&q);
- style_footer();
+ style_finish_page("rcvfrom");
}
Index: src/sitemap.c
==================================================================
--- src/sitemap.c
+++ src/sitemap.c
@@ -233,8 +233,8 @@
@ colors assigned to branch names
@