Beispiel #1
0
 function Editor_ContentManage()
 {
     global $act;
     $list = wiki_content_get_list();
     if ($act == 'save') {
         $this->UpdateContentsLookup($list);
     }
     formo('title=Следить за разделами;');
     println('<form action="' . content_url_get_full() . '&act=save" method="post">');
     $this->PrintContents(1, $list);
     settings_form_buttons();
     println('</form>');
     formc();
 }
Beispiel #2
0
        if ($action == 'editroot') {
            include 'editroot.php';
        } else {
            if ($action == 'save') {
                if ($id != 1) {
                    wiki_content_update_received($id);
                } else {
                    $c = wiki_spawn_content(1);
                    $c->security->ReceiveData();
                    $c->Update();
                }
            } else {
                if ($action == 'delete') {
                    wiki_content_delete($id);
                } else {
                    if ($action == 'up') {
                        wiki_content_up($id);
                    } else {
                        if ($action == 'down') {
                            wiki_content_down($id);
                        }
                    }
                }
            }
            $list = wiki_content_get_list();
            include 'list.php';
            /* Print the create form */
            include 'create_form.php';
        }
    }
}