form_release_key(getStringFromRequest("form_key")); exit_error(_('Error'), $mailingList->getErrorMessage()); } else { $feedback .= _('List Added'); } // // Change status // } elseif (getStringFromPost('change_status') == 'y') { $mailingList = new MailingList($Group, getIntFromGet('group_list_id')); if (!$mailingList || !is_object($mailingList)) { exit_error(_('Error'), _('Error getting the list')); } elseif ($mailingList->isError()) { exit_error(_('Error'), $mailingList->getErrorMessage()); } if (!$mailingList->update(unInputSpecialChars(getStringFromPost('description')), getIntFromPost('is_public', MAIL__MAILING_LIST_IS_PUBLIC))) { exit_error(_('Error'), $mailingList->getErrorMessage()); } else { $feedback .= _('List updated'); } } } // // Form to add list // if (getIntFromGet('add_list')) { mail_header(array('title' => _('Add a Mailing List'))); printf(_('<p>Lists are named in this manner:<br /><strong>projectname-listname@%1$s</strong></p><p>It will take <span class="important">6-24 Hours</span> for your list to be created.</p>'), $GLOBALS['sys_lists_host']); $mlFactory = new MailingListFactory($Group); if (!$mlFactory || !is_object($mlFactory) || $mlFactory->isError()) { exit_error(_('Error'), $mlFactory->getErrorMessage());
*/ require_once 'pre.php'; require_once 'www/admin/admin_utils.php'; require_once '../include/utils.php'; require_once 'common/include/escapingUtils.php'; require_once 'common/trove/TroveCategory.class.php'; $categoryId = getIntFromGet('trove_cat_id'); $category = new TroveCategory($categoryId); if ($category->isError()) { exit_error(_('ERROR'), $category->getErrorMessage()); } $do = getStringFromRequest('do'); switch ($do) { case 'addTranslation': $label = new TroveCategoryLabel($category); $label->create(getStringFromPost('label'), getIntFromPost('language_id')); // TODO : gestion d'erreurs, affichage d'un flag break; case 'removeTranslation': $label = new TroveCategoryLabel($category, getIntFromRequest('label_id')); $label->remove(); // TODO : gestion d'erreurs, affichage d'un flag break; case 'updateCategory': if (!$category->update(getStringFromPost('shortName'), getStringFromPost('fullName'), getStringFromPost('description'))) { echo $category->getErrorMessage(); } break; case 'moveCategory': break; case 'removeCategory':
require_once '../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $gfcommon . 'include/license.php'; require_once $gfwww . 'admin/admin_utils.php'; session_require(array('group' => '1', 'admin_flags' => 'A')); $group_id = getIntFromGet('group_id'); $group =& group_get_object($group_id); if (!$group || !is_object($group)) { exit_error('Error', 'Could Not Get Group'); } elseif ($group->isError()) { exit_error('Error', $group->getErrorMessage()); } if (getStringFromPost('submit')) { $sure = getIntFromPost('sure'); $reallysure = getIntFromPost('reallysure'); $reallyreallysure = getIntFromPost('reallyreallysure'); if (!$group->delete($sure, $reallysure, $reallyreallysure)) { exit_error('Error', $group->getErrorMessage()); } else { plugin_hook('delete_link', $_GET['group_id']); header("Location: " . util_make_url("/admin/?feedback=DELETED")); } } site_admin_header(array('title' => _('Permanently Delete Project'))); echo '<h2>' . _('Permanently and irretrievably delete project') . ': ' . $group->getPublicName() . '</h2>'; ?> <p> <form action="<?php echo getStringFromServer('PHP_SELF') . '?group_id=' . $group_id; ?>
// get the session user if (!$user || !is_object($user)) { echo json_encode(array('message' => _('Invalid User'))); exit; } else { if ($user->isError()) { echo json_encode(array('message' => $user->getErrorMessage())); exit; } else { if (!$user->isActive()) { echo json_encode(array('message' => _('Invalid User : Not active'))); exit; } } } $group_id = getIntFromPost('group_id'); $action = getStringFromPost('action'); error_log('AJAX :' . print_r($_POST, 1)); if (!$group_id) { echo json_encode(array('message' => _('Cannot Process your request : No ID specified'))); exit; } else { $group = group_get_object($group_id); if (!$group) { echo json_encode(array('message' => _('Group is not found'))); exit; } $taskboard = new TaskBoardHtml($group); $allowedActions = array('load_taskboard', 'drop_card', 'update', 'add'); if (in_array($action, $allowedActions)) { include $gfplugins . 'taskboard/www/ajax_' . $action . '.php';