Skip to content

Commit

Permalink
eXtreme-Fusion 5.0.4 released
Browse files Browse the repository at this point in the history
  • Loading branch information
Inscure committed Aug 21, 2013
1 parent db99bed commit e0b5cb4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 68 deletions.
78 changes: 13 additions & 65 deletions admin/pages/upgrade.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| at www.gnu.org/licenses/agpl.html. Removal of this | at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without | copyright header is strictly prohibited without
| written permission from the original author(s). | written permission from the original author(s).
| |
********************************************************** **********************************************************
ORIGINALLY BASED ON ORIGINALLY BASED ON
---------------------------------------------------------+ ---------------------------------------------------------+
Expand All @@ -31,19 +31,19 @@
| copyright header is strictly prohibited without | copyright header is strictly prohibited without
| written permission from the original author(s). | written permission from the original author(s).
+--------------------------------------------------------*/ +--------------------------------------------------------*/
try try
{ {
require_once '../../config.php'; require_once '../../config.php';
require DIR_SITE.'bootstrap.php'; require DIR_SITE.'bootstrap.php';
require_once DIR_SYSTEM.'admincore.php'; require_once DIR_SYSTEM.'admincore.php';

$_locale->load(array('settings', 'upgrade')); $_locale->load(array('settings', 'upgrade'));


if ( ! $_user->hasPermission('admin.upgrade')) if ( ! $_user->hasPermission('admin.upgrade'))
{ {
throw new userException(__('Access denied')); throw new userException(__('Access denied'));
} }

$_tpl = new Iframe; $_tpl = new Iframe;


if ($_request->get(array('status', 'act'))->show()) if ($_request->get(array('status', 'act'))->show())
Expand All @@ -59,7 +59,7 @@
} }


if (SYSTEM_VERSION !== $_sett->get('version')) if (SYSTEM_VERSION !== $_sett->get('version'))
{ {
if (! HELP::validUpVersion($_sett->get('version'), SYSTEM_VERSION)) if (! HELP::validUpVersion($_sett->get('version'), SYSTEM_VERSION))
{ {
$_tpl->printMessage('error', 'Nie możesz skorzystać z tej aktualizacji. Pobierz inną, właściwą dla Twojej wersji systemu CMS: https://github.com/eXtreme-Fusion/EF5-updates'); $_tpl->printMessage('error', 'Nie możesz skorzystać z tej aktualizacji. Pobierz inną, właściwą dla Twojej wersji systemu CMS: https://github.com/eXtreme-Fusion/EF5-updates');
Expand All @@ -68,75 +68,23 @@
{ {
if ($_request->post('save')->show()) if ($_request->post('save')->show())
{ {
/* /** ZAPYTANIA DLA NOWEJ WERSJI **/
Zapytania wymagane podczas aktualizacji
*/

$_pdo->exec("INSERT INTO [admin] (`permissions`, `image`, `title`, `link`, `page`) VALUES ('admin.settings_synchro', 'synchro.png', 'Synchronization', 'settings_synchro.php', 4)");
$_pdo->exec("INSERT INTO [permissions] (`name`, `section`, `description`, `is_system`) VALUES ('admin.settings_synchro', 1, '".__('Perm: admin settings_synchro')."', 1)");

if(file_exists(DIR_SITE.'system'.DS.'opt'.DS.'opt.error.php'))
{
@unlink(DIR_SITE.'system'.DS.'opt'.DS.'opt.error.php');
}

if(file_exists(DIR_SITE.'themes'.DS.'eXtreme-Fusion-5'.DS.'core'.DS.'theme.php'))
{
//@unlink(DIR_SITE.'themes'.DS.'eXtreme-Fusion-5'.DS.'core'.DS.'theme.php');
}


$_pdo->exec("CREATE TABLE [admin_favourites]
(
`id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` MEDIUMINT UNSIGNED NOT NULL,
`page_id` MEDIUMINT UNSIGNED NOT NULL,
`count` MEDIUMINT NOT NULL,
`time` INT UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY(`page_id`, `user_id`),
CONSTRAINT FOREIGN KEY (`page_id`) REFERENCES [admin](`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT FOREIGN KEY (`user_id`) REFERENCES [users](`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;"
);


$_pdo->exec("ALTER TABLE [users] ADD `algo` VARCHAR(10) NOT NULL DEFAULT 'sha512' AFTER `salt`");
$_pdo->exec("INSERT INTO [settings] (`key`, `value`) VALUES ('algorithm', 'sha512')"); /** KONIEC ZAPYTAŃ DLA NOWEJ WERSJI **/
$_pdo->exec("INSERT INTO [settings] (`key`, `value`) VALUES ('synchro', '0')");
$_pdo->exec("DELETE FROM [admin] WHERE `link` = 'panel_editor.php'");
$_pdo->exec("DELETE FROM [admin] WHERE `link` = 'upgrade.php'");


$_sett->update(array(
'routing' => serialize(array(
'param_sep' => '-',
'main_sep' => $_sett->getUns('routing', 'main_sep'),
'url_ext' => $_sett->getUns('routing', 'url_ext'),
'tpl_ext' => $_sett->getUns('routing', 'tpl_ext'),
'logic_ext' => $_sett->getUns('routing', 'logic_ext'),
'ext_allowed' => $_sett->getUns('routing', 'ext_allowed')
)),
'theme' => 'eXtreme-Fusion-5'
));

$_sett->update(array('version' => SYSTEM_VERSION)); $_sett->update(array('version' => SYSTEM_VERSION));



//if ($count)
//{
$_log->insertSuccess('updating', __('The update has been finished successfully.'));
$_files->rmDirRecursive(DIR_CACHE);
$_request->redirect(FILE_PATH, array('act' => 'updating', 'status' => 'ok'));
//}


//$_log->insertFail('updating', __('Error! The update has not been finished.')); $_log->insertSuccess('updating', __('The update has been finished successfully.'));
//$_request->redirect(FILE_PATH, array('act' => 'updating', 'status' => 'error')); $_files->rmDirRecursive(DIR_CACHE);
$_request->redirect(FILE_PATH, array('act' => 'updating', 'status' => 'ok'));
} }


$_tpl->assign('upgrade', TRUE); $_tpl->assign('upgrade', TRUE);
} }
} }

$_tpl->template('upgrade'); $_tpl->template('upgrade');
} }
catch(optException $exception) catch(optException $exception)
Expand Down
3 changes: 2 additions & 1 deletion bootstrap.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
} }
} }


defined ('SYSTEM_VERSION') || define('SYSTEM_VERSION', '5.0.4-unstable-master-repo'); //defined ('SYSTEM_VERSION') || define('SYSTEM_VERSION', '5.0.4-unstable-master-repo');
defined ('SYSTEM_VERSION') || define('SYSTEM_VERSION', '5.0.4');


// Array-imploded data separator for Database fields // Array-imploded data separator for Database fields
defined('DBS') || define('DBS', '^'); defined('DBS') || define('DBS', '^');
Expand Down
9 changes: 8 additions & 1 deletion changelog.txt
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,12 @@
eXtreme-Fusion 5.0.4 eXtreme-Fusion 5.0.4

Fixes:
- dodanie pustej linii do .htaccess - serwery, które modyfikują ten plik, nie powiny wyświetlać już błędu 500
- usunięcie błędu z wyświetlaniem polskich nazw miesięcy
- czyszczenie cache po przypisaniu uzytkownika do grupy
Improvements:
- dodanie panelu ostatnich tematów na forum
- tłumaczenie czeskich plików językowych
- wprowadzenie synchronizacji dla języka czeskiego




eXtreme-Fusion 5.0.3 2013.07.31 eXtreme-Fusion 5.0.3 2013.07.31
Expand Down
2 changes: 1 addition & 1 deletion system/class/System.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function clearCacheRecursive(Files $_files)
/** /**
* Opróżnia katalog pamięci podręcznej usuwając tylko pliki o roszerzeniach tpl, php lub txt. * Opróżnia katalog pamięci podręcznej usuwając tylko pliki o roszerzeniach tpl, php lub txt.
* *
* Nie usuwa plików z podfolderów folderu $dir! Aby je uunąć, użyj clearCacheRecursive(). * Nie usuwa plików z podfolderów folderu $dir! Aby je usunąć, użyj clearCacheRecursive().
* *
* // Usuwa całą pamięć podręczną z głównego katalogu pamięci podręcznej. * // Usuwa całą pamięć podręczną z głównego katalogu pamięci podręcznej.
* $_system->clearCache(); * $_system->clearCache();
Expand Down

0 comments on commit e0b5cb4

Please sign in to comment.