Exemplo n.º 1
0
        viewMessage($cid[0], $option);
        break;
    case "new":
        newMessage($option, NULL, NULL);
        break;
    case "reply":
        newMessage($option, mosGetParam($_REQUEST, 'userid', 0), mosGetParam($_REQUEST, 'subject', ''));
        break;
    case "save":
        saveMessage($option);
        break;
    case "remove":
        removeMessage($cid, $option);
        break;
    case "config":
        editConfig($option);
        break;
    case "saveconfig":
        saveConfig($option);
        break;
    default:
        showMessages($option);
        break;
}
function editConfig($option)
{
    global $database, $my;
    $database->setQuery("SELECT cfg_name, cfg_value FROM #__messages_cfg WHERE user_id='{$my->id}'");
    $data = $database->loadObjectList('cfg_name');
    $vars = array();
    $vars['lock'] = mosHTML::yesnoSelectList("vars[lock]", 'class="inputbox" size="1"', @$data['lock']->cfg_value);
Exemplo n.º 2
0
}
require_once JApplicationHelper::getPath('class');
require_once JApplicationHelper::getPath('admin_html');
$cid = JRequest::getVar('cid', array(0), '', 'array');
JArrayHelper::toInteger($cid, array(0));
$catid = JRequest::getVar('catid', 0);
// Output
HTML_FPSlideShow::showHeader($option, $task);
HTML_FPSlideShow::showNavBar($option, $task);
switch ($task) {
    // CONFIG
    case "save_config":
        saveConfig($option, $mosConfig_absolute_path);
        break;
    case "config":
        editConfig($fpss_config, $option);
        break;
        // CATEGORIES
    // CATEGORIES
    case "cancel_category":
        cancelCategory($option);
        break;
    case "categories":
        showCategories($option);
        break;
    case "new_category":
        editCategory(0, $option);
        break;
    case "edit_category":
        editCategory($cid, $option);
        break;