vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Locked out of admincp (https://vborg.vbsupport.ru/showthread.php?t=119655)

morgandy 06-26-2006 11:38 AM

I am still locked out of the admincp, and our forums are down. I re-uploaded init.php and the global.php as suggested, same error occurred, then I restored everything from my backup that was done a few days ago, same error occurred, I have then uploaded all the original files again, and get the same error still:

Warning: Unknown(./../global.php): failed to open stream: No such file or directory in /global.php(349) : eval()'d code on line 1

Fatal error: (null)(): Failed opening required './../global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/csea/public_html/forums/global.php(349) : eval()'d code on line 1
========

Could it be in the below code somehow? I keep wondering also with all the portal uninstall I did, and then trying to fix vBulletin, that my license information got overwritten, so need to know how to re-enter it without doing a full 'installation' again.

Or, could the error be caused by the below in my global.php file? I don't know what this eval()'d code refers to.

($hook = vBulletinHook::fetch_hook('cache_templates')) ? eval($hook) : false;

// now get all the templates we have specified
cache_templates($globaltemplates, $style['templatelist']);
unset($globaltemplates, $actiontemplates, $_get_edit_templates, $_templatedo);

// ################################################## ###########################
// get style variables
$stylevar = fetch_stylevars($style, $vbulletin->userinfo);

// ################################################## ###########################
// parse PHP include
if (!is_demo_mode())
{
@ob_start();
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
$phpinclude_output = @ob_get_contents();
@ob_end_clean();

I just downloaded a php editor and found that it is this line (349) - I don't know what the eval business is about, as I've stated. This is not an eval/demo version, but fully purchased. The portal software is all I can think that messed with it, or my having to overwrite with original vb files again. Please clue me into what to do. The same error occurs if trying to get to admincp or the forums.

if (!is_demo_mode())
{
@ob_start();
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
$phpinclude_output = @ob_get_contents();
@ob_end_clean();

I took GaryP's advice from above, but added define('DISABLE_HOOKS', true); to the global.php file this time instead of the config. I'm IN!!!!! 4 days downtime, won't mess with the Portal crap again probably. BUT, how did that 'hook' get in there to begin with, any ideas???

Wifey 06-26-2006 12:50 PM

I had some HUGE problems with my forums last week due to a hack. Can you get your hosting to upload a backup file for you? I know it sets you back, but it's better than being locked out :) Just my suggestion, other than that I'm just giving you moral support :)

morgandy 06-26-2006 01:21 PM

Well, I've been doing backups, but the restores weren't working. And then the hack got into my code after the backups...Good lesson learned I guess. I'm fixed for now, ain't touching the darn thing again until I'm 'recovered'!

:)


All times are GMT. The time now is 12:54 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.00944 seconds
  • Memory Usage 1,721KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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