Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by xlr8or (Moderator: Freelander)Echelon - Web investigation tool for B3
Pages: 1 ... 8 9 [10] 11 12 ... 19   Go Down
  Print  
Author Topic: Echelon - Web investigation tool for B3  (Read 72806 times) Bookmark and Share
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #135 on: February 16, 2009, 02:37:46 PM »

Hello,
here comes some addon to the echelon. Those who want to know how much players/admins are playing on our server would need this addon.

To integrate it with our echelon just do the following:
1. File: /Connections/inc_config.php
Add:
Quote
      "ctime_plugin_activated" => 1
next to the:
Quote
"chatlogger_activated" => 1,
entry. It should look like this:
Quote
(...)
      "chatlogger_activated" => 1,
      "ctime_plugin_activated" => 1

1 - means that server have CTIME plugin enabled
0 - not enabled

2. File /Connections/inc_codnav.php
Add:
Code:
      <?php if ($ctime_plugin_activated == 1) { ?>
      |
      <a href="<?php echo $path; ?>/activitytime.php?game=<?php echo $game; ?>" <?php if (ereg("/activitytime.php$",$_SERVER["PHP_SELF"])!==FALSE) echo 'class="activegame"'; else echo 'class="navigatie"'; ?>>Activity</a>
      <?php } ?>       
      |
To the TABs section (after <?php /* DO NOT MODIFY ANYTHING ABOVE THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING */?> )

like:
Code:
      <a href="<?php echo $path; ?>/b3kicks.php?game=<?php echo $game; ?>" <?php if (ereg("/b3kicks.php$",$_SERVER["PHP_SELF"])!==FALSE) echo 'class="activegame"'; else echo 'class="navigatie"'; ?>>B3 auto kicks/bans</a>
      |
      <a href="<?php echo $path; ?>/toppenalties.php?game=<?php echo $game; ?>" <?php if (ereg("/toppenalties.php$",$_SERVER["PHP_SELF"])!==FALSE) echo 'class="activegame"'; else echo 'class="navigatie"'; ?>>Toplist Penalties</a>
      |
      <a href="<?php echo $path; ?>/notices.php?game=<?php echo $game; ?>" <?php if (ereg("/notices.php$",$_SERVER["PHP_SELF"])!==FALSE) echo 'class="activegame"'; else echo 'class="navigatie"'; ?>>Notices list</a>
      |      
      <?php if ($ctime_plugin_activated == 1) { ?>
      |
      <a href="<?php echo $path; ?>/activitytime.php?game=<?php echo $game; ?>" <?php if (ereg("/activitytime.php$",$_SERVER["PHP_SELF"])!==FALSE) echo 'class="activegame"'; else echo 'class="navigatie"'; ?>>Activity</a>
      <?php } ?>       
      |

3. [thx to Courgette for reminding me that] File Connections/b3connect.php
Add the marked (bold) lines

Quote
function loadGameConfig ( $gameConfig ) {
  global $hostname_b3connect, $database_b3connect, $username_b3connect, $password_b3connect, $b3connect, $PBactive, $rcon_ip, $rcon_port, $rcon_pass, $b3status, $chatlogger_plugin_activated, $ctime_plugin_activated ;
  $hostname_b3connect = $gameConfig["hostname"];
  $database_b3connect = $gameConfig["database"];
  $username_b3connect = $gameConfig["username"];
  $password_b3connect = $gameConfig["password"];
  $b3connect = mysql_pconnect($hostname_b3connect, $username_b3connect, $password_b3connect) or die(mysql_error());
  $PBactive = $gameConfig["PBactive"];
  $rcon_ip = $gameConfig["rcon_ip"];
  $rcon_port = $gameConfig["rcon_port"];
  $rcon_pass = $gameConfig["rcon_pass"];
  $b3status = $gameConfig["b3status"];
  $chatlogger_plugin_activated = ($gameConfig["chatlogger_activated"] == 1);
  $ctime_plugin_activated = ($gameConfig["ctime_plugin_activated"] == 1);
}

and Voila

