Jump to content

[Admin Mod] Extended Server Info


Shaun

Recommended Posts

Purpose:

This mod allows you to store key value pairs against a WHMCS server registered in the database.

 

This can be useful when you need to store info for custom service modules, which is why i needed this module.

 

Installation:

Copy attached php file into:

 /whmcs/modules/admin/extended_server_info/

 

Usage:

Functions alot like the IP Manager module (was created from this code).

 

Screen Shot

2176004939.jpg

Link to comment
Share on other sites

@Shaun: I believe that the active key/value pair in tblservers means the default server so there would only ever be 1 listed.

 

Ahhh.

Thats one thing i didn't know. A spec would be awsome. The database that im using currently has 2 server groups with one server is each. Easy was then would be to remove the where and then edit the code out.

 

Here is a new version:

Lines 51-58:

$servers= array();
$query = "SELECT id, name  FROM tblservers order by name";
$result=mysql_query($query);
while ($data = mysql_fetch_array($result)) {
	$id = $data["id"];
	$name = $data["name"];
	$servers[$id] = $name;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated