-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25,332 changed files
with
2,568,710 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,49 @@ | ||
# jieqi2.4_utf8 | ||
杰奇2.4,UTF8版本 | ||
|
||
|
||
* Jieqi2.4 解密开源程序 | ||
* 来源:https://www.hostloc.com | ||
|
||
1、服务器环境 | ||
php5.3.*- php7.1 + mysql 5.* - MariaDB 10.* | ||
|
||
php请加载以下模块 | ||
mysql zlib sockets curl iconv mbstring gd | ||
|
||
2、更改网站默认编码为uft8,采集GBK自动转为utf8,创建数据库编码为utf8mb4,把sql目录下的jieqi2.4.sql导入数据库,作为网站初始的数据库结构及数据,更改默认存储为INNODB | ||
|
||
3、上传网站程序后,以下4个目录必须可写:cache compiled configs files | ||
|
||
4、编辑网站目录下 /configs/define.php ,以下数据库参数根据实际填写 | ||
@define('JIEQI_DB_HOST','localhost'); //数据库服务器地址,跟网站在同一服务器时候填localhost | ||
@define('JIEQI_DB_USER','root'); //数据库登录账号 | ||
@define('JIEQI_DB_PASS','pass'); //数据库登录密码 | ||
@define('JIEQI_DB_NAME','jieqicms'); //网站系统使用的数据库名字 | ||
|
||
5、默认管理员账号密码: | ||
admin | ||
jieqi.com | ||
|
||
6、有彩蛋,能支持到PHP7.3 | ||
|
||
网站后台 http://www.***.com/admin/ | ||
进入后台后可具体设置权限、参数等 | ||
|
||
正式使用时,请在前台会员中心修改默认的管理员密码 | ||
|
||
小说分类修改不在后台,请直接编辑 /configs/article/sort.php | ||
|
||
6、 | ||
网站模板修改规范请参考 http://help.jieqi.com/template/index.html | ||
登录充值接口申请,请参考“登录充值接口.txt” | ||
网站授权设置请参考“软件授权.txt” | ||
官方网站及联系方式请访问: http://www.jieqi.com | ||
====================================================================== | ||
电脑版和手机版网站同时安装配置方法: | ||
|
||
1、电脑版和手机版网站使用两个独立目录,但是共用数据库和数据文件。默认www为电脑版程序目录,建议绑定域名 www.***.com;m为手机版程序目录,建议绑定域名m.***.com | ||
2、编辑手机版网站目录下的 /configs/define.php ,数据库连接设置跟电脑版保持一致 | ||
3、如果修改过分类文件 /configs/article/sort.php,请手机版和电脑版保持一致 | ||
4、默认程序生成的文件件保存在电脑版网站的 files 目录下,手机版网站也需要读写同一个目录。linux下建议用ls命令建立一个链接把手机站的files目录指向电脑站的files。 | ||
windows可以考虑电脑和手机版里面都指定存储目录的绝对路径和访问url,这两个参数在后台 系统管理-系统定义 里面的“数据文件保存路径”和“访问数据文件的URL”。(比如“数据文件保存路径”设置成 E:/web/www/files,“访问数据文件的URL”设置成 http://www.jieqi.com/files) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
define('JIEQI_MODULE_NAME', 'system'); | ||
require_once 'global.php'; | ||
if ($jieqiUsersGroup != JIEQI_GROUP_GUEST && is_numeric($_REQUEST['id'])) { | ||
include_once JIEQI_ROOT_PATH . '/class/users.php'; | ||
$users_handler = JieqiUsersHandler::getInstance('JieqiUsersHandler'); | ||
$jieqiUsers = $users_handler->get($_SESSION['jieqiUserId']); | ||
if (!$jieqiUsers) { | ||
jieqi_printfail(LANG_NO_USER); | ||
} | ||
$userset = jieqi_unserialize($jieqiUsers->getVar('setting', 'n')); | ||
$today = date('Y-m-d'); | ||
jieqi_getconfigs('system', 'action', 'jieqiAction'); | ||
$adclickscore = intval($jieqiAction['system']['adclick']['earnscore']); | ||
$maxadclick = intval($jieqiAction['system']['adclick']['paymax']); | ||
if ($maxadclick <= 0) { | ||
$maxadclick = 1; | ||
} | ||
if (isset($userset['addate']) && $userset['addate'] == $today && (int) $maxadclick <= (int) $userset['adnum']) { | ||
} else { | ||
$rightclick = true; | ||
$_REQUEST['id'] = intval($_REQUEST['id']); | ||
if (empty($_SESSION['jieqiAdClick']) || 1024 < strlen($_SESSION['jieqiAdClick'])) { | ||
$_SESSION['jieqiAdClick'] = $_REQUEST['id']; | ||
} else { | ||
if (strpos($_SESSION['jieqiAdClick'], strval($_REQUEST['id'])) === false) { | ||
${$_SESSION}['jieqiAdClick'] .= '|' . $_REQUEST['id']; | ||
} else { | ||
$rightclick = false; | ||
} | ||
} | ||
if ($rightclick) { | ||
if (isset($userset['addate']) && $userset['addate'] == $today) { | ||
$userset['adnum'] = (int) $userset['adnum'] + 1; | ||
} else { | ||
$userset['addate'] = $today; | ||
$userset['adnum'] = 1; | ||
} | ||
$jieqiUsers->setVar('setting', serialize($userset)); | ||
$jieqiUsers->saveToSession(); | ||
$users_handler->insert($jieqiUsers); | ||
include_once JIEQI_ROOT_PATH . '/include/funaction.php'; | ||
$actions = array('actname' => 'adclick', 'actnum' => 1); | ||
jieqi_system_actiondo($actions, $jieqiUsers); | ||
} | ||
} | ||
} | ||
if (!empty($_REQUEST['url'])) { | ||
header('Location: ' . jieqi_headstr($_REQUEST['url'])); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
|
||
define('JIEQI_MODULE_NAME', 'system'); | ||
require_once 'global.php'; | ||
jieqi_checklogin(); | ||
if (empty($_POST['act']) || $_POST['act'] != 'add') { | ||
jieqi_printfail(LANG_ERROR_PARAMETER); | ||
} | ||
if (empty($_REQUEST['id']) && empty($_REQUEST['username'])) { | ||
jieqi_printfail(LANG_NO_USER); | ||
} | ||
include_once JIEQI_ROOT_PATH . '/class/users.php'; | ||
$users_handler = JieqiUsersHandler::getInstance('JieqiUsersHandler'); | ||
if (!empty($_REQUEST['id'])) { | ||
$userobj = $users_handler->get($_REQUEST['id']); | ||
} else { | ||
$_REQUEST['username'] = trim($_REQUEST['username']); | ||
$userobj = $users_handler->getByname($_REQUEST['username'], 3); | ||
} | ||
if (is_object($userobj)) { | ||
jieqi_loadlang('users', JIEQI_MODULE_NAME); | ||
if ($userobj->getVar('uid', 'n') == $_SESSION['jieqiUserId']) { | ||
jieqi_printfail($jieqiLang['system']['add_friends_self']); | ||
} | ||
include_once JIEQI_ROOT_PATH . '/class/friends.php'; | ||
$friends_handler = JieqiFriendsHandler::getInstance('JieqiFriendsHandler'); | ||
jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs'); | ||
jieqi_getconfigs('system', 'honors'); | ||
jieqi_getconfigs(JIEQI_MODULE_NAME, 'right'); | ||
$maxfriendsnum = intval($jieqiConfigs['system']['maxfriends']); | ||
$honorid = jieqi_gethonorid($_SESSION['jieqiUserScore'], $jieqiHonors); | ||
if ($honorid && isset($jieqiRight['system']['maxfriends']['honors'][$honorid]) && is_numeric($jieqiRight['system']['maxfriends']['honors'][$honorid])) { | ||
$maxfriendsnum = intval($jieqiRight['system']['maxfriends']['honors'][$honorid]); | ||
} | ||
if (is_numeric($maxfriendsnum)) { | ||
$criteria = new CriteriaCompo(new Criteria('myid', $_SESSION['jieqiUserId'])); | ||
$friendsnum = $friends_handler->getCount($criteria); | ||
if ($maxfriendsnum <= $friendsnum) { | ||
jieqi_printfail(sprintf($jieqiLang['system']['too_manay_friends'], $maxfriendsnum)); | ||
} | ||
} | ||
unset($criteria); | ||
$criteria = new CriteriaCompo(new Criteria('myid', $_SESSION['jieqiUserId'])); | ||
$criteria->add(new Criteria('yourid', $userobj->getVar('uid', 'n'))); | ||
$isexist = $friends_handler->getCount($criteria); | ||
if (0 < $isexist) { | ||
jieqi_printfail($jieqiLang['system']['has_been_friends']); | ||
} | ||
$newFriends = $friends_handler->create(); | ||
$newFriends->setVar('adddate', JIEQI_NOW_TIME); | ||
$newFriends->setVar('myid', $_SESSION['jieqiUserId']); | ||
$newFriends->setVar('myname', $_SESSION['jieqiUserName']); | ||
$newFriends->setVar('yourid', $userobj->getVar('uid', 'n')); | ||
if (0 < strlen($userobj->getVar('name', 'n'))) { | ||
$newFriends->setVar('yourname', $userobj->getVar('name', 'n')); | ||
} else { | ||
$newFriends->setVar('yourname', $userobj->getVar('uname', 'n')); | ||
} | ||
$newFriends->setVar('teamid', 0); | ||
$newFriends->setVar('team', ''); | ||
$newFriends->setVar('fset', ''); | ||
$newFriends->setVar('state', 0); | ||
$newFriends->setVar('flag', 0); | ||
if (!$friends_handler->insert($newFriends)) { | ||
jieqi_printfail($jieqiLang['system']['add_friends_failure']); | ||
} else { | ||
if (!empty($_REQUEST['jumpurl']) && preg_match('/^(\\/\\w+|https?:\\/\\/)/i', $_REQUEST['jumpurl'])) { | ||
jieqi_jumppage($_REQUEST['jumpurl'], LANG_DO_SUCCESS, $jieqiLang['system']['add_friends_success']); | ||
} else { | ||
jieqi_msgwin(LANG_DO_SUCCESS, $jieqiLang['system']['add_friends_success']); | ||
} | ||
} | ||
} else { | ||
jieqi_printfail(LANG_NO_USER); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<?php | ||
|
||
if (empty($_GET['mod'])) { | ||
$_GET['mod'] = 'system'; | ||
} | ||
define('JIEQI_MODULE_NAME', $_GET['mod']); | ||
require_once '../global.php'; | ||
include_once JIEQI_ROOT_PATH . '/class/power.php'; | ||
$power_handler = JieqiPowerHandler::getInstance('JieqiPowerHandler'); | ||
$power_handler->getSavedVars($_GET['mod']); | ||
jieqi_checkpower($jieqiPower[$_GET['mod']]['adminblock'], $jieqiUsersStatus, $jieqiUsersGroup, false, true); | ||
jieqi_loadlang('blocks', JIEQI_MODULE_NAME); | ||
if (empty($_REQUEST['id'])) { | ||
jieqi_printfail($jieqiLang['system']['block_not_exists']); | ||
} | ||
include_once JIEQI_ROOT_PATH . '/class/blocks.php'; | ||
$blocks_handler = JieqiBlocksHandler::getInstance('JieqiBlocksHandler'); | ||
$block = $blocks_handler->get($_REQUEST['id']); | ||
if (!is_object($block)) { | ||
jieqi_printfail($jieqiLang['system']['block_not_exists']); | ||
} | ||
include_once JIEQI_ROOT_PATH . '/admin/header.php'; | ||
include_once JIEQI_ROOT_PATH . '/class/modules.php'; | ||
$modules_handler = JieqiModulesHandler::getInstance('JieqiModulesHandler'); | ||
$criteria = new CriteriaCompo(new Criteria('publish', 1, '=')); | ||
$criteria->setSort('weight'); | ||
$criteria->setOrder('ASC'); | ||
$modules_handler->queryObjects($criteria); | ||
unset($criteria); | ||
$modules = array(); | ||
while ($v = $modules_handler->getObject()) { | ||
$modules[$v->getVar('name', 'n')] = $v->getVar('caption', 'n'); | ||
} | ||
$modules['system'] = LANG_MODULE_SYSTEM; | ||
include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php'; | ||
if ($block->getVar('custom') == 1) { | ||
$blocks_form = new JieqiThemeForm($jieqiLang['system']['edit_custom_block'], 'blockedit', JIEQI_URL . '/admin/blocks.php'); | ||
$blocks_form->addElement(new JieqiFormText($jieqiLang['system']['table_blocks_blockname'], 'blockname', 30, 50, $block->getVar('blockname', 'e')), true); | ||
$modselect = new JieqiFormSelect($jieqiLang['system']['table_blocks_modname'], 'modname', $block->getVar('modname', 'e')); | ||
$modselect->addOptionArray($modules); | ||
$blocks_form->addElement($modselect); | ||
} else { | ||
$blocks_form = new JieqiThemeForm($jieqiLang['system']['edit_system_block'], 'blockedit', JIEQI_URL . '/admin/blocks.php'); | ||
$blockfile = $block->getVar('filename') . '.php'; | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_filename'], $blockfile)); | ||
if (isset($modules[$block->getVar('modname')])) { | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_modname'], $modules[$block->getVar('modname')])); | ||
} else { | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_modname'], LANG_UNKNOWN)); | ||
} | ||
$blocks_form->addElement(new JieqiFormText($jieqiLang['system']['table_blocks_blockname'], 'blockname', 30, 50, $block->getVar('blockname', 'e')), true); | ||
} | ||
$sideary = $blocks_handler->getSideary(); | ||
$sideselect = new JieqiFormSelect($jieqiLang['system']['table_blocks_side'], 'side', $block->getVar('side', 'e')); | ||
$sideselect->addOptionArray($sideary); | ||
$blocks_form->addElement($sideselect); | ||
$eleweight = new JieqiFormText($jieqiLang['system']['table_blocks_weight'], 'weight', 8, 8, $block->getVar('weight', 'e')); | ||
$eleweight->setDescription($jieqiLang['system']['note_block_weight']); | ||
$blocks_form->addElement($eleweight); | ||
$showradio = new JieqiFormRadio($jieqiLang['system']['table_blocks_publish'], 'publish', $block->getVar('publish', 'e')); | ||
$showradio->addOption(0, $jieqiLang['system']['block_show_no']); | ||
$showradio->addOption(1, $jieqiLang['system']['block_show_logout']); | ||
$showradio->addOption(2, $jieqiLang['system']['block_show_login']); | ||
$showradio->addOption(3, $jieqiLang['system']['block_show_both']); | ||
$blocks_form->addElement($showradio); | ||
$blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_title'], 'title', $block->getVar('title', 'e'), 3, 60)); | ||
if ($block->getVar('custom') == 1) { | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_contenttype'], 'HTML')); | ||
} else { | ||
$tmpary = $blocks_handler->getContentary(); | ||
if (isset($tmpary[$block->getVar('contenttype')])) { | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_contenttype'], $tmpary[$block->getVar('contenttype')])); | ||
} else { | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_contenttype'], LANG_UNKNOWN)); | ||
} | ||
} | ||
if ($block->getVar('canedit') == 1) { | ||
$blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_content'], 'content', $block->getVar('content', 'e'), 10, 60)); | ||
} else { | ||
$blockdesc = trim($block->getVar('description', 'n')); | ||
if (!empty($blockdesc)) { | ||
$blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_description'], $blockdesc)); | ||
} | ||
} | ||
if ($block->getVar('hasvars')) { | ||
$blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_blockvars'], 'blockvars', $block->getVar('vars', 'e'), 3, 60)); | ||
$blocks_form->addElement(new JieqiFormText($jieqiLang['system']['block_template_file'], 'blocktemplate', 30, 50, $block->getVar('template', 'e'))); | ||
$saveradio = new JieqiFormRadio($jieqiLang['system']['block_save_type'], 'savetype', 0); | ||
$saveradio->addOptionArray(array('0' => $jieqiLang['system']['block_save_self'], '1' => $jieqiLang['system']['block_save_another'])); | ||
$blocks_form->addElement($saveradio); | ||
if ($block->getVar('hasvars') == 2) { | ||
$blocks_form->addElement(new JieqiFormHidden('cacheupdate', '1')); | ||
} | ||
} | ||
$blocks_form->addElement(new JieqiFormHidden('act', 'update')); | ||
$blocks_form->addElement(new JieqiFormHidden(JIEQI_TOKEN_NAME, $_SESSION['jieqiUserToken'])); | ||
$blocks_form->addElement(new JieqiFormHidden('id', $block->getVar('bid'))); | ||
$blocks_form->addElement(new JieqiFormButton(' ', 'submit', $jieqiLang['system']['save_block'], 'submit')); | ||
$jieqiTpl->setCaching(0); | ||
$jieqiTpl->assign('jieqi_contents', '<br />' . $blocks_form->render(JIEQI_FORM_MAX) . '<br />'); | ||
include_once JIEQI_ROOT_PATH . '/admin/footer.php'; |
Oops, something went wrong.