Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.93 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.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function head($nocompress) {
  15. global $version;
  16. global $setup;
  17.  
  18. if (( ( function_exists( gzcompress ) && $setup['compress_content'] ) && $nocompress == 0 )) {
  19. ob_start( );
  20. ob_implicit_flush( 0 );
  21. }
  22.  
  23. echo '<html><head><title>DTRotator v' . $version . '</title><meta http-equiv="Content-type" content="text/html; charset=utf-8">';
  24. echo '<style type=text/css>body {scrollbar-face-color:#EEEEEE;scrollbar-highlight-color:#000000;scrollbar-3dlight-color:#EEEEEE;scrollbar-darkshadow-color:#EEEEEE;scrollbar-shadow-color:#000000;scrollbar-arrow-color:#000000;scrollbar-track-color:#EEEEEE;}';
  25. echo 'div.menu {border-right: #000000 1px solid;border-left: #000000 1px solid; border-bottom: #000000 1px solid;border-top: #CCCCCC 1px solid;display: none; z-index: 1; left: 150px; position: absolute;}';
  26. echo 'td.punkt {padding-right: 1px; padding-left: 1px; padding-bottom: 1px; padding-top: 1px; height: 15px;background-color: #CCCCCC}';
  27. echo 'body,td,th {font-size: 8pt;font-family: Verdana, Arial, sans-serif;}';
  28. echo 'A {text-decoration: none;}';
  29. echo 'A:link{text-decoration:none;color:#000000;}';
  30. echo 'A:visited{text-decoration:none;color:#000000;}';
  31. echo 'A:hover {text-decoration: underline; color:#000000;}';
  32. echo 'P.form {margin: 6pt 0 6pt 0;}';
  33. echo 'select {font-size: 8pt;font-family: Verdana,Arial,sans-serif;background: #e9e9e9;color: #000000;}';
  34. echo 'input {font-size: 8pt;font-family: Verdana,Arial,sans-serif;background: #e9e9e9;color: #000000;}';
  35. echo 'input.field {border: 1px solid #999999;}';
  36. echo 'input.button {border: 1px outset;width: 150pt;cursor: hand;white-space: normal;background: #CCCCCC}</style>';
  37. echo '</head><body bgcolor=#EEEEEE leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><center>
  38. ';
  39. }
  40.  
  41. function foot($nocompress) {
  42. global $version;
  43. global $manual;
  44. global $setup;
  45.  
  46. $free_space = check_free_space( );
  47. echo '<br><br><font size=1><a href="' . $manual . '" target="_blank">DTRotator v' . $version . '</a> Copyright &copy; 2003-2015 by Joy<br>Server time: ' . date( 'j M Y G:i:s', time( ) ) . '&nbsp;&nbsp;&nbsp;Local time: ' . date( 'j M Y G:i:s', time( ) + 3600 * $setup['timezone'] ) . '&nbsp;&nbsp;&nbsp;Free space: ' . $free_space[0] . ' Mb.<br><script src=http://dtrotator.com/update.php?version=' . $version . '></script></font></center></body></html>';
  48.  
  49. if (( ( function_exists( gzcompress ) && $setup['compress_content'] ) && $nocompress == 0 )) {
  50. gzdocout( );
  51. }
  52.  
  53. }
  54.  
  55. function show_menu() {
  56. global $act;
  57. global $sort_by;
  58. global $gr;
  59. global $setup;
  60. global $direction;
  61.  
  62. $group_base = filereadall( $setup['files_path'] . 'data/group.dat' );
  63. $posted_galleries = filereadall( $setup['files_path'] . 'data/posted.dat' );
  64. $not_approved_count = 0;
  65. for ($i = 0; $i < sizeof( $posted_galleries ); ++$i) {
  66. list( $posted_id, $posted_url, $posted_thumb_url, $posted_desc, $posted_width, $posted_height, $posted_amount_pix, $posted_gall_type, $posted_add_time, $posted_poster, $posted_approved ) = explode( '|', $posted_galleries[$i] );
  67.  
  68. if (!$posted_approved) {
  69. ++$not_approved_count;
  70. continue;
  71. }
  72. }
  73.  
  74. echo '<script language=JavaScript>
  75. ';
  76. echo 'var ActiveMenu = null;var nMenus = 0;var aMenu = new Array();var bHide = false;
  77. ';
  78. echo 'function CalcTop(curEl) {var Offset = -1;while (curEl) {Offset += curEl.offsetTop;curEl = curEl.offsetParent;}return Offset;}
  79. ';
  80. echo 'function CalcLeft(curEl,Offset) {while (curEl) {Offset += curEl.offsetLeft;curEl = curEl.offsetParent;}return Offset;}
  81. ';
  82. echo 'function SM(curTD,Menu,Offset) {ActiveMenu = null;var ms = document.getElementById(Menu).style;ms.top = CalcTop(curTD) + curTD.offsetHeight;ms.left = CalcLeft(curTD,Offset);ms.display = "block";ActiveMenu = document.getElementById(Menu);bHide = false;}
  83. ';
  84. echo 'function Hide() {if (ActiveMenu != null && bHide == true) {ActiveMenu.style.display = "none";ActiveMenu = null;}}
  85. ';
  86. echo 'function CheckHide() {bHide = true;window.setTimeout("Hide();", 2000);}
  87. ';
  88. echo 'function StartMenu(Menu,width) {document.write(\'<div id="\' + Menu + \'" class="menu" onmouseout="CheckHide();" onmouseover="javascript: bHide=false;"><table width=\' + width + \' border="0" cellpadding="0" cellspacing="0">\');aMenu[nMenus++] = Menu;}
  89. ';
  90. echo 'function EndMenu() {document.write(\'</table></div>\');}
  91. ';
  92. echo 'function AddToMenu(ptTitle, ptRef, align) {document.write(\'<tr><td align=\' + align + \' class="punkt" nowrap>&nbsp;<a href="\' + ptRef + \'"><b>\' + ptTitle + \'</b></a>&nbsp;</td></tr>\');}
  93. ';
  94. echo 'function AddSeparator(ptTitle) {document.write(\'<tr><td align=center class="punkt" nowrap>&nbsp;\' + ptTitle + \'&nbsp;</td></tr>\');}
  95. ';
  96. echo 'StartMenu("menu",155);';
  97. echo 'AddSeparator("--------- Rotator ---------");';
  98. echo 'AddToMenu("Statistic", "admin.php?gr=' . $gr . '","right");';
  99. echo 'AddToMenu("Config objects", "admin.php?act=config&gr=' . $gr . '","right");';
  100. echo 'AddToMenu("Testable galleries", "admin.php?act=testable_galleries&gr=' . $gr . '","right");';
  101. echo 'AddToMenu("Config group", "admin.php?act=gr_config&gr=' . $gr . '","right");';
  102. echo 'AddToMenu("Edit template", "admin.php?act=template_config&gr=' . $gr . '","right");';
  103. echo 'AddToMenu("Galleries templates", "admin.php?act=gal_templates_config&gr=' . $gr . '","right");';
  104. echo 'AddToMenu("Preloaded galleries", "admin.php?act=preload_galls&gr=' . $gr . '","right");';
  105. echo 'AddToMenu("Graber", "admin.php?act=graber&gr=' . $gr . '","right");';
  106. echo 'AddToMenu("Graber setup", "admin.php?act=graber_setup&gr=' . $gr . '","right");';
  107. echo 'AddToMenu("Crop images", "admin.php?act=crop_images&gr=' . $gr . '","right");';
  108. echo 'AddToMenu("Setup", "admin.php?act=setup&gr=' . $gr . '","right");';
  109. echo 'AddToMenu("Backup", "admin.php?act=backup&gr=' . $gr . '","right");';
  110. echo 'AddToMenu("Sponsors", "admin.php?act=sponsors&gr=' . $gr . '","right");';
  111. echo 'AddSeparator("------ TGP module ------");';
  112. echo 'AddToMenu("Posters", "admin.php?act=posters&gr=' . $gr . '","right");';
  113. echo 'AddToMenu("Posted galleries';
  114.  
  115. if ($not_approved_count) {
  116. echo ' (' . $not_approved_count . ')';
  117. }
  118.  
  119. echo '", "admin.php?act=posted_galleries&gr=' . $gr . '","right");';
  120. echo 'AddToMenu("Setup", "admin.php?act=tgp_setup&gr=' . $gr . '","right");';
  121. echo 'EndMenu();
  122. ';
  123. echo 'StartMenu("select_group",1);
  124. ';
  125. for ($i = 0; $i < sizeof( $group_base ); ++$i) {
  126. list( $id, $grname ) = explode( '|', $group_base[$i] );
  127. $counter[$group_base[$i]] = $grname;
  128. }
  129.  
  130. @asort( $counter );
  131. @reset( $counter );
  132. for ($i = 0; $i < sizeof( $counter ); ++$i) {
  133. list( $id, $grname ) = explode( '|', key( $counter ) );
  134. $grname = str_replace( ' ', '&nbsp;', $grname );
  135.  
  136. if ($gr != $id) {
  137. echo 'AddToMenu("' . $grname . '", "';
  138. echo 'admin.php?';
  139.  
  140. if ($act) {
  141. echo 'act=' . $act . '&';
  142. }
  143.  
  144.  
  145. if ($sort_by) {
  146. echo 'sort_by=' . $sort_by . '&';
  147. }
  148.  
  149.  
  150. if ($direction) {
  151. echo 'direction=' . $direction . '&';
  152. }
  153.  
  154. echo 'gr=' . $id . '","left");
  155. ';
  156. } else {
  157. $current_group = $grname;
  158. echo 'AddToMenu("","","left");
  159. ';
  160. }
  161.  
  162. next( $counter );
  163. }
  164.  
  165. unset( $counter );
  166. echo 'EndMenu();';
  167. echo '</script>
  168. ';
  169. echo '<table bgcolor=#CCCCCC width=100% border=0 cellspacing=0 cellpadding=1 style="border-left: #000000 1px solid;border-right: #000000 1px solid;border-bottom: #000000 1px solid;">
  170. ';
  171. echo '<tr>
  172. ';
  173. echo '<td width=50>&nbsp;<b>Group: </b></td>
  174. ';
  175. echo '<td width=10 style="cursor: hand;" onclick="SM(this,\'select_group\',-5);" onmouseout="CheckHide();"><b>' . $current_group . '</b></td>
  176. ';
  177. echo '<td width=100%></td>
  178. ';
  179. echo '<td align=right width=80 style="cursor: hand;" onclick="SM(this,\'menu\',-80);" onmouseout="CheckHide();"><b>Main&nbsp;menu&nbsp;</b></td>
  180. ';
  181. echo '</tr></table>
  182. ';
  183. echo '<table width=20 border=0 cellspacing=0 cellpadding=0><tr><td height=1></td></tr></table>
  184. ';
  185. }
  186.  
  187. function show() {
  188. global $gr;
  189. global $setup;
  190. global $sort_by;
  191. global $direction;
  192. global $page;
  193. global $per_page;
  194.  
  195. @include( $setup['files_path'] . 'data/' . $gr . '.cfg' );
  196. $group_base = filereadall( $setup['files_path'] . 'data/group.dat' );
  197.  
  198. if (!$group_base) {
  199. add_group_main( );
  200. exit( );
  201. }
  202.  
  203. head( 0 );
  204. $gr += 0;
  205. $page += 0;
  206. @include( $setup['files_path'] . 'data/' . $gr . '_graber.cfg' );
  207. $base = filereadall( $setup['files_path'] . 'data/' . $gr . '_base.dat' );
  208.  
  209. if (( !$per_page && !$group['stats_per_page'] )) {
  210. $per_page2 = sizeof( $base ) - 1;
  211. } else {
  212. .......................................................................
  213. ...........................................
  214. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement