| 21 |
require_once($mosConfig_absolute_path.'/components/com_content/content.class.php'); |
require_once($mosConfig_absolute_path.'/components/com_content/content.class.php'); |
| 22 |
|
|
| 23 |
// get parameters from the URL or submitted form |
// get parameters from the URL or submitted form |
| 24 |
$section = mosGetParam( $_REQUEST, 'section', 'content' ); |
$section = preg_replace('/[^\w\s\.\-_]/','',mosGetParam( $_REQUEST, 'section', 'content' )); |
| 25 |
$cid = mosGetParam( $_REQUEST, 'cid', array(0) ); |
$cid = mosGetParam( $_REQUEST, 'cid', array(0) ); |
| 26 |
if (!$cid) $id = mosGetParam( $_REQUEST, 'id', 0 ); |
if (!$cid) $id = mosGetParam( $_REQUEST, 'id', 0 ); |
| 27 |
|
|
| 254 |
global $database, $my; |
global $database, $my; |
| 255 |
|
|
| 256 |
$type = mosGetParam( $_REQUEST, 'type', '' ); |
$type = mosGetParam( $_REQUEST, 'type', '' ); |
| 257 |
$redirect = mosGetParam( $_REQUEST, 'section', 'content' ); |
$redirect = preg_replace('/[^\w\s\.\-_]/','',mosGetParam( $_REQUEST, 'section', 'content' )); |
| 258 |
|
|
| 259 |
$row = new mosCategory( $database ); |
$row = new mosCategory( $database ); |
| 260 |
// load the row from the db table |
// load the row from the db table |