99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
" ORDER BY xdepth DESC, xtime ASC"
") SELECT * FROM post;",
itemId
);
while( db_step(&q)==SQLITE_ROW ){
int id = db_column_int(&q, 0);
const char *zUser = db_column_text(&q, 1);
const char *zStat = db_column_text(&q, 2);
const char *zMime = db_column_text(&q, 3);
const char *zIp = db_column_text(&q, 4);
int iDepth = db_column_int(&q, 7);
double rMTime = db_column_double(&q, 8);
char *zAge = db_timespan_name(rNow - rMTime);
Blob body;
@ <!-- Forum post %d(id) -->
@ <table class="forum_post">
@ <tr>
|
<
<
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
" ORDER BY xdepth DESC, xtime ASC"
") SELECT * FROM post;",
itemId
);
while( db_step(&q)==SQLITE_ROW ){
int id = db_column_int(&q, 0);
const char *zUser = db_column_text(&q, 1);
const char *zMime = db_column_text(&q, 3);
int iDepth = db_column_int(&q, 7);
double rMTime = db_column_double(&q, 8);
char *zAge = db_timespan_name(rNow - rMTime);
Blob body;
@ <!-- Forum post %d(id) -->
@ <table class="forum_post">
@ <tr>
|
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
|
** p Preview changes
*/
void forum_edit_page(void){
int itemId;
int parentId;
char *zErr = 0;
login_check_credentials();
const char *zBody;
const char *zMime;
const char *zSub;
if( !g.perm.WrForum ){ login_needed(g.anon.WrForum); return; }
forum_verify_schema();
itemId = atoi(PD("item","0"));
parentId = atoi(PD("replyto","0"));
if( P("cancel")!=0 ){
|
<
|
253
254
255
256
257
258
259
260
261
262
263
264
265
266
|
** p Preview changes
*/
void forum_edit_page(void){
int itemId;
int parentId;
char *zErr = 0;
login_check_credentials();
const char *zMime;
const char *zSub;
if( !g.perm.WrForum ){ login_needed(g.anon.WrForum); return; }
forum_verify_schema();
itemId = atoi(PD("item","0"));
parentId = atoi(PD("replyto","0"));
if( P("cancel")!=0 ){
|