21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include <assert.h>
#include <ctype.h>
#include "pikchrshow.h"
/*
** WEBPAGE: pikchrshow
*/
void pikchrshow_cmd(void){
const char *zContent = P("content");
login_check_credentials();
if( !g.perm.WrWiki && !g.perm.Write ){
cgi_redirectf("%s/login?g=%s/pikchrshow", g.zTop, g.zTop);
|
>
>
>
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include <assert.h>
#include <ctype.h>
#include "pikchrshow.h"
/*
** WEBPAGE: pikchrshow
**
** A basic pikchr code editor and renderer, allowing users with write-
** or wiki-write permissions to experiment with pikchr code.
*/
void pikchrshow_cmd(void){
const char *zContent = P("content");
login_check_credentials();
if( !g.perm.WrWiki && !g.perm.Write ){
cgi_redirectf("%s/login?g=%s/pikchrshow", g.zTop, g.zTop);
|