Changeset 6181 for extensions/autoupdate
- Timestamp:
- May 15, 2010, 2:03:52 PM (15 years ago)
- Location:
- extensions/autoupdate/trunk
- Files:
-
- 3 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/autoupdate/trunk/autoupdate.php
r6168 r6181 1 1 <?php 2 2 3 load_language('plugin.lang', dirname(__FILE__).'/');4 3 include(AUTOUPDATE_PATH.'include/functions.inc.php'); 5 4 include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php'); … … 13 12 */ 14 13 $step = isset($_GET['step']) ? $_GET['step'] : 0; 14 $upgrade_to = isset($_GET['to']) ? $_GET['to'] : ''; 15 15 16 16 // +-----------------------------------------------------------------------+ … … 19 19 if ($step == 0) 20 20 { 21 if (preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches) 22 and @fetchRemote(PHPWG_URL.'/download/all_versions.php', $result) 23 and $all_versions = @explode("\n", $result) 24 and is_array($all_versions)) 21 $template->assign(array( 22 'CHECK_VERSION' => false, 23 'DEV_VERSION' => false, 24 ) 25 ); 26 27 if (preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches)) 25 28 { 26 $template->assign('CHECK_VERSION', true); 29 if (@fetchRemote(PHPWG_URL.'/download/all_versions.php', $result) 30 and $all_versions = @explode("\n", $result) 31 and is_array($all_versions)) 32 { 33 $template->assign('CHECK_VERSION', true); 27 34 28 $last_version = trim($all_versions[0]); 35 $last_version = trim($all_versions[0]); 36 $upgrade_to = $last_version; 29 37 30 if (version_compare(PHPWG_VERSION, $last_version, '<'))31 {32 $new_branch = preg_replace('/(\d+\.\d+)\.\d+/', '$1', $last_version);33 $actual_branch = $matches[1];38 if (version_compare(PHPWG_VERSION, $last_version, '<')) 39 { 40 $new_branch = preg_replace('/(\d+\.\d+)\.\d+/', '$1', $last_version); 41 $actual_branch = $matches[1]; 34 42 35 if ($new_branch == $actual_branch)36 {37 $step = 2;38 }39 else40 {41 $step = 3;43 if ($new_branch == $actual_branch) 44 { 45 $step = 2; 46 } 47 else 48 { 49 $step = 3; 42 50 43 // Check if new version exists in same branch44 foreach ($all_versions as $version)45 {46 $new_branch = preg_replace('/(\d+\.\d+)\.\d+/', '$1', $version);51 // Check if new version exists in same branch 52 foreach ($all_versions as $version) 53 { 54 $new_branch = preg_replace('/(\d+\.\d+)\.\d+/', '$1', $version); 47 55 48 if ($new_branch == $actual_branch) 49 { 50 if (version_compare(PHPWG_VERSION, $version, '<')) 56 if ($new_branch == $actual_branch) 51 57 { 52 $step = 1; 58 if (version_compare(PHPWG_VERSION, $version, '<')) 59 { 60 $step = 1; 61 } 62 break; 53 63 } 54 break;55 64 } 56 65 } … … 60 69 else 61 70 { 62 $template->assign(' CHECK_VERSION', false);71 $template->assign('DEV_VERSION', true); 63 72 } 64 73 } … … 69 78 if ($step == 1) 70 79 { 71 $new_versions = array($last_version, $version); 72 $template->assign('new_versions', $new_versions); 80 $template->assign(array( 81 'MINOR_VERSION' => $version, 82 'MAJOR_VERSION' => $last_version, 83 ) 84 ); 73 85 } 74 86 … … 80 92 if (isset($_POST['submit']) and isset($_POST['upgrade_to'])) 81 93 { 82 upgrade_to($_POST['upgrade_to'], $step);94 autoupdate_upgrade_to($_POST['upgrade_to'], $step); 83 95 } 84 85 $template->assign('UPGRADE_TO', isset($_GET['to']) ? $_GET['to'] : $last_version);86 96 } 87 97 … … 93 103 if (isset($_POST['saveTemplate'])) 94 104 { 95 $path = $conf['local_data_dir'].'/autoupdate'; 96 97 if (@mkgetdir($path) 98 and ($zip = tempnam($path, 'zip')) 99 and ($archive = new pclZip($zip)) 100 and ($v_list = $archive->add(PHPWG_ROOT_PATH.'template', PCLZIP_OPT_REMOVE_PATH, PHPWG_ROOT_PATH)) 101 and is_array($v_list) 102 and !empty($v_list)) 103 { 104 $http_headers = array( 105 'Content-Length: '.@filesize($zip), 106 'Content-Type: application/zip', 107 'Content-Disposition: attachment; filename="template.zip";', 108 'Content-Transfer-Encoding: binary', 109 ); 110 111 foreach ($http_headers as $header) { 112 header($header); 113 } 114 115 @readfile($zip); 116 autoupdate_deltree($conf['local_data_dir'].'/autoupdate'); 117 exit(); 118 } 119 120 array_push($page['errors'], l10n('Unable to send template directory.')); 105 autoupdate_save_template_dir(); 121 106 } 122 107 123 108 if (isset($_POST['dumpDatabase'])) 124 109 { 125 if (version_compare(PHPWG_VERSION, '2.1', '<')) 126 { 127 global $cfgBase; 128 $conf['db_base'] = $cfgBase; 129 } 130 131 include(AUTOUPDATE_PATH.'include/mysqldump.php'); 132 133 $path = $conf['local_data_dir'].'/autoupdate'; 134 135 if (@mkgetdir($path) 136 and ($backupFile = tempnam($path, 'sql')) 137 and ($dumper = new MySQLDump($conf['db_base'],$backupFile,false,false))) 138 { 139 $tablesStructure = array( 140 CATEGORIES_TABLE, 141 COMMENTS_TABLE, 142 CONFIG_TABLE, 143 FAVORITES_TABLE, 144 GROUP_ACCESS_TABLE, 145 GROUPS_TABLE, 146 HISTORY_TABLE, 147 HISTORY_SUMMARY_TABLE, 148 IMAGE_CATEGORY_TABLE, 149 IMAGES_TABLE, 150 SESSIONS_TABLE, 151 SITES_TABLE, 152 USER_ACCESS_TABLE, 153 USER_GROUP_TABLE, 154 USERS_TABLE, 155 USER_INFOS_TABLE, 156 USER_FEED_TABLE, 157 WAITING_TABLE, 158 RATE_TABLE, 159 USER_CACHE_TABLE, 160 USER_CACHE_CATEGORIES_TABLE, 161 CADDIE_TABLE, 162 UPGRADE_TABLE, 163 SEARCH_TABLE, 164 USER_MAIL_NOTIFICATION_TABLE, 165 TAGS_TABLE, 166 IMAGE_TAG_TABLE, 167 PLUGINS_TABLE, 168 OLD_PERMALINKS_TABLE, 169 ); 170 171 $tablesData = $tablesStructure; 172 173 if (!isset($_POST['includeHistory'])) 174 { 175 unset($tablesData[6]); 176 } 177 178 foreach ($tablesStructure as $table) 179 { 180 $dumper->getTableStructure($table); 181 } 182 foreach ($tablesData as $table) 183 { 184 $dumper->getTableData($table); 185 } 186 } 187 188 if (@filesize($backupFile)) 189 { 190 $http_headers = array( 191 'Content-Length: '.@filesize($backupFile), 192 'Content-Type: text/x-sql', 193 'Content-Disposition: attachment; filename="database.sql";', 194 'Content-Transfer-Encoding: binary', 195 ); 196 197 foreach ($http_headers as $header) { 198 header($header); 199 } 200 201 @readfile($backupFile); 202 autoupdate_deltree($conf['local_data_dir'].'/autoupdate'); 203 exit(); 204 } 205 206 array_push($page['errors'], l10n('Unable to dump database.')); 110 autoupdate_dump_database(); 207 111 } 208 112 209 113 if (isset($_POST['submit']) and isset($_POST['upgrade_to'])) 210 114 { 211 upgrade_to($_POST['upgrade_to'], $step);115 autoupdate_upgrade_to($_POST['upgrade_to'], $step); 212 116 } 213 214 $template->assign('UPGRADE_TO', isset($_GET['to']) ? $_GET['to'] : $last_version);215 117 } 216 118 … … 220 122 221 123 $template->assign(array( 222 'STEP' => $step, 223 'AU_URL' => get_admin_plugin_menu_link(AUTOUPDATE_PATH . '/autoupdate.php'), 124 'STEP' => $step, 125 'AU_URL' => get_admin_plugin_menu_link(AUTOUPDATE_PATH . '/autoupdate.php'), 126 'UPGRADE_TO' => $upgrade_to, 127 'RELEASE_URL' => PHPWG_URL.'/releases/'.$upgrade_to, 224 128 ) 225 129 ); -
extensions/autoupdate/trunk/include/functions.inc.php
r6167 r6181 181 181 } 182 182 183 function upgrade_to($upgrade_to, &$step) 183 function autoupdate_save_template_dir() 184 { 185 global $page, $conf; 186 187 $path = $conf['local_data_dir'].'/autoupdate'; 188 189 if (@mkgetdir($path) 190 and ($zip = tempnam($path, 'zip')) 191 and ($archive = new pclZip($zip)) 192 and ($v_list = $archive->add(PHPWG_ROOT_PATH.'template', PCLZIP_OPT_REMOVE_PATH, PHPWG_ROOT_PATH)) 193 and is_array($v_list) 194 and !empty($v_list)) 195 { 196 $http_headers = array( 197 'Content-Length: '.@filesize($zip), 198 'Content-Type: application/zip', 199 'Content-Disposition: attachment; filename="template.zip";', 200 'Content-Transfer-Encoding: binary', 201 ); 202 203 foreach ($http_headers as $header) { 204 header($header); 205 } 206 207 @readfile($zip); 208 autoupdate_deltree($conf['local_data_dir'].'/autoupdate'); 209 exit(); 210 } 211 else 212 { 213 array_push($page['errors'], l10n('Unable to send template directory.')); 214 } 215 } 216 217 function autoupdate_dump_database() 218 { 219 global $page, $conf, $cfgBase; 220 221 if (version_compare(PHPWG_VERSION, '2.1', '<')) 222 { 223 $conf['db_base'] = $cfgBase; 224 } 225 226 include(AUTOUPDATE_PATH.'include/mysqldump.php'); 227 228 $path = $conf['local_data_dir'].'/autoupdate'; 229 230 if (@mkgetdir($path) 231 and ($backupFile = tempnam($path, 'sql')) 232 and ($dumper = new MySQLDump($conf['db_base'],$backupFile,false,false))) 233 { 234 foreach (get_defined_constants() as $constant => $value) 235 { 236 if (preg_match('/_TABLE$/', $constant)) 237 { 238 $dumper->getTableStructure($value); 239 240 if ($constant == 'HISTORY_TABLE' and !isset($_POST['includeHistory'])) 241 { 242 continue; 243 } 244 245 $dumper->getTableData($value); 246 } 247 } 248 } 249 250 if (@filesize($backupFile)) 251 { 252 $http_headers = array( 253 'Content-Length: '.@filesize($backupFile), 254 'Content-Type: text/x-sql', 255 'Content-Disposition: attachment; filename="database.sql";', 256 'Content-Transfer-Encoding: binary', 257 ); 258 259 foreach ($http_headers as $header) { 260 header($header); 261 } 262 263 @readfile($backupFile); 264 autoupdate_deltree($conf['local_data_dir'].'/autoupdate'); 265 exit(); 266 } 267 else 268 { 269 array_push($page['errors'], l10n('Unable to dump database.')); 270 } 271 } 272 273 function autoupdate_upgrade_to($upgrade_to, &$step) 184 274 { 185 275 global $page, $conf, $template; -
extensions/autoupdate/trunk/language/cs_CZ/plugin.lang.php
r5841 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Galerie Piwigo a doplòky jsou aktuální'; 15 15 $lang['Unable to check upgrades...'] = 'Nebylo moné zkontrolovat aktualizace...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo se o to automaticky pokusí pozdìji.';17 16 $lang['Click here to check upgrades now'] = 'Pro kontrolu aktualizací kliknìte zde'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Kontrolují se aktualizace pro galerii Piwigo a pro doplòky...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/de_DE/plugin.lang.php
r4843 r6181 2 2 3 3 $lang['Click here to upgrade automatically'] = 'Klicken Sie hier um automatisch zu aktualisieren'; 4 $lang['autoupdate_alert'] = 'Sind Sie sicher, das Sie automatisch Aktualisieren möchten? 4 $lang['autoupdate_alert'] = 'Sind Sie sicher, das Sie automatisch Aktualisieren möchten?\nWarnung: manuell modifizierte Dateien werden dabei überschrieben!'; 5 5 $lang['autoupdate_success'] = 'Piwigo wurde erfolgreich aktualisiert (version %s)'; 6 6 $lang['autoupdate_fail'] = 'Ein Fehler trat während des Aktualisierens auf.'; … … 14 14 $lang['Gallery and plugins are up to date'] = 'Galerie und Plugins sind aktuell'; 15 15 $lang['Unable to check upgrades...'] = 'Die überprüfung auf Aktualisierungen ist nicht möglich...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo wird es später automatisch noch einmal probieren.';17 16 $lang['Click here to check upgrades now'] = 'Klicken Sie hier um auf Aktualisierungen zu prüfen'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Suche nach Aktualisierungen für die Galerie und Plugins...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/en_UK/plugin.lang.php
r4835 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Gallery and plugins are up to date'; 15 15 $lang['Unable to check upgrades...'] = 'Unable to check upgrades...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo will automaticaly try again later.';17 16 $lang['Click here to check upgrades now'] = 'Click here to check upgrades now'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Checking upgrades for gallery and plugins...'; 24 23 24 $lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 $lang['Two upgrades are available'] = 'Two upgrades are available'; 26 $lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 $lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 $lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 $lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 $lang['First Step'] = 'First Step'; 31 $lang['Second Step'] = 'Second Step'; 32 $lang['Third Step'] = 'Third Step'; 33 $lang['Save Template Directory'] = 'Save template directory'; 34 $lang['Dump Database'] = 'Dump Database'; 35 $lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 $lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 $lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 $lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/es_ES/plugin.lang.php
r5887 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Su galería y sus plugins están actualizados'; 15 15 $lang['Unable to check upgrades...'] = 'Imposible verificar las actualizaciónes...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo intentara automaticamente más tarde.';17 16 $lang['Click here to check upgrades now'] = 'Haga clic aquí para verificar las actualizaciónes'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Comprobación de las actualizaciónes de la galería y los plugins...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/fr_FR/plugin.lang.php
r4835 r6181 22 22 $lang['Checking upgrades for gallery and plugins...'] = 'Vérification des mises à jour de la galerie et des plugins...'; 23 23 24 $lang['Upgrade to Piwigo %s'] = 'Mettre à jour vers Piwigo %s'; 25 $lang['Two upgrades are available'] = 'Deux mises à jour sont disponibles'; 26 $lang['This is a minor upgrade, with only bug corrections.'] = 'Ceci est une mise à jour mineure, avec uniquement des corrections de bugs.'; 27 $lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'Ceci est une mise à jour majeure, qui contient <a href="%s">un tas de nouveautés</a>.'; 28 $lang['Some themes and plugins may be not available yet.'] = 'Certains thèmes ou plugins ne sont peut-être pas encore disponibles.'; 29 $lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'Vous pouvez mettre à jour vers Piwigo %s directement, sans passer par Piwigo %s (recommandé).'; 30 $lang['First Step'] = 'Première étape'; 31 $lang['Second Step'] = 'Deuxième étape'; 32 $lang['Third Step'] = 'Troisième étape'; 33 $lang['Save Template Directory'] = 'Sauvegarder le dossier template'; 34 $lang['Dump Database'] = 'Sauvegarder la base de données'; 35 $lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Inclure les données de l\'historique (Attention: risque de dépassement de la limite mémoire du serveur)'; 36 $lang['Unable to write new local directory.'] = 'Impossible d\'écrire le nouveau dossier local.'; 37 $lang['Unable to send template directory.'] = 'Impossible d\'envoyer le dossier temlate.'; 38 $lang['Unable to dump database.'] = 'Impossible de sauvegarder la base de données.'; 39 24 40 ?> -
extensions/autoupdate/trunk/language/hr_HR/plugin.lang.php
r4845 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Galerija i dodaci su ažurni'; 15 15 $lang['Unable to check upgrades...'] = 'Nemoguće je provjeriti nadogradnje...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo će sam pokušati ponovo kasnije.';17 16 $lang['Click here to check upgrades now'] = 'Kliknite za provjeru nadogradnji sada'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Provjera nadogradnji galerije i dodataka...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/hu_HU/plugin.lang.php
r4837 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'A galéria és a bővitmények a legfrissebbek'; 15 15 $lang['Unable to check upgrades...'] = 'A frissítés ellenőrzése nem lehetséges....'; 16 $lang['Piwigo will automaticaly try again later.'] = 'A Piwigo megkisérli az automatikus frissítést.';17 16 $lang['Click here to check upgrades now'] = 'Kattintson ide a frissítések ellenőrzéséhez'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Galéria és bővítmény frissítések ellenőrzése...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/it_IT/plugin.lang.php
r4835 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'La vostra galleria e i vostri plugins sono aggiorno'; 15 15 $lang['Unable to check upgrades...'] = 'Non è stato possibile verificare gli aggiornamenti...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo riproverà automaticamente più tardi.';17 16 $lang['Click here to check upgrades now'] = 'Cliccare qui per verificare gli aggiornameti ora'; 18 17 … … 23 22 /*TODO*/$lang['Checking upgrades for gallery and plugins...'] = 'Checking upgrades for gallery and plugins...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/ja_JP/plugin.lang.php
r4849 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'ギャラリーおよびプラグインは最新版です。'; 15 15 $lang['Unable to check upgrades...'] = 'アップグレードを確認できません ...'; 16 $lang['Piwigo will automaticaly try again later.'] = '後程、Piwigoは自動的に再試行します。';17 16 $lang['Click here to check upgrades now'] = 'アップグレードするには、ここをクリックしてください。'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'ギャラリーおよびプラグインのアップグレード確認中 ...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/nl_NL/plugin.lang.php
r5558 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Galerie en plugins zijn up to date'; 15 15 $lang['Unable to check upgrades...'] = 'Niet mogelijk om upgrades te controleren...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo zal het automatisch later nog eens proberen.';17 16 $lang['Click here to check upgrades now'] = 'Klik hier om nu naar upgrades te zoeken'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Bezig met het zoeken naar upgrades voor galerie en plugins...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/pl_PL/plugin.lang.php
r4838 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Galeria i wtyczki są aktualne'; 15 15 $lang['Unable to check upgrades...'] = 'Nie można sprawdzić aktualizacji...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo później automatycznie spróbuje jeszcze raz.';17 16 $lang['Click here to check upgrades now'] = 'Kliknij tutaj, aby teraz sprawdzić aktualizacje'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Sprawdzanie aktualizacji dla galerii oraz wtyczek...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/ru_RU/plugin.lang.php
r5512 r6181 14 14 $lang['Gallery and plugins are up to date'] = 'Галерея и плагины обновлены'; 15 15 $lang['Unable to check upgrades...'] = 'Невозможно проверить обновления...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo автоматически попробует еще раз позже.';17 16 $lang['Click here to check upgrades now'] = 'Нажмите сюда, чтобы проверить обновления сейчас'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = 'Проверка обновлений для галереи и плагинов...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/language/zh_CN/plugin.lang.php
r4846 r6181 14 14 $lang['Gallery and plugins are up to date'] = '图库和插件已是最新版'; 15 15 $lang['Unable to check upgrades...'] = '不能检查更新...'; 16 $lang['Piwigo will automaticaly try again later.'] = 'Piwigo 稍后将会自动再次尝试.';17 16 $lang['Click here to check upgrades now'] = '点击此检查更新'; 18 17 … … 23 22 $lang['Checking upgrades for gallery and plugins...'] = '正在检查图库和插件的更新...'; 24 23 24 /*TODO*/$lang['Upgrade to Piwigo %s'] = 'Upgrade to Piwigo %s'; 25 /*TODO*/$lang['Two upgrades are available'] = 'Two upgrades are available'; 26 /*TODO*/$lang['This is a minor upgrade, with only bug corrections.'] = 'This is a minor upgrade, with only bug corrections.'; 27 /*TODO*/$lang['This is a major upgrade, with <a href="%s">new exciting features</a>.'] = 'This is a major upgrade, with <a href="%s">new exciting features</a>.'; 28 /*TODO*/$lang['Some themes and plugins may be not available yet.'] = 'Some themes and plugins may be not available yet.'; 29 /*TODO*/$lang['You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'] = 'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'; 30 /*TODO*/$lang['First Step'] = 'First Step'; 31 /*TODO*/$lang['Second Step'] = 'Second Step'; 32 /*TODO*/$lang['Third Step'] = 'Third Step'; 33 /*TODO*/$lang['Save Template Directory'] = 'Save template directory'; 34 /*TODO*/$lang['Dump Database'] = 'Dump Database'; 35 /*TODO*/$lang['Include history data (Warning: server memory limit may be exceeded)'] = 'Include history data (Warning: server memory limit may be exceeded)'; 36 /*TODO*/$lang['Unable to write new local directory.'] = 'Unable to write new local directory.'; 37 /*TODO*/$lang['Unable to send template directory.'] = 'Unable to send template directory.'; 38 /*TODO*/$lang['Unable to dump database.'] = 'Unable to dump database.'; 39 25 40 ?> -
extensions/autoupdate/trunk/main.inc.php
r6168 r6181 19 19 { 20 20 global $template, $page, $conf, $header_notes, $prefixeTable; 21 22 load_language('plugin.lang', dirname(__FILE__).'/'); 21 23 22 24 if ($page['page'] == 'intro') -
extensions/autoupdate/trunk/plugins_update.php
r6168 r6181 1 1 <?php 2 3 load_language('plugin.lang', dirname(__FILE__).'/');4 2 5 3 function autoupdate_plugins_update_filter($content, &$smarty) -
extensions/autoupdate/trunk/template/autoupdate.tpl
r6167 r6181 1 {html_head} 2 {literal} 3 <style type="text/css"> 4 form { width: 750px; } 5 fieldset { padding-bottom: 30px; } 6 p, form p { text-align: left; margin-left:20px; } 7 li { margin: 5px; } 8 </style> 9 {/literal} 10 {/html_head} 11 1 12 <div class="titrePage"> 2 13 {if $STEP < 2} … … 10 21 {if $CHECK_VERSION} 11 22 <p>{'You are running the latest version of Piwigo.'|@translate}</p> 12 {else} 23 {elseif $DEV_VERSION} 24 <p>{'You are running on development sources, no check possible.'|@translate}</p> 25 {else} 13 26 <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p> 14 27 {/if} … … 16 29 17 30 {if $STEP == 1} 18 < p>{'2 upgrades are available'|@translate}</p>31 <h4>{'Two upgrades are available'|@translate}:</h4> 19 32 <p> 20 33 <ul> 21 <li><a href="{$AU_URL}&step=2&to={$ new_versions.1}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.1}</a>: {'This is a minor upgrade, with only bug corrections'|@translate}</li>22 <li><a href="{$AU_URL}&step=3&to={$ new_versions.0}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.0}</a>: {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$new_versions.0}</li>34 <li><a href="{$AU_URL}&step=2&to={$MINOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MINOR_VERSION}</strong></a>: {'This is a minor upgrade, with only bug corrections.'|@translate}</li> 35 <li><a href="{$AU_URL}&step=3&to={$MAJOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MAJOR_VERSION}</strong></a>: {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li> 23 36 </ul> 24 37 </p> 38 <p>{'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate|@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p> 25 39 {/if} 26 40 27 41 {if $STEP == 2} 42 <p> 43 {'A new version of Piwigo is available.'|@translate}<br> 44 {'This is a minor upgrade, with only bug corrections.'|@translate} 45 </p> 28 46 <form action="" method="post"> 29 <p style="text-align:left; margin-left:20px;"> 30 {'A new version of Piwigo is available.'}<br> 31 {'This is a minor upgrade, with only bug corrections'|@translate} 32 </p> 33 <p> 34 <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"> 35 <input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"> 36 </p> 47 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p> 48 <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> 37 49 </form> 38 50 {/if} 39 51 40 52 {if $STEP == 3} 53 <p> 54 {'A new version of Piwigo is available.'|@translate}<br> 55 {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate} 56 </p> 41 57 <form action="" method="post"> 42 <p style="text-align:left; margin-left:20px;"> 43 {'A new version of Piwigo is available.'}<br> 44 {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$UPGRADE_TO} 45 </p> 46 <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"> 47 <fieldset style="text-align:left;"> 48 <legend>{'Save template directory'|@translate}</legend> 49 <p><input type="submit" name="saveTemplate" value="{'Save template directory'|@translate}"></p> 58 <fieldset> 59 <legend>{'First Step'|@translate}</legend> 60 <p><input type="submit" name="saveTemplate" value="{'Save Template Directory'|@translate}"></p> 50 61 </fieldset> 51 62 <fieldset> 52 <legend>{' Dump Database'|@translate}</legend>53 <p><input type="checkbox" name="includeHistory"> {'Include history table'|@translate}</p>54 <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate |@sprintf:$UPGRADE_TO}"></p>63 <legend>{'Second Step'|@translate}</legend> 64 <p><input type="checkbox" name="includeHistory"> {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p> 65 <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p> 55 66 </fieldset> 56 67 <fieldset> 57 <legend>{' Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</legend>58 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" ></p>68 <legend>{'Third Step'|@translate|@sprintf:$UPGRADE_TO}</legend> 69 <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p> 59 70 </fieldset> 71 <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> 60 72 </form> 61 73 {/if}
Note: See TracChangeset
for help on using the changeset viewer.