No regular expressions were active.
1 |
|
<?
|
|
|
2 |
|
|
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
|
|
5 |
|
*
---------
--------
|
|
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
|
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
|
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
|
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
|
|
10 |
|
*
|
|
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
|
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
|
|
13 |
|
*
|
|
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
|
|
15 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
|
16 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
|
|
17 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Dolphin
,
|
|
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
|
20 |
|
|
|
|
21 |
|
require_on
ce( '[path
_to]inc/he
ader.inc.p
hp' );
|
|
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
b.inc.php'
);
|
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 't
ags.inc.ph
p' );
|
|
|
26 |
|
|
|
|
27 |
|
|
|
|
28 |
|
$sLastPars
eTime = ge
tParam( 't
ags_last_p
arse_time'
); //get
last parsi
ng time
|
|
|
29 |
|
db_res( "U
PDATE `GlP
arams` SET
`VALUE` =
NOW() WHE
RE `NAME`
= 'tags_la
st_parse_t
ime'" ); /
/save last
parsing t
ime
|
|
|
30 |
|
|
|
|
31 |
|
if( (int)$
sLastParse
Time == 0
)
|
|
|
32 |
|
$sLast
ParseTimeT
S = 0;
|
|
|
33 |
|
else
|
|
|
34 |
|
$sLast
ParseTimeT
S = strtot
ime( $sLas
tParseTime
);
|
|
|
35 |
|
|
|
|
36 |
|
$rMembers
= db_res(
"SELECT `I
D`,
`Tags
` AS `Tags
` FROM `Pr
ofiles`
WHERE
`LastModi
fied` >= '
$sLastPars
eTime' OR
`LastReg`
>= '$sLast
ParseTime'
AND `Stat
us` = 'Act
ive'" );
|
|
|
37 |
|
//$rPhotos
= db_res
( "SELECT
`medID` AS
`ID`, `me
dTags` AS
`Tags` FR
OM `shareP
hotoFiles`
WHERE `me
dDate`
>= '$sLa
stParseTim
e' AND `A
pproved` =
'true'" )
;
|
|
|
38 |
|
//$rVideos
= db_res
( "SELECT
`ID`,
`Ta
gs`
FR
OM `RayMov
ieFiles`
WHERE `Da
te`
>= $sLa
stParseTim
eTS AND `A
pproved` =
'true'" )
;
|
|
|
39 |
|
//$rMusics
= db_res
( "SELECT
`ID`,
`Ta
gs`
FR
OM `RayMus
icFiles`
WHERE `Da
te`
>= $sLa
stParseTim
eTS AND `A
pproved` =
'true'" )
;
|
|
|
40 |
|
//$rBlogs
= db_res
( "SELECT
`PostID` A
S `ID`,`Ta
gs`
FR
OM `BlogPo
sts`
WHERE `Po
stDate`
>= '$sLa
stParseTim
e' AND `P
ostStatus`
= 'approv
al'" );
|
|
|
41 |
|
//$rAds
= db_res
( "SELECT
`ID`,
`Ta
gs`
FR
OM `Classi
fiedsAdver
tisements`
WHERE `Da
teTime` >=
'$sLastPa
rseTime' A
ND `status
` = 'activ
e'" );
|
|
|
42 |
|
//$rEvents
= db_res
( "SELECT
`ID`,
`Ta
gs`
FR
OM `SDatin
gEvents`
WHERE `St
atus` = 'A
ctive'" );
|
|
|
43 |
|
|
|
|
44 |
|
|
|
|
45 |
|
$aObjs = a
rray(
|
|
|
46 |
|
'profi
le' => 'rM
embers'
|
|
|
47 |
|
//'pho
to' => '
rPhotos',
|
|
|
48 |
|
//'vid
eo' => '
rVideos',
|
|
|
49 |
|
//'mus
ic' => '
rMusics',
|
|
|
50 |
|
//'blo
g' => '
rBlogs',
|
|
|
51 |
|
//'ad'
=> '
rAds',
|
|
|
52 |
|
//'eve
nt' => '
rEvents'
|
|
|
53 |
|
);
|
|
|
54 |
|
|
|
|
55 |
|
foreach( $
aObjs as $
sType => $
sResource
)
|
|
|
56 |
|
{
|
|
|
57 |
|
//echo
$sResourc
e . ' ' .
$$sResourc
e .'<hr>';
|
|
|
58 |
|
while(
$aObj = m
ysql_fetch
_assoc( $$
sResource
) )
|
|
|
59 |
|
{
|
|
|
60 |
|
st
oreTags( $
aObj['ID']
, $aObj['T
ags'], $sT
ype );
|
|
|
61 |
|
}
|
|
|
62 |
|
}
|
|
|
63 |
|
|
|
|
64 |
|
?>
|
|
|