he podido coger este boton, podreis observar donde pone joeggo offline/online, pero no se como coger solamente el boton ni como configurarlo poniendo puerto por ejemplo 90 y la ip mia
Código PHP:
<?php
/*---------------------------------------------------+
| HoloCMS - Website and Content Management System
+----------------------------------------------------+
| Copyright © 2008 Meth0d
+----------------------------------------------------+
| HoloCMS is provided "as is" and comes without
| warrenty of any kind.
+---------------------------------------------------*/
include('core.php');
if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){ // ex. me.php?do=RemoveFeedItem&key=5
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".$_GET['key']."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}
$pagename = $name;
$pageid = "1";
// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");
include('templates/community/subheader.php');
include('templates/community/header.php');
// Query tags
$fetch_tags = mysql_query("SELECT tag,id FROM cms_tags WHERE ownerid = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);
// Create the random tag questions array
$randomq[] = "What is your favourite TV show?";
$randomq[] = "Who is your favourite actor?";
$randomq[] = "Who is your favourite actress?";
$randomq[] = "Do you have a nickname?";
$randomq[] = "What is your favorite song?";
$randomq[] = "How do you describe yourself?";
$randomq[] = "What is your favorite band?";
$randomq[] = "What is your favorite comic?";
$randomq[] = "What are you like?";
$randomq[] = "What is your favorite food?";
$randomq[] = "What sport you play?";
$randomq[] = "Who was your first love?";
$randomq[] = "What is your favorite movie?";
$randomq[] = "Cats, dogs, or something more exotic?";
$randomq[] = "What is your favorite color?";
// Add new questions below this line
$randomq[] = "Do you have a favorite staff member?";
// Select a random question from the array above
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);
// Appoint the variable
$tag_question = $randomq[$chosen];
?>
<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div id="new-personal-info" style="background-image:url(./web-gallery/v2/images/personal_info/hotel_views/htlview_br.png)" />
<div id="enter-hotel">
<?php if($online == "online"){ ?>
<div class="open">
<?php
if(getContent('client-widescreen') == "1"){
$wide_enabled = true;
} else {
$wide_enabled = false;
}
?>
<a href="client.php<?php if($wide_enabled == false){ echo "?wide=false"; } ?>" target="client" onclick="openOrFocusHabbo; return false;">Enter <?php echo $shortname; ?><i></i></a>
<b></b>
</div>
<?php } else { ?>
<div class="closed">
<span>Juego Offline</span>
<b></b>
</div>
<?php } ?>
</div>
o tambien se podria hacer comprovando ke por ejemplo el puerto 90 esta siento usado, es un servidor de un jeugo por lo tanto la web esta siempre online