'autoupdate', 'value' => 0)); } if ($config["autoupdate"] == 0) return; load_update_manager_lib (); um_db_connect ('mysql', $config['dbhost'], $config['dbuser'], $config['dbpass'], $config['dbname']); $settings = um_db_load_settings (); $user_key = get_user_key ($settings); $package = um_client_check_latest_update ($settings, $user_key); if (is_object ($package)) { echo '
'; echo 'info '; echo __('There\'s a new update for Pandora'); echo '. '; echo __('More info'); echo ''; echo '
'; } } function pandora_update_manager_godmode () { global $config; load_update_manager_lib (); require_once ('update_manager/settings.php'); } if(isset($config['id_user'])) { if (check_acl($config['id_user'], 0, "PM")) { add_operation_menu_option (__('Update manager')); add_godmode_menu_option (__('Update manager settings'), 'PM','gsetup'); add_extension_main_function ('pandora_update_manager_main'); add_extension_godmode_function ('pandora_update_manager_godmode'); add_extension_login_function ('pandora_update_manager_login'); } } pandora_update_manager_install (); $db = NULL; switch ($config['dbtype']) { case 'mysql': pandora_update_manager_install (); break; case 'postgresql': //TODO MAKE THE UPDATE MANAGER FOR POSTGRESQL break; } ?>