Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- define('JIEQI_USE_GZIP', '0');
- define('JIEQI_MODULE_NAME', 'article');
- require_once jieqi_path_global('../../../');
- jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
- jieqi_checkpower($jieqiPower['article']['delallarticle'], $jieqiUsersStatus, $jieqiUsersGroup, false, true);
- jieqi_loadlang('manage', JIEQI_MODULE_NAME);
- jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
- jieqi_getconfigs(JIEQI_MODULE_NAME, 'sort');
- @set_time_limit(0);
- @session_write_close();
- $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 (isset($_POST['act']) && ($_POST['act'] == 'clean')) {
- jieqi_checkpost();
- $query = Container::get('query');
- $where = '';
- $badparm = false;
- if (is_numeric($_POST['startid']) && is_numeric($_POST['stopid'])) {
- $_POST['startid'] = intval($_POST['startid']);
- $_POST['stopid'] = intval($_POST['stopid']);
- if ($where != '') {
- $where .= ' AND';
- }
- if ($_POST['startid'] <= $_POST['stopid']) {
- $where .= ' articleid >= ' . $_POST['startid'] . ' AND articleid <= ' . $_POST['stopid'];
- }
- else {
- $where .= ' articleid >= ' . $_POST['stopid'] . ' AND articleid <= ' . $_POST['startid'];
- }
- }
- else if (!empty($_POST['startid']) || !empty($_POST['stopid'])) {
- $badparm = true;
- }
- if (!empty($_POST['upday']) && is_numeric($_POST['upday'])) {
- if ($where != '') {
- $where .= ' AND';
- }
- if ($_POST['upflag'] == 1) {
- $where .= ' lastupdate >= ' . (JIEQI_NOW_TIME - (floatval($_POST['upday']) * 3600 * 24));
- }
- else {
- $where .= ' lastupdate < ' . (JIEQI_NOW_TIME - (floatval($_POST['upday']) * 3600 * 24));
- }
- }
- else if (!empty($_POST['upday'])) {
- $badparm = true;
- }
- if (!empty($_POST['visitnum']) && is_numeric($_POST['visitnum'])) {
- $_POST['visitnum'] = intval($_POST['visitnum']);
- $fieldary = ['allvisit', 'monthvisit', 'weekvisit', 'dayvisit', 'previsit', 'allvote', 'monthvote', 'weekvote', 'dayvote', 'prevote', 'allflower', 'monthflower', 'weekflower', 'dayflower', 'preflower', 'allegg', 'monthegg', 'weekegg', 'dayegg', 'preegg', 'goodnum', 'reviewsnum', 'chapters', 'words', 'daywords', 'weekwords', 'monthwords', 'prewords', 'monthupds', 'preupds'];
- if (in_array($_POST['visittype'], $fieldary)) {
- if ($where != '') {
- $where .= ' AND';
- }
- if ($_POST['visitflag'] == 1) {
- $where .= ' ' . $_POST['visittype'] . ' > ' . $_POST['visitnum'];
- }
- else {
- $where .= ' ' . $_POST['visittype'] . ' < ' . $_POST['visitnum'];
- }
- }
- }
- else if (!empty($_POST['visitnum'])) {
- $badparm = true;
- }
- switch ($_POST['authorflag']) {
- case 1:
- if ($where != '') {
- $where .= ' AND';
- }
- $where .= ' authorid > 0';
- .......................................................................
- ..............................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement