// OTT mirror
-// Copyright (C) 2014, 2022 Balthasar Szczepański
+// Copyright (C) 2014, 2022, 2023 Balthasar Szczepański
// bot3.c (bothasar_p) automatically generated from bot3.1.c
// the post bot.
-// 29.09.2022
//
// This file is part of OTT mirror.
//
// unsigned long posts=0xffffffff;
unsigned long pwait=5;
- unsigned long np, lastnp, firstnp, i;
+ unsigned long np, lastnp, firstnp;
unsigned short p, lastp, firstp;
char name[N_STRBUF];
fclose(cwfile);
}
printf(" Start after np %lu, post %hu.",firstnp,firstp);
- for(i=0,np=firstnp;np<=lastnp;++np)
+ for(np=firstnp;np<=lastnp;++np)
{
p=0;
printf("\nnp%lu:",np);
// OTT mirror
-// Copyright (C) 2014, 2022 Balthasar Szczepański
+// Copyright (C) 2014, 2022, 2023 Balthasar Szczepański
// index.c automatically generated from index.1.c
// view the front page.
-// 29.09.2022
//
// This file is part of OTT mirror.
//
// You should have received a copy of the GNU Affreo General Public License
// along with OTT mirror. If not, see <http://www.gnu.org/licenses/>.
-#include <cgi.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv)
{
- s_cgi *cgi;
pid_t sub;
uid_t euid;
gid_t egid;
if ((r = setregid(egid, egid)))
return (r = errno);
- cgi=cgiInit();
-
printf("Content-type: text/html\n\n");
fflush(stdout);
sub=fork();
}
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);
+ 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);
// OTT mirror\r
-// Copyright (C) 2014, 2022 Balthasar Szczepański\r
+// Copyright (C) 2014, 2022, 2023 Balthasar Szczepański\r
// posted.c automatically generated from posted.1.c\r
// posts recently sent from the mirror.\r
-// 29.09.2022\r
//\r
// This file is part of OTT mirror.\r
//\r
char filename[N_STRBUF_SH];\r
char postpath[N_STRBUF];\r
FILE *tempfile;\r
- FILE *postfile;\r
\r
/* always be yourself in your total life */\r
euid = geteuid();\r