Revision 2a2df02f
Added by sbeaver about 10 years ago
usr/local/www/pkg_mgr_settings.php | ||
---|---|---|
53 | 53 |
} else { |
54 | 54 |
unset($config['system']['altpkgrepo']['enable']); |
55 | 55 |
} |
56 |
|
|
56 | 57 |
write_config(); |
57 | 58 |
} |
58 | 59 |
|
... | ... | |
79 | 80 |
$tab_array[] = array(gettext("Package Settings"), true, "pkg_mgr_settings.php"); |
80 | 81 |
display_top_tabs($tab_array); |
81 | 82 |
|
82 |
print_info_box(gettext("This page allows an alternate package repository to be configured, primarily for temporary use as a testing mechanism.") .
|
|
83 |
gettext("The contents of unofficial packages servers cannot be verified and may contain malicious files.") .
|
|
84 |
gettext("The package server settings should remain at their default values to ensure that verifiable and trusted packages are recevied.") .
|
|
85 |
gettext("A warning is printed on the Dashboard and in the package manager when an unofficial package server is in use."), 'default');
|
|
83 |
print_info_box(gettext('This page allows an alternate package repository to be configured, primarily for temporary use as a testing mechanism.' .
|
|
84 |
'The contents of unofficial packages servers cannot be verified and may contain malicious files.' .
|
|
85 |
'The package server settings should remain at their default values to ensure that verifiable and trusted packages are recevied.' .
|
|
86 |
'A warning is printed on the Dashboard and in the package manager when an unofficial package server is in use.'), 'default');
|
|
86 | 87 |
|
87 | 88 |
require('classes/Form.class.php'); |
88 | 89 |
|
89 | 90 |
$form = new Form(); |
91 |
|
|
90 | 92 |
$section = new Form_Section('Alternate package repository'); |
91 | 93 |
|
92 | 94 |
$section->addInput(new Form_Checkbox( |
... | ... | |
101 | 103 |
'Package Repository URL', |
102 | 104 |
'text', |
103 | 105 |
$curcfg['xmlrpcbaseurl'] ? $curcfg['xmlrpcbaseurl'] : $g[''] |
104 |
))->setHelp(gettext(sprintf("This is where %s will check for packages when the",$g['product_name'])) .
|
|
105 |
'<a href="pkg_mgr.php">' . ' ' . gettext("System: Packages") . ' </a>' . gettext("page is viewed."));
|
|
106 |
))->setHelp(sprintf("This is where %s will check for packages when the",$g['product_name']) .
|
|
107 |
'<a href="pkg_mgr.php">' . ' ' . 'System: Packages' . ' </a>' . 'page is viewed.');
|
|
106 | 108 |
|
107 | 109 |
$form->add($section); |
108 | 110 |
print($form); |
Also available in: Unified diff
Remove unneeded gettext