From 77d4d5d60678206c33b81ca3495e25b9530fc630 Mon Sep 17 00:00:00 2001 From: Logical Arts LLC Date: Sat, 8 Aug 2015 12:13:09 -0700 Subject: [PATCH] Fixes #10 - update process improvements --- Plugin_class.php | 2 +- Settings_class.php | 21 + admin.php | 8 +- functions.php | 5 +- .../language/DataTables/datatables.french.txt | 4 +- includes/language/arabic.php | 13 +- includes/language/bangla.php | 4 +- includes/language/chinese.php | 4 +- includes/language/croatian.php | 4 +- includes/language/czech.php | 4 +- includes/language/danish.php | 4 +- includes/language/dutch.php | 4 +- includes/language/english.php | 14 +- includes/language/french.php | 181 +-- includes/language/german.php | 4 +- includes/language/italian.php | 4 +- includes/language/portuguese.php | 4 +- includes/language/romanian.php | 4 +- includes/language/spanish.php | 4 +- includes/language/turkish.php | 4 +- index.php | 31 +- install/index.php | 1015 +++++++++-------- 22 files changed, 726 insertions(+), 616 deletions(-) diff --git a/Plugin_class.php b/Plugin_class.php index 214ccca3..88356b3f 100644 --- a/Plugin_class.php +++ b/Plugin_class.php @@ -51,7 +51,7 @@ public function getPluginsList() $curdir = dirname(__FILE__); if ($handle = opendir($curdir . '/plug-ins')) { while (false !== ($file = readdir($handle))) { - if (file != 'index.html' && $file != '.htaccess' && $file != "." && $file != ".." && $file != '.svn' && is_file('plug-ins/' . $file . '/' . $file . '_class.php')) { + if ($file != 'index.html' && $file != '.htaccess' && $file != "." && $file != ".." && $file != '.svn' && is_file('plug-ins/' . $file . '/' . $file . '_class.php')) { array_push($pluginslist, $file); } } diff --git a/Settings_class.php b/Settings_class.php index 6d6e5414..88c59629 100644 --- a/Settings_class.php +++ b/Settings_class.php @@ -172,5 +172,26 @@ public function getUserIdNums() return $result; } + + public static function get_db_version($prefix = '') + { + global $pdo; + if(empty($prefix)) { + $prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLOBALS['CONFIG']['db_prefix']; + } + $query1 = "SHOW TABLES LIKE :table"; + $stmt = $pdo->prepare($query1); + $stmt->execute(array(':table' => $prefix . 'odmsys')); + + if ($stmt->rowCount() > 0) { + $query2 = "SELECT sys_value from {$prefix}odmsys WHERE sys_name='version'"; + $stmt = $pdo->prepare($query2); + $stmt->execute(); + $result_array = $stmt->fetch(); + } + + $db_version = (!empty($result_array['sys_value']) ? $result_array['sys_value'] : 'Unknown'); + return $db_version; + } } } diff --git a/admin.php b/admin.php index 3d58bf2c..07a5fc02 100644 --- a/admin.php +++ b/admin.php @@ -173,13 +173,17 @@ - - + + + diff --git a/functions.php b/functions.php index f8fbf677..c9cd7f34 100644 --- a/functions.php +++ b/functions.php @@ -137,10 +137,7 @@ function draw_header($pageTitle, $lastmessage='') $GLOBALS['smarty']->assign('page_title', $pageTitle); $GLOBALS['smarty']->assign('lastmessage', htmlspecialchars($lastmessage)); display_smarty_template('header.tpl'); - - if (is_dir('install')) { - echo '' . msg('install_folder') . ''; - } + } function draw_error($message) diff --git a/includes/language/DataTables/datatables.french.txt b/includes/language/DataTables/datatables.french.txt index 5eba1259..c09cf09c 100644 --- a/includes/language/DataTables/datatables.french.txt +++ b/includes/language/DataTables/datatables.french.txt @@ -2,7 +2,7 @@ "sProcessing": "Traitement en cours...", "sLengthMenu": "Afficher _MENU_ éléments", "sZeroRecords": "Auncun enregistrement pour cette requête", - "sInfo": "Afficher de _START_ à _END_ éléments sur un total de _TOTAL_ entries", + "sInfo": "Afficher de _START_ à _END_ éléments sur un total de _TOTAL_ entrées", "sInfoEmpty": "Afficher de 0 à 0 éléments sur un total de 0 ", "sInfoFiltered": "(Filtré sur _MAX_ éléments au total)", "sInfoPostFix": "", @@ -11,7 +11,7 @@ "oPaginate": { "sFirst": "Premier", "sPrevious": "Précédent", - "sNext": SuivantNext", + "sNext": "Suivant", "sLast": "Dernier" } } \ No newline at end of file diff --git a/includes/language/arabic.php b/includes/language/arabic.php index fff7247c..ff9cbb9d 100644 --- a/includes/language/arabic.php +++ b/includes/language/arabic.php @@ -24,7 +24,6 @@ //Login $lang['anonymous_link'] = 'انقر هنالعرض الملفات العامة'; $lang['forgotpassword'] = 'تغيير كلمة المرور'; -$lang['install_folder'] = 'Security Notice: If you already installed/updated then you should remove the \'install\' folder before proceeding'; $lang['signup'] = 'إنشاء حساب جديد'; $lang['welcome'] = 'نظام التوثيق الآلي'; $lang['welcome2'] = 'الدخول للنظام'; @@ -374,6 +373,10 @@ $lang['editpage_write'] = 'كتابة'; $lang['editpage_admin'] = 'مسئول'; +// File Permissions Page +$lang['filepermissionspage_edit_department_permissions'] = 'Edit Department Permissions'; +$lang['filepermissionspage_edit_user_permissions'] = 'Edit User Permissions'; + // Delete/Undeleta Admin Page $lang['undeletepage_file_permanently_deleted'] = 'تم حذف الملف بشكل نهائي'; $lang['undeletepage_file_undeleted'] = 'تم إلغاء حذف الملف'; @@ -458,6 +461,9 @@ $lang['userpage_yes'] = 'نعم'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'تحرير نوعية الملف'; $lang['adminpage_edit_settings'] = 'تحرير الاعدادات'; $lang['adminpage_reports'] = 'تقارير'; @@ -485,3 +491,8 @@ //Search Page $lang['searchpage_all_meta'] = 'بحث في الحقول الرئيسية'; + +// Footer +$lang['footer_support'] = 'Support'; +$lang['footer_feedback'] = 'Feedback'; +$lang['footer_bugs'] = 'Bugs'; diff --git a/includes/language/bangla.php b/includes/language/bangla.php index ca16457e..14967342 100644 --- a/includes/language/bangla.php +++ b/includes/language/bangla.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'অজ্ঞাতপরিচয় হিসাবে সার্বজনীন ফাইল দেখতে এখানে ক্লিক করুন'; $lang['forgotpassword'] = 'কূটশব্দ ভুলেছেন?'; -$lang['install_folder'] = 'নিরাপত্তা বিজ্ঞপ্তিঃ ইতিমধ্যেই যদা সংস্থাপন/কিংবা পরিবর্ধন করে থাকেন তাহলে অগ্রসর হওয়ার পূ্র্বেই অবশ্যই \'install\' ফোল্ডারটি মুছে ফেলুন '; $lang['signup'] = 'একাউন্টের জন্য যোগ দিন'; $lang['welcome'] = 'OpenDocMan এ সুস্বাগতম'; $lang['welcome2'] = 'সিস্টেমের শক্তিশালী সংরক্ষণাগার, প্রকাশনা এবং রিভিসন নিয়ন্ত্রণ বৈশিষ্ট্য ব্যবহার করার জন্য প্রবেশ করুন।'; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'হ্যাঁ'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'ফাইলের ধরণ সম্পাদনা'; $lang['adminpage_edit_settings'] = 'নিয়ামক সম্পাদনা'; $lang['adminpage_reports'] = 'প্রতিবেদনসমূহ'; diff --git a/includes/language/chinese.php b/includes/language/chinese.php index 2f9f77e7..64d7d09c 100644 --- a/includes/language/chinese.php +++ b/includes/language/chinese.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = '匿名查看公共文件点这里'; $lang['forgotpassword'] = '忘记密码?'; -$lang['install_folder'] = '安全注意:如果你已完成安装或升级请移除install目录'; $lang['signup'] = '申请账号'; $lang['welcome'] = '欢迎进入OpenDocMan'; $lang['welcome2'] = '登录进来开始使用本系统强大的文档存储,发布和版本控制功能'; @@ -461,6 +460,9 @@ $lang['userpage_yes'] = 'Yes'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Edit file types'; $lang['adminpage_edit_settings'] = 'Edit settings'; $lang['adminpage_reports'] = 'Reports'; diff --git a/includes/language/croatian.php b/includes/language/croatian.php index 2233f353..f907bb11 100644 --- a/includes/language/croatian.php +++ b/includes/language/croatian.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Kliknite ovdje kako biste anonimno gledali javne datoteke'; $lang['forgotpassword'] = 'Zaboravili ste lozinku?'; -$lang['install_folder'] = 'Sigurnosno upozorenje: Ako ste već instalirali/nadogradili program, trebali biste izbrisati \'install\' direktorij prije nego nastavite dalje'; $lang['signup'] = 'Registrirajte račun'; $lang['welcome'] = 'Dobro došli u OpenDocMan.'; $lang['welcome2'] = 'Prijavite se kako biste počeli koristiti moćnu sistemsku pohranu podataka, objavljivanje i kontrolu promjena nad datotekama.'; @@ -461,6 +460,9 @@ $lang['userpage_yes'] = 'Da'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_settings'] = 'Uredi postavke'; $lang['adminpage_edit_filetypes'] = 'Uredi tipove datoteka'; $lang['adminpage_reports'] = 'Izvještaji'; diff --git a/includes/language/czech.php b/includes/language/czech.php index 44c50145..909ff795 100644 --- a/includes/language/czech.php +++ b/includes/language/czech.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Klikněte zde pro prohlížení veřejných souborů'; $lang['forgotpassword'] = 'Zapoměli jste heslo?'; -$lang['install_folder'] = 'Varování: Pokud jste instalovali/updatovali OpenDocMan měli by jste odebrat adresář \'install\' před další prací'; $lang['signup'] = 'Vytvořit účet'; $lang['welcome'] = 'Vítejte ve správě dokumentů'; $lang['welcome2'] = 'Přihlaste se pro použití systému.'; @@ -461,6 +460,9 @@ $lang['userpage_yes'] = 'Ano'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Upravit typy souborů'; $lang['adminpage_edit_settings'] = 'Upravit nastavení'; $lang['adminpage_reports'] = 'Záznamy'; diff --git a/includes/language/danish.php b/includes/language/danish.php index 3225209c..5e3299fe 100644 --- a/includes/language/danish.php +++ b/includes/language/danish.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Klik her for at se offentlige filer anonymt'; $lang['forgotpassword'] = 'Glemt dit password?'; -$lang['install_folder'] = 'Sikkerhedsbesked: Hvis du allerede har installeret/opdateret, så bør du slette folderen \'install\' før du fortsætter'; $lang['signup'] = 'Log ind til en konto'; $lang['welcome'] = 'Velkommen til OpenDocMan'; $lang['welcome2'] = 'Log ind for at begynde med at bruge systemet\'s kraftige lagrings-, publiserings- og revisionskontrolegenskaber.'; @@ -461,6 +460,9 @@ $lang['userpage_yes'] = 'Ja'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Editer filtyper'; $lang['adminpage_edit_settings'] = 'Editer indstillinger'; $lang['adminpage_reports'] = 'Rapporter'; diff --git a/includes/language/dutch.php b/includes/language/dutch.php index f1951511..74587386 100644 --- a/includes/language/dutch.php +++ b/includes/language/dutch.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Klik hier om de bestanden te bekijken waarvoor u niet hoeft in te loggen'; $lang['forgotpassword'] = 'Wachtwoord vergeten?'; -$lang['install_folder'] = 'LET OP: Als u al geïnstalleerd/ge-updated hebt, verwijder dan de map \'install\' voordat u verder gaat'; $lang['signup'] = 'Meld u aan voor een account'; $lang['welcome'] = 'Welkom bij OpenDocMan'; $lang['welcome2'] = 'Log in met uw gebruikersnaam om de krachtige opslag-, versiecontrole- en redactiemogelijkheden van OpenDocMan te benutten.'; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'Yes'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Edit file types'; $lang['adminpage_edit_settings'] = 'Edit settings'; $lang['adminpage_reports'] = 'Reports'; diff --git a/includes/language/english.php b/includes/language/english.php index e1547daa..ecd7ffdb 100644 --- a/includes/language/english.php +++ b/includes/language/english.php @@ -23,12 +23,11 @@ //Login $lang['anonymous_link'] = 'Click here to view public files anonymously'; $lang['forgotpassword'] = 'Forgot your password?'; -$lang['install_folder'] = 'Security Notice: If you already installed/updated then you should remove the \'install\' folder before proceeding'; $lang['signup'] = 'Sign-up for an account'; -$lang['welcome'] = 'Welcome to OpenDocMan'; -$lang['welcome2'] = 'Log in to begin using the system\'s powerful storage, publishing and revision control features.'; -$lang['welcome_anonymous_title'] = 'OpenDocMan Anonymous Page: List All'; -$lang['welcome_anonymous_h1'] = 'OpenDocMan Anonymous Page'; +$lang['welcome'] = 'Welcome.'; +$lang['welcome2'] = 'Log in to begin.'; +$lang['welcome_anonymous_title'] = 'Anonymous Page: List All'; +$lang['welcome_anonymous_h1'] = 'Anonymous Page'; //GLOBAL TERMS $lang['action'] = 'Action'; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'Yes'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Edit file types'; $lang['adminpage_edit_settings'] = 'Edit settings'; $lang['adminpage_reports'] = 'Reports'; @@ -491,4 +493,4 @@ // Footer $lang['footer_support'] = 'Support'; $lang['footer_feedback'] = 'Feedback'; -$lang['footer_bugs'] = 'Bugs'; +$lang['footer_bugs'] = 'Bugs'; \ No newline at end of file diff --git a/includes/language/french.php b/includes/language/french.php index ccfa7225..02f4237e 100644 --- a/includes/language/french.php +++ b/includes/language/french.php @@ -1,6 +1,6 @@ Search page to narrow your results.'; -$lang['message_need_one_department'] = 'Il doit y avoir à minima Un département'; +$lang['message_max_number_of_results'] = 'Il y a trop de réponses merci d\'utiliser la page Rechercher pour affiner vos résultats.'; +$lang['message_need_one_department'] = 'Il doit y avoir à minima un département'; $lang['message_no_author_comments_available'] = 'Pas de commentaires de l\'auteur pour l\'instant'; $lang['message_no_description_available'] = 'Pas de Description disponible'; $lang['message_no_documents_checked_out'] = 'Vous n\'avez actuellement verrouillé aucun document.'; -$lang['message_no_files_found'] = 'Aucun Fichier Trouvé'; +$lang['message_no_files_found'] = 'Aucun Fichier Disponible Actuellement.'; $lang['message_no_information_available'] = 'Pas d\'information disponible'; $lang['message_non_unique_account'] = 'Compte Non-Unique'; $lang['message_non_unique_key'] = 'Clé Non-Unique dans la base de données.'; @@ -316,13 +315,13 @@ $lang['message_the_file_is_too_large_php_ini'] = 'Ce fichier est trop volumineux pour votre serveur php. Vérifiez le fichier de configuration php.ini et modifiez la valeur max upload/post/memory. La taille maximale autorisée est actuellement de: '; $lang['message_there_was_an_error_loggin_you_in'] = 'Une erreur est survenue lors de votre identification. Merci de ré-essayer.'; $lang['message_there_was_an_error_performing_the_action'] = 'Une erreur est survenue lors de l\'exécution de votre requête.'; -$lang['message_the_username_you_entered'] = 'Le nom d\'utilisateur que vous avez fourni n\'est pas enregistré dans notre base. Contactez nous si vous avez oublié votre nom d\'utilisateur.'; +$lang['message_the_username_you_entered'] = "Le nom utilisateur que vous avez fourni est absent de notre base de données.
Contactez nous si vous avez oublié votre nom utilisateur."; $lang['message_this_file_cannot_be_checked_in'] = 'Ce fichier ne peut être déverrouillé'; $lang['message_this_file_cannot_be_uploaded'] = 'Impossible d\'importer correctement ce fichier'; $lang['message_this_operation_cannot_be_done_file'] = 'Cette opération ne peut pas être effectuée sur ce fichier'; $lang['message_this_operation_cannot_be_done_rev'] = 'Cette opération ne peut pas être effectuée sur une révision d\'un fichier'; $lang['message_this_page_requires_root'] = 'Cette page n\'est accessible qu\'au compte administrateur'; -$lang['message_this_site_has_high_security'] = 'Ce site possède un haut niveau de sécurité et nous ne pouvons pas retrouver votre mot de passe pour vous (nous ne les stockons pas). Vous pouvez utiliser le formulaire suivant afin de ré-initialiser votre mot de passe. Saisissez votre nom d\'utilisateur, puis un email vous sera envoyé à l\'adresse enregistrée pour ce compte dans notre base, avec un lien à cliquer afin de réinitialiser votre mot de passe. Ensuite, vous pourrez choisir le mot de passe que vous souhaitez.'; +$lang['message_this_site_has_high_security'] = 'Ce site possède un haut niveau de sécurité et nous ne pouvons pas retrouver votre mot de passe pour vous (nous ne les stockons pas).
Vous pouvez utiliser le formulaire suivant afin de ré-initialiser votre mot de passe.
Saisissez votre nom d\'utilisateur, puis un email vous sera envoyé à l\'adresse enregistrée pour ce compte dans notre base, avec un lien à cliquer afin de réinitialiser votre mot de passe.
Ensuite, vous pourrez choisir le mot de passe que vous souhaitez.'; $lang['message_to_view_your_file'] = 'Afficher le fichier dans une nouvelle fenêtre'; $lang['message_udf_cannot_be_blank'] = 'Le nom CDU (Champ Défini par l\'Utilisateur) ne peut pas être vide'; $lang['message_udf_successfully_added'] = 'Champ Défini par l\'Utilisateur CDU() ajouté avec succès.'; @@ -331,8 +330,8 @@ $lang['message_unable_to_find_file'] = 'Impossible de trouver le fichier demandé'; $lang['message_user_exists'] = 'Ce nom d\'utilisateur existe déjà. Merci de bien vouloir réessayer'; $lang['message_user_successfully_added'] = 'Utilisateur ajouté avec succès'; -$lang['message_user_successfully_deleted'] = 'Ustilisateur supprimé avec succès'; -$lang['message_user_successfully_updated'] = 'Utilisateur mis ç jour avec succès'; +$lang['message_user_successfully_deleted'] = 'Utilisateur supprimé avec succès'; +$lang['message_user_successfully_updated'] = 'Utilisateur mis à jour avec succès'; $lang['message_wrong_file_checkin'] = 'Mauvais Fichier! Merci de déverrouiller le bon fichier.'; $lang['message_you_are_not_administrator'] = 'Vous n\'avez pas les droits Administrateur'; $lang['message_you_did_not_enter_value'] = 'Vous n\'avez saisi aucune valeur!'; @@ -343,16 +342,16 @@ $lang['view'] = $lang['label_view']; // Add File Page -$lang['addpage_forbidden'] = 'Forbidden'; +$lang['addpage_forbidden'] = 'Interdit'; $lang['addpage_none'] = 'Aucun'; -$lang['addpage_view'] = 'View'; -$lang['addpage_read'] = 'Read'; -$lang['addpage_write'] = 'Write'; -$lang['addpage_admin'] = 'Admin'; -$lang['addpage_new_file_added'] = 'A new file has been added'; -$lang['addpage_new'] = 'New'; +$lang['addpage_view'] = 'Visible'; +$lang['addpage_read'] = 'Lecture'; +$lang['addpage_write'] = 'Ecriture'; +$lang['addpage_admin'] = 'Administrer'; +$lang['addpage_new_file_added'] = 'Un nouveau fichier à été ajouté.'; +$lang['addpage_new'] = 'Nouveau'; $lang['addpage_uploader'] = 'Uploader'; -$lang['addpage_file_missing'] = 'Please select a file to upload'; +$lang['addpage_file_missing'] = 'Merci de choisir un fichier à uploader.'; $lang['addpage_permissions'] = 'Permissions'; // Edit File Page @@ -361,20 +360,20 @@ $lang['editpage_of'] = 'sur'; $lang['editpage_selected'] = 'sélectionné'; $lang['editpage_none_selected'] = 'Sélectionner les options'; -$lang['editpage_assign_owner'] = 'Assigné au propriétaire'; -$lang['editpage_assign_department'] = 'Assign au département'; +$lang['editpage_assign_owner'] = 'Propriétaire'; +$lang['editpage_assign_department'] = 'Département'; $lang['editpage_filter'] = 'Filtre:'; $lang['editpage_keyword'] = 'Saisissez les Mots Clés'; -$lang['editpage_forbidden'] = 'Forbidden'; +$lang['editpage_forbidden'] = 'Interdit'; $lang['editpage_none'] = 'Aucun'; -$lang['editpage_view'] = 'View'; -$lang['editpage_read'] = 'Read'; -$lang['editpage_write'] = 'Write'; -$lang['editpage_admin'] = 'Admin'; +$lang['editpage_view'] = 'Visible'; +$lang['editpage_read'] = 'Lecture'; +$lang['editpage_write'] = 'Ecriture'; +$lang['editpage_admin'] = 'Administrer'; // File Permissions Page -$lang['filepermissionspage_edit_department_permissions'] = 'Edit Department Permissions'; -$lang['filepermissionspage_edit_user_permissions'] = 'Edit User Permissions'; +$lang['filepermissionspage_edit_department_permissions'] = 'Editer les Permissions Département'; +$lang['filepermissionspage_edit_user_permissions'] = 'Editer les Permissions Utilisateur'; // Delete/Undeleta Admin Page $lang['undeletepage_file_permanently_deleted'] = 'Ce fichier a été supprimé définitivement'; @@ -394,17 +393,17 @@ // Out Page $lang['outpage_view'] = 'Afficher'; -$lang['outpage_ascending'] = 'Ascending'; -$lang['outpage_descending'] = 'descending'; -$lang['outpage_choose_an_order'] = 'Choose an order'; -$lang['outpage_choose'] = 'Choose'; -$lang['category_option_author'] = 'Author'; -$lang['category_option_department'] = 'Department'; -$lang['category_option_category'] = 'File Category'; -$lang['category_option_default'] = 'Empty'; +$lang['outpage_ascending'] = 'Montant'; +$lang['outpage_descending'] = 'Descendant'; +$lang['outpage_choose_an_order'] = 'Choix du Classement'; +$lang['outpage_choose'] = 'Choix '; +$lang['category_option_author'] = 'Auteur'; +$lang['category_option_department'] = 'Département'; +$lang['category_option_category'] = 'Catégorie de Fichier'; +$lang['category_option_default'] = 'Vide'; // History Page -$lang['historypage_category'] = 'Categorie:'; +$lang['historypage_category'] = 'Catégorie:'; $lang['historypage_file_size'] = 'Taille du fichier:'; $lang['historypage_creation_date'] = 'Date de création:'; $lang['historypage_owner'] = 'Propriétaire:'; @@ -432,9 +431,9 @@ $lang['userpage_button_modify'] = 'Modifier Utilisateur'; $lang['userpage_button_show'] = 'Afficher Utilisateur'; $lang['userpage_button_update'] = 'Mettre à Jour Utilisateur'; -$lang['userpage_can_add'] = 'Can Add Documents'; -$lang['userpage_can_checkin'] = 'Can Check-In Documents'; -$lang['userpage_choose_departments'] = 'Choisir le(s) départment(s)'; +$lang['userpage_can_add'] = 'Peut Ajouter des Documents '; +$lang['userpage_can_checkin'] = 'Peut Valider des Documents '; +$lang['userpage_choose_departments'] = 'Choisir le(s) Département(s)'; $lang['userpage_choose_user'] = 'Sélectionnez Profil Utilisateur à Afficher'; $lang['userpage_confirm_password'] = 'Confirmer le Mot de Passe'; $lang['userpage_department'] = 'Département'; @@ -456,39 +455,43 @@ $lang['userpage_user'] = 'Utilisateur'; $lang['userpage_user_delete'] = 'Choisissez un profil utilisateur à Supprimer'; $lang['userpage_user_info'] = 'Informations sur l\'Utilisateur'; -$lang['userpage_username'] = 'Nom d\'Utilisateur'; +$lang['userpage_username'] = 'Nom d\'utilisateur'; $lang['userpage_yes'] = 'Oui'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Modifier les Types de Fichiers'; $lang['adminpage_edit_settings'] = 'Modifier les Paramètres'; -$lang['adminpage_reports'] = 'Reports'; -$lang['adminpage_access_log'] = 'Access Log'; -$lang['adminpage_reports_file_list'] = 'File List Export'; +$lang['adminpage_reports'] = 'Rapports'; +$lang['adminpage_access_log'] = 'Journal d\'accés'; +$lang['adminpage_reports_file_list'] = 'Exporter la liste des Fichiers'; // Access Log page -$lang['accesslogpage_access_log'] = 'Access Log'; -$lang['accesslogpage_file_added'] = 'File Added'; -$lang['accesslogpage_file_viewed'] = 'File Viewed'; -$lang['accesslogpage_file_downloaded'] = 'File Downloaded'; -$lang['accesslogpage_file_modified'] = 'File Modified'; -$lang['accesslogpage_file_checked_in'] = 'File Checked-in'; -$lang['accesslogpage_file_checked_out'] = 'File Checked-out'; -$lang['accesslogpage_file_deleted'] = 'File Deleted'; -$lang['accesslogpage_file_authorized'] = 'File Authorized'; -$lang['accesslogpage_file_rejected'] = 'File Rejected'; -$lang['accesslogpage_reserved'] = 'Reserved'; +$lang['accesslogpage_access_log'] = 'Journal d\'accés.'; +$lang['accesslogpage_file_added'] = 'Fichier Ajouté'; +$lang['accesslogpage_file_viewed'] = 'Fichier Lu.'; +$lang['accesslogpage_file_downloaded'] = 'Fichier Téléchargé.'; +$lang['accesslogpage_file_modified'] = 'Fichier Modifié.'; +$lang['accesslogpage_file_checked_in'] = 'Fichier Enregistré'; +$lang['accesslogpage_file_checked_out'] = 'Fichier Vérifié'; +$lang['accesslogpage_file_deleted'] = 'Fichier Effacé.'; +$lang['accesslogpage_file_authorized'] = 'Fichier Autorisé.'; +$lang['accesslogpage_file_rejected'] = 'Fichier Rejeté.'; +$lang['accesslogpage_reserved'] = 'Réservé.'; // Check-in Page -$lang['checkinpage_file_was_checked_in'] = 'A file has been checked in.'; +$lang['checkinpage_file_was_checked_in'] = 'Un fichier a été enregistré.'; //Category View Page -$lang['categoryviewpage_list_of_files_title'] = 'Files assigned to this category:'; +$lang['categoryviewpage_list_of_files_title'] = 'Fichiers assignée à cette catégorie:'; //Search Page -$lang['searchpage_all_meta'] = 'All non-udf metadata'; +$lang['searchpage_all_meta'] = 'Toutes les Méta-donnés'; // Footer $lang['footer_support'] = 'Support'; -$lang['footer_feedback'] = 'Feedback'; +$lang['footer_feedback'] = 'Rapport'; $lang['footer_bugs'] = 'Bugs'; + diff --git a/includes/language/german.php b/includes/language/german.php index 57f8028a..18fdb88f 100644 --- a/includes/language/german.php +++ b/includes/language/german.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Freie Vorschau der öffentlichen Dokumente'; $lang['forgotpassword'] = 'Kennwort vergessen?'; -$lang['install_folder'] = 'Sicherheitswarnung: Nach dem Abschluß der Installation / Aktualisierung bitte vor der weiteren Benutzung den Ordner \'install\' entfernen.'; $lang['signup'] = 'Konto registrieren'; $lang['welcome'] = 'Willkommen bei OpenDocMan'; $lang['welcome2'] = ''; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'Ja'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Einstellungen der Dateitypen anpassen'; $lang['adminpage_edit_settings'] = 'Einstellungen anpassen'; $lang['adminpage_reports'] = 'Auswertungen'; diff --git a/includes/language/italian.php b/includes/language/italian.php index 1fefbcdb..a1f080e0 100644 --- a/includes/language/italian.php +++ b/includes/language/italian.php @@ -23,7 +23,6 @@ // Login $lang['anonymous_link'] = 'Clicca qui per visualizzare i file pubblici in modo anonimo'; $lang['forgotpassword'] = 'Password dimenticata?'; -$lang['install_folder'] = 'Avviso di sicurezza: se hai già installato/aggiornato dovresti rimuovere la cartella \'install\' prima di procedere'; $lang['signup'] = 'Registrati per un nuovo account'; $lang['welcome'] = 'Benvenuto in OpenDocMan'; $lang['welcome2'] = 'Accedi per iniziare ad usare i potenti strumenti di archiviazione, revisione e pubblicazione del sistema'; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'Sì'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Modifica i tipi di file'; $lang['adminpage_edit_settings'] = 'Modifica le impostazioni'; $lang['adminpage_reports'] = 'Report'; diff --git a/includes/language/portuguese.php b/includes/language/portuguese.php index 322bf641..2aa45f92 100644 --- a/includes/language/portuguese.php +++ b/includes/language/portuguese.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Clique aqui para ler arquivos públicos anonimamente'; $lang['forgotpassword'] = 'Esqueceu-se da palavra-passe?'; -$lang['install_folder'] = 'Nota de segurança: Se você já instalou / atualizou então você deve remover a pasta \'install\' antes de prosseguir'; $lang['signup'] = 'Entre com uma conta'; $lang['welcome'] = 'Bem vindo ao opendocman'; $lang['welcome2'] = 'Entre para começar a usar o sistema com recursos poderosos de armazenamento, edição e controle de revisão.'; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'Sim'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Editar tipos de arquivo'; $lang['adminpage_edit_settings'] = 'Editar configurações'; $lang['adminpage_reports'] = 'Relatórios'; diff --git a/includes/language/romanian.php b/includes/language/romanian.php index bc84566d..3821181d 100644 --- a/includes/language/romanian.php +++ b/includes/language/romanian.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Apasati aici pentru a vizualiza fisierele publice in mod anonim'; $lang['forgotpassword'] = 'Ati uitat parola?'; -$lang['install_folder'] = 'Atentionare de securitate: Daca ati instalat/actualizat deja atunci trebuie sa eliminati folderul \'install\' innainte de a continua'; $lang['signup'] = 'Creati un cont'; $lang['welcome'] = 'Bun venit la Sistemul de Management al Documentelor OpenDocMan'; $lang['welcome2'] = 'Conectati-va pentru a incepe utilizarea sistemului.'; @@ -460,6 +459,9 @@ $lang['userpage_yes'] = 'Da'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Modificare tipuri fisiere'; $lang['adminpage_edit_settings'] = 'Modificare setari sistem'; $lang['adminpage_reports'] = 'Rapoarte'; diff --git a/includes/language/spanish.php b/includes/language/spanish.php index e3222616..3c5dae24 100644 --- a/includes/language/spanish.php +++ b/includes/language/spanish.php @@ -23,7 +23,6 @@ //Login $lang['anonymous_link'] = 'Click para ver Documentos Públicos'; $lang['forgotpassword'] = 'Olvidó su Contraseńa?'; -$lang['install_folder'] = 'Advertencia: Si usted ha instalando/actualizando debería eliminar el directorio \'install\' antes de continuar'; $lang['signup'] = 'Registrarse como usuario'; $lang['welcome'] = 'Bienvenido a OpenDocMan'; $lang['welcome2'] = 'Debe autenticarse para comenzar a utilizar esta herramienta de almacenamiento, publicación y control de versiones'; @@ -459,6 +458,9 @@ $lang['userpage_yes'] = 'Sí'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Editar Tipo de Documentos'; $lang['adminpage_edit_settings'] = 'Editar Configuración'; $lang['adminpage_reports'] = 'Reportes'; diff --git a/includes/language/turkish.php b/includes/language/turkish.php index 68d480c6..cbda4b57 100644 --- a/includes/language/turkish.php +++ b/includes/language/turkish.php @@ -41,7 +41,6 @@ //Login $lang['anonymous_link'] = 'Anonim dosyaları görmek için buraya tıklayınız.'; $lang['forgotpassword'] = 'Forgot your password?'; -$lang['install_folder'] = 'Security Notice: If you already installed/updated then you should remove the \'install\' folder before proceeding'; $lang['signup'] = 'Sign-up for an account'; $lang['welcome'] = "OpenDocMan'a hoşgeldiniz"; $lang['welcome2'] = "Güçlü depolama, yayınlama ve uyarlama kontrol özellikli sistemi kullanmak için oturum açınız."; @@ -483,6 +482,9 @@ $lang['userpage_yes'] = 'Yes'; // Admin Page +$lang['adminpage_about_section_title'] = 'About'; +$lang['adminpage_about_section_app_version'] = 'App Version'; +$lang['adminpage_about_section_db_version'] = 'Database Version'; $lang['adminpage_edit_filetypes'] = 'Edit file types'; $lang['adminpage_edit_settings'] = 'Edit settings'; $lang['adminpage_reports'] = 'Reports'; diff --git a/index.php b/index.php index aba3b2c2..dce96fd9 100644 --- a/index.php +++ b/index.php @@ -36,8 +36,13 @@ } // A config file doesn't exist ?> - - Looks like this is a new installation because we did not find a config.php file. We need to create a config.php file now:

Create a Configuration File

+ + + + + Looks like this is a new installation because we did not find a config.php file or we cannot locate the + database. We need to create a config.php file now:

Create a + Configuration File

" . msg('message_datadir_problem'). ""; + echo "" . msg('message_datadir_problem') . ""; exit; } @@ -124,7 +129,7 @@ // Run the plugin API callPluginMethod('onAfterLogin'); - + // redirect to main page if (isset($_REQUEST['redirection'])) { redirect_visitor($_REQUEST['redirection']); @@ -138,15 +143,15 @@ // Call the plugin API callPluginMethod('onFailedLogin'); - + header('Location: error.php?ec=0'); } -} elseif (!isset($_POST['login']) && $GLOBALS['CONFIG']['authen'] =='mysql') { +} elseif (!isset($_POST['login']) && $GLOBALS['CONFIG']['authen'] == 'mysql') { $redirection = (isset($_REQUEST['redirection']) ? $_REQUEST['redirection'] : ''); - + $GLOBALS['smarty']->assign('redirection', $redirection); display_smarty_template('login.tpl'); } else { echo 'Check your config'; } - draw_footer(); +draw_footer(); diff --git a/install/index.php b/install/index.php index 70136f8b..c3d05215 100644 --- a/install/index.php +++ b/install/index.php @@ -20,27 +20,38 @@ // Sanity check. if (false) { ?> - - - - - Error: PHP is not running - - -

OpenDocMan

-

Error: PHP is not running

-

OpenDocMan requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.

- - - + + + + Error: PHP is not running + + +

OpenDocMan

+ +

Error: PHP is not running

+ +

OpenDocMan requires that your web server is running PHP. Your server does not have PHP installed, or PHP is + turned off.

+ + + Looks like the file 'config.php' already exists. If you need to re-install, please delete it or rename it first. You may then try again.

"; - exit; + include('../odm-load.php'); + include_once('../version.php'); + $db_version = Settings::get_db_version($GLOBALS['CONFIG']['db_prefix']); + if ($db_version == REQUIRED_VERSION) { + echo "

Looks like you don't need to update anything. If you need to re-install, please delete your config.php file first. You may then try again.

"; + exit; + } } // Search for the config file in parent folder // If not found, redirect to index for install routine @@ -61,499 +72,531 @@ } $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +$_SESSION['db_prefix'] = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLOBALS['CONFIG']['db_prefix']; + ?> - - OpenDocMan Installer - - + + OpenDocMan Installer + + - -
-
- +
+
+ '; - if (!is_writeable('../templates_c')) { - echo 'templates_c folder is Not writeable - Fix and go Back
'; - exit; - } else { - echo 'OK
'; - } - echo '
installing...
'; - // Create database - $query = "CREATE DATABASE IF NOT EXISTS `" . DB_NAME . "`"; - $stmt = $pdo->prepare($query); - $stmt->execute(); - echo 'Database Created
'; - - include('../config.php'); - include_once("odm.php"); - echo 'All Done with installation!

Username: admin

Password (WRITE IT DOWN): ' . $_SESSION['adminpass'] . '


Click HERE to edit your site settings'; - } // End Install - - /** - * Call each version, starting with the oldest. Upgrade from one to the next until done - */ - - function do_update_10() - { - echo 'Updating DB version 1.0...
'; - include("../config.php"); - include("upgrade_10.php"); - echo 'All Done with update! Click HERE to login
'; - } - function do_update_11rc1() - { - echo 'Updating DB version 1.1rc1...
'; - include("../config.php"); - include("upgrade_11rc1.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_11rc2() - { - echo 'Updating DB version 1.1rc2...
'; - include("../config.php"); - include("upgrade_11rc2.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_11() - { - echo 'Updating DB version 1.1...
'; - include("../config.php"); - include("upgrade_11.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_12rc1() - { - echo 'Updating DB version 1.2rc1...
'; - include("../config.php"); - include("upgrade_12rc1.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_12p1() - { - echo 'Updating from DB version 1.2p1...
'; - include("../config.php"); - include("upgrade_12p1.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_12p3() - { - echo 'Updating from DB version 1.2p3...
'; - include("../config.php"); - include("upgrade_12p3.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_124() - { - echo 'Updating from DB version 1.2.4...
'; - include("../config.php"); - include("upgrade_124.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_1252() - { - echo 'Updating from DB version 1.2.5.2...
'; - include("../config.php"); - include("upgrade_1252.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_1256() - { - echo 'Updating from DB version 1.2.5.6...
'; - include("../config.php"); - include("upgrade_1256.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_1257() - { - echo 'Updating from DB version 1.2.5.7...
'; - include("../config.php"); - include("upgrade_1257.php"); - echo 'All Done with update! Click HERE to login
'; - } - function do_update_1261() - { - echo 'Updating from DB version 1.2.6.1...
'; - include("../config.php"); - include("upgrade_1261.php"); - echo 'All Done with update! Click HERE to login
'; - } - function do_update_1262() - { - echo 'Updating from DB version 1.2.6.2...
'; - include("../config.php"); - include("upgrade_1262.php"); - echo 'All Done with update! Click HERE to login
'; - } - function do_update_1263() - { - echo 'Updating from DB version 1.2.6.3...
'; - include("../config.php"); - include("upgrade_1263.php"); - echo 'All Done with update! Click HERE to login
'; - } - function do_update_128() - { - echo 'Updating from DB versions 1.2.8...
'; - include("../config.php"); - include("upgrade_128.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function do_update_129() - { - echo 'Updating from DB versions 1.2.9...
'; - include("../config.php"); - include("upgrade_129.php"); - echo 'All Done with update! Click HERE to login
'; - } - - function print_intro() - { - global $pdo; - include_once('../version.php'); - - $query = "SHOW TABLES LIKE :table"; - $stmt = $pdo->prepare($query); - $stmt->execute(array( - ":table" => $_SESSION['db_prefix'] . 'odmsys' - )); - $result = $stmt->fetchAll(); - - if (count($result) == 0) { - $db_version = 'Unknown'; - } else { - // Ok, db is there. Lets check the db version now - $query2 = "SELECT sys_value from {$_SESSION['db_prefix']}odmsys WHERE sys_name='version'"; - $stmt = $pdo->prepare($query2); - $stmt->execute(); - $result_array = $stmt->fetch(); - $db_version = (!empty($result_array['sys_value']) ? $result_array['sys_value'] : 'Unknown'); - } - ?> -

Welcome to the OpenDocMan Database Installer/Updater Tool

-
-
-
 
- - - -
Installation Instructions (text)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please BACKUP all data and files before proceeding!

- Please choose one from the following based on your current version.

- Note: If you are updating and your current version # is lower than the newest upgrade listed below then you have
- database updates to perform.

-
Your current DB version:

1) New Installation

