The changes listed here will be in UniAdmin 0.7.1
First of all, change the $debug value in conf.php
- Code: Select all
$debug = 2;
This is so debug messages will show
modules/addons.php
Find Lines 395-401
- Code: Select all
// Try to set write access on the uploaded file
$try_chmod = @chmod($zip_file,0777);
if( !$try_chmod )
{
$uniadmin->debug(sprintf($user->lang['error_chmod'],$zip_file));
return;
}
Replace with
- Code: Select all
// Try to set write access on the uploaded file
if( !is_writeable($zip_file) )
{
$try_chmod = @chmod($zip_file,0777);
if( !$try_chmod )
{
$uniadmin->debug(sprintf($user->lang['error_chmod'],$zip_file));
return;
}
}
modules/logo.php
Find Lines 266-272
- Code: Select all
$md5 = md5_file($logo_location);
$try_chmod = @chmod($logo_location,0777);
if( !$try_chmod )
{
$uniadmin->debug(sprintf($user->lang['error_chmod'],$logo_location));
return;
}
Replace with
- Code: Select all
$md5 = md5_file($logo_location);
if( !is_writeable($logo_location) )
{
$try_chmod = @chmod($logo_location,0777);
if( !$try_chmod )
{
$uniadmin->debug(sprintf($user->lang['error_chmod'],$logo_location));
return;
}
}