-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from HuubMons/prepare_next_version
HuMo-genealogy 6.8
- Loading branch information
Showing
261 changed files
with
74,775 additions
and
70,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
admin/controller/edit_addressController.php → admin/controller/adminAddressController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
class AdminCmsPagesController | ||
{ | ||
public function detail($dbh) | ||
{ | ||
$CMS_pagesModel = new AdminCmsPagesModel($dbh); | ||
|
||
$edit_cms_pages['menu_tab'] = $CMS_pagesModel->menu_tab(); | ||
|
||
$CMS_pagesModel->add_change_page($dbh); | ||
|
||
$edit_cms_pages['select_page'] = $CMS_pagesModel->get_select_page(); | ||
|
||
$CMS_pagesModel->update_pages($dbh); | ||
|
||
if ($edit_cms_pages['menu_tab'] === 'pages') { | ||
$edit_cms_pages['pages_in_category'] = $CMS_pagesModel->get_pages_in_category($dbh); | ||
|
||
$get_page = $CMS_pagesModel->get_page($dbh); | ||
$edit_cms_pages = array_merge($edit_cms_pages, $get_page); | ||
} | ||
|
||
return $edit_cms_pages; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
class AdminIndexController | ||
{ | ||
public function detail($database_check, $dbh) | ||
{ | ||
$indexModel = new AdminIndexModel(); | ||
|
||
$index['php_version'] = $indexModel->get_php_version(); | ||
|
||
$index_array1 = $indexModel->database_settings($database_check); | ||
$index_array2 = $indexModel->get_mysql_version($dbh); | ||
$index = array_merge($index, $index_array1, $index_array2); | ||
|
||
// TODO: move to model. | ||
// *** Check if database and tables are ok *** | ||
$index['install_status'] = true; | ||
|
||
if (!$index['database_check']) { | ||
$index['install_status'] = true; | ||
|
||
$index['db_host'] = 'localhost'; | ||
if (isset($_POST['db_host'])) { | ||
$index['db_host'] = $_POST['db_host']; | ||
} | ||
|
||
$index['db_username'] = 'root'; | ||
if (isset($_POST['db_username'])) { | ||
$index['db_username'] = $_POST['db_username']; | ||
} | ||
|
||
$index['db_password'] = ''; | ||
if (isset($_POST['db_password'])) { | ||
$index['db_password'] = $_POST['db_password']; | ||
} | ||
|
||
$index['db_name'] = 'humo-gen'; | ||
if (isset($_POST['db_name'])) { | ||
$index['db_name'] = $_POST['db_name']; | ||
} | ||
} | ||
|
||
return $index; | ||
} | ||
} |
11 changes: 3 additions & 8 deletions
11
.../controller/edit_repositoryController.php → .../controller/adminRepositoryController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
class adminSettingsController | ||
{ | ||
public function detail($dbh, $db_functions, $humo_option) | ||
{ | ||
$settingsModel = new AdminSettingsModel($dbh); | ||
$settings['menu_tab'] = $settingsModel->get_menu_tab(); | ||
$settings['time_lang'] = $settingsModel->get_timeline_language($humo_option); | ||
$settingsModel->save_settings($dbh, $db_functions, $humo_option, $settings); | ||
|
||
// *** Use a seperate controller for each tab *** | ||
if ($settings['menu_tab'] == 'settings_homepage') { | ||
$settings_homepageModel = new SettingsHomepageModel($dbh); | ||
$settings_homepageModel -> reset_modules($dbh); | ||
$settings_homepageModel -> save_settings_modules($dbh); | ||
$settings_homepageModel -> order_modules($dbh); | ||
|
||
$settings_homepageModel -> save_settings_favorites($dbh); | ||
} | ||
|
||
return $settings; | ||
} | ||
} |
11 changes: 3 additions & 8 deletions
11
admin/controller/edit_sourceController.php → admin/controller/adminSourceController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
class AdminStatisticsController | ||
{ | ||
public function detail($dbh) | ||
{ | ||
$statisticsModel = new AdminStatisticsModel($dbh); | ||
|
||
$statistics['tab'] = $statisticsModel->get_tab(); | ||
|
||
$data = $statisticsModel->get_data($dbh); | ||
$statistics = array_merge($statistics, $data); | ||
|
||
return $statistics; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
class BackupController | ||
{ | ||
public function detail($dbh) | ||
{ | ||
$backupModel = new BackupModel($dbh); | ||
|
||
$backupModel->process_old_files(); | ||
|
||
$backup['upload_status'] = $backupModel->upload_backup_file(); | ||
|
||
return $backup; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
class ExtensionsController | ||
{ | ||
public function detail($dbh, $db_functions, $humo_option, $language_file) | ||
{ | ||
$extensionsModel = new ExtensionsModel($dbh); | ||
$extensions['theme_folders'] = $extensionsModel->get_theme_folders(); | ||
|
||
$extensionsModel->save_settings($db_functions, $humo_option, $language_file, $extensions); | ||
|
||
|
||
// *** Re-read variables after changing them *** | ||
// *** Don't use include_once! Otherwise the old value will be shown *** | ||
include(__DIR__ . "/../../include/settings_global.php"); //variables | ||
$extensions['hide_languages'] = explode(";", $humo_option["hide_languages"]); | ||
$extensions['hide_themes'] = explode(";", $humo_option["hide_themes"]); | ||
|
||
|
||
return $extensions; | ||
} | ||
} |
4 changes: 1 addition & 3 deletions
4
admin/controller/gedcom_exportController.php → admin/controller/gedcomExportController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.