Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
cheetah
custom_rss
get_rss_feed.php
Go to the documentation of this file.
1
<?
php
2
8
require_once(
'../../../inc/header.inc.php'
);
9
require_once( CH_DIRECTORY_PATH_INC .
'db.inc.php'
);
10
11
$sMemberRSSSQL
=
"SELECT `RSSUrl` FROM `ch_crss_main` WHERE `ID`='"
. (int)
ch_get
(
'ID'
) .
"' AND `Status`='active'"
;
12
$sCont
=
db_value
(
$sMemberRSSSQL
);
13
14
if
( !
$sCont
)
15
exit
;
16
17
$sUrl
=
$sCont
;
18
19
header
(
'Content-Type: text/xml'
);
20
readfile(
$sUrl
);
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition:
URI.MungeResources.txt:10
ch_get
ch_get($sName)
Definition:
utils.inc.php:1664
$sCont
$sCont
Definition:
get_rss_feed.php:36
php
$sMemberRSSSQL
$sMemberRSSSQL
Definition:
get_rss_feed.php:11
exit
exit
Definition:
cart.php:21
$sUrl
$sUrl
Definition:
get_rss_feed.php:43
db_value
db_value($query, $bindings=[], $error_checking=true, $index=0)
Definition:
db.inc.php:98
Generated by
1.8.20