This file place in the root directory.
>>> DOWNLOAD Activity TAB<<<
« Last Edit: February 16, 2009, 11:43:05 PM by Anubis » Logged


B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #136 on: February 16, 2009, 02:39:57 PM »

Great! I guess someone had to do that Smiley

now there's only status.xml parsing
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3485
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #137 on: February 16, 2009, 04:03:53 PM »

Nice  Wink

Actually you also need to change Connections/b3connect.php in the following way :

Quote
function loadGameConfig ( $gameConfig ) {
  global $hostname_b3connect, $database_b3connect, $username_b3connect, $password_b3connect, $b3connect, $PBactive, $rcon_ip, $rcon_port, $rcon_pass, $b3status, $chatlogger_plugin_activated, $ctime_plugin_activated ;
  $hostname_b3connect = $gameConfig["hostname"];
  $database_b3connect = $gameConfig["database"];
  $username_b3connect = $gameConfig["username"];
  $password_b3connect = $gameConfig["password"];
  $b3connect = mysql_pconnect($hostname_b3connect, $username_b3connect, $password_b3connect) or die(mysql_error());
  $PBactive = $gameConfig["PBactive"];
  $rcon_ip = $gameConfig["rcon_ip"];
  $rcon_port = $gameConfig["rcon_port"];
  $rcon_pass = $gameConfig["rcon_pass"];
  $b3status = $gameConfig["b3status"];
  $chatlogger_plugin_activated = ($gameConfig["chatlogger_activated"] == 1);
  $ctime_plugin_activated = ($gameConfig["ctime_plugin_activated"] == 1);
}

Logged

Full Member
***
Posts: 97
Offline Offline
WWW
« Reply #138 on: February 16, 2009, 07:13:49 PM »

im getting an error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home1/dubltyme/public_html/echelon/Connections/inc_config.php on line 34

Code:
      // set to 1 if you want permban from that server included into the banlist page.
      "include_in_banlist" => 0,
      // set this to 1 if you are using the chatlogger plugin setup for that server. (see http://www.bigbrotherbot.com/forums/index.php?topic=423.0)
      "chatlogger_activated" => 1
  "ctime_plugin_activated" => 1
    ),
    2 => array(
      "name" => "COD5",
 

line 34 is the ctime_plugin_activated
Logged


xfire=specialopx
www.fallenclan.com
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #139 on: February 16, 2009, 11:39:46 PM »

|FaLLeN| Op-X:
You've missed ","

Quote
"chatlogger_activated" => 1 ,
     "ctime_plugin_activated" => 1

Courgette:
arghh I've missed that in the post ;/.. thx
« Last Edit: February 16, 2009, 11:58:28 PM by Anubis » Logged

Full Member
***
Posts: 53
Offline Offline
« Reply #140 on: March 03, 2009, 10:02:12 AM »

Sorry for this noobie-jerkie post guys, but can you pleaseeeeeeeeeeee post a live site which shows all these great stuff ?
I would like to see echelon in action...

Thanks and don't blame me for this post Sad
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #141 on: March 04, 2009, 06:20:28 AM »

I don't think there is a live website that acts as an example. It shows all player info, chats and that's not something to make public.
Logged

B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #142 on: March 04, 2009, 09:05:51 AM »

i'll put up a sample site using my clan's old db.
Logged

Full Member
***
Posts: 53
Offline Offline
« Reply #143 on: March 04, 2009, 09:39:15 AM »

thanks baker Smiley
xlr8or i asked this just for testing purposes, as a live demonstation, it's just that!
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #144 on: March 04, 2009, 11:40:34 AM »

@leonpadi: I know... no worries
Logged

Newbie
*
Posts: 4
Offline Offline
« Reply #145 on: March 06, 2009, 08:03:55 PM »

I added two groups to my B3 setup. So my current Group list is:
Bits | Group | b3 lvl
1 | user | 1
2 | regular | 2
8 | mod | 20
16 | admin | 40
32 | full admin | 60
64 | slap admin | 65  <-- NEW
128 | ban admin | 70 <-- NEW
256 | senior admin | 80
512 | super admin | 100

First off I noticed in echelon It wasnt displaying client details so after looking throught the files I discovered the file 'clientdetails.php' contained the select level list. I modified it to have the new groups. Now it only works for half the clients. Some will show the client info, some wont. Am I missing something in some file?
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #146 on: March 07, 2009, 01:16:37 AM »

Can you be a bit more specific about the error? What is shown and what is missing?
Logged

Echelon v2. Dev.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 114
Offline Offline
WWW
Support Specialty: Echelon v.2
« Reply #147 on: March 07, 2009, 07:28:35 AM »

In the clientdetails.php it is the default for echelon is to show the group_bits from the tables. But you could modify it like this. So the SQL query becomes.
Code:
$query_rs_clientinfo = sprintf("SELECT T1.*, T2.name as level FROM clients T1 LEFT JOIN groups T2 ON T1.group_bits = T2.id WHERE T1.id = %s", $colname_rs_clientinfo);
That will get the name of the user group of the client and display the name for it instead of its group_bits. Then you modify clientdetails.php where it says the info so it is like this.
Code:
        <?php if ($row_rs_clientinfo['level'] == "")
                  {
                   echo "Un-registered";
                  }
                   else
                  {
                   echo $row_rs_clientinfo['level'];
                  }
        ?>

That way when you want to see the usergroup the client is in you'll get the name of the client's group(whatever it is called in the database) and then display the name not the group bits. The if statement says if there is no name for the group (eg. non registered users) it will echo "Un-Registered".

Then to fix the addadmin section (give/remove person admin)  go down the section of the echelon admin functions and change the form so it looks like this.
Quote
        <SELECT name="level">
               <option value="0"<?=($row_rs_clientinfo['group_bits']=='0')?' selected':'';?>>Un-Registered</option>
               <option value="1"<?=($row_rs_clientinfo['group_bits']=='1')?' selected':'';?>>User</option>
               <option value="2"<?=($row_rs_clientinfo['group_bits']=='2')?' selected':'';?>>Regular</option>
               <option value="8"<?=($row_rs_clientinfo['group_bits']=='8')?' selected':'';?>>Moderator</option>
              <option value="16"<?=($row_rs_clientinfo['group_bits']=='16')?' selected':'';?>>Admin</option>
              <option value="32"<?=($row_rs_clientinfo['group_bits']=='32')?' selected':'';?>>Full Admin</option>
              <option value="64"<?=($row_rs_clientinfo['group_bits']=='64')?' selected':'';?>>Slap Admin</option>
              <option value="128"<?=($row_rs_clientinfo['group_bits']=='128')?' selected':'';?>>Ban Admin</option>
              <option value="256"<?=($row_rs_clientinfo['group_bits']=='256')?' selected':'';?>>Senior Admin</option>
              <!-- <option value="512"<?=($row_rs_clientinfo['group_bits']=='512')?' selected':'';?>>Super Admin</option> -->
          </select>
I suggest you don't add the ability to make super admins in echelon for security purposes. If you want to add that (but I advise you don't) just remove the red comments.Thats just a quick little fix you could do to fix the problem.  Hope that helps.
Eire.32
Logged

Eire.32
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, COD5, COD7, Homefront
Posts: 211
Offline Offline
« Reply #148 on: March 11, 2009, 11:12:20 PM »

I currently am having a bug with the install you have listed.

Images are located in /

However when loging in it seems to think images at the front login screen should be in login/img/ and the background is completely white and lacks anything. If you click a link its all fine.

Any idea?
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, COD5, COD7, Homefront
Posts: 211
Offline Offline
« Reply #149 on: March 11, 2009, 11:30:42 PM »

I currently am having a bug with the install you have listed.

Images are located in /

However when loging in it seems to think images at the front login screen should be in login/img/ and the background is completely white and lacks anything. If you click a link its all fine.

Any idea?

I resolved this by setting the

$path = "http://0.0.0.0/";

This made it work, however the logout button is adding an extra / and everything else is not.
Logged
Tags:
Pages: 1 ... 8 9 [10] 11 12 ... 19   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal