Jump to content
  • 0

custom server status script for FluxCP


Poseidon

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

hi guys

Could i request a custom server script for FluxCP? please

what i would like is the PHP code to show something like this

<?php if
  $loginserver = 0 && $charserver = 0 && $mapserver = 0 then $ServerOffline show Red circle
  else if
    $loginserver = 1 && $Charserver = 1 && $mapserver = 1 then $ServerOnline show green circle ?>

<?php if
      $WOE = 0 then show Red circle
      else if
        $WOE= 1 then show green circle ?>

<?php vendingplayers = amount echo amount ?> 

as you can tell i understand very basic PHP so I'm unable to fully understand how to achieve what i would like

i hope someone is willing to help me

thanks in advance

Kind regards

Rob

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

By reading the script on FluxCP's status page, you'll be able to mostly copy/paste the code.

https://github.com/rathena/FluxCP/blob/master/modules/server/status.php

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   6
  • Joined:  12/09/11
  • Last Seen:  

so i would like to put my code here for you guys to tell me if Im on the right track please

 

<?php

$serverStatus[$groupName][$serverName] = array(
  'ServerOnline' => $athenaServer->CharServer->mapServer->isUp (),
  );
?>

should this combine all 3 to make it into one showing the server to be online or offline

hope you understand what i would like to achieve here

Kind Regard

Rob

Link to comment
Share on other sites

×
×
  • Create New...