/* Decoded by unphp.net */ ?>"; foreach ( $language_list as $key => $value ) { $lang_change .=""; if( isset($value['icon']) AND $value['icon'] ) { $lang_change .= ""; } $lang_change .="{$value['name']}"; } $lang_change .= ""; $db->query( "SELECT id, text, user_from, date, foto FROM " . USERPREFIX . "_pm LEFT JOIN " . USERPREFIX . "_users ON " . USERPREFIX . "_pm.user_from=" . USERPREFIX . "_users.name WHERE " . USERPREFIX . "_pm.user= '{$member_id['user_id']}' AND folder = 'inbox' ORDER BY pm_read ASC, date DESC LIMIT 5" ); $pm_list = array(); while ( $row = $db->get_array() ) { $row['text'] = preg_replace ( "#\[hide(.*?)\]#i", "", $row['text'] ); $row['text'] = str_ireplace( "[/hide]", "", $row['text']); $row['text'] = str_replace ("
", " ", $row['text']); $row['text'] = str_replace ("
", " ", $row['text']); $row['text'] = str_replace ("{", "{", $row['text']); $row['text'] = dle_substr(strip_tags (stripslashes($row['text']) ),0,100, $config['charset'])." ..."; if( date( 'Ymd', $row['date'] ) == date( 'Ymd', time() ) ) { $date = date( "H:i", $row['date'] ); } else { $date = langdate( "D H:i", $row['date'] ); } if ( count(explode("@", $row['foto'])) == 2 ) { $pm_avatar = 'https://www.gravatar.com/avatar/' . md5(trim($row['foto'])) . '?s=' . intval($user_group[$row['user_group']]['max_foto']); } else { if( $row['foto'] ) { if (strpos($row['foto'], "//") === 0) $pm_avatar = "http:".$row['foto']; else $pm_avatar = $row['foto']; $pm_avatar = @parse_url ( $pm_avatar ); if( $pm_avatar['host'] ) { $pm_avatar = $row['foto']; } else $pm_avatar = "uploads/fotos/" . $row['foto']; } else $pm_avatar = "engine/skins/images/noavatar.png"; } $pm_list[] = <<
{$row['user_from']} {$date}
{$row['text']}
HTML; } if( count($pm_list) ) { $pm_list = ""; } else { $pm_list = "
{$lang['no_message']}
"; } if ( count(explode("@", $member_id['foto'])) == 2 ) { $avatar = 'https://www.gravatar.com/avatar/' . md5(trim($member_id['foto'])) . '?s=' . intval($user_group[$member_id['user_group']]['max_foto']); } else { if( $member_id['foto'] ) { if (strpos($member_id['foto'], "//") === 0) $avatar = "http:".$member_id['foto']; else $avatar = $member_id['foto']; $avatar = @parse_url ( $avatar ); if( $avatar['host'] ) { $avatar = $member_id['foto']; } else $avatar = "uploads/fotos/" . $member_id['foto']; } else $avatar = "engine/skins/images/noavatar.png"; } if ( $member_id['pm_unread'] ) { $pop_notice = "{$member_id['pm_unread']}"; } $message_notice = "{$member_id['pm_all']}"; $profile_link = "user/" . urlencode ( $member_id['name'] ) . "/"; $options = array (); $options['config'] = array ( array ( 'name' => $lang['opt_all'], 'url' => "?mod=options&action=syscon", 'mod' => "options", 'access' => "admin" ), array ( 'name' => $lang['opt_storages'], 'url' => "?mod=storage", 'mod' => "storage", 'access' => "admin" ), array ( 'name' => $lang['opt_cat'], 'url' => "?mod=categories", 'mod' => "categories", 'access' => $user_group[$member_id['user_group']]['admin_categories'] ), array ( 'name' => $lang['opt_db'], 'url' => "?mod=dboption", 'mod' => "dboption", 'access' => "admin" ), array ( 'name' => $lang['opt_vconf'], 'url' => "?mod=videoconfig", 'mod' => "videoconfig", 'access' => "admin" ), array ( 'name' => $lang['opt_xfil'], 'url' => "?mod=xfields&xfieldsaction=configure", 'mod' => "xfields", 'access' => $user_group[$member_id['user_group']]['admin_xfields'] ), array ( 'name' => $lang['opt_question'], 'url' => "?mod=question", 'mod' => "question", 'access' => "admin" ) ); $options['user'] = array ( array ( 'name' => $lang['opt_user'], 'url' => "?mod=editusers&action=list", 'mod' => "editusers", 'access' => $user_group[$member_id['user_group']]['admin_editusers'] ), array ( 'name' => $lang['opt_xprof'], 'url' => "?mod=userfields&xfieldsaction=configure", 'mod' => "userfields", 'access' => $user_group[$member_id['user_group']]['admin_userfields'] ), array ( 'name' => $lang['opt_group'], 'url' => "?mod=usergroup", 'mod' => "usergroup", 'access' => "admin" ), array ( 'name' => $lang['opt_social'], 'url' => "?mod=social", 'mod' => "social", 'access' => "admin" ), array ( 'name' => $lang['opt_ipban'], 'url' => "?mod=blockip", 'mod' => "blockip", 'access' => $user_group[$member_id['user_group']]['admin_blockip'] ) ); $options['templates'] = array ( array ( 'name' => $lang['opt_t'], 'url' => "?mod=templates&user_hash=" . $dle_login_hash, 'mod' => "templates", 'access' => "admin" ), array ( 'name' => $lang['opt_email'], 'url' => "?mod=email", 'mod' => "email", 'access' => "admin" ) ); $options['filter'] = array ( array ( 'name' => $lang['opt_plugins'], 'url' => "?mod=plugins", 'mod' => "plugins", 'access' => "admin" ), array ( 'name' => $lang['opt_srebuild'], 'url' => "?mod=rebuild", 'mod' => "rebuild", 'access' => "admin" ), array ( 'name' => $lang['opt_fil'], 'url' => "?mod=wordfilter", 'mod' => "wordfilter", 'access' => $user_group[$member_id['user_group']]['admin_wordfilter'] ), array ( 'name' => $lang['opt_iptools'], 'url' => "?mod=iptools", 'mod' => "iptools", 'access' => $user_group[$member_id['user_group']]['admin_iptools'] ), array ( 'name' => $lang['opt_sfind'], 'url' => "?mod=search", 'mod' => "search", 'access' => "admin" ), array ( 'name' => $lang['opt_complaint'], 'url' => "?mod=complaint", 'mod' => "complaint", 'access' => $user_group[$member_id['user_group']]['admin_complaint'] ), array ( 'name' => $lang['opt_check'], 'url' => "?mod=check", 'mod' => "check", 'access' => "admin" ), array ( 'name' => $lang['opt_links'], 'url' => "?mod=links", 'mod' => "links", 'access' => $user_group[$member_id['user_group']]['admin_links'] ), array ( 'name' => $lang['opt_redirects'], 'url' => "?mod=redirects", 'mod' => "redirects", 'access' => $user_group[$member_id['user_group']]['admin_redirects'] ), array ( 'name' => $lang['opt_metatags'], 'url' => "?mod=metatags", 'mod' => "metatags", 'access' => $user_group[$member_id['user_group']]['admin_meta'] ) ); $options['others'] = array ( array ( 'name' => $lang['opt_rules'], 'url' => "?mod=static&action=doedit&page=rules", 'mod' => "rules", 'access' => $user_group[$member_id['user_group']]['admin_static'] ), array ( 'name' => $lang['opt_static'], 'url' => "?mod=static", 'mod' => "static", 'access' => $user_group[$member_id['user_group']]['admin_static'] ), array ( 'name' => $lang['opt_clean'], 'url' => "?mod=clean", 'mod' => "clean", 'access' => "admin" ), array ( 'name' => $lang['main_newsl'], 'url' => "?mod=newsletter", 'mod' => "newsletter", 'access' => $user_group[$member_id['user_group']]['admin_newsletter'] ), array ( 'name' => $lang['opt_vote'], 'url' => "?mod=editvote", 'mod' => "editvote", 'access' => $user_group[$member_id['user_group']]['admin_editvote'] ), array ( 'name' => $lang['opt_img'], 'url' => "?mod=files", 'mod' => "files", 'access' => "admin" ), array ( 'name' => $lang['opt_banner'], 'url' => "?mod=banners&action=list", 'mod' => "banners", 'access' => $user_group[$member_id['user_group']]['admin_banners'] ), array ( 'name' => $lang['opt_google'], 'url' => "?mod=googlemap", 'mod' => "googlemap", 'access' => $user_group[$member_id['user_group']]['admin_googlemap'] ), array ( 'name' => $lang['opt_rss'], 'url' => "?mod=rss", 'mod' => "rss", 'access' => $user_group[$member_id['user_group']]['admin_rss'] ), array ( 'name' => $lang['opt_rssinform'], 'url' => "?mod=rssinform", 'mod' => "rssinform", 'access' => $user_group[$member_id['user_group']]['admin_rssinform'] ), array ( 'name' => $lang['opt_tagscloud'], 'url' => "?mod=tagscloud", 'mod' => "tagscloud", 'access' => $user_group[$member_id['user_group']]['admin_tagscloud'] ), array ( 'name' => $lang['opt_logs'], 'url' => "?mod=logs", 'mod' => "logs", 'access' => "admin" ), ); $db->query( "SELECT * FROM " . PREFIX . "_admin_sections" ); while ( $row = $db->get_array() ) { if ($row['allow_groups'] != "all") { $groups = explode(",", $row['allow_groups']); if ( !in_array($member_id['user_group'], $groups) AND $member_id['user_group'] !=1 ) continue; } $row['name'] = totranslit($row['name'], true, false); $row['title'] = strip_tags(stripslashes($row['title'])); $options['admin_sections'][] = array ( 'name' => $row['title'], 'url' => "?mod={$row['name']}", 'mod' => "{$row['name']}", 'access' => 1 ); } foreach ( $options as $sub_options => $value ) { $count_options = count( $value ); for($i = 0; $i < $count_options; $i ++) { if ($member_id['user_group'] == 1 ) continue; if ($member_id['user_group'] != 1 AND $value[$i]['access'] == "admin") unset( $options[$sub_options][$i] ); if ( !$value[$i]['access'] ) unset( $options[$sub_options][$i] ); } } $subs = 0; $sidebar= ""; $menu_item = array(); $menu_item[] = "
  • {$lang['header_all']}
  • "; foreach ( $options as $sub_options ) { $menu_item_header = $lang['opt_hopt']; $icon= "wrench"; if( $subs == 1 ) { $menu_item_header = $lang['opt_s_acc']; $icon= "user";} if( $subs == 2 ) { $menu_item_header = $lang['opt_s_tem']; $icon= "laptop";} if( $subs == 3 ) { $menu_item_header = $lang['opt_s_fil']; $icon= "leaf";} if( $subs == 4 ) { $menu_item_header = $lang['opt_s_oth']; $icon= "link";} if( $subs == 5 ) { $menu_item_header = $lang['admin_other_section']; $icon= "list-alt";} $subs ++; if( !count( $sub_options ) ) continue; $submenu_item = array(); foreach ( $sub_options as $option ) { if ($mod == $option['mod']) { $active_submenu = " class=\"active\""; } else $active_submenu = ""; if ($mod == "options" AND $action != "syscon") { $active_submenu = ""; } if ($mod == "static" AND isset($_GET['page']) AND $_GET['page'] == "rules") { $active_submenu = ""; } $submenu_item[] = "{$option['name']}"; } $submenu_item = implode("", $submenu_item); $menu_item[] = "
  • {$menu_item_header}
  • "; } if( count( $menu_item ) ) $sidebar= implode("", $menu_item); else $sidebar= ""; } else $sidebar= ""; if( @file_exists( ROOT_DIR . '/templates/'. $config['skin'].'/adminpanel.css' ) ) { $custom_css = ""; } else $custom_css = ""; if( $is_loged_in AND $member_id['user_group'] == 1 ) { $settings_bar = "
  • {$lang['settings_video']}
  • {$lang['opt_hopt']}
  • "; } else { $settings_bar = ""; } $body_class = ""; $html_class = ""; $sidebardefault = "sidebar-default"; $html_classes = array('htmlfontsize-50', 'htmlfontsize-75', 'htmlfontsize-90', 'htmlfontsize-110', 'htmlfontsize-120', 'htmlfontsize-130', 'htmlfontsize-140', 'htmlfontsize-150', 'htmlfontsize-175', 'htmlfontsize-200'); if( $is_loged_in AND file_exists( ENGINE_DIR . "/cache/system/adminpanel/" . md5(SECURE_AUTH_KEY.$member_id['user_id']) ) ) { $body_class = trim(@file_get_contents( ENGINE_DIR . "/cache/system/adminpanel/" . md5(SECURE_AUTH_KEY.$member_id['user_id']) )); } else $body_class = ''; $body_classes = explode(' ', $body_class); $body_class = array(); foreach ($body_classes as $value) { $value = trim($value); if( in_array($value, $html_classes) ) { $html_class = $value; } elseif($value) $body_class[] = $value; } if( count($body_class) ) $body_class = implode(' ', $body_class); else $body_class = ''; if ($html_class) { $html_class = " class=\"".htmlspecialchars ( trim($html_class), ENT_QUOTES, $config['charset'] )."\""; } if($body_class) { $dark_theme = strpos ( $body_class, "dle_theme_dark" ); $auto_dark = strpos ( $body_class, "auto_dark_theme" ); if( $auto_dark !== false AND $dark_theme === false ) { $night_time = array ( '01' => array('from' => '16:20', 'to' => '08:40'), '02' => array('from' => '17:30', 'to' => '07:50'), '03' => array('from' => '18:30', 'to' => '06:40'), '04' => array('from' => '19:30', 'to' => '05:30'), '05' => array('from' => '20:30', 'to' => '04:20'), '06' => array('from' => '21:20', 'to' => '03:50'), '07' => array('from' => '21:00', 'to' => '04:00'), '08' => array('from' => '20:00', 'to' => '05:00'), '09' => array('from' => '18:50', 'to' => '06:00'), '10' => array('from' => '17:30', 'to' => '07:00'), '11' => array('from' => '16:20', 'to' => '08:00'), '12' => array('from' => '16:00', 'to' => '08:50') ); $timezones = array('Pacific/Midway','US/Samoa','US/Hawaii','US/Alaska','US/Pacific','America/Tijuana','US/Arizona','US/Mountain','America/Chihuahua','America/Mazatlan','America/Mexico_City','America/Monterrey','US/Central','US/Eastern','US/East-Indiana','America/Lima','America/Caracas','Canada/Atlantic','America/La_Paz','America/Santiago','Canada/Newfoundland','America/Buenos_Aires','America/Godthab','Atlantic/Stanley','Atlantic/Azores','Africa/Casablanca','Europe/Dublin','Europe/Lisbon','Europe/London','Europe/Amsterdam','Europe/Belgrade','Europe/Berlin','Europe/Bratislava','Europe/Brussels','Europe/Budapest','Europe/Copenhagen','Europe/Madrid','Europe/Paris','Europe/Prague','Europe/Rome','Europe/Sarajevo','Europe/Stockholm','Europe/Vienna','Europe/Warsaw','Europe/Zagreb','Europe/Athens','Europe/Bucharest','Europe/Helsinki','Europe/Istanbul','Asia/Jerusalem','Europe/Kiev','Europe/Minsk','Europe/Riga','Europe/Sofia','Europe/Tallinn','Europe/Vilnius','Asia/Baghdad','Asia/Kuwait','Africa/Nairobi','Asia/Tehran','Europe/Kaliningrad','Europe/Moscow','Europe/Volgograd','Europe/Samara','Asia/Baku','Asia/Muscat','Asia/Tbilisi','Asia/Yerevan','Asia/Kabul','Asia/Yekaterinburg','Asia/Tashkent','Asia/Kolkata','Asia/Kathmandu','Asia/Almaty','Asia/Novosibirsk','Asia/Jakarta','Asia/Krasnoyarsk','Asia/Hong_Kong','Asia/Kuala_Lumpur','Asia/Singapore','Asia/Taipei','Asia/Ulaanbaatar','Asia/Urumqi','Asia/Irkutsk','Asia/Seoul','Asia/Tokyo','Australia/Adelaide','Australia/Darwin','Asia/Yakutsk','Australia/Brisbane','Pacific/Port_Moresby','Australia/Sydney','Asia/Vladivostok','Asia/Sakhalin','Asia/Magadan','Pacific/Auckland','Pacific/Fiji'); $detect_time = new DateTime('@'.time() ); if (isset($member_id['timezone']) AND $member_id['timezone'] ) { $timezone = $member_id['timezone']; } else { $timezone = date_default_timezone_get(); } if (!in_array($timezone, $timezones)) $timezone = 'Europe/Moscow'; $detect_time->setTimeZone(new DateTimeZone($timezone)); $c_m = $detect_time->format('m'); $c_t = $detect_time->format('H:i'); if(is_array($night_time[$c_m])) { if( $c_t >= $night_time[$c_m]['from'] OR $c_t <= $night_time[$c_m]['to'] ) { $body_class = str_replace ('dle_theme_', 'saved_dle_theme_', $body_class); $body_class .= " dle_theme_dark auto_night_mode"; $dark_theme = true; } } } if ( $dark_theme !== false ) { $sidebardefault = ""; } $body_class = " class=\"".htmlspecialchars ( trim($body_class), ENT_QUOTES, $config['charset'] )."\""; } $config['session_timeout'] = isset($config['session_timeout']) ? intval($config['session_timeout']) : 0; $dle_login_hash = isset($dle_login_hash) ? $dle_login_hash : ''; $timeout_js = ""; if( $config['session_timeout'] ) { $warn_time = $config['session_timeout'] * 1000 * 60; $redir_time = $warn_time + 10000; $timeout_js = << HTML; } if(!$is_loged_in) { $member_id['user_id'] = 0; $member_id['name'] = ''; $member_id['user_group'] = 5; if( !isset($user_group) ) { $user_group[$member_id['user_group']]['group_name'] = ''; } } $skin_header = << DataLife Engine - {$lang['skin_title']} {css_files} {$custom_css} {js_files}
    HTML; $skin_footer = << DataLife Engine® Copyright 2004-{$year} © SoftNews Media Group All rights reserved.
    {$timeout_js} HTML; $skin_login = << DataLife Engine - {$lang['skin_title']} {css_files} {js_files}
    {$lang['skin_title']} DataLife Engine
    {result}
    {select}
    DataLife Engine® Copyright 2004-{$year}
    © SoftNews Media Group All rights reserved.
    HTML; $skin_not_logged_header = << DataLife Engine - {$lang['skin_title']} {css_files} {js_files}
    HTML; $skin_not_logged_footer = <<
    HTML; ?>