diff --git a/doc/translations.xls b/doc/translations.xls index 0352eda3..1ed1d8e0 100644 Binary files a/doc/translations.xls and b/doc/translations.xls differ diff --git a/src/application/config/config.php b/src/application/config/config.php index e9f40ca3..e9b51cd3 100644 --- a/src/application/config/config.php +++ b/src/application/config/config.php @@ -29,8 +29,8 @@ $config['base_url'] = SystemConfiguration::$base_url; | the global "config" variable. | */ -$config['ea_version'] = '1.0'; // This must be changed manually. -$config['ea_release_title'] = 'Dev'; // Leave empty for no title or add BETA, TEST etc ... +$config['ea_version'] = '0.7.1'; // This must be changed manually. +$config['ea_release_title'] = 'Beta'; // Leave empty for no title or add BETA, TEST etc ... $config['ea_google_sync_feature'] = SystemConfiguration::$google_sync_feature; /* diff --git a/src/application/config/migration.php b/src/application/config/migration.php index afa26456..b0704207 100644 --- a/src/application/config/migration.php +++ b/src/application/config/migration.php @@ -8,7 +8,7 @@ | whenever you intend to do a schema migration. | */ -$config['migration_enabled'] = FALSE; +$config['migration_enabled'] = TRUE; /* @@ -21,7 +21,7 @@ $config['migration_enabled'] = FALSE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 0; +$config['migration_version'] = 1; // current /* diff --git a/src/application/controllers/backend.php b/src/application/controllers/backend.php index 038e82a3..56a2edd0 100644 --- a/src/application/controllers/backend.php +++ b/src/application/controllers/backend.php @@ -252,6 +252,34 @@ class Backend extends CI_Controller { $view['role_slug'] = $this->session->userdata('role_slug'); $view['privileges'] = $this->roles_model->get_privileges($this->session->userdata('role_slug')); } + + /** + * This method will update the installation to the latest available + * version in the server. IMPORTANT: The code files must exist in the + * server, this method will not fetch any new files but will update + * the database schema. + * + * This method can be used either by loading the page in the browser + * or by an ajax request. But it will answer with json encoded data. + */ + public function update() { + try { + if (!$this->hasPrivileges(PRIV_SYSTEM_SETTINGS, TRUE)) + throw new Exception('You do not have the required privileges for this task.'); + + $this->load->library('migration'); + + if (!$this->migration->current()) + throw new Exception($this->migration->error_string()); + + echo json_encode(AJAX_SUCCESS); + + } catch(Exception $exc) { + echo json_encode(array( + 'exceptions' => array(exceptionToJavaScript($exc)) + )); + } + } } /* End of file backend.php */ diff --git a/src/application/language/english/translations_lang.php b/src/application/language/english/translations_lang.php index 219d9a8c..478d05b7 100644 --- a/src/application/language/english/translations_lang.php +++ b/src/application/language/english/translations_lang.php @@ -268,4 +268,5 @@ $lang['select_google_calendar'] = 'Select Google Calendar'; $lang['select_google_calendar_prompt'] = 'Select the calendar that you want to sync your appointments. If you do not want to select a specific calendar the default one will be used.'; $lang['google_calendar_selected'] = 'Google calendar has been successfully selected!'; $lang['oops_something_went_wrong'] = 'Oops! Something Went Wrong!'; -$lang['could_not_add_to_google_calendar'] = 'Your appointment could not be added to your Google Calendar account.'; \ No newline at end of file +$lang['could_not_add_to_google_calendar'] = 'Your appointment could not be added to your Google Calendar account.'; +$lang['ea_update_success'] = 'Easy!Appointments has been successfully updated!'; \ No newline at end of file diff --git a/src/application/language/german/translations_lang.php b/src/application/language/german/translations_lang.php index afa4d826..409aadbb 100644 --- a/src/application/language/german/translations_lang.php +++ b/src/application/language/german/translations_lang.php @@ -268,4 +268,5 @@ $lang['select_google_calendar'] = 'Wählen Sie Google Kalender'; $lang['select_google_calendar_prompt'] = 'Wählen Sie den Kalender, den Sie Ihre Termine synchronisieren möchten. Wenn Sie nicht wollen, um einen bestimmten Kalender wählen den Standard, verwendet.'; $lang['google_calendar_selected'] = 'Google-Kalender ausgewählt wurde erfolgreich!'; $lang['oops_something_went_wrong'] = 'Oops! Etwas ist schiefgelaufen!'; -$lang['could_not_add_to_google_calendar'] = 'Ihr Termin konnte nicht in den Google-Kalender-Konto hinzugefügt werden.'; \ No newline at end of file +$lang['could_not_add_to_google_calendar'] = 'Ihr Termin konnte nicht in den Google-Kalender-Konto hinzugefügt werden.'; +$lang['ea_update_success'] = 'Easy!Appointments wurde erfolgreich aktualisiert!'; \ No newline at end of file diff --git a/src/application/language/greek/translations_lang.php b/src/application/language/greek/translations_lang.php index 64187d7b..c29b582c 100644 --- a/src/application/language/greek/translations_lang.php +++ b/src/application/language/greek/translations_lang.php @@ -268,4 +268,5 @@ $lang['select_google_calendar'] = 'Επιλογή Ημερολογίου της $lang['select_google_calendar_prompt'] = 'Επιλέξτε το ημερολόγιο στο οποίο θέλετε να συγχρονίζεται τα ραντεβού σας. Εάν δεν θελήσετε να επιλέξετε ένα συγκεκριμένο ημερολόγιο θα χρησιμοποιηθεί το προεπιλεγμένο.'; $lang['google_calendar_selected'] = 'Το ημερολόγιο της Google επιλέχθηκε επιτυχώς!'; $lang['oops_something_went_wrong'] = 'Ώχ! Κάτι πήγε στραβά!'; -$lang['could_not_add_to_google_calendar'] = 'Το ραντεβού σας δεν μπόρεσε να προστεθεί στον λογαριασμό σας στο Google Calendar.'; \ No newline at end of file +$lang['could_not_add_to_google_calendar'] = 'Το ραντεβού σας δεν μπόρεσε να προστεθεί στον λογαριασμό σας στο Google Calendar.'; +$lang['ea_update_success'] = 'Το Easy!Appointments ενημερώθηκε με επιτυχία!'; \ No newline at end of file diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index 1eb4e5f4..dfb16c44 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -349,7 +349,7 @@ lang->line('back'); ?>