// Copyright (C) 2014, 2022 Balthasar Szczepański
// post.c automatically generated from post.1.c
// write posts from the mirror.
-// 29.09.2022
+// 09.10.2022
//
// This file is part of OTT mirror.
//
}
else
snprintf(arg1,N_STRBUF,"info=<p>This message has been posted successfully.<br /><br /><a href=\"/ott/mview?p=%s#m%s\">View your submitted message</a><br /><br /><a href=\"/ott/\">Return to the ЯOЯЯIM TTO</a></p>",timenumber,timenumber);
+ snprintf(arg2,N_STRBUF,"refresh=<meta http-equiv=\"refresh\" content=\"6; URL=/ott/mview?p=%s#m%s\" />",timenumber,timenumber);
printf("Content-type: text/html\n\n");
fflush(stdout);
sub=fork();
if(sub==0)
{
- r=execl(MAWK_PATH,MAWK_PATH,"-f",AWK_VIEW,"-v",arg1,INFO_PATH,(char *)0);
+ r=execl(MAWK_PATH,MAWK_PATH,"-f",AWK_VIEW,"-v",arg1,"-v",arg2,INFO_PATH,(char *)0);
exit(r);
}
waitpid(sub,&r,0);
# Copyright (C) 2014, 2022 Balthasar Szczepański
# view.awk automatically generated from view.1.awk
# insert content into a viewed page.
-# 29.09.2022
+# 09.10.2022
# This file is part of OTT mirror.
#
{
print info;
}
+ else if ($0 ~ /^###refresh/)
+ {
+ print refresh;
+ }
else if ($0 ~ /^###title/)
{
print title;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>
+###refresh
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en-gb" />