Create a file in the application

Pre-sales questions for phpBB 3 forum hosting script.
Post Reply
Posts: 1
Joined: 02 Aug 2010, 13:58

Create a file in the application

Post by armada2600 »


Excuse the English is so bad.

I want to install the gallery in addition, have done well so far.
only create problems in the file

The folders are all created:

Code: Select all

// create directories for a forum
function hs_forum_dirs($name = false, $extended = false)
    $dirs = array(
    	HS_ROOT . '../cache/{FORUM}',               // for cache
        HS_ROOT . '../uploads/{FORUM}',
	    HS_ROOT . '../uploads/{FORUM}/avatars',     // avatars
	    HS_ROOT . '../uploads/{FORUM}/images',      // imageset stuff
	    HS_ROOT . '../uploads/{FORUM}/smilies',     // smilies
	    HS_ROOT . '../files/{FORUM}',               // uploads
	    HS_ROOT . '../gallery/{FORUM}',               // gallery

	if($name === false)
	    return $dirs;

	$mask = @umask(0);
	for($i=0; $i<count($dirs); $i++)
	    $dirs[$i] = str_replace('{FORUM}', $extended ? hs_forum_cache_dir($name) : $name, $dirs[$i]);
	    hs_forum_mkdir($dirs[$i], defined('HS_CACHE_CHMOD_DIRS') ? HS_CACHE_CHMOD_DIRS : 0777);
	return $dirs;
Posts: 1148
Joined: 30 Jun 2009, 20:15
Hosted Forums: 0

Re: Create a file in the application

Post by PHPBBHS »

Please post in the customer forums

You can gain access to the customer forums my the user cp on you need to enter your forum username
Posts: 1
Joined: 01 Oct 2019, 02:49

Re: Create a file in the application

Post by Gingerennis »

Create a file in the application, Some people get trouble in doing it because they just not understand what they do in this time. I just tell you the exect meaning which is related and to show it on the page where you know how to create a file in application and how can you use it for you.
Post Reply