Exemple #1
0
    if ($push['titlecss']['u'] == '1') {
        $stylename[2] = 'u one';
    } else {
        $stylename[2] = 'u';
    }
    if ($push['titlecss']['i'] == '1') {
        $stylename[3] = 'one';
    } else {
        $stylename[3] = '';
    }
    if (isset($invokepiece['param']['tagrelate'])) {
        $iftagrelate = 1;
    } else {
        $iftagrelate = 0;
    }
    include areaLoadFrontView($action);
} else {
    InitGP(array('param', 'offset', 'endtime', 'starttime', 'title1', 'title2', 'title3', 'title4', 'titletime'), 'GP');
    $offset = (int) $offset;
    if (isset($invokepiece['param']['tagrelate'])) {
        InitGP(array('tagrelate'));
        $param['tagrelate'] = getTagRelate($tagrelate);
    }
    if ($param['url']) {
        $param['url'] = str_replace('=', '=', $param['url']);
    }
    if (isset($param['image']) && count($_FILES) && $_FILES["uploadpic"]["name"] && $_FILES["uploadpic"]["size"]) {
        $uploadPicUrl = $invokeService->uploadPicture($_FILES, $push['invokepieceid'], $windid);
        $param['image'] = $uploadPicUrl ? $uploadPicUrl : $param['image'];
    }
    $titlecss = $invokeService->pushDataTitleCss($title1, $title2, $title3, $title4, $titletime);
Exemple #2
0
function manageActionView($action)
{
    switch ($action) {
        case 'edit':
        case 'add':
            return areaLoadFrontView('area_manage_edit');
        case 'editconfig':
            return areaLoadFrontView('area_manage_editconfig');
        case 'edittpl':
            return areaLoadFrontView('area_manage_edittpl');
        case 'pushto':
        case 'recommend':
            return areaLoadFrontView('area_manage_pushto');
        case 'success':
            return areaLoadFrontView('area_manage_success');
        default:
            return areaLoadFrontView('area_manage_default');
    }
    return areaLoadFrontView();
}
Exemple #3
0
$levelService = L::loadclass("AreaLevel", 'area');
if (empty($action)) {
    /*门户管理操作*/
    $portalPageService = L::loadClass('portalpageservice', 'area');
    $channelid = $portalPageService->getSignForManage($channelid);
    $invokeService = L::loadClass('invokeservice', 'area');
    $invokeInfo = $invokeService->getInvokeByName($invokename);
    if (!$invokeInfo) {
        echo $levelService->language("area_no_invoke");
    }
    $invokename = trim(strip_tags($invokename));
    $level = $levelService->getAreaLevel($winduid, $channelid, $invokename);
    if ($level) {
        //获取频道名称
        list($title, $baseUrl) = array("模块内容管理-" . $invokeInfo['title'], "mode.php?m=area&q=manage&invokename=" . urlencode($invokename) . "&channelid=" . $channelid);
        require_once areaLoadFrontView('area_dialog');
    } else {
        echo $levelService->language("area_no_level");
    }
    ajax_footer();
} elseif ($action == "pushto") {
    /*内容推送/推荐操作*/
    $level = $levelService->getAreaLevelByUserId($winduid);
    if ($level) {
        list($title, $baseUrl) = array("内容推送或推荐", "mode.php?m=area&q=manage&action=pushto&selid={$selid}");
        require_once areaLoadFrontView('area_dialog');
    } else {
        echo $levelService->language("area_no_pushto");
    }
    ajax_footer();
}
Exemple #4
0
/**
 * 跳转
 *
 * @global string $db_ifjump
 * @param string $URL 跳转url
 * @param string $content 跳转提示信息
 * @param int $statime 几秒后跳转
 * @param bool $forcejump
 */
function refreshto($URL, $content, $statime = 1, $forcejump = false)
{
    if (defined('AJAX')) {
        Showmsg($content);
    }
    global $db_ifjump, $db_htmifopen;
    if (!$forcejump && !($db_ifjump && $statime > 0)) {
        ObHeader($URL);
    } else {
        if ($db_htmifopen && strtolower(substr($URL, 0, 4)) !== 'http') {
            $URL = urlRewrite($URL);
        }
        ob_end_clean();
        global $expires, $db_charset, $tplpath, $fid, $imgpath, $db_obstart, $db_bbsname, $B_url, $forumname, $tpctitle, $db_bbsurl;
        $index_name =& $db_bbsname;
        $index_url =& $B_url;
        ObStart();
        //noizy
        extract(L::style());
        //css file for showmsg
        require L::style('', $skinco, true);
        if ("wind" != $tplpath && file_exists(D_P . 'data/style/' . $tplpath . '_css.htm')) {
            $css_path = D_P . 'data/style/' . $tplpath . '_css.htm';
        } else {
            $css_path = D_P . 'data/style/wind_css.htm';
        }
        //end css file
        $content = getLangInfo('refreshto', $content);
        if (defined('AREA_PAGE') && function_exists('areaLoadFrontView')) {
            require_once areaLoadFrontView('area_manage_refreshto');
        } else {
            require PrintEot('refreshto');
        }
        $output = str_replace(array('<!--<!---->', '<!---->', "\r\n\r\n"), '', ob_get_contents());
        echo ObContents($output);
        exit;
    }
}