diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 1e817c72..e3c2f0e4 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -522,7 +522,7 @@ class m_admin { } // Check if this domain exist on this admin account - if (!in_array($domain_name, $dom->enum_domains())) { + if ((!in_array($domain_name, $dom->enum_domains()))&&($domaine_name!=variable_get("hosting_tld"))) { $err->raise("admin", _("You don't seem to be allowed to delegate this domain")); $err->log("admin", "add_shared_domain", "domain not allowed"); return false; diff --git a/debian/alternc.cron.d b/debian/alternc.cron.d index 9b2d82bb..c67056f5 100644 --- a/debian/alternc.cron.d +++ b/debian/alternc.cron.d @@ -32,5 +32,5 @@ 00,30 * * * * alterncpanel /usr/lib/alternc/cron_users.sh # Every 20 minutes, do actions -00,20 * * * * root /usr/lib/alternc/do_actions.php +*/20 * * * * root /usr/lib/alternc/do_actions.php diff --git a/src/functions.sh b/src/functions.sh index 5f005c52..b6cd5fee 100755 --- a/src/functions.sh +++ b/src/functions.sh @@ -104,7 +104,7 @@ get_name_by_uid() { } get_variable_from_db() { - mysql_query 'SELECT value FROM membres WHERE name="'"$1"'" LIMIT 1;' + mysql_query 'SELECT value FROM variable WHERE name="'"$1"'" LIMIT 1;' }