The Wakaba and Kareha support thread (1000)

631 Name: Anonymous : 2007-03-03 21:02 ID:Heaven [Del]

>>630
Insert a new line at line 87 of extras/oekaki/finish.pl and enter

  my $filename = time().sprintf("%03d",int(rand(1000))).'.png';

Then, change line 88 (the call to post_stuff) to read

  post_stuff($parent,$name,$email,$subject,$comment,\*TMPFILE,$filename,$password,
0,$captcha,ADMIN_PASS,0,0,OEKAKI_INFO_TEMPLATE->(decode_srcinfo($srcinfo)));

That way, even if you have images set to keep the poster's filename for them (as per your config.pl), oekaki posts will use a timestamp-style filename.

This thread has been closed. You cannot post in this thread any longer.