As mentioned in my previous response, I was modifying this tool to work with a bbBoardV2 migration.
A question comes up with respect to migrating between two different servers. The old server is still alive and clearly this script needs to run on the new server where vBulletin is located. If I put a redirect on the old board in place of the bbBoard.cgi script, I think that will handle it, but I am not sure.
Can anyone who has done this answer the question? My old board is currently live and I don't want to disrupt it just for an experiment.
I am attaching my modified version of 404.php (404t.php).
The contents of my .htaccess file are
Code:
ErrorDocument 404 /var/www/html/404t.php
php_flag log_errors on
php_value error_log /var/www/html/php_error.log
I have not yet run this and would appreciate a quick review. I found it was easier to extract values from the cgi style uri than I thought. The php intval function gets a number and ignores any following text. Therefore, you just need to start the evaluation following the "=" in the parameter string for the particular parameter. i.e. ;fid=, ;gtid=, ;pagenumber=.