Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/bouncer:master commit in: php/lib/, php/cfg/
Date: Tue, 30 Jan 2018 18:16:22
Message-Id: 1517326413.027ec56ccf00551af10c7c1f3918c6340fdbb956.grknight@gentoo
1 commit: 027ec56ccf00551af10c7c1f3918c6340fdbb956
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 30 15:33:33 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 30 15:33:33 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/bouncer.git/commit/?id=027ec56c
7
8 Restore lists
9
10 php/cfg/init.php | 1 +
11 php/lib/list.php | 26 --------------------------
12 2 files changed, 1 insertion(+), 26 deletions(-)
13
14 diff --git a/php/cfg/init.php b/php/cfg/init.php
15 index 3e8f6fb..80f545f 100644
16 --- a/php/cfg/init.php
17 +++ b/php/cfg/init.php
18 @@ -10,6 +10,7 @@ require_once(LIB.'/csv.php'); // util file for random functions (no SQL here)
19 $start = microtime_float(); // start timer
20 require_once(LIB.'/mirror.php'); // user and admin functions for the mirror app (some SQL)
21 require_once(LIB.'/db.php'); // core mysql wrappers used in mirror functions
22 +require_once(LIB.'/list.php');
23 DB::connect(DBHOST,DBUSER,DBPASS,DBNAME); // open persistent connection to db
24 if (!empty($protect)) {
25 require_once('admin_init.php');
26
27 diff --git a/php/lib/list.php b/php/lib/list.php
28 index 5deb5e9..c7e872b 100644
29 --- a/php/lib/list.php
30 +++ b/php/lib/list.php
31 @@ -363,29 +363,3 @@ function list_edit_ids($name,$form,$q_front,$q_where='1',$dates=null,$datetimes=
32 echo '<p>You must select a record. <a href="javascript:history.back();">Go back</a>.</p>';
33 }
34 }
35 -
36 -/**
37 - * Process a submitted list_edit_ids form.
38 - * @param array $name array of primary ids posted from the form, these are vital to the WHERE clause of the UPDATE statements.
39 - * @param string $table name of table being affected
40 - */
41 -function list_update_ids($name,$table)
42 -{
43 - $keys=array_keys($_POST[$name]);
44 - foreach ($keys as $index)
45 - {
46 - foreach ($_POST as $key=>$val)
47 - {
48 - if ($key!='submit')
49 - {
50 - $posts[$index][$key]=$val[$index];
51 - }
52 - }
53 - }
54 - foreach ($posts as $dataset)
55 - {
56 - $query=db_makeupdate($dataset,$table," WHERE $name='".$dataset[$name]."' ");
57 - db_query($query);
58 - }
59 -}
60 -?>