New installation of the v release of OpenDocMan (Will wipe any current data!)

Upgrade from version version 1.2.9

or

2) Upgrade your current from a previous version

Upgrade from DB version 1.2.8

Upgrade from DB version 1.2.6.3

Upgrade from DB version 1.2.6.2

Upgrade from DB version 1.2.6.1

Upgrade from DB version 1.2.5.7

Upgrade from DB version 1.2.5.6

Upgrade from DB version 1.2.5.2

Upgrade from DB version 1.2.4

Upgrade from DB version 1.2p3

Upgrade from DB version 1.2p1

Upgrade from DB version 1.2rc(x)

Upgrade from DB version 1.1

Upgrade from DB version 1.1rc2

Upgrade from DB version 1.1rc1

Upgrade from DB version 1.0

- '; + if (!is_writeable('../templates_c')) { + echo 'templates_c folder is Not writeable - Fix and go Back
'; + exit; + } else { + echo 'OK
'; + } + echo '
installing...
'; + // Create database + $query = "CREATE DATABASE IF NOT EXISTS `" . DB_NAME . "`"; + $stmt = $pdo->prepare($query); + $stmt->execute(); + echo 'Database Created
'; + + include('../config.php'); + include_once("odm.php"); + echo 'All Done with installation!

Username: admin

Password (WRITE IT DOWN): ' . $_SESSION['adminpass'] . '


Click HERE to edit your site settings'; + unset($_SESSION['datadir']); + } // End Install + + /** + * Call each version, starting with the oldest. Upgrade from one to the next until done + */ + + function do_update_10() + { + echo 'Updating DB version 1.0...
'; + include("../config.php"); + include("upgrade_10.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_11rc1() + { + echo 'Updating DB version 1.1rc1...
'; + include("../config.php"); + include("upgrade_11rc1.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_11rc2() + { + echo 'Updating DB version 1.1rc2...
'; + include("../config.php"); + include("upgrade_11rc2.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_11() + { + echo 'Updating DB version 1.1...
'; + include("../config.php"); + include("upgrade_11.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_12rc1() + { + echo 'Updating DB version 1.2rc1...
'; + include("../config.php"); + include("upgrade_12rc1.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_12p1() + { + echo 'Updating from DB version 1.2p1...
'; + include("../config.php"); + include("upgrade_12p1.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_12p3() + { + echo 'Updating from DB version 1.2p3...
'; + include("../config.php"); + include("upgrade_12p3.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_124() + { + echo 'Updating from DB version 1.2.4...
'; + include("../config.php"); + include("upgrade_124.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_1252() + { + echo 'Updating from DB version 1.2.5.2...
'; + include("../config.php"); + include("upgrade_1252.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_1256() + { + echo 'Updating from DB version 1.2.5.6...
'; + include("../config.php"); + include("upgrade_1256.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_1257() + { + echo 'Updating from DB version 1.2.5.7...
'; + include("../config.php"); + include("upgrade_1257.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_1261() + { + echo 'Updating from DB version 1.2.6.1...
'; + include("../config.php"); + include("upgrade_1261.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_1262() + { + echo 'Updating from DB version 1.2.6.2...
'; + include("../config.php"); + include("upgrade_1262.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_1263() + { + echo 'Updating from DB version 1.2.6.3...
'; + include("../config.php"); + include("upgrade_1263.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_128() + { + echo 'Updating from DB versions 1.2.8...
'; + include("../config.php"); + include("upgrade_128.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function do_update_129() + { + echo 'Updating from DB versions 1.2.9...
'; + include("../config.php"); + include("upgrade_129.php"); + echo 'All Done with update! Click HERE to login
'; + } + + function get_db_version($db_prefix) + { + return Settings::get_db_version(); + + global $pdo; + $prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLOBALS['CONFIG']['db_prefix']; + $query1 = "SHOW TABLES LIKE :table"; + $stmt = $pdo->prepare($query1); + $stmt->execute(array(':table' => $prefix . 'odmsys')); + + if ($stmt->rowCount() > 0) { + $query2 = "SELECT sys_value from {$prefix}odmsys WHERE sys_name='version'"; + $stmt = $pdo->prepare($query2); + $stmt->execute(); + $result_array = $stmt->fetch(); + } + + $db_version = (!empty($result_array['sys_value']) ? $result_array['sys_value'] : 'Unknown'); + return $db_version; + } + + function print_intro() + { + include_once('../version.php'); + include_once('../Settings_class.php'); + + $prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLOBALS['CONFIG']['db_prefix']; + $db_version = Settings::get_db_version($prefix); + $is_upgrade = ($db_version != REQUIRED_VERSION); + + ?> +

