aboutsummaryrefslogtreecommitdiff
path: root/php/inc
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-29 16:07:33 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-29 16:07:33 -0500
commitb167721d5746c0d1791febbb213da0a0aed21aa2 (patch)
treee1c1c0af4b8d937f22b533b6edf0d1eeaf0083e4 /php/inc
parentImport existing bouncer.g.o into git (diff)
downloadbouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.tar.gz
bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.tar.bz2
bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.zip
Modernize the database and mirror libraries
Diffstat (limited to 'php/inc')
-rw-r--r--php/inc/forms/location.php6
-rw-r--r--php/inc/forms/mirror.php3
2 files changed, 4 insertions, 5 deletions
diff --git a/php/inc/forms/location.php b/php/inc/forms/location.php
index 60e35cb..0d48d2d 100644
--- a/php/inc/forms/location.php
+++ b/php/inc/forms/location.php
@@ -6,13 +6,13 @@
*/
echo '<div>';
form_label('Product', 'product','label-small');
-form_select('product_id','product','',mirror_get_products_select(),$posts['product_id']);
+form_select('product_id','product','',Mirror::get_products_select(),$posts['product_id']);
echo ' [<a href="./products.php">edit products</a>]';
echo '</div><br />';
echo '<div>';
form_label('OS', 'os','label-small');
-form_select('os_id','os','',mirror_get_oss_select(),$posts['os_id']);
+form_select('os_id','os','',Mirror::get_oss_select(),$posts['os_id']);
echo ' [<a href="./os.php">edit operating systems</a>]';
echo '</div><br />';
@@ -20,4 +20,4 @@ echo '<div>';
form_label('File Location', 'floc','label-small');
form_text('location_path', 'floc', '', $posts['location_path'], 30, 100);
echo '</div><br />';
-?>
+
diff --git a/php/inc/forms/mirror.php b/php/inc/forms/mirror.php
index c1e7dcb..35a3ed7 100644
--- a/php/inc/forms/mirror.php
+++ b/php/inc/forms/mirror.php
@@ -11,7 +11,7 @@ echo '</div><br />';
echo '<div>';
form_label('Region', 'mregion','label-small');
-form_select('region_id','mregion','',mirror_get_regions_select(),$posts['region_id']);
+form_select('region_id','mregion','',Mirror::get_regions_select(),$posts['region_id']);
echo ' [<a href="./regions.php">edit regions</a>]';
echo '</div><br />';
@@ -24,4 +24,3 @@ echo '<div>';
form_label('Rating', 'mrating','label-small');
form_text('mirror_rating', 'mrating', '', $posts['mirror_rating'], 30, 100);
echo '</div><br />';
-?>