Пример #1
0
					ucm.upgrade.check_for_updates();
				});
			} else {
				alert('Upgrade javascript failed to load. Please report this issue to support for assistance.');
			}
		</script>

		<input type="button" name="install_upgrade" value="<?php 
                            _e('Start the Upgrade');
                            ?>
"
		       id="upgrade_start" class="submit_button save_button">
		<?php 
                        } else {
                            // check for any available upgrades on the internet.
                            $available_updates = module_config::check_for_upgrades();
                            if (isset($available_updates['message'])) {
                                echo $available_updates['message'];
                            }
                            if ($available_updates && isset($available_updates['plugins']) && count($available_updates['plugins'])) {
                                $x = 0;
                                $errors = array();
                                ?>

			<form action="" method="post">
				We found <?php 
                                count($available_updates['plugins']);
                                ?>
 available updates! <br>
				<!-- This will upgrade your system from version <?php 
                                echo module_config::current_version();