mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:51:59 +01:00
you can add multiple domains
This commit is contained in:
parent
dae73a577a
commit
19de35f6e2
@ -99,6 +99,8 @@ class ModelDomainDomain extends Model {
|
||||
public function addDomain($domain = '', $mapped = '', $ldap_id = 0) {
|
||||
if($domain == "" || $mapped == "") { return 0; }
|
||||
|
||||
$query = $this->db->query("INSERT INTO " . TABLE_DOMAIN . " (domain, mapped, ldap_id) VALUES (?,?,?)", array($mapped, $mapped, $ldap_id));
|
||||
|
||||
$domains = explode("\n", $domain);
|
||||
|
||||
foreach ($domains as $domain) {
|
||||
|
@ -31,7 +31,7 @@
|
||||
<div class="control-group<?php if(isset($errors['domain'])){ print " error"; } ?>">
|
||||
<label class="control-label" for="domain"><?php print $text_domain; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="domain" placeholder="Domain"<?php if(isset($post['domain'])){ echo " value='".$post['domain']."'"; } ?> />
|
||||
<textarea name="domain" placeholder="Domain"<?php if(isset($post['domain'])){ echo " value='".$post['domain']."'"; } ?> ></textarea>
|
||||
<?php if ( isset($errors['domain']) ) { ?><span class="help-inline"><?php print $errors['domain']; ?></span><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div id="ss1">
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_domain; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="domain" /></div>
|
||||
<div class="domaincell"><textarea name="domain"></textarea></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_mapped_domain; ?>:</div>
|
||||
|
Loading…
Reference in New Issue
Block a user