Recommended Servers - Topics UP (790x150)



Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Modulo usuarios online  (Visto 3273 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline xmemox Posteado: September 05, 2017, 10:46:28 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 82
  • Gracias recibida: 11
  • cl
Hola, buenas noches, queria pedirles un favor, estaba creando la web para mi server, MuCore 1.0.8, y baje un template Beggend del foro, hay una opcion que dice usuarios online y no puedo activarla :/, alguien setia tan amable de ayudarme y se ganaria mis gracoas ?


Offline FrancoB #1 Posteado: September 05, 2017, 10:53:50 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 89
  • Gracias recibida: 1120
  • ar
Hola, buenas noches, queria pedirles un favor, estaba creando la web para mi server, MuCore 1.0.8, y baje un template Beggend del foro, hay una opcion que dice usuarios online y no puedo activarla :/, alguien setia tan amable de ayudarme y se ganaria mis gracoas ?

fijate que el template debe tener un archivo de configuracion, en el que te deja poner ip del vps, y puerto que usa el gs.. Si no los pones no te va a aparecer nada..

Si das un poco mas de informacion quizas te podemos ayudar mas.. No sabemos ni que template usas.. o si usas el default.. saludos

Yahoo respuestas papá

Gracias:


Offline xmemox #2 Posteado: September 05, 2017, 10:59:41 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 82
  • Gracias recibida: 11
  • cl
Hola, buenas noches, queria pedirles un favor, estaba creando la web para mi server, MuCore 1.0.8, y baje un template Beggend del foro, hay una opcion que dice usuarios online y no puedo activarla :/, alguien setia tan amable de ayudarme y se ganaria mis gracoas ?

fijate que el template debe tener un archivo de configuracion, en el que te deja poner ip del vps, y puerto que usa el gs.. Si no los pones no te va a aparecer nada..

Si das un poco mas de informacion quizas te podemos ayudar mas.. No sabemos ni que template usas.. o si usas el default.. saludos

Spoiler for Hiden:
Tengo el template Beggend

Gracias:


Offline Xysad #3 Posteado: September 05, 2017, 11:52:25 PM

  • Php Coder
  • 0 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 280
  • Gracias recibida: 1289
  • ar
pasame el index.php del template para revisarlo

Gracias:


Offline xmemox #4 Posteado: September 06, 2017, 06:11:22 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 82
  • Gracias recibida: 11
  • cl
pasame el index.php del template para revisarlo

aqui esta :)

Spoiler for Hiden:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"300 Multiple Choices
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?=build_header_seo(); ?>
<title><?=build_header_title(); ?></title>
   <link href="template/<?=$core['config']['template'] ?>/templates/4/images/style.css" rel="stylesheet" type="text/css">
   <link href="template/<?=$core['config']['template'] ?>/templates/4/images/global_style.css" rel="stylesheet" type="text/css">
   <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
   <script type="text/javascript" src="template/<?=$core['config']['template'] ?>/images/scripts.js"></script>
</head>
<body>
<table width="896" class="svs" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center">
<table width="896" class="back" cellpadding="0" cellspacing="7" align="center">
<tr>
<div class="navigation">
<div id="nav">
   <li><a href="index.php?page_id=news">NEWS</a></li>
   <li><a href="index.php?page_id=downloads">Downloads</a></li>
   <li><a href="index.php?page_id=vote">Vote for us</a></li>
   <li><a href="index.php?page_id=register">Register</a></li>
   <li><a href="index.php?page_id=rankings">Rankings</a></li>
   <li><a href="index.php?page_id=blacklist">Black List</a></li>
   <li><a href="index.php?page_id=statistics">Statistics</a></li>
   <li><a href="index.php?page_id=forum/" target="_blank">Forum</a></li>
</div>
</div>
</tr>
<tr>
<td valign="top"><table class="bar1" width="180" cellpadding="0" cellspacing="1">
<tr>
<td align="center" class="title" height="20" valign="middle"><b>User Panel</b></td>
</tr>
<tr>
<td align="center" height="123" valign="middle">

