当前位置: 首页>>代码示例>>PHP>>正文


PHP jieqi_jumppage函数代码示例

本文整理汇总了PHP中jieqi_jumppage函数的典型用法代码示例。如果您正苦于以下问题:PHP jieqi_jumppage函数的具体用法?PHP jieqi_jumppage怎么用?PHP jieqi_jumppage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了jieqi_jumppage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: jieqi_printfail

         $transflag = 0;
         if ($outflag) {
             $jieqiUsers->saveToSession();
             $transflag++;
             if ($inflag) {
                 $transflag++;
             }
         }
         $transfer->setVar('transflag', $transflag);
         $transfer_handler->insert($transfer);
         if (!$outflag) {
             jieqi_printfail($jieqiLang['pay']['trans_out_failure']);
         } elseif (!$inflag) {
             jieqi_printfail($jieqiLang['pay']['trans_in_failure']);
         } else {
             jieqi_jumppage($jieqiModules['pay']['url'] . '/transfer.php', LANG_DO_SUCCESS, $jieqiLang['pay']['trans_success']);
         }
     } else {
         jieqi_printfail($errtext);
     }
     break;
 case 'show':
 default:
     include_once JIEQI_ROOT_PATH . '/header.php';
     include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
     $trans_form = new JieqiThemeForm(sprintf($jieqiLang['pay']['trans_title'], JIEQI_EGOLD_NAME), 'transform', JIEQI_URL . '/transfer.php');
     $trans_form->addElement(new JieqiFormLabel($jieqiLang['pay']['trans_username'], $jieqiUsers->getVar('uname', 's')));
     $defaulttype = 0;
     if ($jieqiConfigs['system']['egoldtransrate'] > 0 && $jieqiConfigs['system']['egoldtransrate'] <= 100) {
         if (empty($defaulttype)) {
             $defaulttype = 1;
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:transfer.php

示例2: jieqi_loadlang

}
require_once '../../../global.php';
jieqi_loadlang('share', JIEQI_MODULE_NAME);
jieqi_getconfigs(JIEQI_MODULE_NAME, 'publisher');
jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
if (!isset($_REQUEST['action'])) {
    $_REQUEST['action'] = '';
}
if ($_REQUEST['action'] == 'login' && isset($_REQUEST['publishid'])) {
    $_REQUEST['publishid'] = intval($_REQUEST['publishid']);
    if (isset($jieqiPublisher[$_REQUEST['publishid']]) && $jieqiPublisher[$_REQUEST['publishid']]['password'] == $_REQUEST['password'] && !empty($_REQUEST['password'])) {
        $_SESSION['jieqiPublishid'] = $_REQUEST['publishid'];
        if (empty($_REQUEST['jumpurl'])) {
            $_REQUEST['jumpurl'] = $jieqiModules['obook']['url'] . '/share/sharestat.php';
        }
        jieqi_jumppage($_REQUEST['jumpurl'], LANG_DO_SUCCESS, $jieqiLang['obook']['share_login_success']);
    } else {
        jieqi_printfail($jieqiLang['obook']['share_login_error']);
    }
} else {
    include_once JIEQI_ROOT_PATH . '/admin/header.php';
    $publishrows = array();
    foreach ($jieqiPublisher as $k => $v) {
        $publishrows[] = array('id' => $k, 'name' => $v['name']);
    }
    $jieqiTpl->assign_by_ref('publishrows', $publishrows);
    if (!empty($_REQUEST['jumpurl'])) {
        $jieqiTpl->assign('url_login', $jieqiModules['obook']['url'] . '/share/sharelogin.php?do=submit&jumpurl=' . urlencode($_REQUEST['jumpurl']));
    } else {
        $jieqiTpl->assign('url_login', $jieqiModules['obook']['url'] . '/share/sharelogin.php?do=submit');
    }
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:sharelogin.php

示例3: define

define('JIEQI_MODULE_NAME', 'system');
require_once '../global.php';
jieqi_checklogin();
if ($jieqiUsersStatus != JIEQI_GROUP_ADMIN) {
    jieqi_printfail(LANG_NEED_ADMIN);
}
//jieqi_getconfigs(JIEQI_MODULE_NAME, 'modules','jieqiModules'); //系统已经载入
jieqi_loadlang('modules', JIEQI_MODULE_NAME);
if (!empty($_REQUEST['dosubmit'])) {
    foreach ($_REQUEST['jieqiModules'] as $k => $v) {
        $jieqiModules[$k] = $v;
    }
    $jieqiModules = $_REQUEST['jieqiModules'];
    //jieqi_setconfigs('modules','jieqiModules',$jieqiModules, JIEQI_MODULE_NAME);
    jieqi_save_modconfig($jieqiModules);
    jieqi_jumppage(JIEQI_URL . '/admin/managemodules.php', LANG_DO_SUCCESS, $jieqiLang['system']['modules_config_saved']);
}
include_once JIEQI_ROOT_PATH . '/admin/header.php';
if (!isset($jieqiModules)) {
    $jieqiModules = array();
}
$fileroot = JIEQI_ROOT_PATH . '/modules';
$handle = opendir($fileroot);
$changeflag = false;
//检测
while (false !== ($file = readdir($handle))) {
    if ($file[0] != '.' && is_dir($fileroot . '/' . $file)) {
        if (!isset($jieqiModules[$file])) {
            $changeflag = true;
            $jieqiModules[$file] = array('caption' => $file, 'dir' => '', 'path' => '', 'url' => '', 'theme' => '', 'publish' => '1');
        }
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:managemodules.php

示例4: jieqi_jumppage

        $paylog->setVar('buyinfo', '');
        $paylog->setVar('moneytype', 0);
        $paylog->setVar('money', $money);
        $paylog->setVar('egoldtype', $usesliver);
        $paylog->setVar('egold', $_REQUEST['egold']);
        $paylog->setVar('paytype', 'manual');
        $paylog->setVar('retserialno', '');
        $paylog->setVar('retaccount', '');
        $paylog->setVar('retinfo', '');
        $paylog->setVar('masterid', $_SESSION['jieqiUserId']);
        $paylog->setVar('mastername', $_SESSION['jieqiUserName']);
        $paylog->setVar('masterinfo', '');
        $paylog->setVar('note', '');
        $paylog->setVar('payflag', 1);
        $paylog_handler->insert($paylog);
        jieqi_jumppage(jieqi_geturl('system', 'user', $uid, 'info'), LANG_DO_SUCCESS, sprintf($jieqiLang['pay']['change_egold_success'], $uname));
        break;
    case 'show':
    default:
        include_once JIEQI_ROOT_PATH . '/admin/header.php';
        $jieqiTpl->assign('url_changeegold', $jieqiModules['pay']['url'] . '/admin/changeegold.php');
        $jieqiTpl->assign('uid', $uid);
        $jieqiTpl->assign('uname', $uname);
        $jieqiTpl->assign('egold', $user->getVar('egold'));
        $jieqiTpl->assign('esliver', $user->getVar('esliver'));
        $jieqiTpl->assign('useesliver', JIEQI_SILVER_USAGE);
        $jieqiTpl->setCaching(0);
        $jieqiTset['jieqi_contents_template'] = $jieqiModules['pay']['path'] . '/templates/admin/changeegold.html';
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
        break;
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:changeegold.php

示例5: jieqi_writefile

     jieqi_writefile(JIEQI_ROOT_PATH . '/configs/article/site_' . $_POST['config'] . '.php', $configstr);
     $siteid = -1;
     reset($jieqiCollectsite);
     while (list($k, $v) = each($jieqiCollectsite)) {
         if ($v['config'] == $_POST['config']) {
             $siteid = $k;
             break;
         }
     }
     if ($siteid >= 0) {
         $jieqiCollectsite[$siteid] = array('name' => $editCollect['sitename'], 'config' => $_POST['config'], 'url' => $editCollect['siteurl'], 'subarticleid' => $editCollect['subarticleid'], 'enable' => '1');
     } else {
         $jieqiCollectsite[] = array('name' => $editCollect['sitename'], 'config' => $_POST['config'], 'url' => $editCollect['siteurl'], 'subarticleid' => $editCollect['subarticleid'], 'enable' => '1');
     }
     jieqi_setconfigs('collectsite', 'jieqiCollectsite', $jieqiCollectsite, JIEQI_MODULE_NAME);
     jieqi_jumppage($article_static_url . '/admin/collectset.php', LANG_DO_SUCCESS, $jieqiLang['article']['rule_edit_success']);
     break;
 case 'show':
 default:
     include_once JIEQI_ROOT_PATH . '/admin/header.php';
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
     $collect_form = new JieqiThemeForm($jieqiLang['article']['rule_edit'], 'collectedit', $article_static_url . '/admin/collectedit.php');
     $collect_form->addElement(new JieqiFormLabel($jieqiLang['article']['collect_rule_note'], $jieqiLang['article']['collect_rule_description']));
     $collect_form->addElement(new JieqiFormLabel('', $jieqiLang['article']['collect_rule_basic']));
     $collect_form->addElement(new JieqiFormLabel($jieqiLang['article']['rule_site_id'], $_REQUEST['config']));
     $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_site_name'], 'sitename', 60, 50, htmlspecialchars($jieqiCollect['sitename'], ENT_QUOTES)), true);
     $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_site_url'], 'siteurl', 60, 100, htmlspecialchars($jieqiCollect['siteurl'], ENT_QUOTES)), true);
     $tmpstr = str_replace(array('$articleid', '$chapterid', '$'), array('<{articleid}>', '<{chapterid}>', ''), $jieqiCollect['subarticleid']);
     $subarticleid = new JieqiFormText($jieqiLang['article']['rule_subarticleid'], 'subarticleid', 60, 100, htmlspecialchars($tmpstr, ENT_QUOTES));
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:collectedit.php

示例6: jieqi_getconfigs

jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
$canedit = jieqi_checkpower($jieqiPower['article']['manageallarticle'], $jieqiUsersStatus, $jieqiUsersGroup, true);
if (!$canedit && !empty($_SESSION['jieqiUserId'])) {
    //除了斑竹,作者、发表者和代理人可以修改文章
    $tmpvar = $_SESSION['jieqiUserId'];
    if ($tmpvar > 0 && ($article->getVar('authorid') == $tmpvar || $article->getVar('agentid') == $tmpvar)) {
        $canedit = true;
    }
}
if (!$canedit) {
    jieqi_printfail($jieqiLang['article']['noper_delete_chapters']);
}
//执行删除
$cids = '';
foreach ($_REQUEST['chapterid'] as $cid) {
    $cid = intval($cid);
    if ($cid) {
        if ($cids != '') {
            $cids .= ', ';
        }
        $cids .= $cid;
    }
}
if ($cids != '') {
    include_once $jieqiModules['article']['path'] . '/include/operatefunction.php';
    $criteria = new CriteriaCompo();
    $criteria->add(new Criteria('chapterid', '(' . $cids . ')', 'IN'));
    jieqi_article_delchapter($_REQUEST['articleid'], $criteria, true);
}
jieqi_jumppage($article_static_url . '/articlemanage.php?id=' . $_REQUEST['articleid'], LANG_DO_SUCCESS, $jieqiLang['article']['chapter_batchdel_success']);
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:chaptersdel.php

示例7: jieqi_uedit_iprocess

/**
 * 用户接口,编辑处理
 * 
 * @param      array       $params 参数数组
 * 必须参数: $params['username'] - 用户名,$params['password'] - 密码,$params['email'] - 邮箱
 * @access     public
 * @return     int    
 */
function jieqi_uedit_iprocess(&$params)
{
    global $jieqiLang;
    if (!isset($jieqiLang['system'])) {
        jieqi_loadlang('users', 'system');
    }
    $lang_success = empty($_REQUEST['lang_success']) ? $jieqiLang['system']['change_user_success'] : $_REQUEST['lang_success'];
    if (defined('JIEQI_WAP_PAGE')) {
        jieqi_wapgourl($params['jumpurl']);
    } elseif ($_REQUEST['jumphide']) {
        header('Location: ' . $params['jumpurl']);
    } else {
        jieqi_jumppage($params['jumpurl'], LANG_DO_SUCCESS, $lang_success);
    }
    return true;
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:24,代码来源:funuser_phpwind7.php

示例8: jieqi_getcachevars

                     if (($article->getVar('articletype', 'n') & 2) != 2) {
                         $article->setVar('articletype', $article->getVar('articletype', 'n') | 2);
                         $article_handler->insert($article);
                     }
                 }
             }
             //更新最新入库
             if ($newObook->getVar('display') == 0) {
                 jieqi_getcachevars('obook', 'obookuplog');
                 if (!is_array($jieqiObookuplog)) {
                     $jieqiObookuplog = array('obookuptime' => 0, 'chapteruptime' => 0);
                 }
                 $jieqiObookuplog['obookuptime'] = JIEQI_NOW_TIME;
                 jieqi_setcachevars('obookuplog', 'jieqiObookuplog', $jieqiObookuplog, 'obook');
             }
             jieqi_jumppage($obook_static_url . '/obookmanage.php?id=' . $id, LANG_DO_SUCCESS, $jieqiLang['obook']['add_obook_success']);
         }
     } else {
         jieqi_printfail($errtext);
     }
     break;
 case 'obook':
 default:
     //包含区块参数(定制区块)
     jieqi_getconfigs('obook', 'authorblocks', 'jieqiBlocks');
     include_once JIEQI_ROOT_PATH . '/header.php';
     $jieqiTpl->assign('obook_static_url', $obook_static_url);
     $jieqiTpl->assign('obook_dynamic_url', $obook_dynamic_url);
     include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
     $obook_form = new JieqiThemeForm($jieqiLang['obook']['add_obook'], 'frmnewobook', $obook_static_url . '/newobook.php');
     $obook_form->setExtra('enctype="multipart/form-data"');
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:newobook.php

示例9: jieqi_dbprefix

    $obook_handler->db->query('DELETE FROM ' . jieqi_dbprefix('obook_obook') . ' WHERE obookid=' . intval($_REQUEST['id']));
    $obook_handler->db->query('DELETE FROM ' . jieqi_dbprefix('obook_ochapter') . ' WHERE obookid=' . intval($_REQUEST['id']));
    if (!empty($linkfile) && file_exists($linkfile)) {
        jieqi_delfile($linkfile);
    }
}
//更新最新电子书
jieqi_getcachevars('obook', 'obookuplog');
if (!is_array($jieqiObookuplog)) {
    $jieqiObookuplog = array('obookuptime' => 0, 'chapteruptime' => 0);
}
$jieqiObookuplog['obookuptime'] = JIEQI_NOW_TIME;
jieqi_setcachevars('obookuplog', 'jieqiObookuplog', $jieqiObookuplog, 'obook');
jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
$obook_static_url = empty($jieqiConfigs['obook']['staticurl']) ? $jieqiModules['obook']['url'] : $jieqiConfigs['obook']['staticurl'];
$obook_dynamic_url = empty($jieqiConfigs['obook']['dynamicurl']) ? $jieqiModules['obook']['url'] : $jieqiConfigs['obook']['dynamicurl'];
//减少电子书和章节积分
/*
include_once(JIEQI_ROOT_PATH.'/class/users.php');
$users_handler =& JieqiUsersHandler::getInstance('JieqiUsersHandler');

if(!empty($jieqiConfigs['obook']['scoreobook']) || !empty($jieqiConfigs['obook']['scorechapter'])){
	if($obook->getVar('posterid')==$_SESSION['jieqiUserId']){
		$users_handler->changeScore($_SESSION['jieqiUserId'], $obook->getVar('chapters') * $jieqiConfigs['obook']['scorechapter'] + $jieqiConfigs['obook']['scoreobook'], false);
	}else{
		$users_handler->changeScore($obook->getVar('posterid'), $obook->getVar('chapters') * $jieqiConfigs['obook']['scorechapter'] + $jieqiConfigs['obook']['scoreobook'], false);	
	}
}
*/
jieqi_jumppage($obook_static_url . '/masterpage.php', LANG_DO_SUCCESS, $jieqiLang['obook']['obook_set_success']);
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:obookset.php

示例10: switch

switch ($_REQUEST['action']) {
    case 'update':
        //校验错误信息数组
        $check_errors = array();
        //检查和过滤提交变量
        $post_set = array('module' => JIEQI_MODULE_NAME, 'ownerid' => intval($reply->getVar('ownerid')), 'topicid' => intval($reply->getVar('topicid')), 'postid' => intval($reply->getVar('postid')), 'posttime' => intval($reply->getVar('posttime', 'n')), 'topictitle' => &$_POST['ptitle'], 'posttext' => &$_POST['pcontent'], 'attachment' => '', 'emptytitle' => true, 'isnew' => false, 'istopic' => intval($reply->getVar('istopic')), 'istop' => 0, 'sname' => 'jieqiArticleReviewTime', 'attachfile' => '', 'oldattach' => '', 'checkcode' => $_POST['checkcode']);
        jieqi_post_checkvar($post_set, $jieqiConfigs['article'], $check_errors);
        if (empty($check_errors)) {
            $oldtitle = $reply->getVar('subject', 'n');
            //更新帖子表
            jieqi_post_upedit($post_set, jieqi_dbprefix('article_replies'));
            //如果是主题则更新主题表
            if ($reply->getVar('istopic') == 1 && $post_set['topictitle'] != $oldtitle) {
                jieqi_topic_upedit($post_set, jieqi_dbprefix('article_reviews'));
            }
            jieqi_jumppage($jieqiModules['article']['url'] . '/reviewshow.php?rid=' . $reply->getVar('topicid', 'n'), LANG_DO_SUCCESS, $jieqiLang['article']['review_edit_success']);
        } else {
            jieqi_printfail(implode('<br />', $check_errors));
        }
        break;
    case 'edit':
    default:
        //显示页面
        include_once JIEQI_ROOT_PATH . '/header.php';
        $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['staticurl'];
        $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
        $jieqiTpl->assign('article_static_url', $article_static_url);
        $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
        $jieqiTpl->assign('postid', $reply->getVar('postid'));
        $jieqiTpl->assign('topicid', $reply->getVar('topicid'));
        $jieqiTpl->assign('ownerid', $reply->getVar('ownerid'));
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:reviewedit.php

示例11: jieqi_getconfigs

    }
    if ($from_draft) {
        $draft_handler->delete($_REQUEST['draftid']);
    }
    //增加章节积分
    jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
    $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
    $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
    if (!empty($jieqiConfigs['article']['scorechapter'])) {
        include_once JIEQI_ROOT_PATH . '/class/users.php';
        $users_handler =& JieqiUsersHandler::getInstance('JieqiUsersHandler');
        $users_handler->changeScore($_SESSION['jieqiUserId'], $jieqiConfigs['article']['scorechapter'], true);
        if ($_REQUEST['userchappid'] > 0 && !empty($jieqiConfigs['article']['scoreauthuserchap'])) {
            $users_handler->changeScore($_REQUEST['userchappid'], $jieqiConfigs['article']['scoreauthuserchap'], true);
        }
    }
    //清空本文章缓存
    if (JIEQI_USE_CACHE) {
        if (!is_a($jieqiTpl, 'JieqiTpl')) {
            include_once JIEQI_ROOT_PATH . '/lib/template/template.php';
            $jieqiTpl =& JieqiTpl::getInstance();
        }
        $jieqiTpl->clear_cache($jieqiModules['article']['path'] . '/templates/articleinfo.html', $_REQUEST['aid']);
    }
    //更新静态页
    if ($jieqiConfigs['article']['fakestatic'] > 0) {
        include_once $jieqiModules['article']['path'] . '/include/funstatic.php';
        article_update_static('chapternew', $article->getVar('articleid', 'n'), $article->getVar('sortid', 'n'));
    }
    jieqi_jumppage($article_static_url . '/articlemanage.php?id=' . $_REQUEST['aid'], LANG_DO_SUCCESS, sprintf($jieqiLang['article']['add_chapter_success'], $article_static_url . '/articlemanage.php?id=' . $_REQUEST['aid'], jieqi_geturl('article', 'article', $_REQUEST['aid'], 'info'), $article_static_url . '/newchapter.php?aid=' . $_REQUEST['aid']));
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:addchapter.php

示例12: jieqi_setcachevars

    }
    $jieqiArticleuplog['chapteruptime'] = JIEQI_NOW_TIME;
    jieqi_setcachevars('articleuplog', 'jieqiArticleuplog', $jieqiArticleuplog, 'article');
    //清空本文章缓存
    if (JIEQI_USE_CACHE) {
        if (!is_a($jieqiTpl, 'JieqiTpl')) {
            include_once JIEQI_ROOT_PATH . '/lib/template/template.php';
            $jieqiTpl =& JieqiTpl::getInstance();
        }
        $jieqiTpl->clear_cache($jieqiModules['article']['path'] . '/templates/articleinfo.html', $article->getVar('articleid', 'n'));
    }
}
include_once $jieqiModules['article']['path'] . '/class/package.php';
$package = new JieqiPackage($article->getVar('articleid'));
$package->delChapter($chapter->getVar('chapterorder'), $chapter->getVar('chapterid'));
//删除附件记录
include_once $jieqiModules['article']['path'] . '/class/articleattachs.php';
$attachs_handler =& JieqiArticleattachsHandler::getInstance('JieqiArticleattachsHandler');
$criteria = new CriteriaCompo(new Criteria('chapterid', $_REQUEST['id']));
$attachs_handler->delete($criteria);
//减少章节积分
include_once JIEQI_ROOT_PATH . '/class/users.php';
$users_handler =& JieqiUsersHandler::getInstance('JieqiUsersHandler');
jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
$article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['staticurl'];
$article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
if (!empty($jieqiConfigs['article']['scorechapter'])) {
    $users_handler->changeScore($chapter->getVar('posterid'), $jieqiConfigs['article']['scorechapter'], false);
}
jieqi_jumppage($article_static_url . '/articlemanage.php?id=' . $article->getVar('articleid'), LANG_DO_SUCCESS, sprintf($jieqiLang['article']['chapter_delete_success'], $typename));
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:chapterdel.php

