StarMedia
Va asteptam in grupul nostru de pe facebook: Click

Distribuiţi
In jos
GhosT
Junior
Junior
Mesaje : 530
Sunt pe forum din : 12/09/2009

Re: BMW 0.4.0

la data de Mar 21 Feb 2012, 16:35
Nie numi apare defelu tabela cu CPu RAM si ect...
avatar
ParkourEdY
Junior
Junior
Mesaje : 646
Varsta : 22
Sunt pe forum din : 15/02/2009

Re: BMW 0.4.0

la data de Mar 21 Feb 2012, 20:51
Fix:

Du-te Pages->Statistics.php si acuma Copy/Paste:

Cod:
<?php
class statistics{
protected $statistics;
function __construct(){
$statistics = parse_ini_file("sys_/data/statistics.ini");
$totalusers = mssql_result(mssql_query("Select count(*) from memb_info"), 0, 0);
$totalchars = mssql_result(mssql_query("Select count(*) from character"), 0, 0);
$totalguilds = mssql_result(mssql_query("Select count(*) from guild"), 0, 0);
$totalbanns = mssql_result(mssql_query("Select count(*) from character where CtlCode='1'"), 0, 0);
$gmon = mssql_fetch_array(mssql_query("Select * from character where CtlCode = 32"));
$online = mssql_result(mssql_query("SELECT count(*) From memb_stat where ConnectStat='1'"), 0, 0);
$gmonline = mssql_result(mssql_query("Select count(*) from memb_stat where memb___id='".$gmon[AccountID]."' and ConnectStat='1'"), 0, 0);
$this->Accounts = $totalusers;
$this->Characters = $totalchars;
$this->Guilds = $totalguilds;
$this->Banneds = $totalbanns;
$this->Onlineppl = $online;
$this->GameOn = $gmonline;
echo "<fieldset class='legend'><legend class='style2'>Game Statistics</legend>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='style2'>
  <tr>
    <td>Total Accounts:</td>
    <td>".$this->Accounts."</td>
  </tr>
  <tr>
    <td>Total Characters:</td>
    <td>".$this->Characters."</td>
  </tr>
  <tr>
    <td>Total Guilds:</td>
    <td>".$this->Guilds."</td>
  </tr>
  <tr>
    <td>Banned Characters:</td>
    <td>".$this->Banneds."</td>
  </tr>
  <tr>
    <td>Online Admins:</td>
    <td>".$this->GameOn."</td>
  </tr>
  <tr>
    <td>Online Players:</td>
    <td>".$this->Onlineppl."</td>
  </tr>
</table></fieldset>";
$totalsms=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=0"),0,0);
$totalsms1=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=1"),0,0);
$totalsms2=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=2"),0,0);
$totalbks=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=16"),0,0);
$totalbks1=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=17"),0,0);
$totalbks2=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=18"),0,0);
$totalelf=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=32"),0,0);
$totalelf1=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=33"),0,0);
$totalelf2=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=34"),0,0);
$totalsum=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=80"),0,0);
$totalsum1=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=81"),0,0);
$totalsum2=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=82"),0,0);
$totaldl=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=64"),0,0);
$totaldl1=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=66"),0,0);
$totalmg=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=48"),0,0);
$totalmg1=mssql_result(mssql_query("select count(*) from character where ctlcode<8 and class=50"),0,0);
echo "<fieldset class='legend'><legend class='style2'>Class statistics</legend>
<table border='0' cellpadding='0' cellspacing='0' width='100%' class='style2'>
      <tbody><tr>
   <td width='32%' bgcolor='#000000'>Evo 1</td>
   <td width='36%' bgcolor='#000000'>Evo 2</td>
   <td width='32%' bgcolor='#000000'>Evo 3</td>
      </tr>
      <tr>
    <td>Dark Wizard = ".$totalsms."</td>
   <td>Soul Master = ".$totalsms1."</td>
   <td>Grand Master = ".$totalsms2."</td>
      </tr>
      <tr>
   <td>Dark Knight = ".$totalbks."</td>
   <td>Blade Knight = ".$totalbks1."</td>
   <td>Blade Master = ".$totalbks2."</td>
      </tr>
      <tr>
    <td>Fairy Elf = ".$totalelf."</td>
   <td>Muse Elf = ".$totalelf1."</td>
   <td>High Elf = ".$totalelf2."</td>
      </tr>
      <tr>
    <td>Summoner = ".$totalsum."</td>
    <td>Bloody Summoner = ".$totalsum1."</td>
    <td>Dimmension Summoner = ".$totalsum2."</td>
      </tr>
      <tr>
    <td> </td>
    <td>Magic Gladiator = ".$totalmg."</td>
    <td>Duel Master = ".$totalmg1."</td>
      </tr>
      <tr>
    <td> </td>
    <td>Dark Lord = ".$totaldl."</td>
        <td>Lord Emperor = ".$totaldl1."</td>
      </tr>
      </tbody>
  </table>
</fieldset>";
echo "<fieldset class='legend'><legend class='style2'>Gameservers</legend>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='style2'>
  <tr>
    <td bgcolor='#000000'>Name</td>
    <td bgcolor='#000000'>Experience</td>
    <td bgcolor='#000000'>Version</td>
    <td bgcolor='#000000'>Drop</td>
    <td bgcolor='#000000'>Status</td>
  </tr>";
$row = mssql_fetch_array(mssql_query("SELECT Name,experience,drops,port,ip,version,display_order,type from BMW_Server order by display_order asc"));
if($check=@fsockopen($row['ip'],$row['port'],$ERROR_NO,$ERROR_STR,(float)0.3)) {
  $status = "<font color='green'><b>Online</b></font>";
  fclose($check);
 } else {
  $status = "<font color='red'><b>Offline</b></font>";
 }
echo "
  <tr>
    <td>".$row['Name']."</td>
    <td>".$row['experience']."</td>
    <td>".$row['version']."</td>
    <td>".$row['drops']."</td>
    <td>".$status."</td>
  </tr>";
echo "</table>
</fieldset>";

echo "<fieldset class='legend'><legend class='style2'>Host sistem spec</legend>
<table border='0' cellpadding='0' cellspacing='0' width='100%' class='style2'>
      <tbody>
        <tr>
    <td width='11%' bgcolor='#000000'>RAM</td>
    <td width='40%' bgcolor='#000000'>CPU</td>
    <td width='27%' bgcolor='#000000'>SYSTEM</td>
    <td width='22%' bgcolor='#000000'>BANDWICH</td>
    </tr>
    <tr>
    <td>".$statistics['Ram']."</td>
    <td>".$statistics['CPU']."</td>
    <td>".$statistics['Os']."</td>
    <td>".$statistics['Net']."</td>
    </tr>
     </tbody></table>
</fieldset>";
}}
$statistics = new statistics;

?>

[Trebuie sa fiti inscris si conectat pentru a vedea acest link] a scris:daca nu vrea din adminpanel intra in ...\sys_\data\statistics.ini si modifica tu manual ...

Pakoboy . Nu am facut un website CMS pentru a modifica tu manual.
Insa, recunosc mai sunt si greseli "ici/colo".
Dar va multumesc ca mi le raportati. Si daca mai gasiti nu ezitati sa imi spuneti.
GhosT
Junior
Junior
Mesaje : 530
Sunt pe forum din : 12/09/2009

Re: BMW 0.4.0

la data de Mar 21 Feb 2012, 21:00
eu damu am reparat singur :smile4234:

una simi place la webul acesta ca spoate de facut repede template pentru acest web
avatar
pakoboy
Amator
Amator
Mesaje : 173
Varsta : 27
Localizare : Oradea
Sunt pe forum din : 16/03/2009

Re: BMW 0.4.0

la data de Mar 21 Feb 2012, 21:52
pai na , scuze ca ii ajut , ce pot zice ... spor atuncia :^Smile^:
avatar
ParkourEdY
Junior
Junior
Mesaje : 646
Varsta : 22
Sunt pe forum din : 15/02/2009

Re: BMW 0.4.0

la data de Mar 21 Feb 2012, 23:03
[Trebuie sa fiti inscris si conectat pentru a vedea acest link] a scris:pai na , scuze ca ii ajut , ce pot zice ... spor atuncia :^Smile^:

Nu trebuie sa-ti ceri scuze, Nu te-am atacat cand am spus asta.
Doar am spus, ca este CMS[Content Management System]. De aceea nu ar trebui sa intri sa editezi direct din pages, Dar faci asta ca ultima solutie. In cazul tau mi-a placut ceea ce ai facut;). Oricum ai un avertisment . *Ai grija ce modifici poti produce tu singur gauri.

@Oricum GhosT, pentru ceilalti este valabil FIX-ul.

Pentru orice problema nu ezitati sa postati. Aici , Sau pe forumul nostru. (Admincp->Development)
avatar
pakoboy
Amator
Amator
Mesaje : 173
Varsta : 27
Localizare : Oradea
Sunt pe forum din : 16/03/2009

Re: BMW 0.4.0

la data de Mar 21 Feb 2012, 23:06
am inteles boss, eu nu prea folosesc admincp doar la news,imi place sa navighez php-ul :bz : App 10/10 e superb.
avatar
pakoboy
Amator
Amator
Mesaje : 173
Varsta : 27
Localizare : Oradea
Sunt pe forum din : 16/03/2009

Re: BMW 0.4.0

la data de Lun 27 Feb 2012, 05:32
app, nu ati putea voi sa faceti si un gm panel :-? ca websitu e foarte frumos dar nu are gm pannel ..
avatar
ParkourEdY
Junior
Junior
Mesaje : 646
Varsta : 22
Sunt pe forum din : 15/02/2009

Re: BMW 0.4.0

la data de Mar 28 Feb 2012, 18:36
Momentan lucrez la un proiect. Si nu am timp de BMW acum.
Dar cand voi termina ma voi apuca de 0.5. Pana atunci astept pareri , propuneri, idei, critici, buguri etc...
avatar
pakoboy
Amator
Amator
Mesaje : 173
Varsta : 27
Localizare : Oradea
Sunt pe forum din : 16/03/2009

Re: BMW 0.4.0

la data de Sam 03 Mar 2012, 01:19
idee : sa faci un fel de module care sa fie forum :-? , adica sa incorporezi si un forum pe el ca modules si sa foloseasca aceasi baza de date : muonline , spunemi este posibil ?
avatar
ParkourEdY
Junior
Junior
Mesaje : 646
Varsta : 22
Sunt pe forum din : 15/02/2009

Re: BMW 0.4.0

la data de Dum 04 Mar 2012, 22:06
[Trebuie sa fiti inscris si conectat pentru a vedea acest link] a scris:idee : sa faci un fel de module care sa fie forum :-? , adica sa incorporezi si un forum pe el ca modules si sa foloseasca aceasi baza de date : muonline , spunemi este posibil ?
Da, este posibil.In 0.5 voi face si forum.
Continut sponsorizat

Re: BMW 0.4.0

Sus
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum