Skip to content

stress web problem

Featured Replies

hello maxcheaters! anyone know this engine stress web 8+ http://cs-la2.ru/engine/download.php?id=52

 

i have install this to my domain everything is allright.servers online it's showing.but it's don't showing online players count! can you help me?

 

 

 

sorry for english!

try that script

<?php include "config/stats.php" ?>
<?php

mysql_connect($db_serv,$db_user,$db_pass) or die (mysql_error());

mysql_select_db($db_name) or die(mysql_error());

//Online Players
$query = ("SELECT * FROM characters WHERE online=1 and accesslevel>=0");

$result = mysql_query($query) or die(mysql_error());

$num2=mysql_numrows($result);
$sum=$num2;

mysql_close();

mysql_connect($db_serv,$db_user,$db_pass) or die (mysql_error());

mysql_select_db($db_name) or die(mysql_error());
?>

then add to your web:

<?php print ("$sum"); ?>

create new folder named config in the main directory of the host

and create new file named stats.php

place there:

<?php

    $db_user = "root"; 
    $db_pass = "db pass"; 
    $db_name = "l2jdb"; 
    $db_serv = "db ip"; 

    $res = mysql_connect ( $db_serv, $db_user, $db_pass ) or die ("Coudn't connect to [$db_serv]"); 
    $resdb = mysql_select_db ( "$db_name",$res ); 

    return $res; 

?>

I hope to work

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.