示例13: jieqi_loadlang

jieqi_loadlang('manage', JIEQI_MODULE_NAME);
include_once $jieqiModules['article']['path'] . '/class/article.php';
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$article = $article_handler->get($_REQUEST['id']);
if (!$article) {
    jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
//检查权限
jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
$canedit = jieqi_checkpower($jieqiPower['article']['delallarticle'], $jieqiUsersStatus, $jieqiUsersGroup, true);
if (!$canedit && !empty($_SESSION['jieqiUserId'])) {
    //除了斑竹,作者、发表者和代理人可以删除文章
    $tmpvar = $_SESSION['jieqiUserId'];
    if ($tmpvar > 0 && ($article->getVar('authorid') == $tmpvar || $article->getVar('posterid') == $tmpvar || $article->getVar('agentid') == $tmpvar)) {
        $canedit = jieqi_checkpower($jieqiPower['article']['delmyarticle'], $jieqiUsersStatus, $jieqiUsersGroup, true);
    }
}
if (!$canedit) {
    jieqi_printfail($jieqiLang['article']['noper_delete_article']);
}
//删除文章
include_once $jieqiModules['article']['path'] . '/include/operatefunction.php';
jieqi_article_delete($_REQUEST['id'], true);
//更新静态页
if ($jieqiConfigs['article']['fakestatic'] > 0) {
    jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
    include_once $jieqiModules['article']['path'] . '/include/funstatic.php';
    article_update_static('articledel', $_REQUEST['id'], $article->getVar('sortid', 'n'));
}
jieqi_jumppage($article_static_url . '/myarticle.php', LANG_DO_SUCCESS, $jieqiLang['article']['article_delete_success']);
开发者ID:thu0ng91,项目名称:jmc,代码行数:30,代码来源:articledel.php

示例14: jieqi_createdir

                         jieqi_createdir($imagefile);
                     }
                     $imagefile .= jieqi_getsubdir($jieqiUsers->getVar('uid', 'n'));
                     if (!file_exists($retdir)) {
                         jieqi_createdir($imagefile);
                     }
                     if ($old_avatar > 0 && isset($jieqi_image_type[$old_avatar])) {
                         $old_imagefile = $imagefile . '/' . $jieqiUsers->getVar('uid', 'n') . $jieqi_image_type[$old_avatar];
                         if (is_file($old_imagefile)) {
                             jieqi_delfile($old_imagefile);
                         }
                     }
                     $imagefile .= '/' . $jieqiUsers->getVar('uid', 'n') . $image_postfix;
                     jieqi_copyfile($_FILES['avatarimage']['tmp_name'], $imagefile, 0777, true);
                 }
                 jieqi_jumppage(JIEQI_URL . '/setavatar.php', LANG_DO_SUCCESS, $jieqiLang['system']['avatar_set_success']);
             }
         }
     } else {
         jieqi_printfail($errtext);
     }
     break;
 case 'show':
 default:
     //显示头像状态,包含区块参数(定制区块)
     jieqi_getconfigs('system', 'userblocks', 'jieqiBlocks');
     include_once JIEQI_ROOT_PATH . '/header.php';
     $avatartype = intval($jieqiUsers->getVar('avatar', 'n'));
     $avatarimg = '';
     if (isset($jieqi_image_type[$avatartype])) {
         $urls = jieqi_geturl('system', 'avatar', $jieqiUsers->getVar('uid', 'n'), 'a', $avatartype);
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:setavatar.php

示例15: jieqi_useraction

     $_REQUEST['lang_failure'] = $jieqiLang['system']['set_password_failure'];
     $_REQUEST['lang_success'] = $jieqiLang['system']['set_password_success'];
     jieqi_useraction('edit', $_REQUEST);
     $_REQUEST['pass'] = trim($_REQUEST['pass']);
     $_REQUEST['repass'] = trim($_REQUEST['repass']);
     $errtext = '';
     //检查密码
     if (strlen($_REQUEST['pass']) == 0 || strlen($_REQUEST['repass']) == 0) {
         $errtext .= $jieqiLang['system']['need_pass_repass'] . '<br />';
     } elseif ($_REQUEST['pass'] != $_REQUEST['repass']) {
         $errtext .= $jieqiLang['system']['password_not_equal'] . '<br />';
     }
     if (empty($errtext)) {
         $user->setVar('pass', $users_handler->encryptPass($_REQUEST['pass']));
         $users_handler->insert($user);
         jieqi_jumppage(JIEQI_USER_URL . '/login.php', LANG_DO_SUCCESS, $jieqiLang['system']['set_password_success']);
     } else {
         jieqi_printfail($errtext);
     }
     break;
 case 'setpass':
 default:
     include_once JIEQI_ROOT_PATH . '/header.php';
     $jieqiTpl->assign('url_setpass', JIEQI_USER_URL . '/setpass.php?do=submit');
     $jieqiTpl->assign('action', 'newpass');
     $jieqiTpl->assign('id', $_REQUEST['id']);
     $jieqiTpl->assign('checkcode', $_REQUEST['checkcode']);
     $jieqiTpl->assign('username', $user->getVar('uname'));
     $jieqiTpl->setCaching(0);
     $jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/setpass.html';
     include_once JIEQI_ROOT_PATH . '/footer.php';
开发者ID:thu0ng91,项目名称:jmc,代码行数:31,代码来源:setpass.php


注:本文中的jieqi_jumppage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。