68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
int pending = moderation_pending(rid);
if( pending ){
@ <span class="modpending">(Awaiting Moderator Approval)</span>
}
return pending;
}
/*
** Check to see if the object identified by RID is used for anything.
*/
static int object_used(int rid){
static const char *const aTabField[] = {
"modreq", "attachRid",
"mlink", "mid",
|
>
>
>
>
>
>
>
>
>
|
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
int pending = moderation_pending(rid);
if( pending ){
@ <span class="modpending">(Awaiting Moderator Approval)</span>
}
return pending;
}
/*
** Return TRUE if there any pending moderation requests.
*/
int moderation_needed(void){
if( !moderation_table_exists() ) return 0;
return db_exists("SELECT 1 FROM modreq");
}
/*
** Check to see if the object identified by RID is used for anything.
*/
static int object_used(int rid){
static const char *const aTabField[] = {
"modreq", "attachRid",
"mlink", "mid",
|