593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
|
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
|
-
+
-
+
|
Stmt q;
int nRename;
int nCheckin;
login_check_credentials();
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
if( P("all")!=0 ){
style_header("List Of All File Name Changes");
style_header("List Of All Filename Changes");
db_multi_exec("%s", zRenameQuery/*safe-for-%s*/);
style_submenu_element("Distinct", "%R/test-rename-list");
}else{
style_header("List Of Distinct File Name Changes");
style_header("List Of Distinct Filename Changes");
db_multi_exec("%s", zDistinctRenameQuery/*safe-for-%s*/);
style_submenu_element("All", "%R/test-rename-list?all");
}
nRename = db_int(0, "SELECT count(*) FROM renames;");
nCheckin = db_int(0, "SELECT count(DISTINCT checkin) FROM renames;");
db_prepare(&q, "SELECT date, old_name, new_name, checkin FROM renames"
" ORDER BY date DESC, old_name ASC");
|