Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"The following is not for the weak of heart or Fundamentalists." -- Dave Barry


computers / Rocksolid Nodes Help / Re: post(.inc).php modifications

SubjectAuthor
* post(.inc).php modificationsRetro Guy
`- post(.inc).php modificationsvga256

1
post(.inc).php modifications

<604b4cb32b6ac71c1a2241dfd194b540@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=420&group=rocksolid.nodes.help#420

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: post(.inc).php modifications
Date: Sun, 16 Jul 2023 18:49:41 +0000
Organization: RetroBBS
Message-ID: <604b4cb32b6ac71c1a2241dfd194b540@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3503383"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Site: $2y$10$f.mjVHXOMxSIskW4KDGU9.BQa7fSFsvVMu6POgPg9.BM0bdehoRUS
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Sun, 16 Jul 2023 18:49 UTC

I have modified post.php and lib/post.inc.php to remove somewhat duplicate function:

message_post_with_attachment has been removed and all features of this function have been added to message_post.

I created the '_with_attachment' function a long time ago when adding attachment support and it has remained, but mods and fixes I've been applying to mostly just 'message_post'. That leaves the first function out of date.

The commit is here: https://github.com/novabbs/rocksolid-light/commit/af2f9a65a294f4e7a4f55c213e57fb9fbc24326f

You may have modified these files, so if you want to add this change, just delete the function 'message_post_with_attachment', and overwrite 'message_post' with the new copy in lib/post.inc.php.

Then modify 'post.php' to call 'message_post' instead of 'message_post_with_attachment' like this:
$message=message_post(quoted_printable_encode($subject),
$nemail." (".quoted_printable_encode($name).")",
$newsgroups,$references_array,addslashes($body),
$_POST['encryptthis'],$_POST['encryptto'],
strtolower($name),null,true);

This is the only place 'message_post_with_attachment' was called.

--
Retro Guy

Re: post(.inc).php modifications

<eef25b7531c29db2af49a008776840a4@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=422&group=rocksolid.nodes.help#422

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: vga@vga256.com (vga256)
Newsgroups: rocksolid.nodes.help
Subject: Re: post(.inc).php modifications
Date: Mon, 17 Jul 2023 04:18:32 +0000
Organization: Rocksolid Light
Message-ID: <eef25b7531c29db2af49a008776840a4@news.novabbs.org>
References: <604b4cb32b6ac71c1a2241dfd194b540@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3542541"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Posting-User: 9d50238f0c8e65588ce75c7d7eaad42d47312328
X-Rslight-Site: $2y$10$JjpyXqv7k6Utc1J6mSj1pe9iXrhbrMqSUsDlkPJJB86xTEd/RnwtW
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
 by: vga256 - Mon, 17 Jul 2023 04:18 UTC

Looks great. Will implement.

--
Posted on Rocksolid Light

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor