From ad1deef32222a8fc7ec2bac8a1804dc3a6eab971 Mon Sep 17 00:00:00 2001 From: b Date: Tue, 31 Dec 2013 17:42:29 +0000 Subject: [PATCH] Let's upload something! git-svn-id: svn://botcastle1b/npb@22 0d794883-4e4e-4f65-aa7a-0e7f5947bab5 --- npb.htm | 11 +++++++++-- npbd | Bin 27777 -> 31287 bytes npbd.cpp | 34 ++++++++++++++++++++++------------ 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/npb.htm b/npb.htm index b137293..8dbf692 100644 --- a/npb.htm +++ b/npb.htm @@ -8,10 +8,17 @@

It's NewpixbOTTification time!

NewpixbOTTify by URL
- URL: - + URL of image: +
Please don't hotlink the result. If you do, each time someone sees your link, my server will have to generate the image again! +

+
+ NewpixbOTTify by file upload
+ Upload the image: + + +
diff --git a/npbd b/npbd index 9fc150e4027e4f21a1479e4728377cb7c51a8f6e..b0a9d9032517e131b0cd9a1feecf350446282d51 100755 GIT binary patch delta 11407 zcmeHNi(ge$zF&KveU69IQ4kRU0eKwo1qdpNj~skZSU$)k@r{mSXij5wY^=0{0*$95 zime{@meCsP_OP)rr?gPKp_3IFHCp7LX|pjc(ym$BaKGQR&oPIYd;fs@x##ma`?tQo z_xi21*IxUv>Zta{cUn!7UNV0}%KT9a#tOl|UEmiXghpC~f1}~#|1uaC-9k9Xhg=77 zL+*ym-MC@zkg$DYgxI&&aPE_u_S>j?ZA;!9^5^e9(#N(wIX5 zbl7kju?GTO-k1_03as${ny#2Hz#pa7TWH=o(gxo%ie9+-S(4T#%5FW@o zLB9_v(#s&V36V_-yTPPLKaaGN5F<&QLgbT%2{De;B}5_VH9|}vMURU}I}4wf%0?F< zN=Q+HS)^TsC?$j&B84Xq7ZK+xTtr+#oUQOw;!@%yg-eLb zh$9r9MZA<)C|pXsoVe{DV5BVo_LY^B(V`e-R9HjYsPGcv8sa*ImlAIz-lnjZcoXp^ zg_jd=C9Y9;1@SiGa)rx@cM>mExbl$UbC%VSQK}egsIZ^7Na3}_jl}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$L= zi@=qy8Ma3Q0sIEI_ASH4BNOen0&jQ^k1PTF=T7zqI^nhuxA{jnGs8G>p_76gJL~3` zu+0Y?Mgs>w%s8VH9u2$|V?`Y%Fb=r&S_R|8RABD)!3k30?&P4n6J7#*?oWnoBOEfr zXMt-mWCMXy^zOpfNxzPGgJF9b|Hz~M+nwZpq5W?S+ugW9Q11R)Cxug;@K3~uI9MSa zhQSXj&=Z(1&;=^QDIG)nfnoa*GIo#xoP!~{JAnHEUpK_=j)63|Zh8*|4u04{VJFNd zqTq+}`M|t=1p{0N{9It?j6{W=1y&DBST+o36>y{19HK~pe<-d6!?C4i(FJ46(#LPo J<^Ct;{V!_eHJ1PY diff --git a/npbd.cpp b/npbd.cpp index ea09373..0fa2288 100644 --- a/npbd.cpp +++ b/npbd.cpp @@ -12,6 +12,7 @@ #include #include #include +//#include #include #include #include @@ -28,31 +29,40 @@ FILE *pix; unsigned char buf[1024]; char url[1024]; char path[256]; -//char cmd[1024]; +char method[256]; s_cgi *cgi; int t; pid_t sub; struct stat st; unsigned long p; unsigned short q; +char **up; int main (int argc, char *argv[]) { - cgi=cgiInit(); - sprintf(url,"%s",cgiGetValue(cgi,"inpix")); - sprintf(path,"/var/tmp/%lu",(unsigned long)getpid()); - - //Why is there no spawnl() in linux? - sub=fork(); - if(sub==0) + up=cgiGetFiles(cgi); + if (up) { - t=execl(WGET_PATH,WGET_PATH,"-q","-O",path,url,(char *)0); - exit(t); + sprintf(path,"%s",cgiGetFile(cgi,up[0])->tmpfile); + sprintf(url,"%s",cgiGetFile(cgi,up[0])->filename); + } + else + { + sprintf(url,"%s",(cgiGetValue(cgi,"inpix")!=NULL)?(cgiGetValue(cgi,"inpix")):""); + sprintf(path,"/var/tmp/%lu",(unsigned long)getpid()); + + //Why is there no spawnl() in linux? + sub=fork(); + if(sub==0) + { + t=execl(WGET_PATH,WGET_PATH,"-q","-O",path,url,(char *)0); + exit(t); + } + waitpid(sub,&t,0); + if(t)mustard(t); } - waitpid(sub,&t,0); - if(t)mustard(t); sub=fork(); if(sub==0) -- 2.30.2