<table border="0" cellspacing="5" cellpadding="0" align="center">
   <?
        if($user_login == '1'){
           echo '<div class="tmp_left_menu">
           <ul>';
      $m_uss_row_ = get_sort('engine/cms_data/mods_uss.cms','¦');
        $count_m_uss = 0;
      foreach ($m_uss_row_ as $tr){
         explode("¦",$tr);
         $count_m_uss++;
         if($tr[6] == '1'){
            if($tr[3] != ACCOUNTSETTINGS_CMS_USER){
               echo '<li class="meniu">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.$tr[3].'">'.str_replace($menu_links_title,$menu_links_translated,$tr[2]).'</a></li>';
            }
            
         }
      }
      echo ' </ul>
       </div>
      
       <tr>
        <td align="left" class="yellow"><a  href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.ACCOUNTSETTINGS_CMS_USER.'">'.link_account_settings.'</a></td>
        <td align="right" class="yellow"><a  href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'=logout">'.link_log_out.'</a></td>
       </tr>
      
       ';
        }else{
           echo '<form method="post" action="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.LOGIN_CMS_PAGE.'" name="uss_login_form">
          
  <tr>
    <td style="height: 25px; padding-left: 2px;  " width="130"><input type="text" name="uss_id" maxlength="10" class="field2" value="USER ID" OnClick="this.value=''"
></td>
  </tr>
  <tr>
    <td style="height: 25px; padding-left: 2px;"><input type="password" name="uss_password" class="field2" value="PASSWORD" OnClick="this.value=''"
 maxlength="12"></td>
 
    <td rowspan="2"><span style="height: 25px; padding-left: 2px;">
      <input type="hidden" name="process_login">
    </span></td></tr>
    <table width="159" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="right"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                   </table></td>
                  <td><input name="image" type="submit" value="Login" onclick="uss_login_form.submit();" class="buttons"></td>
                <td><a href="index.php?page_id=register">FREE Sign Up </a></td>
                 </tr>
               </table></td>
             </tr>
           </form>
           </form></td>
                      </tr>';
        }
        ?>
   
</table>

</td>
</tr>
<tr>
<td align="center" class="title" height="20" valign="middle"><b>Top 10 Players</b></td>
</tr>
<tr>
<td align="center" valign="top">

<table width="100%" class="tables" cellpadding="0" cellspacing="0" style="border-width:1px;text-align:center;">
<tr class="tables_top"><td width="25px">ID</td><td width="110px">Char Name</td><td width="50px">Resets</td></tr>
<?
include "engine/connect_core.php";
$Chars=$core_db->Execute("select TOP 10 Name,cLevel,Resets from Character Where ctlcode !='32' and ctlcode !='8' order by Resets desc, cLevel desc");
while(!$Chars->EOF){
?>
<tr class="tables_bottom"><td><?=++$count1;?></td><td style="color:#789fff;"><?=$Chars->fields[0];?></td><td><?=$Chars->fields[2];?></td></tr><?
$Chars->MoveNext();
}
?></table>

<tr>
<td align="center" class="title" height="20" valign="middle"><b><center>Advertisments</b></td></center>
</tr>
<td align="center" valign="top">
<a href="Foros Hosting | Comunidad de Hosting en Español! target="_blank"><img src="template/<?=$core['config']['template'] ?>/ad/hg.jpg" alt="Hastle Games" width="160" height="600" border="0"></a>
</td>
</td>
</tr>
</table>
</td><td valign="top">
<table width="508" class="bar1" cellpadding="0" cellspacing="1">
<tr>
<td class="title" height="20" valign="middle" align="left"><b>News</b></td>
</tr>
<tr>
<td align="center" height="589" valign="top">
<br />
<table width="100%">
<tr>
      <td class="news-rest"><?
        if(CMS_NAVBAR == '1'){
           if(isset($_GET[LOAD_GET_PAGE])){
                     $l_load = file("engine/cms_data/pag_d.cms");
                     foreach ($l_load as $l_name){
                        $l_name = explode("¦",$l_name);
                        if($l_name[3] == $page_check_id){
                           $primary_l = $l_name[2];
                           break;
                        }

                     }
                  }
                 
                  if(isset($_GET[USER_GET_PAGE])){
                     $ti2_td = xss_clean(safe_input($_GET[USER_GET_PAGE],"_"));
                     $l2_load = file("engine/cms_data/mods_uss.cms");
                     foreach ($l2_load as $l2_name){
                        $l2_name = explode("¦",$l2_name);
                        if($l2_name[3] == $ti2_td){
                           $secondary_l = $l2_name[2];
                           break;
                        }
                     }
                  }
                 
                  if(!isset($_GET[LOAD_GET_PAGE])){
                                        #&gt;
                                        $title_p =  '';
                                    }elseif  (isset($_GET[LOAD_GET_PAGE])){
                                        if(isset($_GET[USER_GET_PAGE])){
                                            $usercp_module_title =  str_replace($modules_text_tile,$modules_text_translate,$secondary_l);
$title_p =  '';
                                        }else{ $title_p =  '';}
                                    }
                  echo '
                 
                  <div class="where_nav">
                  <table cellpadding="0" cellspacing="0" border="0" >
                  <tr>
                  <td width="100%" align="left">'.$title_p.'</td>
                  </table>
                  </div>';
           
        }

