Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- require('config.php');
- require('config_ini.php');
- require('_sys/functions.php');
- sec_session_start();
- /*
- //DELETE TEMP FILES
- $path = ROOT.'/_sys/process/change_mail/';
- $files = scandir($path);
- foreach($files as $file) {
- unlink($path.$file);
- }
- */
- if($_GET['op'] == 'item' || isset($_GET['start_from']) || isset($_GET['iN']) || isset($_GET['li'])){
- header('HTTP/1.1 404 Not Found');
- include('404.php');
- die();
- }
- //FOR SHOP CHECK & BLACKSMITH
- if(isset($_GET['u'])){
- if($_GET['u'] == 'webshop' && is_numeric($_GET['buy'])){
- if(isset($_POST['process_item'])){
- if($_POST['webshop_token'] != $_SESSION['webshop_token']){
- $can_t_shop_now = '1';
- }else{
- $can_t_shop_now = '0';
- }
- }
- $_SESSION['webshop_token'] = md5(session_id() . microtime(true));
- }elseif($_GET['u'] == 'blacksmith' && ($_GET['upgrade'] == 'level' || $_GET['upgrade'] == 'joh' || $_GET['upgrade'] == 'exc')){
- if(isset($_POST['process_item'])){
- if($_POST['blacksmith_token'] != $_SESSION['blacksmith_token']){
- $can_t_do_job_now = '1';
- }else{
- $can_t_do_job_now = '0';
- }
- }
- $_SESSION['blacksmith_token'] = md5(session_id() . microtime(true));
- }elseif($_GET['u'] == 'clearinv'){
- if(isset($_POST['process'])){
- if($_POST['clearinv_token'] != $_SESSION['clearinv_token']){
- $can_t_do_job_now = '1';
- }else{
- $can_t_do_job_now = '0';
- }
- }
- $_SESSION['clearinv_token'] = md5(session_id() . microtime(true));
- }elseif($_GET['u'] == 'itemstovault'){
- if(isset($_POST['process'])){
- if($_POST['itemstovault_token'] != $_SESSION['itemstovault_token']){
- $can_t_do_job_now = '1';
- }else{
- $can_t_do_job_now = '0';
- }
- }
- $_SESSION['itemstovault_token'] = md5(session_id() . microtime(true));
- }elseif($_GET['u'] == 'clearskills'){
- if(isset($_POST['process'])){
- if($_POST['clearskills_token'] != $_SESSION['clearskills_token']){
- $can_t_do_job_now = '1';
- }else{
- $can_t_do_job_now = '0';
- }
- }
- $_SESSION['clearskills_token'] = md5(session_id() . microtime(true));
- }elseif($_GET['u'] == 'exchangevippoints'){
- if(isset($_POST['process'])){
- if($_POST['exchangevippoints_token'] != $_SESSION['exchangevippoints_token']){
- $can_t_do_job_now = '1';
- }else{
- $can_t_do_job_now = '0';
- }
- }
- $_SESSION['exchangevippoints_token'] = md5(session_id() . microtime(true));
- }
- }
- if(isset($_SESSION['user_id'], $_SESSION['username'], $_SESSION['login_string'])) {
- $memb___id = safe($_SESSION['username'],'','12');
- $memb_guid = safe($_SESSION['user_id'],'','12');
- $logged_html = '1';
- $session_expire_login = safe($_SESSION['expire'],'','12');
- $time_left_expire_login = (time()-$session_expire_login);
- if($time_left_expire_login >= 600){
- $_SESSION = array();
- $params = session_get_cookie_params();
- setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]);
- session_destroy();
- $memb___id='';
- $logged_html = '';
- $memb_guid = '';
- $session_expired_notify = '1';
- }
- $_SESSION['expire'] = time();
- }else{
- $memb___id='';
- $logged_html = '';
- $memb_guid = '';
- }
- post_check($memb___id);
- get_check($mucore['website_url'],$memb___id);
- if(isset($_GET['page']) && !empty($_GET['page'])){
- $page_id = safe($_GET['page'],'');
- foreach($mucore['page'] as $set_page_id => $set_page){
- $set_page_array[] = $set_page_id;
- }
- if(in_array($page_id,$set_page_array)){
- $page['title'] = $mucore['page'][$page_id]['title'].' - ';
- $page['file'] = $mucore['page'][$page_id]['file'];
- $page['title_nav'] = $mucore['page'][$page_id]['title'];
- $page['title_info'] = $mucore['page'][$page_id]['title_info'];
- $page['seo_desc'] = $mucore['page'][$page_id]['meta_description'];
- $go_page = '1';
- }else{
- header('Location: '.$mucore['website_url'].'');
- }
- }else{
- $go_page = '1';
- $page_id = 'home';
- $page['title'] = $mucore['page'][$page_id]['title'].' - ';
- $page['file'] = $mucore['page'][$page_id]['file'];
- $page['title_nav'] = $mucore['page'][$page_id]['title'];
- $page['title_info'] = $mucore['page'][$page_id]['title_info'];
- $page['seo_desc'] = $mucore['page'][$page_id]['meta_description'];
- $go_page = '1';
- }
- if(isset($_GET['u']) && !empty($_GET['u'])){
- $page_id_u = safe($_GET['u'],'');
- foreach($mucore['page_u'] as $set_page_id_u => $set_page_u){
- $set_page_array_u[] = $set_page_id_u;
- }
- if(in_array($page_id_u,$set_page_array_u)){
- $page_u['title'] = $mucore['page_u'][$page_id_u]['title'].' - ';
- $page_u['file'] = $mucore['page_u'][$page_id_u]['file'];
- $page_u['title_nav'] = $mucore['page_u'][$page_id_u]['title'];
- $page_u['title_info'] = $mucore['page_u'][$page_id_u]['title_info'];
- $go_page_u = '1';
- }else{
- header('Location: '.$mucore['website_url'].'');
- }
- }
- if($go_page_u == '1' && $logged_html == ''){
- setcookie('lasturl',$_SERVER['REQUEST_URI']);
- }
- //echo strlen($page['seo_desc']);
- //FACEBOOK PLUGIN
- //require('plugin/facebook/config.php');
- if(FACEBOOK_LOGIN == '1' && (($page_id == 'user' && $page_id_u == 'account') || ($page_id == 'register' && $logged_html == ''))){
- require('plugin/facebook/engine/facebook.php');
- require('plugin/facebook/engine/header_facebook.php');
- }
- $no_seo_array = array('user','contact','lostpassword','rankings');
- if(in_array($page_id,$no_seo_array)){
- $no_seo = '<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">';
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title><?=$page_u['title'].$page['title'].$mucore['website_title']; ?></title>
- <meta name="description" content="<?=$page['seo_desc']; ?>">
- <?=$no_seo ;?>
- <link rel="stylesheet" href="images/main.css" type="text/css">
- <meta name="google-site-verification" content="<?=$mucore['google_site_verificaiton']; ?>" />
- </head>
- <body>
- <div class="bg" align="center" style="background: url('images/<?=$mucore['template']; ?>/bg_center_top.jpg') no-repeat center top;">
- <div style="width: 900px; padding-top: 250px;" align="center" class="top_menu">
- <a href="<?=$mucore['website_url']; ?>" title="<?=$muonline_seo_title;?> <?=$mucore['website_title']; ?> Server">Home</a>
- <a href="<?=$mucore['website_url']; ?>/downloads.html" title="Download <?=$muonline_seo_title; ?> Game">Downloads</a>
- <a href="<?=$mucore['website_url']; ?>/register.html" title="Register new account on <?=$muonline_seo_title; ?> Server">Register</a>
- <a href="<?=$mucore['website_url']; ?>/index.php?page=user&u=rank">Rankings</a>
- <a href="http://www.zhypernetwork.com/zhyper_wiki/index.php?title=Main_Page" target="_blank" rel="nofollow">Wiki Guide</a>
- <a href="<?=$mucore['forum_url']; ?>" target="_blank" rel="nofollow">Forum</a>
- <a href="<?=$mucore['website_url']; ?>/index.php?page=contact">Contact</a>
- </div>
- </div>
- <div class="bg_pattern" align="center">
- <?
- require('plugin/castlesiege/config.php');
- require('_sys/cache/castlesiege.php');
- if(CASTLESIEGE_ENABLED == '1' && $page_id == 'home'){
- $battletoday = date("l");
- $battleDate = strtotime("next ".CASTLESIEGE_DAYSTART." ".CASTLESIEGE_TIMESTART."");
- $battletimeOffset = $battleDate - time();
- if($battletoday == CASTLESIEGE_DAYSTART) {
- $currentTime = strtotime(date("H:i:s"));
- $battleTimeToday = strtotime(CASTLESIEGE_TIMESTART);
- $timeOffsetToday = $battleTimeToday - time();
- if($battleTimeToday > $currentTime) {
- // CS BATTLE IS TODAY
- $siege_in = $timeOffsetToday;
- }else{
- $timeOffsetToday = $timeOffsetToday*(-1);
- if((CASTLESIEGE_BATTLETIME*60) > $timeOffsetToday) {
- // CS BATTLE IN PROGRESS
- } else {
- $siege_in= $battletimeOffset;
- }
- }
- } else {
- // CS BATTLE IS ON NEXT DATE
- $siege_in = $battletimeOffset;
- }
- $siege_in = sprintf("%2d%s%2d%s%2d%s%2d", floor($siege_in/86400), ':', floor($siege_in/3600)%24, ':', ($siege_in/60)%60, ':', $siege_in%60);
- $siege_in = explode(":",$siege_in);
- echo '
- <link rel="stylesheet" href="plugin/castlesiege/images/siege.css" type="text/css">
- <div class="siege_bg">
- <div style="float:left; margin-top: 15px; margin-left: 15px; width: 320px;">
- <div style="float:left; text-align:left; width: 60px;">
- <div style="background: #1d1c1a;width:60px;"><img src="logo.php?hex='.$castlesiege['guild_logo'].'" title="guild logo" width="60"></div>
- </div>
- <div style="float:left; margin-left: 10px; text-align:left;">
- <div class="siege_info" style="margin-top: 0px;">Castle Owner</div>
- <div class="siege_guild" style="margin-top: 15px;">
- <span>
- <a href="'.$mucore['website_url'].'/index.php?page=user&u=rank&rank=guild&gid='.$castlesiege['guild'].'">
- '.decode(safe($castlesiege['guild'],''),$mucore['cryptkey']).'
- </a>
- </span>
- </div>
- </div>
- <div style="clear:both;"></div>
- <div style="text-align:left; margin-top: 15px;">
- <div class="siege_info">Castle Siege Battle Starts In</div>
- <div class="siege_guild" style="margin-top: 10px;">'.$siege_in[0].'<span>d</span> '.$siege_in[1].'<span>h</span> '.$siege_in[2].'<span>m</span> '.$siege_in[3].'<span>s</span></div>
- </div>
- </div>
- <div style="float:left; margin-top: 15px; width: 250px; text-align:left;">
- <div class="siege_info">Resets Hall of Fame</div>';
- require('_sys/cache/rank_resets.php');
- $rank_resets = json_decode($rank['resets'],TRUE);
- $cr=0;
- foreach($rank_resets as $rank_var){
- $cr++;
- echo '<div style="margin-bottom: 2px; margin-left: 5px;" class="rank_name">'.$cr.'. '.htmlspecialchars(decode($rank_var['name'],$mucore['cryptkey']), ENT_QUOTES, 'UTF-8').' <span>('.$rank_var['resets'].')</span></div>';
- }
- echo '
- </div>
- <div style="float:left; margin-top: 15px; width: 200px; text-align:left;">
- <div class="siege_info">Guild Rankings</div>';
- require('_sys/cache/rank_guild.php');
- $rank_resets = json_decode($rank['guild'],TRUE);
- $cr=0;
- foreach($rank_resets as $rank_var){
- $cr++;
- echo '<div style="margin-bottom: 2px; margin-left: 5px;" class="rank_name">'.$cr.'. '.htmlspecialchars(decode($rank_var['name'],$mucore['cryptkey']), ENT_QUOTES, 'UTF-8').' <span>- '.$rank_var['score'].'</span></div>';
- }
- echo '
- </div>
- <div style="clear:both;"></div>
- </div>
- ';
- }
- ?>
- <div class="content">
- <div style="width: 952px;">
- <div class="left_side" align="center">
- <?
- if(isset($_GET['u']) && $_GET['u'] == 'webshop'){
- echo '
- <a name="shop"></a>
- <div style="margin-top: 20px; width: 280px;" align="left">
- <h2 style="margin:0px;padding:0px;">'.$mucore['website_title'].' Webshop</h2>
- <div style="font-size:11px; margin-top: 5px; color: #fff;">
- Our webshop is exclusively available only for members. Here you will find the latest items available from the game at an amazing price!
- </div>
- <div style="margin-top: 5px;" align="right"><a href="index.php">Go Back to Member Area</a></div>
- </div>';
- require('plugin/webshop/config.php');
- $is_webshop = '1';
- if(isset($_GET['cat']) && is_numeric($_GET['cat'])){
- $item_category_gid = safe($_GET['cat'],'');
- if(array_key_exists($item_category_gid,$items_categories)){
- $category_pressent = '1';
- }
- }
- foreach ($items_categories as $item_category_id => $item_category_var){
- if($category_pressent == '1' && $item_category_gid == $item_category_id){
- $item_cats_nav[] = '<li class="left_menu_active">'.$item_category_var.'</li>';
- $item_cat_title = $item_category_var;
- }else{
- $item_cats_nav[] = '<li><a href="index.php?page=user&u=webshop&cat='.$item_category_id.'#shop">'.$item_category_var.'</a></li>';
- }
- }
- echo '<div style="margin-top: 20px;"></div>
- <div class="box_title">
- Category
- </div>
- <ul class="left_menu">
- '.implode("\n",$item_cats_nav).'
- </ul>
- <div class="box_bottom"></div>
- ';
- }
- ?>
- <?
- if($is_webshop != '1'){
- echo '
- <a href="'.$mucore['website_url'].'/index.php?page=user&u=donate"><img src="images/donate_banner.gif" style="margin-top: 12px;" border="0"></a>
- <div style="margin-top: 10px;"></div>
- <div class="box_title">
- Member Area
- </div>';
- if($logged_html == '1'){
- echo '
- <ul class="left_menu">
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=exchangevippoints">Exchange VIP Points</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=clearskills">Clear Skills</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=itemstovault">Move Items to Vault</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=clearinv">Clear Inventory</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=charstatus">Characters Status</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=donate">Donate</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=vote">Vote 4 Points</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=reset">Reset Character</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=resetpk">Reset PK Status</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=unstuck">Unstuck Character</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=fixstats">Fix Stats</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=addstats">Add Stats</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=blacksmith" style="color: #ff0000; font-style: italic;">Blacksmith</a></li>
- <li><a href="'.$mucore['website_url'].'/index.php?page=user&u=webshop" style="color: #ff0000; font-style: italic;">Webshop</a></li>
- </ul>
- <div align="left" style="width: 280px; margin-top: 10px; margin-bottom: 10px;">
- Welcome '.$memb___id.'
- <div align="left" style="margin-top: 12px; width: 284px;">
- <div style="float:left;"><a href="'.$mucore['website_url'].'/index.php?page=user&u=account">ACCOUNT MANAGEMENT</a></div>
- <div style="float:right;">
- <input type="button" class="small_button" value="Logout" onclick="location.href=\' process.php?call=logout\';">
- </div>
- <div style="clear:both;"></div>
- </div>
- </div>
- ';
- }else{
- echo '
- <div class="box_bottom"></div>
- <div align="left" style="width: 280px; margin-top: 10px; margin-bottom: 10px;">
- <form action="process.php?call=login" method="post">
- <div style="margin-top: 20px;"></div>
- <div style="float:left; width: 100px;">Username</div>
- <div style="float:left; width: 180px;"><input type="text" value="" name="user" class="field" style="width: 177px;" maxlength="15"></div>
- <div style="clear:both;"></div>
- <div style="margin-top: 10px;"></div>
- <div style="float:left; width: 100px;">Password</div>
- <div style="float:left; width: 180px;"><input type="password" value="" name="password" class="field" style="width: 177px;" maxlength="15"></div>
- <div style="clear:both;"></div>
- <div style="margin-top: 10px;"></div>
- <div style="float:left; width: 100px;">Captcha</div>
- <div style="float:left; width: 180px;">
- <div style="float:right; width: 100px;">
- <input type="text" name="captcha" class="field" style="width: 97px;" maxlength="4" value="enter code here" onselect="this.value=\'\';" onclick="this.value=\'\';">
- </div>
- <div style="float:left; width: 50px;">
- <img src="captcha.php" title="captcha">
- </div>
- <div style="float:left; width: 30px; line-height: 26px; font-size: 14px; color: #fff;" align="center">
- »
- </div>
- </div>
- <div style="clear:both;"></div>
- <div align="right" style="margin-top: 12px; width: 284px;">
- <div style="float:left;"><a href="'.$mucore['website_url'].'/index.php?page=lostpassword">» Lost Password</a></div>
- <div style="float:right;">
- <input type="submit" class="small_button" value="Login">
- </div>
- <div style="clear:both;"></div>
- ';
- if(FACEBOOK_LOGIN == '1'){
- echo '<div align="left" style="margin-top: 10px;"><a href="javascript:void(0)" onclick="location.href=\'process.php?call=loginfb\'"><img src="plugin/facebook/images/login.gif" title="facebook login"></a></div>';
- }
- echo '
- </div>
- </form>
- </div>
- ';
- }
- echo '<div class="box_bottom"></div>';
- }
- ?>
- <a href="<?=$mucore['website_url']; ?>/index.php?page=user&u=vote"><img src="images/vote_points_banner.gif" style="margin-top: 20px;" border="0"></a>
- <a href="http://www.zhypernetwork.com/zhyper_wiki/index.php?title=Main_Page"><img src="http://i.imgur.com/VlZab2Y.gif" style="margin-top: 20px;" border="0"></a>
- <div style="margin-top: 20px;"></div>
- <div class="box_title">
- Castle Siege
- </div>
- <div style="width: 300px; padding-top: 10px; padding-bottom: 10px;">
- <div style="float:left; width:170px; font-size: 13px;" align="left">
- <div style="border-bottom: 1px dashed #ccc; height: 25px;">
- Guild Owner: <a href="<?=$mucore['website_url']; ?>/index.php?page=user&u=rank&rank=guild&gid=<?=$castlesiege['guild'] ; ?>"><?=decode(safe($castlesiege['guild'],''),$mucore['cryptkey']); ?></a>
- </div>
- <div style="border-bottom: 1px dashed #ccc; height: 25px;">
- Guild Master: <a href="<?=$mucore['website_url']; ?>/index.php?page=user&u=rank&info=<?=$castlesiege['guild_owner'] ; ?>"><?=decode(safe($castlesiege['guild_owner'],''),$mucore['cryptkey']); ?></a>
- </div>
- </div>
- <div style="float:right; width:121px;" align="right"><div style="background: #1d1c1a;width:100px;"><img src="logo.php?hex=<?=$castlesiege['guild_logo']; ?>" title="guild logo"></div></div>
- <div style="clear:both"></div>
- </div>
- <div class="box_bottom"></div>
- <div style="margin-top: 30px;"></div>
- <div class="left_title">
- Navigation Menu
- </div>
- <div class="left_top_menu"></div>
- <ul class="left_menu">
- <li><a href="<?=$mucore['website_url']; ?>">Home</a></li>
- <li><a href="<?=$mucore['website_url']; ?>/downloads.html" title="Download <?=$muonline_seo_title; ?> Game">Downloads</a></li>
- <li><a href="<?=$mucore['website_url']; ?>/register.html" title="Register new account on <?=$muonline_seo_title; ?> Server">Register</a></li>
- <li><a href="<?=$mucore['website_url']; ?>/index.php?page=user&u=rank">Rankings</a></li>
- <li><a href="http://www.zhypernetwork.com/zhyper_wiki/index.php?title=Main_Page" target="_blank" rel="nofollow">Wiki Guide</a></li>
- <li><a href="<?=$mucore['website_url']; ?>/index.php?page=user&u=donate" rel="nofollow">Donate</a></li>
- <li><a href="<?=$mucore['forum_url']; ?>" target="_blank">Forum</a></li>
- </ul>
- <div class="left_bottom_menu"></div>
- <div style="margin-top: 20px;"></div>
- <div class="box_title">
- Facebook Page
- </div>
- <iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fzhypernetworks&width=300&height=258&colorscheme=light&show_faces=true&border_color&stream=false&header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:289px; background:#fff;"></iframe>
- <div class="box_bottom"></div>
- <div style="margin-top: 20px;"></div>
- </div>
- <div class="right_side">
- <div class="nav_bar">
- <div class="nav_bar_location">
- <?
- $nav_bar = $mucore['website_title'];
- if($go_page == '1'){
- $nav_bar .=' » '.$page['title_nav'];
- }
- if($go_page_u == '1'){
- $nav_bar .=' » '.$page_u['title_nav'];
- }
- ?>
- <?=$nav_bar; ?>
- </div>
- </div>
- <div class="page">
- <?
- if($go_page == '1'){
- if(is_file('page_sys/'.$page['file'].'')){
- echo '<h1>';
- if($go_page_u == '1'){
- echo $page_u['title_nav'];
- $title_info = $page_u['title_info'];
- }elseif($go_page == '1'){
- echo $page['title_nav'];
- $title_info = $page['title_info'];
- }
- echo '
- </h1>
- <div class="page_title_info">
- '.$title_info.'
- </div>
- ';
- echo '
- <div style="background-color: rgba(0, 0, 0, 0.3); margin-top: 10px;">
- <div style="padding-left: 20px; padding-top: 15px; padding-bottom: 20px; padding-right: 20px;">';
- include('page_sys/'.$page['file'].'');
- echo '</div></div>';
- }else{
- echo alert('Page system could not be found!','0');
- }
- }
- ?>
- </div>
- </div>
- <div style="clear:both"></div>
- </div>
- </div>
- </div>
- <?
- if($logged_html == '1'){
- echo '
- <script type="text/javascript">
- function session_extend() {
- var r = confirm("Your login session is about to expire!\nPress OK button to extend!");
- if (r == true) {
- location.href=\''.$mucore['website_url'].'/index.php?page='.$page_id.'&u='.$page_id_u.'\';
- } else {
- }
- }
- setTimeout(session_extend, 480000);
- </script>
- ';
- }
- if($session_expired_notify == '1'){
- echo '<script type="text/javascript">
- alert(\'Your login session has expired,\nPlease login again.\');
- </script>
- ';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement