//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2004 ReloadCMS Development Team // // http://reloadcms.sf.net // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY, without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // // // // This product released under GNU General Public License v2 // //////////////////////////////////////////////////////////////////////////////// rcms_loadAdminLib('articles'); /****************************************************************************** * Extracting some data from request * ******************************************************************************/ $work_dir = articles_get_work_dir($null); if (!empty($work_dir) && $work_dir != ARTICLES_PATH) { rcms_showAdminMessage($lang['results']['articles'][8] . $work_dir); } /****************************************************************************** * Perform adding of category * ******************************************************************************/ if (!empty($_POST['ctitle'])) { $res = articles_creare_category($_POST['ctitle'], @$_POST['cdesc'], @$_FILES['cicon'], @$_POST['caccess'], $work_dir); rcms_showAdminMessage($lang['results']['articles'][$res]); } /****************************************************************************** * Interface * ******************************************************************************/ $frm = new InputForm('', 'post', $lang['general']['submit'], '', 'multipart/form-data', 'mainfrm'); $frm->addbreak($lang['admincp']['articles']['createcat']['full']);
<?php //////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2004 ReloadCMS Development Team // // http://reloadcms.sf.net // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY, without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // // // // This product released under GNU General Public License v2 // //////////////////////////////////////////////////////////////////////////////// $work_dir_suffix = ''; $work_dir = articles_get_work_dir($work_dir_suffix); if (!empty($_GET['catid'])) { $catid =& $_GET['catid']; } elseif (!empty($_POST['catid'])) { $catid =& $_POST['catid']; } else { $catid = 0; } if (!empty($_GET['id'])) { $id =& $_GET['id']; } elseif (!empty($_POST['id'])) { $id =& $_POST['id']; } else { $id = 0; } /********************************************************************************* * Article output * *********************************************************************************/