vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem with custom Page (https://vborg.vbsupport.ru/showthread.php?t=154254)

Eddymvp 08-04-2007 01:01 AM

Problem with custom Page
 
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.

PHP Code:

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.
PHP 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

Quote:

Originally Posted by Kirk Y (Post 1309408)
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.

Quote:

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 Code:

<?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 (vB-Germany users click here, vB-Chinese users click here) 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.


All times are GMT. The time now is 07:01 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.01111 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete