Back to index

courier  0.68.2
Functions
token.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void tokennew ()
void tokennewget ()
int tokencheck ()
void tokensave ()

Function Documentation

int tokencheck ( )

Definition at line 47 of file token.c.

{
const char *token=cgi("msgtoken");
const char *savedtoken;

       if (!token || token[0] == '\0')
              return(0);
       savedtoken=read_sqconfig(".", TOKENFILE, 0);
       if (savedtoken && strcmp(token, savedtoken) == 0)
              return (-1);
       return (0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tokennew ( )

Definition at line 30 of file token.c.

{
time_t t;

       time(&t);
       printf("<input type=\"hidden\" name=\"msgtoken\" value=\"%ld-%ld\" />",
              (long)t, (long)getpid());
}

Here is the caller graph for this function:

void tokennewget ( )

Definition at line 39 of file token.c.

{
time_t t;

       time(&t);
       printf("&amp;msgtoken=%ld-%ld", (long)t, (long)getpid());
}

Here is the caller graph for this function:

void tokensave ( )

Definition at line 60 of file token.c.

{
       write_sqconfig(".", TOKENFILE, cgi("msgtoken"));
}

Here is the call graph for this function:

Here is the caller graph for this function: