PDA

View Full Version : Problem with custom Page


Eddymvp
08-04-2007, 01:01 AM
I had my website running together with Vbulletin and the way I did this was creating a page and including global.php file and I would have access to all the functions in VBulletin.

However all the sudden everything stopped working and its saying that I do not have permission to view that page.

Here is what I had

this is the index page.


error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('MVP_PORTAL', true);
chdir('path/to/forum/');
require_once('./global.php');
// Content of the page would go here"



on the global.php file I inserted the following code.


if (defined('MVP_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);



$specialtemplates = array_merge($specialtemplates,
array(
'mvp_standing',
'mvp_news')
);

$globaltemplates = array_merge($globaltemplates,
array(
'mvp_portal',
'mvp_news',
'mvp_portal_footer'

)
);
}




This worked for almost 3 years and all of the sudden it stops working and I haven't changed any of the code.

Kirk Y
08-04-2007, 03:33 AM
Could you be a little more descriptive? What exactly is the error given? Are you returned any PHP errors?

Eddymvp
08-04-2007, 04:25 AM
Could you be a little more descriptive? What exactly is the error given? Are you returned any PHP errors?
Here is the error that i'm getting.


username, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Kirk Y
08-04-2007, 04:49 AM
Would you mind posting up the entire index.php file?

Eddymvp
08-04-2007, 11:09 AM
Here it its. I took it off the vba_cms and I had it working for 3 years and something must had changed on my server that all of the sudden it stops working.

Here is the index.php file


<?php


error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
//define('THIS_SCRIPT', 'mvp_index');
define('MVP_PORTAL', true);


chdir('/path/to/forums');

// ============================================
// No Further Editing Necessary!
// ============================================

require_once('./global.php');


// ################################## do ALL Pages main page ################################################


if (function_exists($_REQUEST['do']))
{
print_mvp_output($_REQUEST['do']);

}
else
{

print_portal_output($home);
}

?>



My host upgraded the server from php4 to php5 with the security updates. Once they did that my website powered pages stopped working.

Dismounted
08-04-2007, 11:23 AM
Eddymvp,

You are currently showing up as unlicensed.

To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (http://members.vbulletin.com/membersupport_priority.php) (vB-Germany users click here (http://members.vbulletin-germany.com/membersupport_priority.php), vB-Chinese users click here (http://members.vbulletin-china.cn/membersupport_priority.php)) and enter your email address, to show us that you are licensed. You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

The update of your account can take up to one hour.

Thank you.