aboutsummaryrefslogtreecommitdiff
path: root/php/lib
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-30 10:33:33 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-30 10:33:33 -0500
commit027ec56ccf00551af10c7c1f3918c6340fdbb956 (patch)
tree14ab84a79ce7bde91565149ae4aa174a57caff27 /php/lib
parentRevert "Remove the unused php/lib/list.php" (diff)
downloadbouncer-027ec56ccf00551af10c7c1f3918c6340fdbb956.tar.gz
bouncer-027ec56ccf00551af10c7c1f3918c6340fdbb956.tar.bz2
bouncer-027ec56ccf00551af10c7c1f3918c6340fdbb956.zip
Restore lists
Diffstat (limited to 'php/lib')
-rw-r--r--php/lib/list.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/php/lib/list.php b/php/lib/list.php
index 5deb5e9..c7e872b 100644
--- a/php/lib/list.php
+++ b/php/lib/list.php
@@ -363,29 +363,3 @@ function list_edit_ids($name,$form,$q_front,$q_where='1',$dates=null,$datetimes=
echo '<p>You must select a record. <a href="javascript:history.back();">Go back</a>.</p>';
}
}
-
-/**
- * Process a submitted list_edit_ids form.
- * @param array $name array of primary ids posted from the form, these are vital to the WHERE clause of the UPDATE statements.
- * @param string $table name of table being affected
- */
-function list_update_ids($name,$table)
-{
- $keys=array_keys($_POST[$name]);
- foreach ($keys as $index)
- {
- foreach ($_POST as $key=>$val)
- {
- if ($key!='submit')
- {
- $posts[$index][$key]=$val[$index];
- }
- }
- }
- foreach ($posts as $dataset)
- {
- $query=db_makeupdate($dataset,$table," WHERE $name='".$dataset[$name]."' ");
- db_query($query);
- }
-}
-?>