vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   private messages backup hack (https://vborg.vbsupport.ru/showthread.php?t=37172)

cindyd 01-22-2004 07:30 PM

I've gone over this hack several times and cannot figure out why I receive this message when I click the back up button:

Parse error: parse error in /home/glassmav/public_html/forum/private.php(151) : eval()'d code on line 1
Private Messages - Backup from 01-22-2004
Save this page as a HTML file and delete old private messages.

Here is the section of private.php

while (list($key,$val)=each($allfolders)) {
$thisfolder = split("\|\|\|", $val);
$foldernames[($thisfolder[0]+1)] = $thisfolder[1];
} --------> this is line151
}
//get correct folder name
if ($message["folderid"]=="0") {
$foldername = $inboxname;


I am on a Mac, OS 10 Jaguar, running 2.3 VBulletin

The first time I "backed up" I had quite a few messages, but I don't know where they were downloaded to.

I tried backing up again, but that message didn't get deleted when I checked. Do I have to manually delete them?

Thanks for the help.

Crank 01-30-2004 02:26 AM

bump for info. i am wanting to install on 2.3.4 and looking for info as to if it will work or not

Fargo 02-01-2004 01:59 AM

Works great on 2.3.4! Unless you have a heavily hacked forum, the install instructions follow to a "T". No issues what so ever.

Thanks for a GREAT addition to my forum!

jorgen 02-13-2004 12:23 AM

Quote:

Originally Posted by Schorsch
Hi Cano2,

I installed the optional feature, but it doesn't work correctly, it always downloads a file called "private.php" (look at the attachment).

I use Windows 2000 and MS Internet Explorer 5.5

what's wrong and how can I get this working ?

thanks,
Schorsch

Same for me.
It works fine in Mozilla. There it will save with the correct name, pnbackup_13-02-2004.html.

But if I click on the backup button from IE under XP, it just want to save it as "private" (with the correct contents, I might add, just the wrong filename).

Any fix for this?

Edit: Just to make a follow up on my own post. If you edit the template "privbackup_header" and change the following:

PHP Code:

header("Content-type: unknown/unknown"); 

to:
PHP Code:

header("Content-type: text/html"); 

IE will at least create the correct extension to the file. Otherwise you have to do it yourself.

Might this have something to do with this bug? http://support.microsoft.com/default...;EN-US;Q279667

JustAskJulie 03-31-2004 12:46 AM

Installed it on 2.3.4 and it works fine except for one thing. I have installed the optional privbackup_header template but I still don't get an actual download option, I just get sent to the html page with the PM's listed on it and instructions to save it.

I need something a little more dummy proof for my users, so I need the actual save box to come up automatically. Any ideas?

JustAskJulie 03-31-2004 09:48 PM

Ok, weird. I installed it on one forum and got what I posted before. I installed it on the second forum (Identical instilation) and it works as it should, popping up the "Save as" box when you hit backup.

Nero2004 04-11-2004 06:36 PM

Great Work. THX

ary 10-23-2004 11:28 AM

For resolv this problem:
Quote:

Parse error: parse error in /home/glassmav/public_html/forum/private.php(151) : eval()'d code on line 1
You must change this command:
PHP Code:

eval(gettemplate("privbackup_header",0)); 

to:
PHP Code:

eval(gettemplate("privbackup_header",0,0)); 



All times are GMT. The time now is 11:37 PM.

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.01239 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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