vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - PMCrypt - Private Message Encryption (https://vborg.vbsupport.ru/showthread.php?t=140064)

Fraxter 05-26-2008 09:12 PM

Quote:

Originally Posted by ShiZoPhreN (Post 1531527)
Hello magnus,

Please update the Hack, in my old forum i use this Plugin, all user PN's are crypted, when i upgrade to 3.7 and its no update for this hack, all my users lost our PN's thats so bad.. :'(

mfg

Shizo

Use my attachment to encrypt your pm?s. I hope you haven?t uninstall the pmencrypt product, then you have no chance to encrypt the pm?s.

If you have only deactivated the hack, you set the sql settings in my script and run the sript. The script will encrypt all pn?s to the right format. I think it?s better if you test it first on a test board. :) For me is the script working perfectly. ;)

But make before a database backup from your pmtext table!!!



ShiZoPhreN 05-27-2008 05:26 AM

Quote:

Originally Posted by Pander23 (Post 1532241)
Use my attachment to encrypt your pm?s. I hope you haven?t uninstall the pmencrypt product, then you have no chance to encrypt the pm?s.

If you have only deactivated the hack, you set the sql settings in my script and run the sript. The script will encrypt all pn?s to the right format. I think it?s better if you test it first on a test board. :) For me is the script working perfectly. ;)

But make before a database backup from your pmtext table!!!



Thankx :) for your help Pander23 =) i will check your Script...

logicuk 05-31-2008 08:13 PM

any updates? i would love this for vb 3.7

logicuk 06-08-2008 07:13 AM

anyone?

rskg4 07-07-2008 09:05 AM

Quote:

Originally Posted by logicuk (Post 1543854)
anyone?

I'm using it on 3.7, it seems to be working fine

codershark 10-10-2008 01:34 PM

dont function under 3.7.3 PL1

Following mistake when I will open a message...

Quote:

Fatal error: Call to a member function query_first_slave() on a non-object in C:\xampp\htdocs\includes\functions_newpost.php(185 7) : eval()'d code on line 5

logicuk 10-10-2008 02:04 PM

This should be included in vb by default

Hope there is an update for this addon

kevbentz 01-10-2009 09:43 PM

This was functioning for me right up through 3.7.4 but when I upgraded to 3.8.0 it no longer works.

Pander23.... I've been toying with your script, but it won't update the database because of apostrophes (') . They break the sql query if not escaped.

kevbentz 01-11-2009 09:26 PM

Okay, I've got this "functioning" enough to decrypt PM's again, but am getting this error:

Parse error: syntax error, unexpected ';' in /public_html/includes/functions_newpost.php(1881) : eval()'d code on line 3

and it doesn't matter if the PM's are encrytped or not (I'm using some test PM's that are not encrypted to test functionality).

This highlighted section is the part of the code I'm having a problem with (this is from the .xml file for this add-in). If I remove the ";" at the end of the line it works for unencrypted PM's but not for encrypted PM's. If I leave it there, I get the error stated above:

Code:

<plugin active="1" executionorder="5">
                        <title>PMCrypt :: Decrypt an encrypted reply</title>
                        <hookname>private_newpm_reply</hookname>
                        <phpcode><![CDATA[if ($pm['encrypt']){
                        unset($pm);
                        if ($pm = $db->query_first_slave("SELECT pm.*, pmtext.* FROM `" . TABLE_PREFIX . "pm` AS pm LEFT JOIN `" . TABLE_PREFIX . "pmtext` AS pmtext ON(`pmtext.pmtextid` = pm.pmtextid) WHERE `pm.userid` = '" . $vbulletin->userinfo['userid'] . "' AND `pm.pmid` = '" . $vbulletin->GPC['pmid'] . "'";)){
                                // quote reply
                                $originalposter = fetch_quote_username($pm['fromusername']);
                                $pm['message'] = encrypt_decrypt(base64_decode($pm['message']));
                                // allow quotes to remain with an optional request variable
                                // this will fix a problem with forwarded PMs and replying to them
                                if ($vbulletin->GPC['stripquote']){
                                        $pagetext = strip_quotes($pm['message']);
                                }
                                else{
                                        // this is now the default behavior -- leave quotes, like vB2
                                        $pagetext = $pm['message'];
                                }
                                $pagetext = trim(htmlspecialchars_uni($pagetext));
                                eval('$pm[\'message\'] = "' . fetch_template('newpost_quote', 0, false) . '";');
                                // work out FW / RE bits
                                if (preg_match('#^' . preg_quote($vbphrase['forward_prefix'], '#') . '#i', $pm['title'])){
                                        $pm['title'] = substr($pm['title'], strlen($vbphrase['forward_prefix']) + 1);
                                }
                                elseif (preg_match('#^' . preg_quote($vbphrase['reply_prefix'], '#') . '#i', $pm['title'])){
                                        $pm['title'] = substr($pm['title'], strlen($vbphrase['reply_prefix']) +1);
                                }
                                else{
                                        $pm['title'] = preg_replace('#^[a-z]{2}:#i', '', $pm['title']);
                                }
                                $pm['title'] = trim($pm['title']);
                                if ($vbulletin->GPC['forward']){
                                        $pm['title'] = $vbphrase['forward_prefix'] . " $pm[title]";
                                        $pm['recipients'] = '';
                                        $pm['forward'] = 1;
                                }
                                else{
                                        $pm['title'] = $vbphrase['reply_prefix'] . " $pm[title]";
                                        $pm['recipients'] = $pm['fromusername'] . ' ; ';
                                        $pm['forward'] = 0;
                                }
                        }
                }]]></phpcode>
                </plugin>

Any help?

kevbentz 01-13-2009 02:31 AM

More testing shows that when replying to a PM it will quote the encoded message, not the unencoded one.

So, looks like this is broken for 3.8, an possibly earlier (although this worked for me right up through 3.7.4).

I see the coder is still active here. Just wish he could update this.... (hint, hint):D


All times are GMT. The time now is 11:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01241 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete