985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
|
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
|
-
+
|
const int includeContent = ajax_p_bool("includeContent");
cgi_set_content_type("application/json");
db_begin_transaction();
db_prepare(&q, "SELECT"
" substr(tagname,6) AS name"
" FROM tag WHERE tagname GLOB 'wiki-*'"
" UNION SELECT 'sandbox' AS name"
" UNION SELECT 'Sandbox' AS name"
" ORDER BY name COLLATE NOCASE");
CX("[");
while( SQLITE_ROW==db_step(&q) ){
char const * zName = db_column_text(&q,0);
if(n++){
CX(",");
}
|
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
|
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
|
-
+
|
CX("<li><a href='%R/md_rules'>Markdown format</a></li>");
CX("<li>Plain-text pages use no special formatting.</li>");
CX("</ul>");
CX("<hr><h3>Attachments</h3>");
CX("<div id='wikiedit-attachments'></div>"
/* Filled out by JS */);
CX("<hr><h3>The \"Sandbox\" Page</h3>");
CX("<p>The page named \"sandbox\" is not a real wiki page. "
CX("<p>The page named \"Sandbox\" is not a real wiki page. "
"It provides a place where users may test out wiki syntax "
"without having to actually save anything, nor pollute "
"the repo with endless test runs. Any attempt to save the "
"sandbox page will fail.</p>");
CX("<hr><h3>Wiki Name Rules</h3>");
well_formed_wiki_name_rules();
CX("</div>"/*#wikiedit-tab-save*/);
|