Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Simple Domain List - Based off BlueVM's server status script

bcrlsnbcrlsn Member
edited May 2013 in General

Hey All,
I'm working on building a domain control panel. So part of that was building a basic domain list. I decided to base that off the BlueVM server status template which is based off bootstrap.

The mod is up on github - https://github.com/brendancarlson/Domain-List---Bootstrap

Comments

  • RobertClarkeRobertClarke Member, Host Rep

    Do you have a working demo? Would be interested to see what this looks like.

  • bcrlsnbcrlsn Member

    Would you want the ip address to show up directly on the home screen or would you want to click on the domain to get dns records?

  • mojedamojeda Member
    edited May 2013

    ServerStatus nor the original BlueVM was really meant for serving just static data.

    For example what you have now:

    $sJavascript .= '
            function uptime() {
                $(function() {';
    while($result = mysql_fetch_array($query)){
        $sJavascript .= '$.getJSON("pull/index.php?url='.$result["id"].'",function(result){
        $("#online'.$result["id"].'").html(result.online);
        });';
        $sTable .= '
            
                '.$result["domain"].'
                '.$result["registrar"].'
                '.$result["exdate"].'
                '.$result["host"].'
            
        ';
    }
        $sJavascript .= '});
        }
        uptime();
        setInterval(uptime, '.$sSetting['refresh'].');
        ';
    

    Should just be:

    while($result = mysql_fetch_array($query)){
        $sTable .= '
            
                '.$result["domain"].'
                '.$result["registrar"].'
                '.$result["exdate"].'
                '.$result["host"].'
            
        ';
    }
    

    There are a few other things that can be removed like the pull folder.

    If I'm not mistaken.

  • bcrlsnbcrlsn Member
    edited May 2013

    @mojeda - Yeah, I still haven't cleaned up most of it. :P

    Edit: Made that change, will push tomorrow with next update.

  • BlueVMBlueVM Member

    @bcarlsonmedia - Is the domain control panel an online/offline type indicator? If so v2 of my script has support for that already.

  • RobertClarkeRobertClarke Member, Host Rep

    Looks like just a list, would be more interested if this had some sort of API, would be very powerful at that point.

    I think that's an empty gap that someone will fill, if someone can do a comprehensive domain management solution with Rage4 and Cloudflare tie-ins along with all of the domain registrars, that would be awesome.

  • bcrlsnbcrlsn Member

    @bluevm - no, just a list. Planning to add optional status plugin later.

    @RobertClarke - That's the plan. Lot's of room for embedding from other API's such as clouddlare for dns management, rackspace cdn management and much more!

Sign In or Register to comment.