2014-06-16 Miguel de Dios <miguel.dedios@artica.es>
* godmode/update_manager/update_manager.setup.php, godmode/update_manager/update_manager.php, include/functions_update_manager.php, include/config_process.php: some changes in the update manager. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10201 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7e7a748116
commit
8f21da56ad
|
@ -1,3 +1,10 @@
|
|||
2014-06-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/update_manager/update_manager.setup.php,
|
||||
godmode/update_manager/update_manager.php,
|
||||
include/functions_update_manager.php, include/config_process.php:
|
||||
some changes in the update manager.
|
||||
|
||||
2014-06-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/setup/license.php: fixed the erased the update extension.
|
||||
|
|
|
@ -24,15 +24,15 @@ $tab = get_parameter('tab', 'online');
|
|||
$buttons = array(
|
||||
'setup' => array(
|
||||
'active' => ($tab == 'setup') ? true : false,
|
||||
'text' => '<a href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager_xxx&tab=setup">' .
|
||||
'text' => '<a href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=setup">' .
|
||||
html_print_image ("images/gm_setup.png", true, array ("title" => __('Options'))) .'</a>'),
|
||||
'offline' => array(
|
||||
'active' => ($tab == 'offline') ? true : false,
|
||||
'text' => '<a href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager_xxx&tab=offline">' .
|
||||
'text' => '<a href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=offline">' .
|
||||
html_print_image ("images/box.disabled.png", true, array ("title" => __('Offline update manager'))) .'</a>'),
|
||||
'online' => array(
|
||||
'active' => ($tab == 'online') ? true : false,
|
||||
'text' => '<a href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager_xxx&tab=online">' .
|
||||
'text' => '<a href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=online">' .
|
||||
html_print_image("images/op_gis.png", true, array ("title" => __('Online update manager'))) .'</a>')
|
||||
);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ if ($action_update_url_update_manager) {
|
|||
__('Unsuccesful Update the url config vars.'));
|
||||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager_xxx&tab=setup">';
|
||||
echo '<form method="post" action="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=setup">';
|
||||
$table = null;
|
||||
$table->width = '98%';
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ if (!isset($config['inventory_changes_blacklist'])) {
|
|||
//NEW UPDATE MANAGER URL
|
||||
if (!isset($config['url_update_manager'])) {
|
||||
config_update_value('url_update_manager',
|
||||
'https://artica.es/integriaupdate4/server.php');
|
||||
'https://artica.es/pandoraupdate51/server.php');
|
||||
}
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
|
|
|
@ -34,13 +34,6 @@ function update_manager_get_config_values() {
|
|||
if (isset($config['current_package']))
|
||||
$current_update = $config['current_package'];
|
||||
|
||||
//TO DO
|
||||
$license = "TESTMIGUEL00B0WAW9BU1QM0RZ2QM0MZ3QN5M41R35S5S1DP";
|
||||
//~ $current_update = 9;
|
||||
//~ $limit_count = 2;
|
||||
$build_version = "140514";
|
||||
$pandora_version = "4.1";
|
||||
//$license = "INTEGRIA-FREE";
|
||||
|
||||
|
||||
return array(
|
||||
|
@ -238,6 +231,10 @@ function update_manager_check_online_free_packages_available() {
|
|||
$http_status = curl_getinfo($curlObj, CURLINFO_HTTP_CODE);
|
||||
curl_close($curlObj);
|
||||
|
||||
//~ html_debug_print("----------", true);
|
||||
//~ html_debug_print($params, true);
|
||||
//~ html_debug_print($http_status, true);
|
||||
//~ html_debug_print($result, true);
|
||||
|
||||
if ($http_status >= 400 && $http_status < 500) {
|
||||
return false;
|
||||
|
@ -281,7 +278,10 @@ function update_manager_check_online_free_packages ($is_ajax=true) {
|
|||
$http_status = curl_getinfo($curlObj, CURLINFO_HTTP_CODE);
|
||||
curl_close($curlObj);
|
||||
|
||||
|
||||
//~ html_debug_print("=============", true);
|
||||
//~ html_debug_print($params, true);
|
||||
//~ html_debug_print($http_status, true);
|
||||
//~ html_debug_print($result, true);
|
||||
|
||||
|
||||
if ($http_status >= 400 && $http_status < 500) {
|
||||
|
|
Loading…
Reference in New Issue