Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function head($nocompress) {
- global $version;
- global $setup;
- if (( ( function_exists( gzcompress ) && $setup['compress_content'] ) && $nocompress == 0 )) {
- ob_start( );
- ob_implicit_flush( 0 );
- }
- echo '<html><head><title>DTRotator v' . $version . '</title><meta http-equiv="Content-type" content="text/html; charset=utf-8">';
- 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;}';
- 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;}';
- echo 'td.punkt {padding-right: 1px; padding-left: 1px; padding-bottom: 1px; padding-top: 1px; height: 15px;background-color: #CCCCCC}';
- echo 'body,td,th {font-size: 8pt;font-family: Verdana, Arial, sans-serif;}';
- echo 'A {text-decoration: none;}';
- echo 'A:link{text-decoration:none;color:#000000;}';
- echo 'A:visited{text-decoration:none;color:#000000;}';
- echo 'A:hover {text-decoration: underline; color:#000000;}';
- echo 'P.form {margin: 6pt 0 6pt 0;}';
- echo 'select {font-size: 8pt;font-family: Verdana,Arial,sans-serif;background: #e9e9e9;color: #000000;}';
- echo 'input {font-size: 8pt;font-family: Verdana,Arial,sans-serif;background: #e9e9e9;color: #000000;}';
- echo 'input.field {border: 1px solid #999999;}';
- echo 'input.button {border: 1px outset;width: 150pt;cursor: hand;white-space: normal;background: #CCCCCC}</style>';
- echo '</head><body bgcolor=#EEEEEE leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><center>
- ';
- }
- function foot($nocompress) {
- global $version;
- global $manual;
- global $setup;
- $free_space = check_free_space( );
- echo '<br><br><font size=1><a href="' . $manual . '" target="_blank">DTRotator v' . $version . '</a> Copyright © 2003-2015 by Joy<br>Server time: ' . date( 'j M Y G:i:s', time( ) ) . ' Local time: ' . date( 'j M Y G:i:s', time( ) + 3600 * $setup['timezone'] ) . ' Free space: ' . $free_space[0] . ' Mb.<br><script src=http://dtrotator.com/update.php?version=' . $version . '></script></font></center></body></html>';
- if (( ( function_exists( gzcompress ) && $setup['compress_content'] ) && $nocompress == 0 )) {
- gzdocout( );
- }
- }
- function show_menu() {
- global $act;
- global $sort_by;
- global $gr;
- global $setup;
- global $direction;
- $group_base = filereadall( $setup['files_path'] . 'data/group.dat' );
- $posted_galleries = filereadall( $setup['files_path'] . 'data/posted.dat' );
- $not_approved_count = 0;
- for ($i = 0; $i < sizeof( $posted_galleries ); ++$i) {
- 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] );
- if (!$posted_approved) {
- ++$not_approved_count;
- continue;
- }
- }
- echo '<script language=JavaScript>
- ';
- echo 'var ActiveMenu = null;var nMenus = 0;var aMenu = new Array();var bHide = false;
- ';
- echo 'function CalcTop(curEl) {var Offset = -1;while (curEl) {Offset += curEl.offsetTop;curEl = curEl.offsetParent;}return Offset;}
- ';
- echo 'function CalcLeft(curEl,Offset) {while (curEl) {Offset += curEl.offsetLeft;curEl = curEl.offsetParent;}return Offset;}
- ';
- 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;}
- ';
- echo 'function Hide() {if (ActiveMenu != null && bHide == true) {ActiveMenu.style.display = "none";ActiveMenu = null;}}
- ';
- echo 'function CheckHide() {bHide = true;window.setTimeout("Hide();", 2000);}
- ';
- 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;}
- ';
- echo 'function EndMenu() {document.write(\'</table></div>\');}
- ';
- echo 'function AddToMenu(ptTitle, ptRef, align) {document.write(\'<tr><td align=\' + align + \' class="punkt" nowrap> <a href="\' + ptRef + \'"><b>\' + ptTitle + \'</b></a> </td></tr>\');}
- ';
- echo 'function AddSeparator(ptTitle) {document.write(\'<tr><td align=center class="punkt" nowrap> \' + ptTitle + \' </td></tr>\');}
- ';
- echo 'StartMenu("menu",155);';
- echo 'AddSeparator("--------- Rotator ---------");';
- echo 'AddToMenu("Statistic", "admin.php?gr=' . $gr . '","right");';
- echo 'AddToMenu("Config objects", "admin.php?act=config&gr=' . $gr . '","right");';
- echo 'AddToMenu("Testable galleries", "admin.php?act=testable_galleries&gr=' . $gr . '","right");';
- echo 'AddToMenu("Config group", "admin.php?act=gr_config&gr=' . $gr . '","right");';
- echo 'AddToMenu("Edit template", "admin.php?act=template_config&gr=' . $gr . '","right");';
- echo 'AddToMenu("Galleries templates", "admin.php?act=gal_templates_config&gr=' . $gr . '","right");';
- echo 'AddToMenu("Preloaded galleries", "admin.php?act=preload_galls&gr=' . $gr . '","right");';
- echo 'AddToMenu("Graber", "admin.php?act=graber&gr=' . $gr . '","right");';
- echo 'AddToMenu("Graber setup", "admin.php?act=graber_setup&gr=' . $gr . '","right");';
- echo 'AddToMenu("Crop images", "admin.php?act=crop_images&gr=' . $gr . '","right");';
- echo 'AddToMenu("Setup", "admin.php?act=setup&gr=' . $gr . '","right");';
- echo 'AddToMenu("Backup", "admin.php?act=backup&gr=' . $gr . '","right");';
- echo 'AddToMenu("Sponsors", "admin.php?act=sponsors&gr=' . $gr . '","right");';
- echo 'AddSeparator("------ TGP module ------");';
- echo 'AddToMenu("Posters", "admin.php?act=posters&gr=' . $gr . '","right");';
- echo 'AddToMenu("Posted galleries';
- if ($not_approved_count) {
- echo ' (' . $not_approved_count . ')';
- }
- echo '", "admin.php?act=posted_galleries&gr=' . $gr . '","right");';
- echo 'AddToMenu("Setup", "admin.php?act=tgp_setup&gr=' . $gr . '","right");';
- echo 'EndMenu();
- ';
- echo 'StartMenu("select_group",1);
- ';
- for ($i = 0; $i < sizeof( $group_base ); ++$i) {
- list( $id, $grname ) = explode( '|', $group_base[$i] );
- $counter[$group_base[$i]] = $grname;
- }
- @asort( $counter );
- @reset( $counter );
- for ($i = 0; $i < sizeof( $counter ); ++$i) {
- list( $id, $grname ) = explode( '|', key( $counter ) );
- $grname = str_replace( ' ', ' ', $grname );
- if ($gr != $id) {
- echo 'AddToMenu("' . $grname . '", "';
- echo 'admin.php?';
- if ($act) {
- echo 'act=' . $act . '&';
- }
- if ($sort_by) {
- echo 'sort_by=' . $sort_by . '&';
- }
- if ($direction) {
- echo 'direction=' . $direction . '&';
- }
- echo 'gr=' . $id . '","left");
- ';
- } else {
- $current_group = $grname;
- echo 'AddToMenu("","","left");
- ';
- }
- next( $counter );
- }
- unset( $counter );
- echo 'EndMenu();';
- echo '</script>
- ';
- 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;">
- ';
- echo '<tr>
- ';
- echo '<td width=50> <b>Group: </b></td>
- ';
- echo '<td width=10 style="cursor: hand;" onclick="SM(this,\'select_group\',-5);" onmouseout="CheckHide();"><b>' . $current_group . '</b></td>
- ';
- echo '<td width=100%></td>
- ';
- echo '<td align=right width=80 style="cursor: hand;" onclick="SM(this,\'menu\',-80);" onmouseout="CheckHide();"><b>Main menu </b></td>
- ';
- echo '</tr></table>
- ';
- echo '<table width=20 border=0 cellspacing=0 cellpadding=0><tr><td height=1></td></tr></table>
- ';
- }
- function show() {
- global $gr;
- global $setup;
- global $sort_by;
- global $direction;
- global $page;
- global $per_page;
- @include( $setup['files_path'] . 'data/' . $gr . '.cfg' );
- $group_base = filereadall( $setup['files_path'] . 'data/group.dat' );
- if (!$group_base) {
- add_group_main( );
- exit( );
- }
- head( 0 );
- $gr += 0;
- $page += 0;
- @include( $setup['files_path'] . 'data/' . $gr . '_graber.cfg' );
- $base = filereadall( $setup['files_path'] . 'data/' . $gr . '_base.dat' );
- if (( !$per_page && !$group['stats_per_page'] )) {
- $per_page2 = sizeof( $base ) - 1;
- } else {
- .......................................................................
- ...........................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement