procomp wrote: GUS, when I add an archive for the ADMINISTRATION PANEL, it adds normal without problems appears all normal one. but, when I add for: UPLOAD USERS, it send the archive for the ftp, but nao appears nothing http://www.samba420.net/forum/dload.php , is one bug? what it can be? somebody can help me? urgent!
I verified and the information goes pro bank. but when it is added by users or administrators but it saw site ( http://www.samba420.net/forum/dload.php ... ser_upload ) does not appear in the section downloads: (
procomp wrote:procomp wrote:GUS, when I add an archive for the ADMINISTRATION PANEL, it adds normal without problems appears all normal one. but, when I add for: UPLOAD USERS, it send the archive for the ftp, but nao appears nothing http://www.samba420.net/forum/dload.php , is one bug? what it can be? somebody can help me? urgent!
I verified and the information goes pro bank. but when it is added by users or administrators but it saw site ( http://www.samba420.net/forum/dload.php ... ser_upload ) does not appear in the section downloads: (
anyone?
my version is 0.0.9b
Earthk wrote: 2. Fix the error
"Fatal error: Cannot redeclare get_extension() (previously declared in
functions_attach.php...." by commenting the get_extention function as
adviced in a past post.
I don't think this is ready for actual use, but why did some sites actually
are using it without any problems? I forgot the links so I can't put it
here.
Has this bug something to do with this in pafiledb/includes/fuctions.phpFearless wrote:Frold wrote:1. When I approve a file in ACP the field file_dlurl in this tabel phpbb_pa_files get a wrong url. The wrong url is www.domain.com/100000000000 .
The URL should be. www.domain.com/[file_dir]/[unique_name]
Code: Select all
function gen_unique_name($file_type)
{
global $pafiledb_config;
srand((double)microtime()*1000000); // for older than version 4.2.0 of PHP
do
{
$filename = md5(uniqid(rand())) . $file_type;
}
while( file_exists($pafiledb_config['upload_dir'] . '/' . $filename) );
return $filename;
}
Fearless wrote:Earthk wrote:2. Fix the error
"Fatal error: Cannot redeclare get_extension() (previously declared in
functions_attach.php...." by commenting the get_extention function as
adviced in a past post.
I don't think this is ready for actual use, but why did some sites actually
are using it without any problems? I forgot the links so I can't put it
here.
Error 2 is a conflict with the file attachment mod, I think. As for sites already using the mod, I think they are using earlier versions (such as 0.0.8 ).
Code: Select all
function get_extension($filename)
{
$extension = strrchr(strtolower($filename), '.');
$extension[0] = ' ';
$extension = strtolower(trim($extension));
if (is_array($extension))
{
return ('');
}
else
{
return ($extension);
}
}
//function get_extension($filename)
//{
// $extension = strrchr(strtolower($filename), '.');
// $extension[0] = ' ';
// $extension = strtolower(trim($extension));
// if (is_array($extension))
// {
// return ('');
// }
// else
// {
// return ($extension);
// }
//}