No regular expressions were active.
1 |
|
<?
|
|
1 |
|
<?
|
2 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
2 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
3 |
|
*
O
rca Intera
ctive Foru
m Script
|
|
3 |
|
*
O
rca Intera
ctive Foru
m Script
|
4 |
|
*
----------
-----
|
|
4 |
|
*
----------
-----
--
|
5 |
|
*
Start
e
d
:
Fr
Nov
10
2006
|
|
5 |
|
*
b
e
gin
:
Fr
Nov
10
2006
|
6 |
|
*
C
opyright
:
(C)
200
7
BoonEx
Group
|
|
6 |
|
*
c
opyright
:
(C)
200
6
BoonEx
Group
|
7 |
|
*
W
ebsite
:
http://www
.boonex.co
m
|
|
7 |
|
*
w
ebsite
:
http://www
.boonex.co
m
/
|
8 |
|
* This fil
e is part
of Orca -
Interactiv
e Forum Sc
ript
|
|
8 |
|
* This fil
e is part
of Orca -
Interactiv
e Forum Sc
ript
|
9 |
|
*
|
|
9 |
|
*
|
10 |
|
*
Orca
is
free
software
;
y
o
u
c
a
n
r
ed
i
s
tribut
e
i
t
and/
o
r
modify
i
t
u
n
d
e
r
|
|
10 |
|
*
Orca
is
free
software
.
This
w
o
rk
is
li
c
e
n
s
ed
under
a
Creat
i
ve
Common
s
At
tribut
i
o
n
3.0
L
i
ce
n
s
e
.
|
11 |
|
* the term
s of the G
NU General
Public Li
cense as p
ublished b
y the
|
|
11 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
12 |
|
* Free Sof
tware Foun
dation; ei
ther versi
on 2 of th
e
|
|
|
13 |
|
* License,
or any la
ter versio
n.
|
|
|
14 |
|
*
|
|
12 |
|
*
|
15 |
|
* Orca is
distribute
d in the h
ope that i
t will be
useful, bu
t WITHOUT
ANY WARRAN
TY;
|
|
13 |
|
* Orca is
distribute
d in the h
ope that i
t will be
useful, bu
t WITHOUT
ANY WARRAN
TY;
|
16 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
14 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
17 |
|
*
See
the
GNU
G
e
n
e
r
al
Pu
b
l
i
c
License
for
more
details.
|
|
15 |
|
*
See
the
Cr
e
ativ
e
Commons
Att
r
i
b
ut
i
on
3.0
License
for
more
details.
|
18 |
|
*
You
should
have
received
a
copy
of
the
GNU
G
e
n
e
r
al
Pu
b
l
i
c
License
along
with
Orca,
|
|
16 |
|
*
You
should
have
received
a
copy
of
the
Cr
e
ativ
e
Commons
Att
r
i
b
ut
i
on
3.0
License
along
with
Orca,
|
19 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
17 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
20 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
18 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
21 |
|
|
|
19 |
|
|
22 |
|
|
|
20 |
|
|
23 |
|
// common
database o
perations
|
|
21 |
|
// common
database o
perations
|
24 |
|
|
|
22 |
|
|
25 |
|
class BxDb
extends M
istake
|
|
23 |
|
class BxDb
extends M
istake
|
26 |
|
{
|
|
24 |
|
{
|
27 |
|
var $h
ost, $port
, $socket,
$dbname,
$user, $pa
ssword, $l
ink;
|
|
25 |
|
var $h
ost, $port
, $socket,
$dbname,
$user, $pa
ssword, $l
ink;
|
28 |
|
var $c
urrent_res
, $current
_arr_type;
|
|
26 |
|
var $c
urrent_res
, $current
_arr_type;
|
29 |
|
|
|
27 |
|
|
30 |
|
/*
|
|
28 |
|
/*
|
31 |
|
*set d
atabase pa
rameters a
nd connect
to it
|
|
29 |
|
*set d
atabase pa
rameters a
nd connect
to it
|
32 |
|
*/
|
|
30 |
|
*/
|
33 |
|
functi
on BxDb($d
bname, $us
er, $passw
ord, $host
= '', $po
rt = '', $
socket = '
')
|
|
31 |
|
functi
on BxDb($d
bname, $us
er, $passw
ord, $host
= '', $po
rt = '', $
socket = '
')
|
34 |
|
{
|
|
32 |
|
{
|
35 |
|
$t
his->host
= $host;
|
|
33 |
|
$t
his->host
= $host;
|
36 |
|
$t
his->port
= $port;
|
|
34 |
|
$t
his->port
= $port;
|
37 |
|
$t
his->socke
t = $socke
t;
|
|
35 |
|
$t
his->socke
t = $socke
t;
|
38 |
|
$t
his->dbnam
e = $dbnam
e;
|
|
36 |
|
$t
his->dbnam
e = $dbnam
e;
|
39 |
|
$t
his->user
= $user;
|
|
37 |
|
$t
his->user
= $user;
|
40 |
|
$t
his->passw
ord = $pas
sword;
|
|
38 |
|
$t
his->passw
ord = $pas
sword;
|
41 |
|
$t
his->curre
nt_arr_typ
e = MYSQL_
ASSOC;
|
|
39 |
|
$t
his->curre
nt_arr_typ
e = MYSQL_
ASSOC;
|
42 |
|
|
|
40 |
|
|
43 |
|
//
connect
to db auto
matically
|
|
41 |
|
//
connect
to db auto
matically
|
44 |
|
$t
his->conne
ct();
|
|
42 |
|
$t
his->conne
ct();
|
45 |
|
}
|
|
43 |
|
}
|
46 |
|
|
|
44 |
|
|
47 |
|
/**
|
|
45 |
|
/**
|
48 |
|
* con
nect to da
tabase wit
h appointe
d paramete
rs
|
|
46 |
|
* con
nect to da
tabase wit
h appointe
d paramete
rs
|
49 |
|
*/
|
|
47 |
|
*/
|
50 |
|
functi
on connect
()
|
|
48 |
|
functi
on connect
()
|
51 |
|
{
|
|
49 |
|
{
|
52 |
|
$f
ull_host =
$this->ho
st;
|
|
50 |
|
$f
ull_host =
$this->ho
st;
|
53 |
|
$f
ull_host .
= $this->p
ort ? ':'.
$this->por
t : '';
|
|
51 |
|
$f
ull_host .
= $this->p
ort ? ':'.
$this->por
t : '';
|
54 |
|
$f
ull_host .
= $this->s
ocket ? ':
'.$this->s
ocket : ''
;
|
|
52 |
|
$f
ull_host .
= $this->s
ocket ? ':
'.$this->s
ocket : ''
;
|
55 |
|
|
|
53 |
|
|
56 |
|
$t
his->link
= @mysql_c
onnect($fu
ll_host, $
this->user
, $this->p
assword) o
r $this->e
rror('Cann
ot connect
to databa
se');
|
|
54 |
|
$t
his->link
= @mysql_c
onnect($fu
ll_host, $
this->user
, $this->p
assword) o
r $this->e
rror('Cann
ot connect
to databa
se');
|
57 |
|
if
(!$this->
link)
|
|
55 |
|
if
(!$this->
link)
|
58 |
|
{
|
|
56 |
|
{
|
59 |
|
echo 'Co
uld not co
nnect to M
ySQL datab
ase. <br /
>Did you p
roperly ed
it <b>inc/
header.inc
.php</b> f
ile ?';
|
|
57 |
|
echo 'Co
uld not co
nnect to M
ySQL datab
ase. <br /
>Did you p
roperly ed
it <b>inc/
header.inc
.php</b> f
ile ?';
|
60 |
|
exit;;
|
|
58 |
|
exit;;
|
61 |
|
}
|
|
59 |
|
}
|
62 |
|
|
|
60 |
|
|
63 |
|
if
(!$this->
select_db(
))
|
|
61 |
|
if
(!$this->
select_db(
))
|
64 |
|
{
|
|
62 |
|
{
|
65 |
|
echo 'Co
uld not se
lect MySQL
database.
<br />Did
you prope
rly edit <
b>inc/head
er.inc.php
</b> file
?';
|
|
63 |
|
echo 'Co
uld not se
lect MySQL
database.
<br />Did
you prope
rly edit <
b>inc/head
er.inc.php
</b> file
?';
|
66 |
|
exit;
|
|
64 |
|
exit;
|
67 |
|
}
|
|
65 |
|
}
|
68 |
|
|
|
66 |
|
|
69 |
|
my
sql_query
("SET NAME
S 'utf8'",
$this->li
nk);
|
|
67 |
|
my
sql_query
("SET NAME
S 'utf8'",
$this->li
nk);
|
70 |
|
}
|
|
68 |
|
}
|
71 |
|
|
|
69 |
|
|
72 |
|
functi
on select_
db()
|
|
70 |
|
functi
on select_
db()
|
73 |
|
{
|
|
71 |
|
{
|
74 |
|
re
turn mysql
_select_db
($this->db
name, $thi
s->link) o
r $this->e
rror('Cann
ot complet
e query (g
etFirstRow
)');
|
|
72 |
|
re
turn mysql
_select_db
($this->db
name, $thi
s->link) o
r $this->e
rror('Cann
ot complet
e query (g
etFirstRow
)');
|
75 |
|
}
|
|
73 |
|
}
|
76 |
|
|
|
74 |
|
|
77 |
|
/**
|
|
75 |
|
/**
|
78 |
|
* clo
se mysql c
onnection
|
|
76 |
|
* clo
se mysql c
onnection
|
79 |
|
*/
|
|
77 |
|
*/
|
80 |
|
functi
on close()
|
|
78 |
|
functi
on close()
|
81 |
|
{
|
|
79 |
|
{
|
82 |
|
my
sql_close(
$this->lin
k);
|
|
80 |
|
my
sql_close(
$this->lin
k);
|
83 |
|
}
|
|
81 |
|
}
|
84 |
|
|
|
82 |
|
|
85 |
|
/**
|
|
83 |
|
/**
|
86 |
|
* exe
cute sql q
uery and r
eturn one
row result
|
|
84 |
|
* exe
cute sql q
uery and r
eturn one
row result
|
87 |
|
*/
|
|
85 |
|
*/
|
88 |
|
functi
on getRow(
$query, $a
rr_type =
MYSQL_ASSO
C)
|
|
86 |
|
functi
on getRow(
$query, $a
rr_type =
MYSQL_ASSO
C)
|
89 |
|
{
|
|
87 |
|
{
|
90 |
|
if
(!$query)
|
|
88 |
|
if
(!$query)
|
91 |
|
return a
rray();
|
|
89 |
|
return a
rray();
|
92 |
|
if
($arr_type
!= MYSQL_
ASSOC && $
arr_type !
= MYSQL_NU
M)
|
|
90 |
|
if
($arr_type
!= MYSQL_
ASSOC && $
arr_type !
= MYSQL_NU
M)
|
93 |
|
$arr_typ
e = MYSQL_
ASSOC;
|
|
91 |
|
$arr_typ
e = MYSQL_
ASSOC;
|
94 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query (ge
tRow)');
|
|
92 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query (ge
tRow)');
|
95 |
|
$a
rr_res = a
rray();
|
|
93 |
|
$a
rr_res = a
rray();
|
96 |
|
if
($res && m
ysql_num_r
ows($res))
|
|
94 |
|
if
($res && m
ysql_num_r
ows($res))
|
|
|
95 |
|
{
|
97 |
|
$arr_res
= mysql_f
etch_array
($res, $ar
r_type);
|
|
96 |
|
$arr_res
= mysql_f
etch_array
($res, $ar
r_type);
|
98 |
|
my
sql_free_r
esult($res
);
|
|
97 |
|
mysql_fr
ee_result(
$res);
|
|
|
98 |
|
}
|
99 |
|
re
turn $arr_
res;
|
|
99 |
|
re
turn $arr_
res;
|
100 |
|
}
|
|
100 |
|
}
|
101 |
|
|
|
101 |
|
|
102 |
|
/**
|
|
102 |
|
/**
|
103 |
|
* exe
cute sql q
uery and r
eturn one
value resu
lt
|
|
103 |
|
* exe
cute sql q
uery and r
eturn one
value resu
lt
|
104 |
|
*/
|
|
104 |
|
*/
|
105 |
|
functi
on getOne(
$query)
|
|
105 |
|
functi
on getOne(
$query)
|
106 |
|
{
|
|
106 |
|
{
|
107 |
|
if
(!$query)
|
|
107 |
|
if
(!$query)
|
108 |
|
return f
alse;
|
|
108 |
|
return f
alse;
|
109 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror("Canno
t complete
query [$q
uery] (get
One)");
|
|
109 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror("Canno
t complete
query [$q
uery] (get
One)");
|
110 |
|
$a
rr_res = a
rray();
|
|
110 |
|
$a
rr_res = a
rray();
|
111 |
|
if
($res && m
ysql_num_r
ows($res))
|
|
111 |
|
if
($res && m
ysql_num_r
ows($res))
|
112 |
|
$arr_res
= mysql_f
etch_array
($res);
|
|
112 |
|
$arr_res
= mysql_f
etch_array
($res);
|
113 |
|
if
(count($ar
r_res))
|
|
113 |
|
if
(count($ar
r_res))
|
114 |
|
return $
arr_res[0]
;
|
|
114 |
|
return $
arr_res[0]
;
|
115 |
|
el
se
|
|
115 |
|
el
se
|
116 |
|
return f
alse;
|
|
116 |
|
return f
alse;
|
117 |
|
}
|
|
117 |
|
}
|
118 |
|
|
|
118 |
|
|
|
|
119 |
|
functi
on getColu
mn($query)
|
|
|
120 |
|
{
|
|
|
121 |
|
if
(!$query)
|
|
|
122 |
|
return a
rray();
|
|
|
123 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query (ge
tRow): <br
/><br />'
.$query.'<
br /><br /
>');
|
|
|
124 |
|
$a
rr_res = a
rray();
|
|
|
125 |
|
if
($res && m
ysql_num_r
ows($res))
|
|
|
126 |
|
{
|
|
|
127 |
|
while ($
aRow = mys
ql_fetch_a
rray($res)
)
|
|
|
128 |
|
$arr
_res[] = $
aRow[0];
|
|
|
129 |
|
mysql_fr
ee_result(
$res);
|
|
|
130 |
|
}
|
|
|
131 |
|
re
turn $arr_
res;
|
|
|
132 |
|
}
|
|
|
133 |
|
|
119 |
|
/**
|
|
134 |
|
/**
|
120 |
|
* exe
cute sql q
uery and r
eturn the
first row
of result
|
|
135 |
|
* exe
cute sql q
uery and r
eturn the
first row
of result
|
121 |
|
* and
keep $arr
ay type an
d poiter t
o all data
|
|
136 |
|
* and
keep $arr
ay type an
d poiter t
o all data
|
122 |
|
*/
|
|
137 |
|
*/
|
123 |
|
functi
on getFirs
tRow($quer
y, $arr_ty
pe = MYSQL
_ASSOC)
|
|
138 |
|
functi
on getFirs
tRow($quer
y, $arr_ty
pe = MYSQL
_ASSOC)
|
124 |
|
{
|
|
139 |
|
{
|
125 |
|
if
(!$query)
|
|
140 |
|
if
(!$query)
|
126 |
|
return a
rray();
|
|
141 |
|
return a
rray();
|
127 |
|
if
($arr_type
!= MYSQL_
ASSOC && $
arr_type !
= MYSQL_NU
M)
|
|
142 |
|
if
($arr_type
!= MYSQL_
ASSOC && $
arr_type !
= MYSQL_NU
M)
|
128 |
|
$this->c
urrent_arr
_type = MY
SQL_ASSOC;
|
|
143 |
|
$this->c
urrent_arr
_type = MY
SQL_ASSOC;
|
129 |
|
el
se
|
|
144 |
|
el
se
|
130 |
|
$this->c
urrent_arr
_type = $a
rr_type;
|
|
145 |
|
$this->c
urrent_arr
_type = $a
rr_type;
|
131 |
|
$t
his->curre
nt_res = m
ysql_query
($query, $
this->link
) or $this
->error('C
annot comp
lete query
(getFirst
Row)');
|
|
146 |
|
$t
his->curre
nt_res = m
ysql_query
($query, $
this->link
) or $this
->error('C
annot comp
lete query
(getFirst
Row)');
|
132 |
|
$a
rr_res = a
rray();
|
|
147 |
|
$a
rr_res = a
rray();
|
133 |
|
if
($this->cu
rrent_res
&& mysql_n
um_rows($t
his->curre
nt_res))
|
|
148 |
|
if
($this->cu
rrent_res
&& mysql_n
um_rows($t
his->curre
nt_res))
|
134 |
|
$arr_res
= mysql_f
etch_array
($this->cu
rrent_res,
$this->cu
rrent_arr_
type);
|
|
149 |
|
$arr_res
= mysql_f
etch_array
($this->cu
rrent_res,
$this->cu
rrent_arr_
type);
|
135 |
|
re
turn $arr_
res;
|
|
150 |
|
re
turn $arr_
res;
|
136 |
|
}
|
|
151 |
|
}
|
137 |
|
|
|
152 |
|
|
138 |
|
/**
|
|
153 |
|
/**
|
139 |
|
* ret
urn next r
ow of poin
ted last g
etFirstRow
calling d
ata
|
|
154 |
|
* ret
urn next r
ow of poin
ted last g
etFirstRow
calling d
ata
|
140 |
|
*/
|
|
155 |
|
*/
|
141 |
|
functi
on getNext
Row()
|
|
156 |
|
functi
on getNext
Row()
|
142 |
|
{
|
|
157 |
|
{
|
143 |
|
$a
rr_res = m
ysql_fetch
_array($th
is->curren
t_res, $th
is->curren
t_arr_type
);
|
|
158 |
|
$a
rr_res = m
ysql_fetch
_array($th
is->curren
t_res, $th
is->curren
t_arr_type
);
|
144 |
|
if
($arr_res)
|
|
159 |
|
if
($arr_res)
|
145 |
|
return $
arr_res;
|
|
160 |
|
return $
arr_res;
|
146 |
|
el
se
|
|
161 |
|
el
se
|
147 |
|
{
|
|
162 |
|
{
|
148 |
|
mysql_fr
ee_result(
$this->cur
rent_res);
|
|
163 |
|
mysql_fr
ee_result(
$this->cur
rent_res);
|
149 |
|
$this->c
urrent_arr
_type = MY
SQL_ASSOC;
|
|
164 |
|
$this->c
urrent_arr
_type = MY
SQL_ASSOC;
|
150 |
|
return a
rray();
|
|
165 |
|
return a
rray();
|
151 |
|
}
|
|
166 |
|
}
|
152 |
|
}
|
|
167 |
|
}
|
153 |
|
|
|
168 |
|
|
154 |
|
/**
|
|
169 |
|
/**
|
155 |
|
* ret
urn number
of affect
ed rows in
current m
ysql resul
t
|
|
170 |
|
* ret
urn number
of affect
ed rows in
current m
ysql resul
t
|
156 |
|
*/
|
|
171 |
|
*/
|
157 |
|
functi
on getNumR
ows($res =
false)
|
|
172 |
|
functi
on getNumR
ows($res =
false)
|
158 |
|
{
|
|
173 |
|
{
|
159 |
|
if
(!$res)
|
|
174 |
|
if
(!$res)
|
160 |
|
$res = @
mysql_num_
rows($this
->current_
res);
|
|
175 |
|
$res = @
mysql_num_
rows($this
->current_
res);
|
161 |
|
|
|
176 |
|
|
162 |
|
if
((int)$res
> 0)
|
|
177 |
|
if
((int)$res
> 0)
|
163 |
|
return (
int)$res;
|
|
178 |
|
return (
int)$res;
|
164 |
|
el
se
|
|
179 |
|
el
se
|
165 |
|
return 0
;
|
|
180 |
|
return 0
;
|
166 |
|
}
|
|
181 |
|
}
|
167 |
|
|
|
182 |
|
|
168 |
|
|
|
183 |
|
|
169 |
|
/**
|
|
184 |
|
/**
|
170 |
|
* exe
cute any q
uery retur
n number o
f rows aff
ected/fals
e
|
|
185 |
|
* exe
cute any q
uery retur
n number o
f rows aff
ected/fals
e
|
171 |
|
*/
|
|
186 |
|
*/
|
172 |
|
functi
on query($
query)
|
|
187 |
|
functi
on query($
query)
|
173 |
|
{
|
|
188 |
|
{
|
174 |
|
if
(!$query)
|
|
189 |
|
if
(!$query)
|
175 |
|
return f
alse;
|
|
190 |
|
return f
alse;
|
176 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query (qu
ery)');
|
|
191 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query (qu
ery)');
|
177 |
|
|
|
192 |
|
|
178 |
|
if
($res)
|
|
193 |
|
if
($res)
|
179 |
|
return m
ysql_affec
ted_rows()
;
|
|
194 |
|
return m
ysql_affec
ted_rows()
;
|
180 |
|
el
se
|
|
195 |
|
el
se
|
181 |
|
return f
alse;
|
|
196 |
|
return f
alse;
|
182 |
|
}
|
|
197 |
|
}
|
183 |
|
|
|
198 |
|
|
184 |
|
/**
|
|
199 |
|
/**
|
185 |
|
* exe
cute sql q
uery and r
eturn tabl
e of recor
ds as resu
lt
|
|
200 |
|
* exe
cute sql q
uery and r
eturn tabl
e of recor
ds as resu
lt
|
186 |
|
*/
|
|
201 |
|
*/
|
187 |
|
functi
on getAll(
$query, $a
rr_type =
MYSQL_ASSO
C)
|
|
202 |
|
functi
on getAll(
$query, $a
rr_type =
MYSQL_ASSO
C)
|
188 |
|
{
|
|
203 |
|
{
|
189 |
|
if
(!$query)
|
|
204 |
|
if
(!$query)
|
190 |
|
return a
rray();
|
|
205 |
|
return a
rray();
|
191 |
|
if
($arr_type
!= MYSQL_
ASSOC && $
arr_type !
= MYSQL_NU
M)
|
|
206 |
|
if
($arr_type
!= MYSQL_
ASSOC && $
arr_type !
= MYSQL_NU
M)
|
192 |
|
$arr_typ
e = MYSQL_
ASSOC;
|
|
207 |
|
$arr_typ
e = MYSQL_
ASSOC;
|
193 |
|
|
|
208 |
|
|
194 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query ['
. $query .
'] (getAl
l) ');
|
|
209 |
|
$r
es = mysql
_query($qu
ery, $this
->link) or
$this->er
ror('Canno
t complete
query ['
. $query .
'] (getAl
l) ');
|
195 |
|
$a
rr_res = a
rray();
|
|
210 |
|
$a
rr_res = a
rray();
|
196 |
|
if
($res)
|
|
211 |
|
if
($res)
|
197 |
|
{
|
|
212 |
|
{
|
198 |
|
while($r
ow = mysql
_fetch_arr
ay($res, $
arr_type))
|
|
213 |
|
while($r
ow = mysql
_fetch_arr
ay($res, $
arr_type))
|
199 |
|
{
|
|
214 |
|
{
|
200 |
|
$arr
_res[] = $
row;
|
|
215 |
|
$arr
_res[] = $
row;
|
201 |
|
}
|
|
216 |
|
}
|
202 |
|
mysql_fr
ee_result(
$res);
|
|
217 |
|
mysql_fr
ee_result(
$res);
|
203 |
|
}
|
|
218 |
|
}
|
204 |
|
re
turn $arr_
res;
|
|
219 |
|
re
turn $arr_
res;
|
205 |
|
}
|
|
220 |
|
}
|
206 |
|
|
|
221 |
|
|
207 |
|
functi
on error($
text)
|
|
222 |
|
functi
on error($
text)
|
208 |
|
{
|
|
223 |
|
{
|
209 |
|
$t
his->log($
text.': '.
mysql_erro
r($this->l
ink));
|
|
224 |
|
$t
his->log($
text.': '.
mysql_erro
r($this->l
ink));
|
210 |
|
}
|
|
225 |
|
}
|
211 |
|
|
|
226 |
|
|
212 |
|
}
|
|
227 |
|
}
|
213 |
|
?>
|
|
228 |
|
?>
|