mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-17 05:29:41 +01:00
fix for rename htaccess.txt
This commit is contained in:
@@ -214,18 +214,14 @@ while ($row=$SQL->fetch_array($result))
|
|||||||
{
|
{
|
||||||
if (! file_exists(PATH . '.htaccess') && file_exists(PATH . 'htaccess.txt') && function_exists('rename'))
|
if (! file_exists(PATH . '.htaccess') && file_exists(PATH . 'htaccess.txt') && function_exists('rename'))
|
||||||
{
|
{
|
||||||
rename(PATH . 'htaccess.txt', PATH . '.htaccess');
|
if (! rename(PATH . 'htaccess.txt', PATH . '.htaccess'))
|
||||||
|
|
||||||
if (! file_exists(PATH . '.htaccess'))
|
|
||||||
{
|
{
|
||||||
chmod(PATH . '.htaccess', K_FILE_CHMOD);
|
chmod(PATH . 'htaccess.txt', K_FILE_CHMOD);
|
||||||
}
|
|
||||||
|
|
||||||
//re-do after chmod
|
|
||||||
rename(PATH . 'htaccess.txt', PATH . '.htaccess');
|
rename(PATH . 'htaccess.txt', PATH . '.htaccess');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
elseif ($row['name'] == 'language')
|
elseif ($row['name'] == 'language')
|
||||||
{
|
{
|
||||||
$got_lang = preg_replace('[^a-zA-Z0-9]', '', $new[$row['name']]);
|
$got_lang = preg_replace('[^a-zA-Z0-9]', '', $new[$row['name']]);
|
||||||
|
|||||||
Reference in New Issue
Block a user