Пример #1
0
            break;
        default:
            // 'list'
            // Redirect to chapters list
            $redirect_url = $admin_url . '?ctrl=chapters&blog=' . $blog;
            break;
    }
    return $redirect_url;
}
/**
 * Perform action:
 */
switch ($action) {
    case 'new':
        // New action
        $edited_Chapter =& $ChapterCache->new_obj(NULL, $subset_ID);
        $edited_Chapter->blog_ID = $edited_Blog->ID;
        if (isset($edited_parent_Chapter)) {
            $edited_Chapter->parent_ID = $edited_parent_Chapter->ID;
            $edited_Chapter->parent_name = $edited_parent_Chapter->name;
        } else {
            $edited_Chapter->parent_name = T_('Root');
        }
        break;
    case 'move':
        // EXTENSION
        if (!$Settings->get('allow_moving_chapters')) {
            debug_die('Moving of chapters is disabled');
        }
        /* NO BREAK */
    /* NO BREAK */
Пример #2
0
            break;
        default:
            // 'list'
            // Redirect to chapters list
            $redirect_url = $admin_url . '?ctrl=chapters&blog=' . $blog;
            break;
    }
    return $redirect_url;
}
/**
 * Perform action:
 */
switch ($action) {
    case 'new':
        // New action
        $edited_GenericCategory =& $GenericCategoryCache->new_obj(NULL, $subset_ID);
        $edited_GenericCategory->blog_ID = $edited_Blog->ID;
        if (isset($edited_parent_GenericElement)) {
            $edited_GenericCategory->parent_ID = $edited_parent_GenericElement->ID;
            $edited_GenericCategory->parent_name = $edited_parent_GenericElement->name;
        } else {
            $edited_GenericCategory->parent_name = T_('Root');
        }
        break;
    case 'move':
        // EXTENSION
        if (!$Settings->get('allow_moving_chapters')) {
            debug_die('Moving of chapters is disabled');
        }
        /* NO BREAK */
    /* NO BREAK */