vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   welcome/login panel on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=37134)

Airwork 10-21-2003 08:19 PM

This is really the script I've been looking for, it looks just great.
Unfortunately, I can't get it to work. Tried everything, looked everywhere and am now desperate. Hope someone knows a brilliant solution to this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/webwelcome.php) is not within the allowed path(s): (/www/htdocs/airwork) in /www/htdocs/airwork/test.php on line 17

Warning: main(/usr/local/lib/php/webwelcome.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/airwork/test.php on line 17

Warning: main() [function.main]: Failed opening '/usr/local/lib/php/webwelcome.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/airwork/test.php on line 17

You can find it at http://www.airwork.nl/test.php

I contacted my host, but they say it has to do with my path, which I should set to usr/local/lip/php. I did as instructed, but still get the same error.

Anyone???

danchuee 10-21-2003 11:59 PM

Quote:

Originally Posted by Airwork
This is really the script I've been looking for, it looks just great.
Unfortunately, I can't get it to work. Tried everything, looked everywhere and am now desperate. Hope someone knows a brilliant solution to this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/webwelcome.php) is not within the allowed path(s): (/www/htdocs/airwork) in /www/htdocs/airwork/test.php on line 17

Warning: main(/usr/local/lib/php/webwelcome.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/airwork/test.php on line 17

Warning: main() [function.main]: Failed opening '/usr/local/lib/php/webwelcome.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/airwork/test.php on line 17

You can find it at http://www.airwork.nl/test.php

I contacted my host, but they say it has to do with my path, which I should set to usr/local/lip/php. I did as instructed, but still get the same error.

Anyone???

You may want to contact your host again. It is a server issue. The admistrator is restricting access to specific directories. Usually in a hosting environment, they only allow you to access your directories. This is a security issue. Try placing the file within a directory you know works. Then try it.

Also you can call them to make sure that you can create more folders within that dir and that the config of the server os allows it.

Below is some info about what open_basedir is all about.

Quote:

open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.

When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.

The special value . indicates that the directory in which the script is stored will be used as base-directory.

Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.

The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/"

Airwork 10-22-2003 06:15 PM

Quote:

Originally Posted by danchuee
You may want to contact your host again. It is a server issue. The admistrator is restricting access to specific directories. Usually in a hosting environment, they only allow you to access your directories. This is a security issue. Try placing the file within a directory you know works. Then try it.

Also you can call them to make sure that you can create more folders within that dir and that the config of the server os allows it.

Thank you danchuee. I have mailed my host your reply, but they still say it's the paths, because when a file is included in PHP it should state the whole path. As a service, they altered the paths for me in webwelcome.php and in the testpage (http://www.airwork.nl/test.php). So these should be allright this way.
On the upside the result is that I don't get errormessages anymore, on the downside it doesn't show anything at all...
Does that mean that the PHP problem is solved but that I did something wrong in other pages, perhaps the templates or somewhere else?

Airwork 10-23-2003 08:03 PM

Anyone please help? I really would like this feature on my website, I tried to find something like this for a long time. It's pretty frustrating that I can't get it to work.

Diana

Airwork 11-15-2003 09:53 PM

Guess not...

Darren Lewis 11-15-2003 10:04 PM

Airwork, the page http://www.airwork.nl/test.php is showing the login box. What's the problem you're having?

Airwork 11-15-2003 10:09 PM

Sorry Darren, just minutes after my previous message I worked through the templates again and now it works. I am very, very happy and a quite embaressed that the solution was so simple in the end...

Thanks for this great hack!

Darren Lewis 11-15-2003 10:12 PM

Great. Glad it's working OK for you :)

Pikok 11-23-2003 04:07 PM

Hi, i'm getting this error on the bottom of my main page after fully installing and configuring this hack:
Warning: mysql_query(): 17 is not a valid MySQL-Link resource in /home/hosting/host1009/forum/admin/db_mysql.php on line 93



There seems to have been a slight problem with the FFIntelligence headquarters database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

i don't understand why i'm getting this error,...
could it be becos i use vbb 2.3.2?
the login box works perfect...i just need to get that error out of the way on my main page
any thoughts?

Darren Lewis 11-23-2003 04:12 PM

What other scripts are you running on your page? Are they all using the same database? Have you got a link to the page causing the problem?

Pikok 11-23-2003 05:28 PM

Quote:

Originally Posted by Darren Lewis
What other scripts are you running on your page? Are they all using the same database? Have you got a link to the page causing the problem?

login box is under the header image
i'm running a script for the hits and whos online yes, and they're using the same mysql db

asddsa 11-28-2003 11:06 AM

I need help with this, see here please:

https://vborg.vbsupport.ru/showthrea...189#post449189

Ayumi 12-27-2003 11:30 PM

Quick question: Does this work with the newest release, 2.3.3?
Thanks in advance.

noonespecial 01-14-2004 05:18 PM

when will this be released for 3.0????

danchuee 01-14-2004 07:53 PM

I was able to get it to work with 3.0 with some adjustments. I wouldn't recommend using it until vB 3 has been officially released.

noonespecial 01-14-2004 11:23 PM

Quote:

Originally Posted by danchuee
I was able to get it to work with 3.0 with some adjustments. I wouldn't recommend using it until vB 3 has been officially released.

what adjustments?

http://www.absolutepunk.net/faceliftnew.php

u can see the problem i am having ..

Warning: Cannot modify header information - headers already sent by (output started at /home/jason/public_html/faceliftnew.php:11) in /home/apforum/public_html/includes/functions.php on line 2704

I have

<?php
chdir("/home/apforum/public_html/");
require_once('/home/apforum/public_html/global.php');
?>

at the very top. still nothing.

glo 03-23-2004 02:04 AM

Hi Darren,

How are you! Im having a go at this again, now that i have some time up my sleeve.

I have the script working now, but as its on a different level as my forums I have had to enter the full paths.

But i want to make the links open a new window with the content.
What is the best way to do this.

Speak soon!

Darren Lewis 03-23-2004 02:05 PM

Quote:

Originally Posted by glo
Hi Darren,

How are you! Im having a go at this again, now that i have some time up my sleeve.

I have the script working now, but as its on a different level as my forums I have had to enter the full paths.

But i want to make the links open a new window with the content.
What is the best way to do this.

Speak soon!

Glad you've got the script working. To open the links in a new window, edit the templates and add target="_blank" to the html for the links.

glo 03-23-2004 08:52 PM

Quote:

Originally Posted by Darren Lewis
Glad you've got the script working. To open the links in a new window, edit the templates and add target="_blank" to the html for the links.

Hi Darren,
Thanks for the code, but as i was having fun experimemting with it all, i figured it all out!

Great hack! Thanks again!

BTW. HOws the book forum going!

Snappa 03-25-2004 03:29 AM

Gahhh, cant get this to work with 3.0.... Help asap plz somebodyy!!! :(

getting this eror

"Fatal error: Call to undefined function: gettemplate() in /home/virtual/site251/fst/var/www/html/forums/webwelcome.php on line 162"

:(

Darren Lewis 03-25-2004 05:29 AM

Quote:

Originally Posted by Snappa
Gahhh, cant get this to work with 3.0.... Help asap plz somebodyy!!! :(

getting this eror

"Fatal error: Call to undefined function: gettemplate() in /home/virtual/site251/fst/var/www/html/forums/webwelcome.php on line 162"

:(

The hack in this thread is only for vbulletin 2. It won't work with 3.0.

glo 03-25-2004 08:01 AM

Hi Darren,

Is there anyway to have this show up on the "who's online" view?

MajorFm.com 01-16-2005 07:22 PM

Is there a version for vb3???? if so please link me to it... if not... its neeeeeeeded!

MajorFm.com 01-21-2005 01:17 PM

anyone?

L3e 06-08-2005 07:24 AM

I am using VB3 too and it is not working.
Fatal error: Call to undefined function: gettemplate()

If anyone found a mod that works with VB3 please let me know... I really need it :(


All times are GMT. The time now is 04:18 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.01284 seconds
  • Memory Usage 1,796KB
  • 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
  • (8)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
  • (25)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