vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Help Fixing A "Potential" Hack (https://vborg.vbsupport.ru/showthread.php?t=79038)

tnguy3n 03-31-2005 11:00 AM

PHP Code:

<?php

chdir
('forums');
require_once(
'global.php');

// more codes

include_once('includes/functions_bbcodeparse.php');

?>


EH-Jay 03-31-2005 03:57 PM

I threw it in but it still not working =/

Eww now I'm getting this:

Code:

Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/elite/public_html/forums/global.php on line 18

Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/elite/public_html/forums/global.php on line 18

Here's an updated link:

www.elitehosting.ca/file.php

Marco van Herwaarden 03-31-2005 06:17 PM

Then you didn't do like tnguy3n suggested.
Quote:

Originally Posted by EH-Jay
I threw it in but it still not working =/

Eww now I'm getting this:

Code:

Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/elite/public_html/forums/global.php on line 18
 
Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/elite/public_html/forums/global.php on line 18

Here's an updated link:

www.elitehosting.ca/file.php


EH-Jay 03-31-2005 06:26 PM

Code:

        include("forums/includes/config.php");
        include_once("forums/includes/functions_bbcodeparse.php");
        require_once("forums/global.php");

What did I not do... I put what he told me in there and it did nothing.

Ok I modified it a little more and got to this:

Code:

Unable to add cookies, header already sent.
File: /home/elite/public_html/index2.php
Line: 8

And I didn't forget the "chdir('forums');"

tnguy3n 03-31-2005 06:55 PM

when you call global.php file, it already contains function to connect to database, and other info stored in datastore.
instead of writing your code as:
PHP Code:

<?php
    
include("forums/includes/config.php");
    include(
"forums/includes/functions_bbcodeparse.php");
    @
mysql_pconnect($servername$dbusername$dbpassword);
    
mysql_select_db("$dbname")or die(mysql_error())

you can use:
PHP Code:

<?php

chdir
('forums'); // or full path /home/account/public_html/forum
require_once('global.php');

// more codes

include_once('includes/functions_bbcodeparse.php');

?>

hope that clear it up.

EH-Jay 03-31-2005 07:05 PM

Code:

<?php

chdir('forums'); // or full path /home/account/public_html/forum
require_once('global.php');

// more codes

include_once('includes/functions_bbcodeparse.php');

Ok I removed what you told me to, and still same cookies error

tnguy3n 03-31-2005 07:11 PM

Quote:

Originally Posted by EH-Jay
Code:

<?php

chdir('forums'); // or full path /home/account/public_html/forum
require_once('global.php');

// more codes

include_once('includes/functions_bbcodeparse.php');

Ok I removed what you told me to, and still same cookies error

I don't know what you got in your file, maybe you call some un-defined functions.

try this test file. open it and replace vb3 with your forum dir.

EH-Jay 03-31-2005 07:14 PM

It works... http://www.elitehosting.biz/test.php

What now?

http://www.elitehosting.biz/index2.php Ok the BB code is still not working. That was the whole point of me asking :(

Marco van Herwaarden 03-31-2005 08:01 PM

Well last time you said you did what he suggested, but posted coding showing that you didn't. Do a chdir to your forum directory, then use require_once for ./global.php and ./includes/functions_bbcodeparse.php

EH-Jay 03-31-2005 10:03 PM

I didn't mean to do that. But anyway I have all the coding in for what he told me to put, and still no bb code working as you can see in that link I sent you. Any help for it now that we got everything else fixed?


All times are GMT. The time now is 09:43 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.01175 seconds
  • Memory Usage 1,748KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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