vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

TheBurner 10-15-2004 05:07 AM

Quote:

Originally Posted by AndrewD
Certainly possible to change the xml. When you've done this, you need to re-run the install script, stage 2, to reinstall the templates.

I need to do a proper language pack job on this hack, but that was a low priority while things were still in development.

Thanks :D

I'll try it out.

AndrewD 10-15-2004 05:21 AM

Quote:

Originally Posted by Blam Forumz
Bump :( Help

As far as I understand, your site manager has restricted which parts of the local directory structure can be accessed by php scripts. open_basedir is set within php.ini (or perhaps within apache?) - check using phpinfo (VBulletin main admin page, Import and Maintenance).

But I see also that you are setting file_icons_dir to "/", so I presume you've dumped the icons into the main forums directory. Move them into a subdirectory, e.g. set file_icons_dir to (e.g.) local_icons/

Blam Forumz 10-15-2004 03:37 PM

Quote:

Originally Posted by AndrewD
As far as I understand, your site manager has restricted which parts of the local directory structure can be accessed by php scripts. open_basedir is set within php.ini (or perhaps within apache?) - check using phpinfo (VBulletin main admin page, Import and Maintenance).

But I see also that you are setting file_icons_dir to "/", so I presume you've dumped the icons into the main forums directory. Move them into a subdirectory, e.g. set file_icons_dir to (e.g.) local_icons/

erm.. could you explain that in english please :(

Holidazed 10-15-2004 03:46 PM

Quote:

Originally Posted by AndrewD
As far as I understand, your site manager has restricted which parts of the local directory structure can be accessed by php scripts. open_basedir is set within php.ini (or perhaps within apache?) - check using phpinfo (VBulletin main admin page, Import and Maintenance).

But I see also that you are setting file_icons_dir to "/", so I presume you've dumped the icons into the main forums directory. Move them into a subdirectory, e.g. set file_icons_dir to (e.g.) local_icons/

I have no idea what this means. I do not have access to php.ini. I am getting a similar error.

Code:

Warning: opendir(): open_basedir restriction in effect. File(/forums/images/link-icons/) is not within the allowed path(s): (/path/to/my/lib/php:/usr/local/lib/php:/tmp) in /path/to/my/forums/local_links.php on line 2630
 
Warning: opendir(/pathtomy/forums/images/link-icons/): failed to open dir: Operation not permitted in /path/to/my/forums/local_links.php on line 2630
                                The following setting(s) are invalid
file_icons_dir : //forums/images/link-icons/

I put my icons under the /forums/images/link-icons directory. I have tried moving the images to a wide variety of locations and get the same error.

HELP!!

Lionel 10-15-2004 04:05 PM

Quote:

Originally Posted by AndrewD
I'll think about this.

I managed to do all I wanted... If only you could tell me how to enable html, then I'll be done completely.

AndrewD 10-15-2004 04:43 PM

Quote:

Originally Posted by bitg
I have no idea what this means. I do not have access to php.ini. I am getting a similar error.

Code:

Warning: opendir(): open_basedir restriction in effect. File(/forums/images/link-icons/) is not within the allowed path(s): (/path/to/my/lib/php:/usr/local/lib/php:/tmp) in /path/to/my/forums/local_links.php on line 2630
 
Warning: opendir(/pathtomy/forums/images/link-icons/): failed to open dir: Operation not permitted in /path/to/my/forums/local_links.php on line 2630
                                The following setting(s) are invalid
file_icons_dir : //forums/images/link-icons/

I put my icons under the /forums/images/link-icons directory. I have tried moving the images to a wide variety of locations and get the same error.

HELP!!

Sorry if my answer seemed like Greek. I think this is what is going on...

Your system manager has configured your account so that people like me can only write scripts that do a "directory listing" in certain places in the file system. Unfortunately, she has set it to forbid "directory listing" access to your web site directories. My script tries to read the icon directory a) to be sure that it exists at all, and b) to see which icons are there. Step a) fails because of this setting.

I'll fix the code to deal with this situation.

I realise on further thought that a full fix is probably not possible for sites that have set open_basedir. I can get round the error message by not doing the error checks - but this will only be satisfactory if you make sure that you enter a correct directory and if you ensure you provide icons for every file type that you make available for download. Otherwise the user will see missing images for downloadable files when the icon isnt available. Can you guarantee this?

AndrewD 10-15-2004 04:43 PM

Quote:

Originally Posted by Blam Forumz
erm.. could you explain that in english please :(

See reply to bitg. Will try to provide a fix soon.

AndrewD 10-15-2004 05:21 PM

Quote:

Originally Posted by Lionel
I managed to do all I wanted... If only you could tell me how to enable html, then I'll be done completely.

In order to enable html, you need to remove calls to htmlspecialchars() in local_links.php. This function processes user input to turn html entries into escaped html entries.

So have a look in the insert_link code and in the do edit link code. You'll find that the database insert/update statements wrap several fields in a call to htmlspecialchars().

Holidazed 10-15-2004 05:43 PM

OK, I got my problem resolved. I went into the control panel for that m host provides and turned on directory listing for that folder.

Thanks Andrew for the heads up on why it was failing.

Lionel 10-15-2004 06:53 PM

Thank you Andrew :up:


All times are GMT. The time now is 07:47 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.02658 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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