Welcome to the OpenDocMan Database Installer/Updater Tool

+ +
+ + + + +
Installation Instructions (text)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Please BACKUP all data and files before proceeding!

+ Please choose one from the following based on your current version.

+ Note: If you are updating and your current version # is lower than the newest upgrade listed below then you + have database updates to perform.

+
New Installation (Will wipe any current data!)

+ Click HERE To set up database for v release of OpenDocMan

Your current Database schema version:

+ Required Database schema version:

+
Upgrade your current database from a previous version

Upgrade from DB schema version 1.2.9

Upgrade from DB schema version 1.2.8

Upgrade from DB schema version 1.2.6.3

Upgrade from DB schema version 1.2.6.2

Upgrade from DB schema version 1.2.6.1

Upgrade from DB schema version 1.2.5.7

Upgrade from DB schema version 1.2.5.6

Upgrade from DB schema version 1.2.5.2

Upgrade from DB schema version 1.2.4

Upgrade from DB schema version 1.2p3

Upgrade from DB schema version 1.2p1

Upgrade from DB schema version 1.2rc(x)

Upgrade from DB schema version 1.1

Upgrade from DB schema version 1.1rc2

Upgrade from DB schema version 1.1rc1

Upgrade from DB schema version 1.0

+ Nothing to update

+ Click HERE to login
+
+ - +