Skip to content
Snippets Groups Projects
Commit daf67b7c authored by Marius Cramer's avatar Marius Cramer
Browse files

Merge branch 'stable-3.0.5' of /home/git/repositories/ispconfig/ispconfig3

parents 8507b06f e39e91c8
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,5 @@ $wb['repeat_password_txt'] = 'Repeat Password';
$wb['password_mismatch_txt'] = 'The passwords do not match.';
$wb['password_match_txt'] = 'The passwords do match.';
$wb['username_error_collision'] = 'The username may not be web or web plus a number."';
$wb['client_not_admin_err'] = 'A user that belongs to a client can not be set to type: admin';
?>
......@@ -66,7 +66,14 @@ class page_action extends tform_actions {
if(@is_array($this->dataRecord['modules']) && !in_array($this->dataRecord['startmodule'], $this->dataRecord['modules'])) {
$app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
}
$this->oldDataRecord = $app->tform->getDataRecord($this->id);
//* A user that belongs to a client record (client or reseller) may not have typ admin
if(isset($this->dataRecord['typ']) && $this->dataRecord['typ'][0] == 'admin' && $this->oldDataRecord['client_id'] > 0) {
$app->tform->errorMessage .= $app->tform->wordbook['client_not_admin_err'];
}
}
/*
......
......@@ -962,6 +962,16 @@ if (!defined('vlibTemplateClassLoaded')) {
$regex.= '[^\"\']*|[a-z0-9_\.]*)';
$regex.= '[\"\']?';
$regex.= ')?\s*';
$regex.= '(?:';
$regex.= '(?:';
$regex.= '(name|format|escape|op|value)';
$regex.= '\s*=\s*';
$regex.= ')';
$regex.= '(?:[\"\'])?';
$regex.= '((?<=[\"\'])';
$regex.= '[^\"\']*|[a-z0-9_\.]*)';
$regex.= '[\"\']?';
$regex.= ')?\s*';
$regex.= '(?:>|\/>|}|-->){1}';
$regex.= '/i';
//$regex.= '([\r\n|\n|\r])?/ie';
......@@ -1290,7 +1300,7 @@ if (!defined('vlibTemplateClassLoaded')) {
$wholetag = $args[0];
$openclose = $args[1];
$tag = strtolower($args[2]);
$newline = $args[9];
$newline = $args[11];
//echo "1#$newline#2";
if ($tag == 'else') return '<?php } else { ?>'.$newline;
......@@ -1307,7 +1317,7 @@ if (!defined('vlibTemplateClassLoaded')) {
}
// arrange attributes
for ($i=3; $i < 8; $i=($i+2)) {
for ($i=3; $i < 10; $i=($i+2)) {
if (empty($args[$i]) && empty($args[($i+1)])) break;
$key = (empty($args[$i])) ? 'name' : strtolower($args[$i]);
if ($key == 'name' && preg_match('/^(php)?include$/', $tag)) $key = 'file';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment