Here are a few patches for Galium 0.29, which fixes a number of issues. Galium 0.29.1 will be released in a few days... diff -r d6c9e2f8553d apps/domainCron.php --- a/apps/domainCron.php Sun Aug 10 19:50:48 2008 +1000 +++ b/apps/domainCron.php Mon Aug 11 19:08:01 2008 +1000 @@ -1,8 +1,14 @@ #!/usr/bin/php 0) { // We could store the row, let's remove the update label :) - // mysql_query("UPDATE `domains` SET `needsUpdate`='0' WHERE `domainID` ={$row['domainID']}"); + mysql_query("UPDATE `domains` SET `needsUpdate`='0' WHERE `domainID` ={$row['domainID']}"); } else { pos2("Error: Could not store row for domain!"); } diff -r d6c9e2f8553d conf/config.php --- a/conf/config.php Sun Aug 10 19:50:48 2008 +1000 +++ b/conf/config.php Mon Aug 11 19:08:01 2008 +1000 @@ -20,4 +20,8 @@ // How many domains per user, per day? $config['RegistrationLimit'] = '5'; +$config['zones'] = '/etc/bind/zones/'; +$config['server'] = 'ns5.opennic.glue.'; +$config['server-ip'] = '128.177.28.254'; + ?> \ No newline at end of file diff -r d6c9e2f8553d www/Applications/User/Manage.php --- a/www/Applications/User/Manage.php Sun Aug 10 19:50:48 2008 +1000 +++ b/www/Applications/User/Manage.php Mon Aug 11 19:08:01 2008 +1000 @@ -272,6 +272,15 @@ template_Footer(); } +function manageDomainSwitchType() { + global $domain; + + $domainID = $domain['domainID']; + $switchTo = ($domain['useRemote'] == 0 ? 1 : 0); + echo "_g_switchDomainType($domainID, $switchTo);"; + _g_switchDomainType($domainID, $switchTo); + manageMain(); +} // // isIP: returns true if the input is an IP. diff -r d6c9e2f8553d www/Libraries/Backend.php --- a/www/Libraries/Backend.php Sun Aug 10 19:50:48 2008 +1000 +++ b/www/Libraries/Backend.php Mon Aug 11 19:08:01 2008 +1000 @@ -338,6 +338,16 @@ $res = mysql_query($SQL); } +// +// _g_switchDomainType: tell the cron to update a domain name +// +function _g_switchDomainType ($domainID, $isRemote) { + // make sure that the cron updates the domain on it's next run :) + $SQL = 'UPDATE `domains` SET `useRemote` = ' . $isRemote . ' + WHERE `domains`.`domainID` =' . $domainID . ';'; + $res = mysql_query($SQL); +} + //##---------------------------- //## Internal record time :) //##----------------------------