Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Account Setup only shows one subdomain to choose
#1
Alright, i was testing thehostingtool, and i noticed it only showed one subdomain in the list. It was a pretty easy fix.

open includes/ajax.php and look for:
Code:
function sub()

Replace whole function with:
Code:
    public function sub() {
        global $main, $db, $type;
        $pack = $main->getvar['pack'];
        $server = $type->determineServer($pack);
        $query = $db->query("SELECT * FROM `<PRE>subdomains` WHERE `server` = '{$server}'");
        while($select = $db->fetch_array($query)){
            $values[] = array($select['subdomain'], $select['subdomain']);
        }
        echo $main->dropdown("csub2", $values);
        }
#2
I'll see about committing this to the Repository for 1.2.1 Wink
Kevin Mark - TheHostingTool Lead Developer


Forum Jump:


Users browsing this thread: 1 Guest(s)