| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo Open Source |
| 4 |
* @subpackage Categories |
* @subpackage Categories |
| 5 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @copyright Refer to copyright.php |
| 6 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 7 |
* |
* |
| 8 |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
| 326 |
$types[] = mosHTML::makeOption( 'contact_category_table', T_('Contact Category Table') ); |
$types[] = mosHTML::makeOption( 'contact_category_table', T_('Contact Category Table') ); |
| 327 |
} else |
} else |
| 328 |
if ($row->section == 'com_newsfeeds') { |
if ($row->section == 'com_newsfeeds') { |
| 329 |
$types[] = mosHTML::makeOption( 'newsfeed_category_table', T_('Newsfeed Category Table') ); |
$types[] = mosHTML::makeOption( 'newsfeed_category_table', T_('News Feed Category Table') ); |
| 330 |
} else |
} else |
| 331 |
if ($row->section == 'com_weblinks') { |
if ($row->section == 'com_weblinks') { |
| 332 |
$types[] = mosHTML::makeOption( 'weblink_category_table', T_('Weblink Category Table') ); |
$types[] = mosHTML::makeOption( 'weblink_category_table', T_('Web Link Category Table') ); |
| 333 |
} else { |
} else { |
| 334 |
$types[] = mosHTML::makeOption( 'content_category', T_('Content Category Table') ); |
$types[] = mosHTML::makeOption( 'content_category', T_('Content Category Table') ); |
| 335 |
$types[] = mosHTML::makeOption( 'content_blog_category', T_('Content Category Blog') ); |
$types[] = mosHTML::makeOption( 'content_blog_category', T_('Content Category Blog') ); |
| 558 |
|
|
| 559 |
$row = new mosCategory( $database ); |
$row = new mosCategory( $database ); |
| 560 |
$row->bind( $_POST ); |
$row->bind( $_POST ); |
| 561 |
|
// sanitize |
| 562 |
|
$row->id = intval($row->id); |
| 563 |
$row->checkin(); |
$row->checkin(); |
| 564 |
mosRedirect( 'index2.php?option=com_categories§ion='. $redirect ); |
mosRedirect( 'index2.php?option=com_categories§ion='. $redirect ); |
| 565 |
} |
} |
| 803 |
|
|
| 804 |
case 'newsfeed_category_table': |
case 'newsfeed_category_table': |
| 805 |
$link = 'index.php?option=com_newsfeeds&catid='. $id; |
$link = 'index.php?option=com_newsfeeds&catid='. $id; |
| 806 |
$menutype = T_('Newsfeed Category Table'); |
$menutype = T_('News Feed Category Table'); |
| 807 |
break; |
break; |
| 808 |
|
|
| 809 |
case 'weblink_category_table': |
case 'weblink_category_table': |
| 810 |
$link = 'index.php?option=com_weblinks&catid='. $id; |
$link = 'index.php?option=com_weblinks&catid='. $id; |
| 811 |
$menutype = T_('Weblink Category Table'); |
$menutype = T_('Web Link Category Table'); |
| 812 |
break; |
break; |
| 813 |
|
|
| 814 |
default:; |
default:; |