Merge branch 'stable-3.1' of github.com:AlternC/AlternC into stable-3.1

This commit is contained in:
Benjamin Sonntag 2016-07-12 15:54:30 +02:00
commit ade5c51f0f
3 changed files with 3 additions and 3 deletions

View File

@ -522,7 +522,7 @@ class m_admin {
} }
// Check if this domain exist on this admin account // 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->raise("admin", _("You don't seem to be allowed to delegate this domain"));
$err->log("admin", "add_shared_domain", "domain not allowed"); $err->log("admin", "add_shared_domain", "domain not allowed");
return false; return false;

View File

@ -32,5 +32,5 @@
00,30 * * * * alterncpanel /usr/lib/alternc/cron_users.sh 00,30 * * * * alterncpanel /usr/lib/alternc/cron_users.sh
# Every 20 minutes, do actions # Every 20 minutes, do actions
00,20 * * * * root /usr/lib/alternc/do_actions.php */20 * * * * root /usr/lib/alternc/do_actions.php

View File

@ -104,7 +104,7 @@ get_name_by_uid() {
} }
get_variable_from_db() { 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;'
} }