vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   functions.php (https://vborg.vbsupport.ru/showthread.php?t=51399)

geniuscrew 04-09-2003 02:18 PM

functions.php
 
Hi

I deleted some code using our hosts File Editor, and now my forums aren't working :(

This is the error

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/******/public_html/forum/admin/functions.php on line 1029

Fatal error: Call to undefined function: vbsetcookie() in /home/******/public_html/forum/admin/sessions.php on line 241

I've tried uploading a different functions.php which was working but I get the same error. Even uploading a vB 2.3.0 functions.php file gives exactly the same errors even though it shouldn't.


Please help as my forums are down.

Xenon 04-09-2003 08:16 PM

you should provide a bit of your code so we can see where the erooro is located ;)

geniuscrew 04-09-2003 08:45 PM

My bad. Here it is:

PHP Code:

        error_reporting($oldlevel);
        
$buffer ob_get_contents();
        
ob_end_clean();
        if (
$addedtags) {
          
$openingpos strpos($buffer,'<?');
          
$closingpos strrpos($buffer'?');
          
$buffer=substr($buffer0$openingpos).substr($buffer$openingpos+5$closingpos-($openingpos+5)).substr($buffer$closingpos+5);
        } 
// line 1029
        
$buffer str_replace(""""\""$buffer);
  } 


Thanks

geniuscrew 04-10-2003 09:04 AM

Help please!

Xenon 04-10-2003 12:15 PM

hmm, can't see an error there....
maybe you forgot a {} when you changed your files....
or your uploader is corrupted..

geniuscrew 04-10-2003 12:20 PM

That maybe it - but is there a quick "PHP" checker or something similar available?

Thanks

geniuscrew 04-11-2003 09:25 AM

*bump* I have no forums!!!!!!

Xenon 04-11-2003 10:40 AM

try to upload unhacked functions.php, sessions.php and global.php.

does the bug occur now?

geniuscrew 04-11-2003 11:51 AM

That worked thanks - but i think this means I'll have to upgrade the board because i uploaded those files from the 2.3.0 version whereas we were running 2.2.9

Xenon 04-11-2003 02:50 PM

upgrading wouldn't hurt ;)


All times are GMT. The time now is 07:46 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.01913 seconds
  • Memory Usage 1,732KB
  • 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)bbcode_php_printable
  • (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
  • (10)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