if($page_check_id != ANNOUNCEMENTS_CMS_PAGE){
   require('engine/announcement_config.php');
if($core['ANNOUNCEMENT']['ACTIVE'] == '1'){
   $ann_file = array_reverse(file('engine/variables_mods/announcements.tDB'));
   $count_ann = '0';
   foreach ($ann_file as $ann){
      $ann = explode("¦",$ann);
      if($ann[3] > time()){
         $ann_found = '1';
         $ann_title = $ann[1];
         $ann_date = $ann[2];
         $ann_id = $ann[0];
;         break;
      }
   }
}
   if($ann_found == '1'){
      echo '
      <div class="tmp_m_content">
               <div  class="tmp_right_title">'.text_announcement.'</div>
               <div class="tmp_page_content">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                 <tr>
                 <td rowspan="3" align="left" width="60"><img src="template/'.$core['config']['template'].'/images/announcement.gif" width="38" height="38"></td>
                 <td align="left" style="padding-top: 2px; padding-bottom: 2px;"><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.ANNOUNCEMENTS_CMS_PAGE.'#announcement-'.$ann_id.'">'.$ann_title.'</a></td>
                 <td align="right" class="ann_date">'.date('F j, Y | H:i',$ann_date).'</td>
                 </tr>
                 <tr>
                 <td colspan="2"  align="left" style="background-image:url(template/'.$core['config']['template'].'/images/inner_line.jpg); height: 2px;"></td>
                 </tr>
                
                 ';
      if($core['ANNOUNCEMENT']['AUTHOR'] == '1'){
         echo '<tr>
         <td colspan="2" align="right"><b>'.$core['config']['admin_nick'].'</b> (Administrator)</td>
         </tr>';
         
      }
      echo '</table></div>
                     </div>
                  ';
   }
}
       
       
   
$load_pages = file('engine/cms_data/pag_d.cms');
foreach ($load_pages as $pages_loaded){
   $pages_loaded = explode("¦",$pages_loaded);
   
   if($pages_loaded[3] == $page_check_id){
      $p_loaded_array = preg_split( "/ /", $pages_loaded[5]);
      $p_l = '1';
      break;
   }
}
if($p_l == '1'){
$load_mods = file('engine/cms_data/mods.cms');
foreach ($load_mods as $mods_loaded){
   $mods_loaded = explode("¦",$mods_loaded);
   if(in_array($mods_loaded[0],$p_loaded_array)){
      $_c_id_m[] = $mods_loaded[0];
   }else {
      $_c_id_m[] = 'NULL';
   }
}
$co=0;
foreach ($p_loaded_array as $give){
   #echo $give;
   if(in_array($give,$_c_id_m)){
      foreach ($load_mods as $give_me_out){
         $give_me_out = explode("¦",$give_me_out);
         if($give_me_out[0] == $give){
            if($give_me_out[4] == '1'){
               if($_GET[LOAD_GET_PAGE] == USER_CMS_PAGE && isset($_GET[USER_GET_PAGE])){
                  $construct_title = $secondary_l;
               }else{
                  $construct_title = $give_me_out[3];
               }
            
               echo '<div class="tmp_m_content">
               <div class="title_news" style="height:30">'.htmlspecialchars(str_replace($modules_text_tile,$modules_text_translate,$give_me_out[3])).'</div>
               <div class="tmp_page_content">';
               if($give_me_out[1] == '1'){
                  if(is_file("pages_modules/".$give_me_out[2]."")){
                     include('pages_modules/'.$give_me_out[2].'');
                  }else{
                     echo 'Unable to load module file, reason: not found.';
                  }
               }elseif ($give_me_out[1] == '0'){
                  if(is_file('engine/cms_data/cms_co/'.$give_me_out[0].'_cms.cms')){
                     include('engine/cms_data/cms_co/'.$give_me_out[0].'_cms.cms');
                  }else{
                     echo 'Unable to load module content, reason: not found.';
                  }
               }
               echo '</div> </div>';
            }
         }
      }
   }
}
}
?></td>
</tr>
</table>


