예제 #1
0
***************************************************************************/
require_once '../../../inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin.inc.php';
//require_once( BX_DIRECTORY_PATH_MODULES . $aModule['path'] . '/classes/' . $aModule['class_prefix'] . 'Module.php');
bx_import('BxDolModuleDb');
require_once BX_DIRECTORY_PATH_MODULES . 'boonex/blogs/classes/BxBlogsModule.php';
$logged['admin'] = member_auth(1, true, true);
$oModuleDb = new BxDolModuleDb();
$aModule = $oModuleDb->getModuleByUri('blogs');
$oBlogs = new BxBlogsModule($aModule);
$sHeaderValue = $oBlogs->GetHeaderString();
$sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => PageCompBlogs($oBlogs)));
$iNameIndex = 9;
$_page = array('name_index' => $iNameIndex, 'css_name' => array('common.css', 'forms_adv.css', 'blogs_common.css', 'blogs.css'), 'header' => $sHeaderValue, 'header_text' => $sHeaderValue);
$_page_cont[$iNameIndex]['page_main_code'] = $sResult;
PageCodeAdmin();
function PageCompBlogs($oBlogs)
{
    $sCss = $oBlogs->_oTemplate->addCss(array('blogs.css', 'blogs_common.css'), true);
    $sRetHtml = $sCss . $oBlogs->GenCommandForms();
    switch (bx_get('action')) {
        case 'top_blogs':
            $sRetHtml .= $oBlogs->GenBlogLists('top');
            break;
        case 'show_admin_blog':
            $sRetHtml .= $oBlogs->GenMemberBlog(0);
            break;
예제 #2
0
파일: blogs.php 프로젝트: noormcs/studoro
//require_once( BX_DIRECTORY_PATH_MODULES . $aModule['path'] . '/classes/' . $aModule['class_prefix'] . 'Module.php');
require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolModuleDb.php';
require_once BX_DIRECTORY_PATH_MODULES . 'boonex/blogs/classes/BxBlogsModule.php';
// --------------- page variables and login
$_page['name_index'] = 49;
check_logged();
$oModuleDb = new BxDolModuleDb();
$aModule = $oModuleDb->getModuleByUri('blogs');
$oBlogs = new BxBlogsModule($aModule);
$sHeaderValue = $oBlogs->GetHeaderString();
if ('mobile' == bx_get('action')) {
    $oBlogs->GenPostListMobile((int) bx_get('author'), bx_get('mode'));
    exit;
}
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompBlogs($oBlogs);
$oBlogs->_oTemplate->setPageTitle($sHeaderValue);
$oBlogs->_oTemplate->setPageMainBoxTitle($sHeaderValue);
$oBlogs->_oTemplate->addCss(array('blogs.css', 'blogs_common.css'));
function PageCompBlogs($oBlogs)
{
    $sRetHtml = '';
    $sRetHtml .= $oBlogs->GenCommandForms();
    switch (bx_get('action')) {
        case 'top_blogs':
            $sRetHtml .= $oBlogs->GenBlogLists('top');
            break;
        case 'show_admin_blog':
            $sRetHtml .= $oBlogs->GenMemberBlog(0);
            break;
        case 'show_member_blog':
예제 #3
0
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'admin.inc.php';
//require_once( BX_DIRECTORY_PATH_MODULES . $aModule['path'] . '/classes/' . $aModule['class_prefix'] . 'Module.php');
bx_import('BxDolModuleDb');
require_once BX_DIRECTORY_PATH_MODULES . 'boonex/blogs/classes/BxBlogsModule.php';
$logged['admin'] = member_auth(1, true, true);
$oModuleDb = new BxDolModuleDb();
$aModule = $oModuleDb->getModuleByUri('blogs');
$oBlogs = new BxBlogsModule($aModule);
$sHeaderValue = $oBlogs->GetHeaderString();
$iNameIndex = 9;
$_page = array('name_index' => $iNameIndex, 'css_name' => array('common.css', 'forms_adv.css', 'blogs_common.css', 'blogs.css'), 'header' => $sHeaderValue, 'header_text' => $sHeaderValue);
$_page_cont[$iNameIndex]['page_main_code'] = PageCompBlogs($oBlogs);
PageCodeAdmin();
function PageCompBlogs($oBlogs)
{
    $sCss = $oBlogs->_oTemplate->addCss(array('blogs.css', 'blogs_common.css'), true);
    $sRetHtml = $sCss . $oBlogs->GenCommandForms();
    switch (bx_get('action')) {
        case 'top_blogs':
            $sRetHtml .= $oBlogs->GenBlogLists('top');
            break;
        case 'show_admin_blog':
            $sRetHtml .= $oBlogs->GenMemberBlog(0);
            break;
        case 'show_member_blog':
            $sRetHtml .= $oBlogs->GenMemberBlog();
            break;