Advertisement
Guest User

Untitled

a guest
Apr 29th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function admin_func_load($ecfheijaij) {
  15. $ebecdgbjhb = ( $ecfheijaij - $ecfheijaij + 3 ) / ( $ecfheijaij + 5 + $ecfheijaij ) * ( $ecfheijaij + 3 ) % ( $ecfheijaij - 5 );
  16. $dgbghcjde = ( $ecfheijaij - 3 ) / ( $ecfheijaij + 5 ) * ( $ecfheijaij + 3 ) % ( $ecfheijaij - 5 );
  17. return '';
  18. }
  19.  
  20. function load_inc($dfgjgfgicd) {
  21. $eabgfheidc = ADMIN_PATH . $dfgjgfgicd . '.inc.php';
  22.  
  23. if (file_exists( $eabgfheidc )) {
  24. return $eabgfheidc;
  25. }
  26.  
  27. showmessage( 'Controller does not exist.' );
  28. }
  29.  
  30. function template($eahaidcjda, $biccajfgce = '') {
  31. ( $biccajfgce && $biccajfgce = '_' . $biccajfgce );
  32. $eabgfheidc = ADMIN_PATH . 'templates' . DIRS . $eahaidcjda . $biccajfgce . '.tpl.php';
  33.  
  34. if (file_exists( $eabgfheidc )) {
  35. return $eabgfheidc;
  36. }
  37.  
  38. showmessage( 'Template File does not exist.' );
  39. }
  40.  
  41. function Edit_Config($cigiiieeia, $cjfhahddba = 'setting') {
  42. $bhhaajhcaa = DATA_PATH . $cjfhahddba . '.php';
  43.  
  44. if (!( file_exists( $bhhaajhcaa ))) {
  45. showmessage( '/' . str_replace( array( PPT_PATH, '\\' ), array( '', '/' ), $bhhaajhcaa ) . '<br>±£´æÉèÖÃʧ°Ü, Îļþ²»´æÔÚ.' );
  46. }
  47.  
  48. if (!( ppt_is_writable( $bhhaajhcaa ))) {
  49. showmessage( '/' . str_replace( array( PPT_PATH, '\\' ), array( '', '/' ), $bhhaajhcaa ) . '<br>ÎļþûÓÐÐÞ¸ÄȨÏÞ, Ç뽫ÎļþȨÏÞ¸ÄΪ¿Éд(0777).' );
  50. }
  51.  
  52. $ceceaghfbe = $eahbjdajfb = array( );
  53.  
  54. if ($cjfhahddba == 'config') {
  55. foreach ($cigiiieeia as $cajecdhbch) {
  56. $djggfdjigc = ;
  57. $cajecdhbch = str_replace( '
  58. ', ' ', trim( $cajecdhbch ) );
  59. $cajecdhbch = str_replace( '\'', '\'', $cajecdhbch );
  60. $ceceaghfbe[$djggfdjigc] = '/define\(\'' . $djggfdjigc . '\'\s*,\s*((\').*(\')|[^\']*)\s*\);/i';
  61. $eahbjdajfb[$djggfdjigc] = 'define(\'' . $djggfdjigc . '\', ${2}' . $cajecdhbch . '${3});';
  62. }
  63. } else {
  64. foreach ($cigiiieeia as $cajecdhbch) {
  65. $djggfdjigc = ;
  66. $cajecdhbch = str_replace( '
  67. ', ' ', trim( $cajecdhbch ) );
  68. $cajecdhbch = str_replace( '\'', '\'', $cajecdhbch );
  69. $ceceaghfbe[$djggfdjigc] = '/\'' . $djggfdjigc . '\'\s*=>\s*((\').*(\')|[^\']*)(\s*),/i';
  70. $eahbjdajfb[$djggfdjigc] = '\'' . $djggfdjigc . '\' => ${2}' . $cajecdhbch . '${3}${4},';
  71. }
  72. }
  73.  
  74. $cfefhefhj = file_get_contents( $bhhaajhcaa );
  75. $cfefhefhj = preg_replace( $ceceaghfbe, $eahbjdajfb, $cfefhefhj );
  76. return file_put_contents( $bhhaajhcaa, $cfefhefhj );
  77. }
  78.  
  79. function ppt_getcategorys($caegfaaaba) {
  80. $fjfgegecj = ppt_getitemcats( $caegfaaaba );
  81. $fjfgegecj = (isset( $fjfgegecj['item_cats'] ) ? $fjfgegecj['item_cats']['item_cat'] : '');
  82.  
  83. if ($fjfgegecj) {
  84. if (!( isset( $fjfgegecj[0] ))) {
  85. $bbjiicacdb[] = $fjfgegecj;
  86. $fjfgegecj = $bbjiicacdb;
  87. }
  88. }
  89.  
  90. return $fjfgegecj;
  91. }
  92.  
  93. function ppt_get_items($keyword, $catid, $data = array( )) {
  94. extract( $data );
  95.  
  96. if (!( ( $num && !( 40 < $num ) ))) {
  97. $num = 10;
  98. }
  99.  
  100. ( !$sort && $sort = 'commissionNum_desc' );
  101. ( !$ismall && $ismall = 0 );
  102. ( !$start_num && $start_num = 0 );
  103. ( !$start_rate && $start_rate = 0 );
  104. ( !$start_price && $start_price = 0 );
  105. ( !$end_price && $end_price = '9999999' );
  106. $paramArr = array( 'method' => 'taobao.taobaoke.items.get', 'fields' => 'num_iid,title,nick,pic_url,price,volume,seller_credit_score,item_location,click_url,shop_click_url', 'keyword' => ppt_iconv( $keyword, CHARSET, 'UTF-8' ), 'cid' => $catid, 'page_size' => $num, 'sort' => $sort, 'mall_item' => $ismall, 'start_price' => $start_price, 'end_price' => $end_price, 'start_commissionRate' => $start_rate, 'end_commissionRate' => 100000 );
  107.  
  108. if ($start_num) {
  109. $paramArr['start_commissionNum'] = $start_num;
  110. $paramArr['end_commissionNum'] = 9999999;
  111. }
  112.  
  113. $Itemlist = ppt_getapi( $paramArr, 1 );
  114.  
  115. if ($Itemlist) {
  116. $Itemlist = (isset( $Itemlist['taobaoke_items']['taobaoke_item'] ) ? $Itemlist['taobaoke_items']['taobaoke_item'] : '');
  117.  
  118. if ($Itemlist) {
  119. if (!( isset( $Itemlist[0] ))) {
  120. $_Itemlist[] = $Itemlist;
  121. $Itemlist = $_Itemlist;
  122. }
  123. }
  124.  
  125. return $Itemlist;
  126. }
  127.  
  128. return '';
  129. }
  130.  
  131. function keywords_list() {
  132. ppt_load::func( 'taoke_base' );
  133. $iiiacafcd = glob( DATA_PATH . 'keywords' . DIRS . '*.php' );
  134. $ihdicjbga = array( );
  135.  
  136. if (is_array( $iiiacafcd )) {
  137. if ($iiiacafcd) {
  138. foreach ($iiiacafcd as $eahaidcjda) {
  139. $debaidbgbc = basename( $eahaidcjda, '.php' );
  140. $ihdicjbga[$debaidbgbc]['count'] = $debaidbgbc;
  141. $ihdicjbga[$debaidbgbc]['category_id'] = ;
  142. }
  143. }
  144. }
  145.  
  146. $dfehaaebag = ppt_catpos( $ihdicjbga );
  147. asort( &$dfehaaebag );
  148. return $dfehaaebag;
  149. }
  150.  
  151. function keywords_show($caegfaaaba) {
  152. $dhfahcfbce = DATA_PATH . 'keywords';
  153. $diafcjicdc = array( );
  154.  
  155. if (file_exists( $dhfahcfbce . DIRS . $caegfaaaba . '.php' )) {
  156. $digehddgca = ($caegfaaaba ? 'serialize' : '');
  157. $bghfdbciih = ppt_getcache( $caegfaaaba . '.php', $dhfahcfbce, $digehddgca );
  158.  
  159. if ($bghfdbciih) {
  160. if (!( isset( $bghfdbciih['nothing'] ))) {
  161. $diafcjicdc = $bghfdbciih;
  162. }
  163. }
  164. }
  165.  
  166. return $diafcjicdc;
  167. }
  168.  
  169. function keywords_get($caegfaaaba) {
  170. ppt_load::func( 'taoke_keywords' );
  171. $bghfdbciih = ppt_gethotkeywords( $caegfaaaba );
  172.  
  173. if (isset( $bghfdbciih['nothing'] )) {
  174. return '';
  175. }
  176.  
  177. return implode( '
  178. ', $bghfdbciih );
  179. }
  180.  
  181. function get_dirlist($djegbdchh) {
  182. $iiiacafcd = glob( PPT_PATH . $djegbdchh . DIRS . '*', GLOB_ONLYDIR );
  183. $ecfheijaij = array( );
  184.  
  185. if (is_array( $iiiacafcd )) {
  186. if ($iiiacafcd) {
  187. foreach ($iiiacafcd as $eahaidcjda) {
  188. $debaidbgbc = basename( $eahaidcjda );
  189. $ecfheijaij[] = $debaidbgbc;
  190. }
  191. }
  192. }
  193.  
  194. return $ecfheijaij;
  195. }
  196.  
  197. function get_filelist($dhfahcfbce, $bfcdbhcdbg = 'php', $echaieecfd = '', $iiiacafcd = array( ), $hfjjgifbi = '') {
  198. $edgeefgb = glob( $dhfahcfbce . DIRS . '*' );
  199. ( !$hfjjgifbi && $hfjjgifbi = $dhfahcfbce . DIRS );
  200.  
  201. foreach ($edgeefgb as $cajecdhbch) {
  202. if (!( ( $bfcdbhcdbg && !preg_match( '/\.(' . $bfcdbhcdbg . ')/i', $cajecdhbch ) ))) {
  203. $djegbdchh = str_replace( $hfjjgifbi, '', $dhfahcfbce . DIRS );
  204. $iiiacafcd[] = $djegbdchh . basename( $cajecdhbch );
  205. continue;
  206. }
  207.  
  208. if (is_dir( $cajecdhbch )) {
  209. if ($echaieecfd) {
  210. $iiiacafcd = get_filelist( $cajecdhbch, $bfcdbhcdbg, 1, $iiiacafcd, $hfjjgifbi );
  211. continue;
  212. }
  213.  
  214. continue;
  215. }
  216. }
  217.  
  218. return $iiiacafcd;
  219. }
  220.  
  221. ..................................
  222. .....................
  223. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement