コード例 #1
0
ファイル: docs.server.php プロジェクト: kapai69/fl-ru-damp
function GetSectionHTML($id, $num)
{
    $id = null;
    $objResponse = new xajaxResponse();
    if (hasPermissions('docs')) {
        $sections = docs_sections::getSections();
        $page = $_SERVER['DOCUMENT_ROOT'] . '/service/docs/admin_sections.php';
        ob_start();
        include $page;
        $html = ob_get_contents();
        ob_end_clean();
        $objResponse->assign('admin_sections', 'innerHTML', $html);
    }
    return $objResponse;
}
コード例 #2
0
ファイル: index.php プロジェクト: kapai69/fl-ru-damp
                    }
                    if ($error !== false) {
                        $docs = docs::getDocs();
                        $sections = docs_sections::getSections();
                    } else {
                        docs::Update(intval($_POST['dosc_id_f']), $_POST['name'], $_POST['desc'], intval($_POST['section']));
                        foreach ($files_attache as $file) {
                            docs_files::Add(intval($_POST['dosc_id_f']), $file->id, $file->original_name);
                        }
                        header('Location: ' . $_SERVER['REQUEST_URI']);
                    }
                    break;
            }
        } else {
            $docs = docs::getDocs();
            $sections = docs_sections::getSections();
        }
        if (!$docs) {
            $docs = array();
        }
        if (!$sections) {
            $section = array();
        }
        break;
    default:
        include $rpath . '404.php';
        exit;
        break;
}
//===========Доступные страницы===============
//===========Выводим контент==================