<br /></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<table width="100%" border="0" cellspacing="0" cellpadding="0"></table>
</td>
</tr>
</table></td>
<td valign="top"><table class="bar1" width="180" cellpadding="0" cellspacing="1">
<tr>
<td align="center" class="title" height="20" valign="middle"><b>Server Info</b></td>
</tr>
<tr>
<td align="left" height="157" valign="top">
<table width="100%" class="status" cellpadding="0" cellspacing="0">
<tr><td class="status_left">Server Name: </td><td class="status_right">Blessed MU</td></tr>
<tr><td class="status_left">Server Version: </td><td class="status_right">97d+99i</td></tr>
<tr><td class="status_left">Experience: </td><td class="status_right">100x</td></tr>
<tr><td class="status_left">Drop Rate: </td><td class="status_right">70%</td></tr>
<tr><td class="status_space" colspan="3"></td></tr>
<tr><td class="status_left">Total Accounts: </td><td class="status_right"><?
//Estadisticas Usuarios

$statistics_accounts=$core_db2->Execute("SELECT memb___id FROM MEMB_INFO");
echo $statistics_accounts->RecordCount();?></td></tr>
<tr><td class="status_left">Total Characters: </td><td class="status_right"><?
//Estadisticas Personajes

$statistics_characters=$core_db->Execute("SELECT Name FROM Character");
echo $statistics_characters->RecordCount();?></td></tr>
<tr><td class="status_left">Total Guilds: </td><td class="status_right"><? $statistics_guilds=$core_db->Execute("SELECT G_Name FROM Guild");
echo $statistics_guilds->RecordCount();?></td></tr>
<? $sql = $core_db2->Execute("SELECT memb___id FROM MEMB_STAT WHERE ConnectStat = '1'"); ?>
<tr><td class="status_left">Online Users: </td><td class="status_right"><a href="index.php?page_id=estadisticas"><?=$sql->RecordCOunt();?></a></td></tr>
<tr><td class="status_left">Server Status: </td><td class="status_right"><?PHP
if (eregi("status/servidor.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
require 'engine/global_config.php';

$onlineoffline = "127.0.0.1";
if ($check=@fsockopen($onlineoffline,55901,$ERROR_NO,$ERROR_STR,(float)0.5))
   {
   fclose($check);
   echo '<span style="color: #8cff2f"> ONLINE</span>';
   }
else
   {
   echo '<span style="color:#FF0000"> OFFLINE</span>';
   }
?></td></tr>
      
</table>
</td>
</tr>
<tr>
<td align="center" class="title" height="20" valign="middle"><b>Top 10 Guilds</b></td>
</tr>
<tr>
<td align="center" valign="top">

<table width="100%" class="tables" cellpadding="0" cellspacing="0" style="border-width:1px;text-align:center;">
<tr class="tables_top"><td width="25px">ID</td><td width="110px">Guild Name</td><td width="50px">Score</td></tr>
<?
$Guild=$core_db->Execute("select TOP 10 G_Name,G_Score,G_Mark from Guild order by G_Score desc");
$count=0;
while(!$Guild->EOF){
$count++;
?>
<tr class="tables_bottom"><td><?=$count;?></td><td><?=$Guild->fields[0];?></td><td><?=$Guild->fields[1];?> <?
$Guild->MoveNext();
}
?></td></tr></table>
<tr>
<td align="center" class="title" height="20" valign="middle"><b><center>Advertisments</b></td></center>
</tr>
<td align="center" valign="top">
<a href="http://www.cp-team.net" target="_blank"><img src="template/<?=$core['config']['template'] ?>/ad/cpt.jpg" alt="CPTeam!" width="160" height="600" border="0"></a>
</td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" height="23" class="title"><center><b>Template by <a href="http://facebook.com/zebah.design"> Sebas Flores </a> & <a href="http://www.cp-team.net">TheGhost</a> para <a href="http://hastlegames.com/"> HASTLEGAMES</a></b></center></td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>


Offline Xysad #5 Posteado: September 06, 2017, 06:27:32 PM

  • Php Coder
  • 0 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 280
  • Gracias recibida: 1289
  • ar
pasame el index.php del template para revisarlo

aqui esta :)

Spoiler for Hiden:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"300 Multiple Choices
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?=build_header_seo(); ?>
<title><?=build_header_title(); ?></title>
   <link href="template/<?=$core['config']['template'] ?>/templates/4/images/style.css" rel="stylesheet" type="text/css">
   <link href="template/<?=$core['config']['template'] ?>/templates/4/images/global_style.css" rel="stylesheet" type="text/css">
   <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
   <script type="text/javascript" src="template/<?=$core['config']['template'] ?>/images/scripts.js"></script>
</head>
<body>
<table width="896" class="svs" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center">
<table width="896" class="back" cellpadding="0" cellspacing="7" align="center">
<tr>
<div class="navigation">
<div id="nav">
   <li><a href="index.php?page_id=news">NEWS</a></li>
   <li><a href="index.php?page_id=downloads">Downloads</a></li>
   <li><a href="index.php?page_id=vote">Vote for us</a></li>
   <li><a href="index.php?page_id=register">Register</a></li>
   <li><a href="index.php?page_id=rankings">Rankings</a></li>
   <li><a href="index.php?page_id=blacklist">Black List</a></li>
   <li><a href="index.php?page_id=statistics">Statistics</a></li>
   <li><a href="index.php?page_id=forum/" target="_blank">Forum</a></li>
</div>
</div>
</tr>
<tr>
<td valign="top"><table class="bar1" width="180" cellpadding="0" cellspacing="1">
<tr>
<td align="center" class="title" height="20" valign="middle"><b>User Panel</b></td>
</tr>
<tr>
<td align="center" height="123" valign="middle">

<table border="0" cellspacing="5" cellpadding="0" align="center">
   <?
        if($user_login == '1'){
           echo '<div class="tmp_left_menu">
           <ul>';
      $m_uss_row_ = get_sort('engine/cms_data/mods_uss.cms','¦');
        $count_m_uss = 0;
      foreach ($m_uss_row_ as $tr){
         explode("¦",$tr);
         $count_m_uss++;
         if($tr[6] == '1'){
            if($tr[3] != ACCOUNTSETTINGS_CMS_USER){
               echo '<li class="meniu">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.$tr[3].'">'.str_replace($menu_links_title,$menu_links_translated,$tr[2]).'</a></li>';
            }
            
         }
      }
      echo ' </ul>
       </div>
      
       <tr>
        <td align="left" class="yellow"><a  href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.ACCOUNTSETTINGS_CMS_USER.'">'.link_account_settings.'</a></td>
        <td align="right" class="yellow"><a  href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'=logout">'.link_log_out.'</a></td>
       </tr>
      
       ';
        }else{
           echo '<form method="post" action="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.LOGIN_CMS_PAGE.'" name="uss_login_form">
          
  <tr>
    <td style="height: 25px; padding-left: 2px;  " width="130"><input type="text" name="uss_id" maxlength="10" class="field2" value="USER ID" OnClick="this.value=''"
></td>
  </tr>
  <tr>
    <td style="height: 25px; padding-left: 2px;"><input type="password" name="uss_password" class="field2" value="PASSWORD" OnClick="this.value=''"
 maxlength="12"></td>
 
    <td rowspan="2"><span style="height: 25px; padding-left: 2px;">
      <input type="hidden" name="process_login">
    </span></td></tr>
    <table width="159" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="right"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                   </table></td>
                  <td><input name="image" type="submit" value="Login" onclick="uss_login_form.submit();" class="buttons"></td>
                <td><a href="index.php?page_id=register">FREE Sign Up </a></td>
                 </tr>
               </table></td>
             </tr>
           </form>
           </form></td>
                      </tr>';
        }
        ?>
   
</table>

</td>
</tr>
<tr>
<td align="center" class="title" height="20" valign="middle"><b>Top 10 Players</b></td>
</tr>
<tr>
<td align="center" valign="top">

<table width="100%" class="tables" cellpadding="0" cellspacing="0" style="border-width:1px;text-align:center;">
<tr class="tables_top"><td width="25px">ID</td><td width="110px">Char Name</td><td width="50px">Resets</td></tr>
<?
include "engine/connect_core.php";
$Chars=$core_db->Execute("select TOP 10 Name,cLevel,Resets from Character Where ctlcode !='32' and ctlcode !='8' order by Resets desc, cLevel desc");
while(!$Chars->EOF){
?>
<tr class="tables_bottom"><td><?=++$count1;?></td><td style="color:#789fff;"><?=$Chars->fields[0];?></td><td><?=$Chars->fields[2];?></td></tr><?
$Chars->MoveNext();
}
?></table>

<tr>
<td align="center" class="title" height="20" valign="middle"><b><center>Advertisments</b></td></center>
</tr>
<td align="center" valign="top">
<a href="Foros Hosting | Comunidad de Hosting en Español! target="_blank"><img src="template/<?=$core['config']['template'] ?>/ad/hg.jpg" alt="Hastle Games" width="160" height="600" border="0"></a>
</td>
</td>
</tr>
</table>
</td><td valign="top">
<table width="508" class="bar1" cellpadding="0" cellspacing="1">
<tr>
<td class="title" height="20" valign="middle" align="left"><b>News</b></td>
</tr>
<tr>
<td align="center" height="589" valign="top">
<br />
<table width="100%">
<tr>
      <td class="news-rest"><?
        if(CMS_NAVBAR == '1'){
           if(isset($_GET[LOAD_GET_PAGE])){
                     $l_load = file("engine/cms_data/pag_d.cms");
                     foreach ($l_load as $l_name){
                        $l_name = explode("¦",$l_name);
                        if($l_name[3] == $page_check_id){
                           $primary_l = $l_name[2];
                           break;
                        }

                     }
                  }
                 
                  if(isset($_GET[USER_GET_PAGE])){
                     $ti2_td = xss_clean(safe_input($_GET[USER_GET_PAGE],"_"));
                     $l2_load = file("engine/cms_data/mods_uss.cms");
                     foreach ($l2_load as $l2_name){
                        $l2_name = explode("¦",$l2_name);
                        if($l2_name[3] == $ti2_td){
                           $secondary_l = $l2_name[2];
                           break;
                        }
                     }
                  }
                 
                  if(!isset($_GET[LOAD_GET_PAGE])){
                                        #&gt;
                                        $title_p =  '';
                                    }elseif  (isset($_GET[LOAD_GET_PAGE])){
                                        if(isset($_GET[USER_GET_PAGE])){
                                            $usercp_module_title =  str_replace($modules_text_tile,$modules_text_translate,$secondary_l);
$title_p =  '';
                                        }else{ $title_p =  '';}
                                    }
                  echo '
                 
                  <div class="where_nav">
                  <table cellpadding="0" cellspacing="0" border="0" >
                  <tr>
                  <td width="100%" align="left">'.$title_p.'</td>
                  </table>
                  </div>';
           
        }

if($page_check_id != ANNOUNCEMENTS_CMS_PAGE){
   require('engine/announcement_config.php');
if($core['ANNOUNCEMENT']['ACTIVE'] == '1'){
   $ann_file = array_reverse(file('engine/variables_mods/announcements.tDB'));
   $count_ann = '0';
   foreach ($ann_file as $ann){
      $ann = explode("¦",$ann);
      if($ann[3] > time()){
         $ann_found = '1';
         $ann_title = $ann[1];
         $ann_date = $ann[2];
         $ann_id = $ann[0];
;         break;
      }
   }
}
   if($ann_found == '1'){
      echo '
      <div class="tmp_m_content">
               <div  class="tmp_right_title">'.text_announcement.'</div>
               <div class="tmp_page_content">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                 <tr>
                 <td rowspan="3" align="left" width="60"><img src="template/'.$core['config']['template'].'/images/announcement.gif" width="38" height="38"></td>
                 <td align="left" style="padding-top: 2px; padding-bottom: 2px;"><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.ANNOUNCEMENTS_CMS_PAGE.'#announcement-'.$ann_id.'">'.$ann_title.'</a></td>
                 <td align="right" class="ann_date">'.date('F j, Y | H:i',$ann_date).'</td>
                 </tr>
                 <tr>
                 <td colspan="2"  align="left" style="background-image:url(template/'.$core['config']['template'].'/images/inner_line.jpg); height: 2px;"></td>
                 </tr>
                
                 ';
      if($core['ANNOUNCEMENT']['AUTHOR'] == '1'){
         echo '<tr>
         <td colspan="2" align="right"><b>'.$core['config']['admin_nick'].'</b> (Administrator)</td>
         </tr>';
         
      }
      echo '</table></div>
                     </div>
                  ';
   }
}
       
       
   
$load_pages = file('engine/cms_data/pag_d.cms');
foreach ($load_pages as $pages_loaded){
   $pages_loaded = explode("¦",$pages_loaded);
   
   if($pages_loaded[3] == $page_check_id){
      $p_loaded_array = preg_split( "/ /", $pages_loaded[5]);
      $p_l = '1';
      break;
   }
}
if($p_l == '1'){
$load_mods = file('engine/cms_data/mods.cms');
foreach ($load_mods as $mods_loaded){
   $mods_loaded = explode("¦",$mods_loaded);
   if(in_array($mods_loaded[0],$p_loaded_array)){
      $_c_id_m[] = $mods_loaded[0];
   }else {
      $_c_id_m[] = 'NULL';
   }
}
$co=0;
foreach ($p_loaded_array as $give){
   #echo $give;
   if(in_array($give,$_c_id_m)){
      foreach ($load_mods as $give_me_out){
         $give_me_out = explode("¦",$give_me_out);
         if($give_me_out[0] == $give){
            if($give_me_out[4] == '1'){
               if($_GET[LOAD_GET_PAGE] == USER_CMS_PAGE && isset($_GET[USER_GET_PAGE])){
                  $construct_title = $secondary_l;
               }else{
                  $construct_title = $give_me_out[3];
               }
            
               echo '<div class="tmp_m_content">
               <div class="title_news" style="height:30">'.htmlspecialchars(str_replace($modules_text_tile,$modules_text_translate,$give_me_out[3])).'</div>
               <div class="tmp_page_content">';
               if($give_me_out[1] == '1'){
                  if(is_file("pages_modules/".$give_me_out[2]."")){
                     include('pages_modules/'.$give_me_out[2].'');
                  }else{
                     echo 'Unable to load module file, reason: not found.';
                  }
               }elseif ($give_me_out[1] == '0'){
                  if(is_file('engine/cms_data/cms_co/'.$give_me_out[0].'_cms.cms')){
                     include('engine/cms_data/cms_co/'.$give_me_out[0].'_cms.cms');
                  }else{
                     echo 'Unable to load module content, reason: not found.';
                  }
               }
               echo '</div> </div>';
            }
         }
      }
   }
}
}
?></td>
</tr>
</table>


<br /></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<table width="100%" border="0" cellspacing="0" cellpadding="0"></table>
</td>
</tr>
</table></td>
<td valign="top"><table class="bar1" width="180" cellpadding="0" cellspacing="1">
<tr>
<td align="center" class="title" height="20" valign="middle"><b>Server Info</b></td>
</tr>
<tr>
<td align="left" height="157" valign="top">
<table width="100%" class="status" cellpadding="0" cellspacing="0">
<tr><td class="status_left">Server Name: </td><td class="status_right">Blessed MU</td></tr>
<tr><td class="status_left">Server Version: </td><td class="status_right">97d+99i</td></tr>
<tr><td class="status_left">Experience: </td><td class="status_right">100x</td></tr>
<tr><td class="status_left">Drop Rate: </td><td class="status_right">70%</td></tr>
<tr><td class="status_space" colspan="3"></td></tr>
<tr><td class="status_left">Total Accounts: </td><td class="status_right"><?
//Estadisticas Usuarios

$statistics_accounts=$core_db2->Execute("SELECT memb___id FROM MEMB_INFO");
echo $statistics_accounts->RecordCount();?></td></tr>
<tr><td class="status_left">Total Characters: </td><td class="status_right"><?
//Estadisticas Personajes

$statistics_characters=$core_db->Execute("SELECT Name FROM Character");
echo $statistics_characters->RecordCount();?></td></tr>
<tr><td class="status_left">Total Guilds: </td><td class="status_right"><? $statistics_guilds=$core_db->Execute("SELECT G_Name FROM Guild");
echo $statistics_guilds->RecordCount();?></td></tr>
<? $sql = $core_db2->Execute("SELECT memb___id FROM MEMB_STAT WHERE ConnectStat = '1'"); ?>
<tr><td class="status_left">Online Users: </td><td class="status_right"><a href="index.php?page_id=estadisticas"><?=$sql->RecordCOunt();?></a></td></tr>
<tr><td class="status_left">Server Status: </td><td class="status_right"><?PHP
if (eregi("status/servidor.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
require 'engine/global_config.php';

$onlineoffline = "127.0.0.1";
if ($check=@fsockopen($onlineoffline,55901,$ERROR_NO,$ERROR_STR,(float)0.5))
   {
   fclose($check);
   echo '<span style="color: #8cff2f"> ONLINE</span>';
   }
else
   {
   echo '<span style="color:#FF0000"> OFFLINE</span>';
   }
?></td></tr>
      
</table>
</td>
</tr>
<tr>
<td align="center" class="title" height="20" valign="middle"><b>Top 10 Guilds</b></td>
</tr>
<tr>
<td align="center" valign="top">

<table width="100%" class="tables" cellpadding="0" cellspacing="0" style="border-width:1px;text-align:center;">
<tr class="tables_top"><td width="25px">ID</td><td width="110px">Guild Name</td><td width="50px">Score</td></tr>
<?
$Guild=$core_db->Execute("select TOP 10 G_Name,G_Score,G_Mark from Guild order by G_Score desc");
$count=0;
while(!$Guild->EOF){
$count++;
?>
<tr class="tables_bottom"><td><?=$count;?></td><td><?=$Guild->fields[0];?></td><td><?=$Guild->fields[1];?> <?
$Guild->MoveNext();
}
?></td></tr></table>
<tr>
<td align="center" class="title" height="20" valign="middle"><b><center>Advertisments</b></td></center>
</tr>
<td align="center" valign="top">
<a href="http://www.cp-team.net" target="_blank"><img src="template/<?=$core['config']['template'] ?>/ad/cpt.jpg" alt="CPTeam!" width="160" height="600" border="0"></a>
</td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" height="23" class="title"><center><b>Template by <a href="http://facebook.com/zebah.design"> Sebas Flores </a> & <a href="http://www.cp-team.net">TheGhost</a> para <a href="http://hastlegames.com/"> HASTLEGAMES</a></b></center></td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>

busca esto:
Code: [Select]
<? $sql = $core_db2->Execute("SELECT memb___id FROM MEMB_STAT WHERE ConnectStat = '1'"); ?>
<tr><td class="status_left">Online Users: </td><td class="status_right"><a href="index.php?page_id=estadisticas"><?=$sql->RecordCOunt();?></a></td></tr>

y reemplaza por esto:
Code: [Select]
<? $sql = $core_db2->Execute("SELECT memb___id FROM MEMB_STAT WHERE ConnectStat = '1'"); ?>
<tr><td class="status_left">Online Users: </td><td class="status_right"><a href="index.php?page_id=estadisticas"><?=$sql->RecordCount();?></a></td></tr>

Gracias:


Offline xmemox #6 Posteado: September 06, 2017, 06:31:30 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 82
  • Gracias recibida: 11
  • cl
pero son los mismo ?

Gracias:


Offline -Rastaa.TSM☢ #7 Posteado: September 06, 2017, 10:40:32 PM

  • MAESTRO

  • US. DE HONOR

  • Super moderador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 876
  • Gracias recibida: 24682
  • ve
pero son los mismo ?

Busca en el index, el puerto 55901 y en esa linea esta donde podrás cambiar el puerto por de tu GameServer y ip si tienes VPS y usas xampp deja la direccion ip en 127.0.0.1 y si tienes Webhosting apunta la ip de tu VPS.

Gracias:


Offline xmemox #8 Posteado: September 07, 2017, 08:29:54 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 82
  • Gracias recibida: 11
  • cl
pero son los mismo ?

Busca en el index, el puerto 55901 y en esa linea esta donde podrás cambiar el puerto por de tu GameServer y ip si tienes VPS y usas xampp deja la direccion ip en 127.0.0.1 y si tienes Webhosting apunta la ip de tu VPS.

pucha sabes que soy un poco nulo, no se :/ podrias ayudarme mas en el tema, te lo agradeceria


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Recommended Servers - Topics Bottom (790x150)



 

Related Topics

  Subject / Started by Replies Last post
11 Replies
5839 Views
Last post February 05, 2019, 02:09:13 PM
by juanka2
1 Replies
1154 Views
Last post December 14, 2017, 12:40:39 PM
by ilusionmu
5 Replies
3454 Views
Last post March 14, 2020, 08:54:54 PM
by juanka2
2 Replies
1122 Views
Last post October 01, 2018, 03:48:52 PM
by mardelmu
7 Replies
834 Views
Last post January 03, 2020, 07:09:34 AM
by segovia