#// posted.awk\r
#// Display one entry in the post list\r
-#// 25.04.2015\r
+#// 15.11.2015\r
#// \r
#// Copyright (C) 2015 Balthasar SzczepaĆski\r
#// \r
{\r
ch=sprintf("%c",i)\r
hex=sprintf("%02X",i);\r
+ hexl=sprintf("%02x",i);\r
ch2hex[ch]=hex\r
+ hex2ch[hex]=ch\r
+ hex2ch[hexl]=ch\r
}\r
};\r
{\r
argtab[substr($0,1,eq-1)]=substr($0,eq+1)\r
};\r
END{\r
- if(((pass,!=urldecode(argtab["password"]))||(name!=urldecode(argtab["username"])))&&cat!="st")\r
+ if(((pass!=urldecode(argtab["password"]))||(name!=urldecode(argtab["username"])))&&cat!="st")\r
exit 1;\r
if (r2==0)\r
class="plw"\r
for(i=0; fgets(line,511,tempfile)!=NULL; ++i)\r
{\r
sscanf(line,"%s",filename);\r
+ //printf("+$%s\n",line);\r
sprintf(postpath,"%s%s",WAIT_PATH,filename);\r
\r
fflush(stdout);\r
sub=fork();\r
if(!sub)\r
{\r
+ //dup2(fileno(stdout),fileno(stderr));\r
+\r
r=execl(MAWK_PATH,MAWK_PATH,"-f",AWK_POSTED,"-v",i&0x1?"r2=1":"r2=0","-v","cat=wt","-v",argp1,"-v",argp2,postpath,(char *)0);\r
exit(r);\r
}\r