1115
1116
1117
1118
1119
1120
1121
|
tmFlags = TIMELINE_DISJOINT | TIMELINE_NOSCROLL | TIMELINE_COLUMNAR
| TIMELINE_BRCOLOR;
www_print_timeline(&q, tmFlags, 0, 0, 0, 0, 0, tarlist_extra);
db_finalize(&q);
}
style_finish_page();
}
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
|
tmFlags = TIMELINE_DISJOINT | TIMELINE_NOSCROLL | TIMELINE_COLUMNAR
| TIMELINE_BRCOLOR;
www_print_timeline(&q, tmFlags, 0, 0, 0, 0, 0, tarlist_extra);
db_finalize(&q);
}
style_finish_page();
}
/*
** WEBPAGE: rchvdwnld
**
** Short for "archive download". This page should have a single name=
** query parameter that is a check-in hash. It present a menu of possible
** download options for that check-in, including tarball, ZIP, or SQLAR.
**
** This is a utility page. The /dir and /tree pages sometimes have a
** "Download" option in their submenu which redirects here. Those pages
** used to have separate "Tarball" and "ZIP" submenu entries, but as
** submenu entries appear in alphabetical order, that caused the two
** submenu entries to be separated from one another, which is distracting.
*/
void rchvdwnld_page(void){
const char *zUuid;
char *zBase;
int nUuid;
int rid;
login_check_credentials();
if( !g.perm.Zip ){ login_needed(g.anon.Zip); return; }
robot_restrict("zip");
zUuid = P("name");
if( zUuid==0
|| (nUuid = (int)strlen(zUuid))<6
|| !validate16(zUuid,-1)
|| (rid = db_int(0, "SELECT rid FROM blob WHERE uuid GLOB '%q*'", zUuid))==0
|| !db_exists("SELECT 1 from event WHERE type='ci' AND objid=%d",rid)
){
fossil_redirect_home();
}
zUuid = db_text(zUuid, "SELECT uuid FROM blob WHERE rid=%d", rid);
style_header("Downloads For Check-in %!S", zUuid);
zBase = archive_base_name(rid);
@ <ul>
@ <li><p>
@ Tarball: %z(href("%R/tarball/%!S/%s.tar.gz",zUuid,zBase))\
@ %s(g.zBaseURL)%R/tarball/%!S(zUuid)/%s(zBase).tar.gz</a>
@
@ <li><p>
@ ZIP: %z(href("%R/zip/%!S/%s.zip",zUuid,zBase))\
@ %s(g.zBaseURL)%R/zip/%!S(zUuid)/%s(zBase).zip</a>
@
@ <li><p>
@ SQLAR: %z(href("%R/sqlar/%!S/%s.sqlar",zUuid,zBase))\
@ %s(g.zBaseURL)%R/sqlar/%!S(zUuid)/%s(zBase).sqlar</a>
@ </ul>
fossil_free(zBase);
style_finish_page();
}
|