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 |
|
|
|
|
22 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.inc.
php' );
|
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
|
26 |
|
|
|
|
27 |
|
// -------
-------- p
age variab
les
|
|
|
28 |
|
|
|
|
29 |
|
$_page['na
me_index']
= 21;
|
|
|
30 |
|
$_page['cs
s_name']
= 'new
s_view.css
';
|
|
|
31 |
|
|
|
|
32 |
|
$logged['m
ember'] =
member_aut
h( 0, fals
e );
|
|
|
33 |
|
|
|
|
34 |
|
$_page['he
ader'] = _
t( "_COMPO
SE_NEWS_VI
EW_H" );
|
|
|
35 |
|
$_page['he
ader_text'
] = _t( "_
COMPOSE_NE
WS_VIEW_H1
" );
|
|
|
36 |
|
|
|
|
37 |
|
// -------
-------- p
age compon
ents
|
|
|
38 |
|
|
|
|
39 |
|
$_ni = $_p
age['name_
index'];
|
|
|
40 |
|
|
|
|
41 |
|
$query = "
|
|
|
42 |
|
SELECT
|
|
|
43 |
|
`H
eader`,
|
|
|
44 |
|
`S
nippet`,
|
|
|
45 |
|
`T
ext`,
|
|
|
46 |
|
DA
TE_FORMAT(
`Date`, '$
date_forma
t' ) AS 'D
ate'
|
|
|
47 |
|
FROM `
News`
|
|
|
48 |
|
WHERE
`ID`=".(in
t)$_GET['I
D'];
|
|
|
49 |
|
|
|
|
50 |
|
$news_arr
= db_arr(
$query );
|
|
|
51 |
|
|
|
|
52 |
|
$_page_con
t[$_ni]['n
ews_date']
= $new
s_arr['Dat
e'];
|
|
|
53 |
|
$_page_con
t[$_ni]['n
ews_header
'] = proc
ess_line_o
utput( $ne
ws_arr['He
ader'] );
|
|
|
54 |
|
$_page_con
t[$_ni]['n
ews_text']
= proc
ess_text_w
ithlinks_o
utput( $ne
ws_arr['Te
xt'] );
|
|
|
55 |
|
$_page_con
t[$_ni]['n
ews_snippe
t'] = proc
ess_text_o
utput( $ne
ws_arr['Sn
ippet'] );
|
|
|
56 |
|
|
|
|
57 |
|
// -------
-------- [
END] page
components
|
|
|
58 |
|
|
|
|
59 |
|
PageCode()
;
|
|
|
60 |
|
|
|
|
61 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
|
62 |
|
|
|
|
63 |
|
|
|
|
64 |
|
|
|
|
65 |
|
?>
|
|
|