Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. define('JIEQI_USE_GZIP', '0');
  15. define('JIEQI_MODULE_NAME', 'article');
  16. require_once jieqi_path_global('../../../');
  17. jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
  18. jieqi_checkpower($jieqiPower['article']['delallarticle'], $jieqiUsersStatus, $jieqiUsersGroup, false, true);
  19. jieqi_loadlang('manage', JIEQI_MODULE_NAME);
  20. jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
  21. jieqi_getconfigs(JIEQI_MODULE_NAME, 'sort');
  22. @set_time_limit(0);
  23. @session_write_close();
  24. $article_static_url = (empty($jieqiConfigs['article']['staticurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['staticurl']);
  25. $article_dynamic_url = (empty($jieqiConfigs['article']['dynamicurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['dynamicurl']);
  26. if (isset($_POST['act']) && ($_POST['act'] == 'clean')) {
  27. jieqi_checkpost();
  28. $query = Container::get('query');
  29. $where = '';
  30. $badparm = false;
  31. if (is_numeric($_POST['startid']) && is_numeric($_POST['stopid'])) {
  32. $_POST['startid'] = intval($_POST['startid']);
  33. $_POST['stopid'] = intval($_POST['stopid']);
  34.  
  35. if ($where != '') {
  36. $where .= ' AND';
  37. }
  38.  
  39. if ($_POST['startid'] <= $_POST['stopid']) {
  40. $where .= ' articleid >= ' . $_POST['startid'] . ' AND articleid <= ' . $_POST['stopid'];
  41. }
  42. else {
  43. $where .= ' articleid >= ' . $_POST['stopid'] . ' AND articleid <= ' . $_POST['startid'];
  44. }
  45. }
  46. else if (!empty($_POST['startid']) || !empty($_POST['stopid'])) {
  47. $badparm = true;
  48. }
  49. if (!empty($_POST['upday']) && is_numeric($_POST['upday'])) {
  50. if ($where != '') {
  51. $where .= ' AND';
  52. }
  53.  
  54. if ($_POST['upflag'] == 1) {
  55. $where .= ' lastupdate >= ' . (JIEQI_NOW_TIME - (floatval($_POST['upday']) * 3600 * 24));
  56. }
  57. else {
  58. $where .= ' lastupdate < ' . (JIEQI_NOW_TIME - (floatval($_POST['upday']) * 3600 * 24));
  59. }
  60. }
  61. else if (!empty($_POST['upday'])) {
  62. $badparm = true;
  63. }
  64. if (!empty($_POST['visitnum']) && is_numeric($_POST['visitnum'])) {
  65. $_POST['visitnum'] = intval($_POST['visitnum']);
  66. $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'];
  67.  
  68. if (in_array($_POST['visittype'], $fieldary)) {
  69. if ($where != '') {
  70. $where .= ' AND';
  71. }
  72.  
  73. if ($_POST['visitflag'] == 1) {
  74. $where .= ' ' . $_POST['visittype'] . ' > ' . $_POST['visitnum'];
  75. }
  76. else {
  77. $where .= ' ' . $_POST['visittype'] . ' < ' . $_POST['visitnum'];
  78. }
  79. }
  80. }
  81. else if (!empty($_POST['visitnum'])) {
  82. $badparm = true;
  83. }
  84.  
  85. switch ($_POST['authorflag']) {
  86. case 1:
  87. if ($where != '') {
  88. $where .= ' AND';
  89. }
  90.  
  91. $where .= ' authorid > 0';
  92. .......................................................................
  93. ..............................................
  94. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement