| @@ -1,8 +1,8 @@ | |||
| # ISPConfig WebDNS module | |||
| # ISPConfig WebDNS module versión 1.2 | |||
| Este módulo crea las DNS y Sitio web introduciendo el dominio y un cliente. | |||
| This module is compatible with ISPConfig version 3.1.3 | |||
| This module is compatible with ISPConfig version 3.1.3 y superior(3.1.7p1) | |||
| ## Installation | |||
| @@ -11,3 +11,10 @@ This module is compatible with ISPConfig version 3.1.3 | |||
| -Activa el módulo desde ispconfig en System->CP Users->Admin User->Check "webdns" y guardar. | |||
| -Logout y login para ver el módulo. | |||
| ## Estilos | |||
| -Clonar la carpeta open6hosting en el directorio de ispconfig Web->themes | |||
| -Seleccionar el tema en ispconfg Herramientas->interfaz | |||
| -Modificar en la tabla sys_user el valor del campo app_theme por open6hosting con la siguiente SQL. | |||
| -Lanzar UPDATE sys_user SET app_theme='open6hosting'; | |||
| @@ -284,20 +284,25 @@ $pass_ftp = $_POST['pass_ftp2']; | |||
| //$nombre_base = $_POST['nombre_bd']; | |||
| //$info=$_GET['datos_pdf']; | |||
| $acentuar = 'Politica'; | |||
| //$str = utf8_decode($str); | |||
| $enlace = '<br><a href="http://www.open6hosting.com">www.open6hosting.com</a>'; | |||
| $enlaceBlog = '<br><a href="http://www.open6hosting.com/blog">Blog</a>'; | |||
| $enlaceFace = '<br><a href="http://www.facebook.com/open6hosting">Facebook</a>'; | |||
| $enlaceTwitter = '<br><a href="http://www.twitter.com/Open6Hosting">Twitter</a>'; | |||
| $enlacePriv = '<br><a href="http://www.open6hosting.com/empresa/legales">Politica de privacidad</a>'; | |||
| $enlacePriv = '<br><a href="http://www.open6hosting.com/empresa/legales">'.$acentuar.' de privacidad</a>'; | |||
| $enlaceAdvertencia = '<br><a href="http://www.open6hosting.com/lopd.html">Advertencia legal</a>'; | |||
| $enlaceMail = '<br><a href="info@open6hosting.com">info@open6hosting.com</a>'; | |||
| $hoy = date("d-m-Y H:i:s"); | |||
| //print 'en creacion: ' . $nombre_bd . ' ' . $usuario_bd . ' ' . $pass_bd; | |||
| $pdf = new PDFO6H(); | |||
| // Primera página | |||
| $pdf->AddPage(); | |||
| //Uso un ttf con caracteres españoles | |||
| //$pdf->AddFont('ArialNarrow','','arial-narrow.php'); | |||
| $pdf->SetFont('Arial','',28); | |||
| //$pdf->Write(5,'Para saber qué hay de nuevo en este tutorial, pulse '); | |||
| $pdf->SetFont('','U'); | |||
| @@ -1,137 +0,0 @@ | |||
| <?php | |||
| /* | |||
| Copyright (c) 2016, Kristián Feldsam, FELDSAM s.r.o. <info@feldsam.cz> | |||
| All rights reserved. | |||
| Redistribution and use in source and binary forms, with or without modification, | |||
| are permitted provided that the following conditions are met: | |||
| * Redistributions of source code must retain the above copyright notice, | |||
| this list of conditions and the following disclaimer. | |||
| * Redistributions in binary form must reproduce the above copyright notice, | |||
| this list of conditions and the following disclaimer in the documentation | |||
| and/or other materials provided with the distribution. | |||
| * Neither the name of ISPConfig nor the names of its contributors | |||
| may be used to endorse or promote products derived from this software without | |||
| specific prior written permission. | |||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |||
| IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | |||
| INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | |||
| BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||
| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | |||
| OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |||
| NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | |||
| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
| Form Definition | |||
| Tabledefinition | |||
| Datatypes: | |||
| - INTEGER (Forces the input to Int) | |||
| - DOUBLE | |||
| - CURRENCY (Formats the values to currency notation) | |||
| - VARCHAR (no format check, maxlength: 255) | |||
| - TEXT (no format check) | |||
| - DATE (Dateformat, automatic conversion to timestamps) | |||
| Formtype: | |||
| - TEXT (Textfield) | |||
| - TEXTAREA (Textarea) | |||
| - PASSWORD (Password textfield, input is not shown when edited) | |||
| - SELECT (Select option field) | |||
| - RADIO | |||
| - CHECKBOX | |||
| - CHECKBOXARRAY | |||
| - FILE | |||
| VALUE: | |||
| - Wert oder Array | |||
| Hint: | |||
| The ID field of the database table is not part of the datafield definition. | |||
| The ID field must be always auto incement (int or bigint). | |||
| Search: | |||
| - searchable = 1 or searchable = 2 include the field in the search | |||
| - searchable = 1: this field will be the title of the search result | |||
| - searchable = 2: this field will be included in the description of the search result | |||
| */ | |||
| $form["title"] = "Crear BBDD y FTP"; | |||
| $form["description"] = ""; | |||
| $form["name"] = "ftp_bd_service"; | |||
| $form["action"] = "ftp_bd_service.php"; | |||
| $form["db_table"] = "server"; | |||
| $form["db_table_idx"] = "server_id"; | |||
| $form["db_history"] = "yes"; | |||
| $form["tab_default"] = "database_user"; | |||
| //$form["list_default"] = "database_user_list.php"; | |||
| $form["auth"] = 'yes'; // yes / no | |||
| $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user | |||
| $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user | |||
| $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete | |||
| $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete | |||
| $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete | |||
| $form["tabs"]['database_user'] = array ( | |||
| 'title' => "Altas", | |||
| 'width' => 100, | |||
| 'template' => "templates/ftp_bd_service.htm", | |||
| 'fields' => array ( | |||
| 'client_id' => array ( | |||
| 'datatype' => 'INTEGER', | |||
| 'formtype' => 'SELECT', | |||
| 'default' => '', | |||
| 'datasource' => array ( 'type' => 'SQL', | |||
| 'querystring' => "SELECT sys_group.groupid, sys_group.client_id, sys_group.name, CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 ORDER BY client.company_name, client.contact_name, sys_group.name", | |||
| 'keyfield'=> 'client_id', | |||
| 'valuefield'=> 'contactname' | |||
| ), | |||
| 'value' => '' | |||
| ), | |||
| 'parent_domain_id' => array ( | |||
| 'datatype' => 'INTEGER', | |||
| 'formtype' => 'SELECT', | |||
| 'default' => '', | |||
| 'datasource' => array ( 'type' => 'SQL', | |||
| 'querystring' => "SELECT web_domain.domain_id, CONCAT(web_domain.domain, ' :: ', server.server_name) AS parent_domain FROM web_domain, server WHERE web_domain.type = 'vhost' AND web_domain.server_id = server.server_id AND {AUTHSQL::web_domain} ORDER BY web_domain.domain", | |||
| 'keyfield'=> 'domain_id', | |||
| 'valuefield'=> 'parent_domain' | |||
| ), | |||
| 'value' => '' | |||
| ), | |||
| 'username' => array ( | |||
| 'datatype' => 'VARCHAR', | |||
| 'formtype' => 'TEXT', | |||
| 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', | |||
| 'errmsg'=> 'username_error_unique'), | |||
| 1 => array ( 'type' => 'REGEX', | |||
| 'regex' => '/^[\w\.\-@\+]{0,64}$/', | |||
| 'errmsg'=> 'username_error_regex'), | |||
| ), | |||
| 'default' => '', | |||
| 'value' => '', | |||
| 'width' => '30', | |||
| 'maxlength' => '255', | |||
| 'searchable' => 1 | |||
| ), | |||
| 'username_prefix' => array ( | |||
| 'datatype' => 'VARCHAR', | |||
| 'formtype' => 'TEXT', | |||
| 'default' => '', | |||
| 'value' => '', | |||
| 'width' => '30', | |||
| 'maxlength' => '25' | |||
| ), | |||
| ) | |||
| ); | |||
| ?> | |||
| @@ -0,0 +1,26 @@ | |||
| <?php | |||
| $type = 'TrueType'; | |||
| $name = 'ArialNarrow'; | |||
| $desc = array('Ascent'=>728,'Descent'=>-210,'CapHeight'=>728,'Flags'=>32,'FontBBox'=>'[-182 -307 1000 1086]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>228); | |||
| $up = -106; | |||
| $ut = 73; | |||
| $cw = array( | |||
| chr(0)=>228,chr(1)=>228,chr(2)=>228,chr(3)=>228,chr(4)=>228,chr(5)=>228,chr(6)=>228,chr(7)=>228,chr(8)=>228,chr(9)=>228,chr(10)=>228,chr(11)=>228,chr(12)=>228,chr(13)=>228,chr(14)=>228,chr(15)=>228,chr(16)=>228,chr(17)=>228,chr(18)=>228,chr(19)=>228,chr(20)=>228,chr(21)=>228, | |||
| chr(22)=>228,chr(23)=>228,chr(24)=>228,chr(25)=>228,chr(26)=>228,chr(27)=>228,chr(28)=>228,chr(29)=>228,chr(30)=>228,chr(31)=>228,' '=>228,'!'=>228,'"'=>291,'#'=>456,'$'=>456,'%'=>729,'&'=>547,'\''=>157,'('=>273,')'=>273,'*'=>319,'+'=>479, | |||
| ','=>228,'-'=>273,'.'=>228,'/'=>228,'0'=>456,'1'=>456,'2'=>456,'3'=>456,'4'=>456,'5'=>456,'6'=>456,'7'=>456,'8'=>456,'9'=>456,':'=>228,';'=>228,'<'=>479,'='=>479,'>'=>479,'?'=>456,'@'=>832,'A'=>547, | |||
| 'B'=>547,'C'=>592,'D'=>592,'E'=>547,'F'=>501,'G'=>638,'H'=>592,'I'=>228,'J'=>410,'K'=>547,'L'=>456,'M'=>683,'N'=>592,'O'=>638,'P'=>547,'Q'=>638,'R'=>592,'S'=>547,'T'=>501,'U'=>592,'V'=>547,'W'=>774, | |||
| 'X'=>547,'Y'=>547,'Z'=>501,'['=>228,'\\'=>228,']'=>228,'^'=>385,'_'=>456,'`'=>273,'a'=>456,'b'=>456,'c'=>410,'d'=>456,'e'=>456,'f'=>228,'g'=>456,'h'=>456,'i'=>182,'j'=>182,'k'=>410,'l'=>182,'m'=>683, | |||
| 'n'=>456,'o'=>456,'p'=>456,'q'=>456,'r'=>273,'s'=>410,'t'=>228,'u'=>456,'v'=>410,'w'=>592,'x'=>410,'y'=>410,'z'=>410,'{'=>274,'|'=>213,'}'=>274,'~'=>479,chr(127)=>228,chr(128)=>228,chr(129)=>228,chr(130)=>228,chr(131)=>228, | |||
| chr(132)=>228,chr(133)=>228,chr(134)=>228,chr(135)=>228,chr(136)=>228,chr(137)=>228,chr(138)=>228,chr(139)=>228,chr(140)=>228,chr(141)=>228,chr(142)=>228,chr(143)=>228,chr(144)=>228,chr(145)=>228,chr(146)=>228,chr(147)=>228,chr(148)=>228,chr(149)=>228,chr(150)=>228,chr(151)=>228,chr(152)=>228,chr(153)=>228, | |||
| chr(154)=>228,chr(155)=>228,chr(156)=>228,chr(157)=>228,chr(158)=>228,chr(159)=>228,chr(160)=>228,chr(161)=>273,chr(162)=>456,chr(163)=>456,chr(164)=>456,chr(165)=>456,chr(166)=>213,chr(167)=>456,chr(168)=>273,chr(169)=>604,chr(170)=>303,chr(171)=>456,chr(172)=>479,chr(173)=>273,chr(174)=>604,chr(175)=>500, | |||
| chr(176)=>400,chr(177)=>549,chr(178)=>273,chr(179)=>273,chr(180)=>273,chr(181)=>576,chr(182)=>440,chr(183)=>273,chr(184)=>273,chr(185)=>273,chr(186)=>299,chr(187)=>456,chr(188)=>684,chr(189)=>684,chr(190)=>684,chr(191)=>501,chr(192)=>547,chr(193)=>547,chr(194)=>547,chr(195)=>547,chr(196)=>547,chr(197)=>547, | |||
| chr(198)=>820,chr(199)=>592,chr(200)=>547,chr(201)=>547,chr(202)=>547,chr(203)=>547,chr(204)=>228,chr(205)=>228,chr(206)=>228,chr(207)=>228,chr(208)=>592,chr(209)=>592,chr(210)=>638,chr(211)=>638,chr(212)=>638,chr(213)=>638,chr(214)=>638,chr(215)=>479,chr(216)=>638,chr(217)=>592,chr(218)=>592,chr(219)=>592, | |||
| chr(220)=>592,chr(221)=>547,chr(222)=>547,chr(223)=>501,chr(224)=>456,chr(225)=>456,chr(226)=>456,chr(227)=>456,chr(228)=>456,chr(229)=>456,chr(230)=>729,chr(231)=>410,chr(232)=>456,chr(233)=>456,chr(234)=>456,chr(235)=>456,chr(236)=>228,chr(237)=>228,chr(238)=>228,chr(239)=>228,chr(240)=>456,chr(241)=>456, | |||
| chr(242)=>456,chr(243)=>456,chr(244)=>456,chr(245)=>456,chr(246)=>456,chr(247)=>549,chr(248)=>501,chr(249)=>456,chr(250)=>456,chr(251)=>456,chr(252)=>456,chr(253)=>410,chr(254)=>456,chr(255)=>410); | |||
| $enc = 'ISO-8859-1'; | |||
| $diff = '128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef'; | |||
| $uv = array(0=>array(0,256)); | |||
| $file = 'arial-narrow.z'; | |||
| $originalsize = 44472; | |||
| $subsetted = true; | |||
| ?> | |||
| @@ -1,119 +0,0 @@ | |||
| <?php | |||
| require('fpdf.php'); | |||
| class PDFO6H extends FPDF | |||
| { | |||
| protected $B = 0; | |||
| protected $I = 0; | |||
| protected $U = 0; | |||
| protected $HREF = ''; | |||
| public $nombre_bd; | |||
| function WriteHTML($html) | |||
| { | |||
| // Intérprete de HTML | |||
| $html = str_replace("\n",' ',$html); | |||
| $a = preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); | |||
| foreach($a as $i=>$e) | |||
| { | |||
| if($i%2==0) | |||
| { | |||
| // Text | |||
| if($this->HREF) | |||
| $this->PutLink($this->HREF,$e); | |||
| else | |||
| $this->Write(5,$e); | |||
| } | |||
| else | |||
| { | |||
| // Etiqueta | |||
| if($e[0]=='/') | |||
| $this->CloseTag(strtoupper(substr($e,1))); | |||
| else | |||
| { | |||
| // Extraer atributos | |||
| $a2 = explode(' ',$e); | |||
| $tag = strtoupper(array_shift($a2)); | |||
| $attr = array(); | |||
| foreach($a2 as $v) | |||
| { | |||
| if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3)) | |||
| $attr[strtoupper($a3[1])] = $a3[2]; | |||
| } | |||
| $this->OpenTag($tag,$attr); | |||
| } | |||
| } | |||
| } | |||
| } | |||
| function OpenTag($tag, $attr) | |||
| { | |||
| // Etiqueta de apertura | |||
| if($tag=='B' || $tag=='I' || $tag=='U') | |||
| $this->SetStyle($tag,true); | |||
| if($tag=='A') | |||
| $this->HREF = $attr['HREF']; | |||
| if($tag=='BR') | |||
| $this->Ln(5); | |||
| } | |||
| function CloseTag($tag) | |||
| { | |||
| // Etiqueta de cierre | |||
| if($tag=='B' || $tag=='I' || $tag=='U') | |||
| $this->SetStyle($tag,false); | |||
| if($tag=='A') | |||
| $this->HREF = ''; | |||
| } | |||
| function SetStyle($tag, $enable) | |||
| { | |||
| // Modificar estilo y escoger la fuente correspondiente | |||
| $this->$tag += ($enable ? 1 : -1); | |||
| $style = ''; | |||
| foreach(array('B', 'I', 'U') as $s) | |||
| { | |||
| if($this->$s>0) | |||
| $style .= $s; | |||
| } | |||
| $this->SetFont('',$style); | |||
| } | |||
| function PutLink($URL, $txt) | |||
| { | |||
| // Escribir un hiper-enlace | |||
| $this->SetTextColor(0,0,255); | |||
| $this->SetStyle('U',true); | |||
| $this->Write(5,$txt,$URL); | |||
| $this->SetStyle('U',false); | |||
| $this->SetTextColor(0); | |||
| } | |||
| } | |||
| $html = 'Usuario Base de Datos: <b></b> | |||
| Nombre Base de Datos: <b>nombre</b> | |||
| Clave Base de Datos: <b>nombre</b> | |||
| Usuario FTP: <b>nombre</b> | |||
| Clave FTP: <b>nombre</b> | |||
| <a href="http://www.open6hosting.com">www.open6hosting.com</a>'; | |||
| $pdf = new PDFO6H(); | |||
| // Primera página | |||
| $pdf->AddPage(); | |||
| $pdf->SetFont('Arial','',20); | |||
| //$pdf->Write(5,'Para saber qué hay de nuevo en este tutorial, pulse '); | |||
| $pdf->SetFont('','U'); | |||
| //$link = $pdf->AddLink(); | |||
| //$pdf->Write(5,'aquí',$link); | |||
| $pdf->SetFont(''); | |||
| // Segunda página | |||
| //$pdf->AddPage(); | |||
| $pdf->SetLink($link); | |||
| $pdf->Image('imagen/open6-logo.png',10,12,30,0,'','http://www.open6hosting.com'); | |||
| $pdf->SetLeftMargin(45); | |||
| $pdf->SetFontSize(14); | |||
| $pdf->WriteHTML($html); | |||
| $pdf->Output(); | |||
| ?> | |||
| @@ -1,226 +0,0 @@ | |||
| <?php | |||
| /* | |||
| Copyright (c) 2016, Kristián Feldsam, FELDSAM s.r.o. <info@feldsam.cz> | |||
| All rights reserved. | |||
| Redistribution and use in source and binary forms, with or without modification, | |||
| are permitted provided that the following conditions are met: | |||
| * Redistributions of source code must retain the above copyright notice, | |||
| this list of conditions and the following disclaimer. | |||
| * Redistributions in binary form must reproduce the above copyright notice, | |||
| this list of conditions and the following disclaimer in the documentation | |||
| and/or other materials provided with the distribution. | |||
| * Neither the name of ISPConfig nor the names of its contributors | |||
| may be used to endorse or promote products derived from this software without | |||
| specific prior written permission. | |||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |||
| IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | |||
| INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | |||
| BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||
| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | |||
| OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |||
| NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | |||
| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
| */ | |||
| /****************************************** | |||
| * Begin Form configuration | |||
| ******************************************/ | |||
| $tform_def_file = "form/ftp_bd_service.tform.php"; | |||
| /****************************************** | |||
| * End Form configuration | |||
| ******************************************/ | |||
| require_once '../../lib/config.inc.php'; | |||
| require_once '../../lib/app.inc.php'; | |||
| //* Check permissions for module | |||
| $app->auth->check_module_permissions('webdns'); | |||
| // Loading classes | |||
| $app->uses('tpl,tform,remoting,tform_actions,tools_sites,remoting_lib'); | |||
| $app->load('tform_actions'); | |||
| class page_action extends tform_actions { | |||
| function onSubmit() { | |||
| global $app, $conf; | |||
| $fields = $app->tform->encode($this->dataRecord, $app->tform->getCurrentTab(), true); | |||
| // check for domain unique name | |||
| if($app->db->queryOneRecord('SELECT domain_id FROM domain WHERE domain = "'.$fields['domain'].'"')) { | |||
| $app->tform->errorMessage = $app->tform->wordbook['domain_error_unique']; | |||
| } | |||
| if($app->tform->errorMessage) | |||
| { | |||
| $this->onError(); | |||
| return; | |||
| } | |||
| if($_POST['create'] != 1) | |||
| { | |||
| $app->tform->errorMessage = 'DUMMY'; | |||
| $app->tpl->setVar($this->dataRecord); | |||
| $this->onShow(); | |||
| return; | |||
| } | |||
| // Domain OK, continue | |||
| $remote = new remote_actions; | |||
| // load template | |||
| $template = $app->db->queryOneRecord("SELECT * FROM wizard_template WHERE template_id = ? LIMIT 0,1", $fields['template_id']); | |||
| // client prefix and group id | |||
| $res = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$app->functions->intval($fields['client_id'])); | |||
| $client_group_id = $res['groupid']; | |||
| $client_prefix = 'c'.$fields['client_id']; | |||
| // add domain | |||
| $domain_id = $remote->insert_query('../client/form/domain.tform.php', $fields['client_id'], array('domain' => $fields['domain'])); | |||
| //--------------------------------------------------- | |||
| // generate username | |||
| $generated_username = $client_prefix.substr(sha1(rand()), 0, 8); | |||
| if($fields['db']) | |||
| { | |||
| // add database user | |||
| $db_user_params = array( | |||
| 'server_id' => $template['database_server_id'], | |||
| 'database_user' => $generated_username, | |||
| 'database_password' => substr(sha1(rand()), 0, 10) | |||
| ); | |||
| $db_user_id = $remote->insert_query('../sites/form/database_user.tform.php', $fields['client_id'], $db_user_params, 'sites:web_database_user:on_after_insert'); | |||
| // add database | |||
| $params = array( | |||
| 'server_id' => $template['database_server_id'], | |||
| 'parent_domain_id' => $site_id, | |||
| 'type' => $fields['db_type'], | |||
| 'database_quota' => $template['database_quota'], | |||
| 'database_name' => $db_user_params['database_user'], | |||
| 'database_user_id' => $db_user_id, | |||
| 'database_charset' => $template['database_charset'], | |||
| 'remote_access' => $template['database_remote_access'], | |||
| 'remote_ips' => $template['database_remote_ips'], | |||
| 'active' => 'y' | |||
| ); | |||
| $remote->sites_database_add($fields['client_id'], $params); | |||
| } | |||
| if($fields['ftp']) { | |||
| // add ftp user | |||
| $ftp_params = array( | |||
| 'server_id' => $template['web_server_id'], | |||
| 'parent_domain_id' => $site_id, | |||
| 'username' => $generated_username, | |||
| 'password' => substr(sha1(rand()), 0, 10), | |||
| 'quota_size' => $template['hd_quota'], | |||
| 'dir' => $site_data['document_root'], | |||
| 'uid' => $site_data['system_user'], | |||
| 'gid' => $site_data['system_group'], | |||
| 'sys_groupid' => $site_data['sys_groupid'], | |||
| 'quota_files' => $template['quota_files'], | |||
| 'ul_ratio' => $template['ul_ratio'], | |||
| 'dl_ratio' => $template['dl_ratio'], | |||
| 'ul_bandwidth' => $template['ul_bandwidth'], | |||
| 'dl_bandwidth' => $template['dl_bandwidth'], | |||
| 'active' => 'y', | |||
| ); | |||
| $remote->insert_query('../sites/form/ftp_user.tform.php', $fields['client_id'], $ftp_params); | |||
| } | |||
| // results | |||
| echo ' | |||
| <div class="page-header"> | |||
| <h1>New service</h1> | |||
| </div> | |||
| <div class="table-wrapper marginTop15"> | |||
| <table class="table"> | |||
| <thead class="dark"> | |||
| <!--tr> | |||
| <th colspan="2">'.$fields['domain'].'</th> | |||
| </tr--!> | |||
| </thead> | |||
| <tbody>'; | |||
| if(isset($db_user_params)) { | |||
| echo | |||
| '<tr class="info"> | |||
| <th>DB name/user</th> | |||
| <th>DB password</th> | |||
| </tr> | |||
| <tr> | |||
| <td>'.$db_user_params['database_user'].'</td> | |||
| <td>'.$db_user_params['database_password'].'</td> | |||
| </tr>'; | |||
| } | |||
| if(isset($ftp_params)) { | |||
| echo' | |||
| <tr class="info"> | |||
| <th>FTP user</th> | |||
| <th>FTP password</th> | |||
| </tr> | |||
| <tr> | |||
| <td>'.$ftp_params['username'].'</td> | |||
| <td>'.$ftp_params['password'].'</td> | |||
| </tr>'; | |||
| } | |||
| echo' | |||
| </tbody> | |||
| </table> | |||
| </div> | |||
| '; | |||
| } | |||
| } | |||
| class remote_actions extends remoting { | |||
| public function insert_query($formdef_file, $client_id, $params, $event_identifier = '') { | |||
| return $this->insertQuery($formdef_file, $client_id, $params, $event_identifier); | |||
| } | |||
| public function sites_database_add($client_id, $params) | |||
| { | |||
| global $app; | |||
| $sql = $this->insertQueryPrepare('../sites/form/database.tform.php', $client_id, $params); | |||
| if($sql !== false) { | |||
| $app->uses('sites_database_plugin'); | |||
| $this->id = 0; | |||
| $this->dataRecord = $params; | |||
| $app->sites_database_plugin->processDatabaseInsert($this); | |||
| $retval = $this->insertQueryExecute($sql, $params); | |||
| // set correct values for backup_interval and backup_copies | |||
| if(isset($params['backup_interval']) || isset($params['backup_copies'])){ | |||
| $sql_set = array(); | |||
| if(isset($params['backup_interval'])) $sql_set[] = "backup_interval = '".$app->db->quote($params['backup_interval'])."'"; | |||
| if(isset($params['backup_copies'])) $sql_set[] = "backup_copies = ".$app->functions->intval($params['backup_copies']); | |||
| //$app->db->query("UPDATE web_database SET ".implode(', ', $sql_set)." WHERE database_id = ".$retval); | |||
| $this->updateQueryExecute("UPDATE web_database SET ".implode(', ', $sql_set)." WHERE database_id = ".$retval, $retval, $params); | |||
| } | |||
| return $retval; | |||
| } | |||
| return false; | |||
| } | |||
| } | |||
| $page = new page_action; | |||
| $page->onLoad(); | |||
| @@ -1,249 +0,0 @@ | |||
| <?php | |||
| $wb["client_id_txt"] = 'Client'; | |||
| $wb["domain_txt"] = 'Domain'; | |||
| $wb["db_txt"] = 'Create DB'; | |||
| $wb["db_type_txt"] = 'DB type'; | |||
| $wb["ftp_txt"] = 'Create FTP'; | |||
| $wb["ssh_txt"] = 'Create SSH'; | |||
| $wb["domain_error_empty"] = 'The domain-name is empty'; | |||
| $wb["domain_error_regex"] = 'This domain-name is not allowed'; | |||
| $wb['domain_error_unique'] = 'The domain already exists'; | |||
| $wb["template_id_txt"] = 'Template'; | |||
| $wb["mail_txt"] = 'Create Mail'; | |||
| $wb["mailboxes_txt"] = 'Mailboxes'; | |||
| $wb["mailboxes_help_txt"] = 'Separated by comma, just mailbox name without @domain.tld'; | |||
| $wb["dkim_txt"] = 'Enable DKIM'; | |||
| $wb["dkim_private_txt"] = 'DKIM Private-key'; | |||
| $wb["dkim_public_txt"] = 'DKIM Public-key\nfor information only'; | |||
| $wb["dkim_generate_txt"] = 'Generate DKIM Private-key'; | |||
| $wb["dkim_dns_txt"] = 'DNS-Record'; | |||
| $wb["dkim_settings_txt"] = 'DomainKeys Identified Mail (DKIM)'; | |||
| $wb['dkim_selector_txt'] = 'DKIM-Selector'; | |||
| $wb["dkim_private_key_error"] = 'Invalid DKIM-Private key'; | |||
| $wb["dns_txt"] = 'Create DNS Zone'; | |||
| $wb['email_txt'] = 'Email'; | |||
| $wb['dnssec_txt'] = 'Sign zone (DNSSEC)'; | |||
| $wb['ns1_txt'] = 'NS 1'; | |||
| $wb['ns2_txt'] = 'NS 2'; | |||
| $wb['ip_txt'] = 'IP Address'; | |||
| $wb['ipv6_txt'] = 'IPv6 Address'; | |||
| $wb['error_origin_empty'] = 'Origin empty.'; | |||
| $wb['error_ns_empty'] = 'NS empty.'; | |||
| $wb['error_mbox_empty'] = 'Mbox empty.'; | |||
| $wb['error_refresh_empty'] = 'Refresh empty.'; | |||
| $wb['error_retry_empty'] = 'Retry empty.'; | |||
| $wb['error_expire_empty'] = 'Expire empty.'; | |||
| $wb['error_minimum_empty'] = 'Minimum empty.'; | |||
| $wb['error_ttl_empty'] = 'TTL empty.'; | |||
| $wb['error_domain_empty'] = 'Domain empty'; | |||
| $wb['error_ip_empty'] = 'IP empty.'; | |||
| $wb['error_ipv6_empty'] = 'IPv6 empty.'; | |||
| $wb['error_ns1_empty'] = 'NS1 empty.'; | |||
| $wb['error_ns2_empty'] = 'NS2 empty.'; | |||
| $wb['error_email_empty'] = 'Email empty.'; | |||
| $wb['error_domain_regex'] = 'Domain contains invalid characters.'; | |||
| $wb['error_ns1_regex'] = 'NS1 contains invalid characters.'; | |||
| $wb['error_ns2_regex'] = 'NS2 contains invalid characters.'; | |||
| $wb['error_email_regex'] = 'Email does not contain a valid email address.'; | |||
| $wb["backup_interval_txt"] = 'Backup interval'; | |||
| $wb["backup_copies_txt"] = 'Number of backup copies'; | |||
| $wb["ssl_state_txt"] = 'State'; | |||
| $wb["ssl_locality_txt"] = 'Locality'; | |||
| $wb["ssl_organisation_txt"] = 'Organisation'; | |||
| $wb["ssl_organisation_unit_txt"] = 'Organisation Unit'; | |||
| $wb["ssl_country_txt"] = 'Country'; | |||
| $wb["ssl_key_txt"] = 'SSL Key'; | |||
| $wb["ssl_request_txt"] = 'SSL Request'; | |||
| $wb["ssl_cert_txt"] = 'SSL Certificate'; | |||
| $wb["ssl_bundle_txt"] = 'SSL Bundle'; | |||
| $wb["ssl_action_txt"] = 'SSL Action'; | |||
| $wb["ssl_domain_txt"] = 'SSL Domain'; | |||
| $wb["server_id_txt"] = 'Server'; | |||
| $wb["domain_txt"] = 'Domain'; | |||
| $wb['web_folder_error_regex'] = 'Invalid folder entered. Please do not enter a slash.'; | |||
| $wb["type_txt"] = 'Type'; | |||
| $wb["parent_domain_id_txt"] = 'Parent Website'; | |||
| $wb["redirect_type_txt"] = 'Redirect Type'; | |||
| $wb["redirect_path_txt"] = 'Redirect Path'; | |||
| $wb["active_txt"] = 'Active'; | |||
| $wb["document_root_txt"] = 'Documentroot'; | |||
| $wb["system_user_txt"] = 'Linux User'; | |||
| $wb["system_group_txt"] = 'Linux Group'; | |||
| $wb["ip_address_txt"] = 'IPv4-Address'; | |||
| $wb["ipv6_address_txt"] = 'IPv6-Address'; | |||
| $wb["vhost_type_txt"] = 'VHost Type'; | |||
| $wb["hd_quota_txt"] = 'Harddisk Quota'; | |||
| $wb["traffic_quota_txt"] = 'Traffic Quota'; | |||
| $wb["cgi_txt"] = 'CGI'; | |||
| $wb["ssi_txt"] = 'SSI'; | |||
| $wb["errordocs_txt"] = 'Own Error-Documents'; | |||
| $wb["subdomain_txt"] = 'Auto-Subdomain'; | |||
| $wb["ssl_txt"] = 'SSL'; | |||
| $wb["suexec_txt"] = 'SuEXEC'; | |||
| $wb["php_txt"] = 'PHP'; | |||
| $wb["client_txt"] = 'Client'; | |||
| $wb["limit_web_domain_txt"] = 'The max. number of web domains for your account is reached.'; | |||
| $wb["limit_web_aliasdomain_txt"] = 'The max. number of aliasdomains for your account is reached.'; | |||
| $wb["limit_web_subdomain_txt"] = 'The max. number of web subdomains for your account is reached.'; | |||
| $wb["apache_directives_txt"] = 'Apache Directives'; | |||
| $wb["domain_error_empty"] = 'Domain is empty.'; | |||
| $wb["domain_error_unique"] = 'There is already a website or sub / aliasdomain with this domain name.'; | |||
| $wb["domain_error_regex"] = 'Domain name invalid.'; | |||
| $wb["domain_error_autosub"] = 'There is already a subdomain with these settings.'; | |||
| $wb["hd_quota_error_empty"] = 'Harddisk quota is 0 or empty.'; | |||
| $wb["traffic_quota_error_empty"] = 'Traffic quota is empty.'; | |||
| $wb["error_ssl_state_empty"] = 'SSL State is empty.'; | |||
| $wb["error_ssl_locality_empty"] = 'SSL Locality is empty.'; | |||
| $wb["error_ssl_organisation_empty"] = 'SSL Organisation is empty.'; | |||
| $wb["error_ssl_organisation_unit_empty"] = 'SSL Organisation Unit is empty.'; | |||
| $wb["error_ssl_country_empty"] = 'SSL Country is empty.'; | |||
| $wb["error_ssl_cert_empty"] = 'SSL Certificate field is empty'; | |||
| $wb["client_group_id_txt"] = 'Client'; | |||
| $wb["stats_password_txt"] = 'Set Webstatistics password'; | |||
| $wb["allow_override_txt"] = 'Apache AllowOverride'; | |||
| $wb["limit_web_quota_free_txt"] = 'Max. available Harddisk Quota'; | |||
| $wb["ssl_state_error_regex"] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_&äöüÄÖÜ'; | |||
| $wb["ssl_locality_error_regex"] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_&äöüÄÖÜ'; | |||
| $wb["ssl_organisation_error_regex"] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_&äöüÄÖÜ'; | |||
| $wb["ssl_organistaion_unit_error_regex"] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_&äöüÄÖÜ'; | |||
| $wb["ssl_country_error_regex"] = 'Invalid SSL Country. Valid characters are: A-Z'; | |||
| $wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota'; | |||
| $wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'; | |||
| $wb["php_open_basedir_txt"] = 'PHP open_basedir'; | |||
| $wb["traffic_quota_exceeded_txt"] = 'Traffic quota exceeded'; | |||
| $wb["ruby_txt"] = 'Ruby'; | |||
| $wb["stats_user_txt"] = 'Webstatistics username'; | |||
| $wb["stats_type_txt"] = 'Webstatistics program'; | |||
| $wb["custom_php_ini_txt"] = 'Custom php.ini settings'; | |||
| $wb['none_txt'] = 'None'; | |||
| $wb['disabled_txt'] = 'Disabled'; | |||
| $wb['no_redirect_txt'] = 'No redirect'; | |||
| $wb['no_flag_txt'] = 'No flag'; | |||
| $wb['save_certificate_txt'] = 'Save certificate'; | |||
| $wb['create_certificate_txt'] = 'Create certificate'; | |||
| $wb['delete_certificate_txt'] = 'Delete certificate'; | |||
| $wb["nginx_directives_txt"] = 'nginx Directives'; | |||
| $wb["seo_redirect_txt"] = 'SEO Redirect'; | |||
| $wb["non_www_to_www_txt"] = 'Non-www -> www'; | |||
| $wb["www_to_non_www_txt"] = 'www -> non-www'; | |||
| $wb["php_fpm_use_socket_txt"] = 'Use Socket For PHP-FPM'; | |||
| $wb["error_no_sni_txt"] = 'SNI for SSL is not activated on this server. You can enable only one SSL certificate on each IP address.'; | |||
| $wb["python_txt"] = 'Python'; | |||
| $wb["perl_txt"] = 'Perl'; | |||
| $wb["pm_max_children_txt"] = 'PHP-FPM pm.max_children'; | |||
| $wb["pm_start_servers_txt"] = 'PHP-FPM pm.start_servers'; | |||
| $wb["pm_min_spare_servers_txt"] = 'PHP-FPM pm.min_spare_servers'; | |||
| $wb["pm_max_spare_servers_txt"] = 'PHP-FPM pm.max_spare_servers'; | |||
| $wb["error_php_fpm_pm_settings_txt"] = 'Values of PHP-FPM pm settings must be as follows: pm.max_children >= pm.max_spare_servers >= pm.start_servers >= pm.min_spare_servers > 0'; | |||
| $wb["pm_max_children_error_regex"] = 'PHP-FPM pm.max_children must be a positive integer value.'; | |||
| $wb["pm_start_servers_error_regex"] = 'PHP-FPM pm.start_servers must be a positive integer value.'; | |||
| $wb["pm_min_spare_servers_error_regex"] = 'PHP-FPM pm.min_spare_servers must be a positive integer value.'; | |||
| $wb["pm_max_spare_servers_error_regex"] = 'PHP-FPM pm.max_spare_servers must be a positive integer value.'; | |||
| $wb["hd_quota_error_regex"] = 'Harddisk quota is invalid.'; | |||
| $wb["traffic_quota_error_regex"] = 'Traffic quota is invalid.'; | |||
| $wb["fastcgi_php_version_txt"] = 'PHP Version'; | |||
| $wb["pm_txt"] = 'PHP-FPM Process Manager'; | |||
| $wb["pm_process_idle_timeout_txt"] = 'PHP-FPM pm.process_idle_timeout'; | |||
| $wb["pm_max_requests_txt"] = 'PHP-FPM pm.max_requests'; | |||
| $wb["pm_process_idle_timeout_error_regex"] = 'PHP-FPM pm.process_idle_timeout must be a positive integer value.'; | |||
| $wb["pm_max_requests_error_regex"] = 'PHP-FPM pm.max_requests must be an integer value >= 0.'; | |||
| $wb["pm_ondemand_hint_txt"] = 'Please note that you must have PHP version >= 5.3.9 in order to use the ondemand process manager. If you select ondemand for an older PHP version, PHP will not start anymore!'; | |||
| $wb['generate_password_txt'] = 'Generate Password'; | |||
| $wb['repeat_password_txt'] = 'Repeat Password'; | |||
| $wb['password_mismatch_txt'] = 'The passwords do not match.'; | |||
| $wb['password_match_txt'] = 'The passwords do match.'; | |||
| $wb['available_php_directive_snippets_txt'] = 'Available PHP Directive Snippets:'; | |||
| $wb['available_apache_directive_snippets_txt'] = 'Available Apache Directive Snippets:'; | |||
| $wb['available_nginx_directive_snippets_txt'] = 'Available nginx Directive Snippets:'; | |||
| $wb['proxy_directives_txt'] = 'Proxy Directives'; | |||
| $wb['available_proxy_directive_snippets_txt'] = 'Available Proxy Directive Snippets:'; | |||
| $wb['no_server_error'] = 'No server selected.'; | |||
| $wb['no_backup_txt'] = 'No backup'; | |||
| $wb['daily_backup_txt'] = 'Daily'; | |||
| $wb['weekly_backup_txt'] = 'Weekly'; | |||
| $wb['monthly_backup_txt'] = 'Monthly'; | |||
| $wb['rewrite_rules_txt'] = 'Rewrite Rules'; | |||
| $wb['invalid_rewrite_rules_txt'] = 'Invalid Rewrite Rules'; | |||
| $wb['allowed_rewrite_rule_directives_txt'] = 'Allowed Directives:'; | |||
| $wb['configuration_error_txt'] = "CONFIGURATION ERROR"; | |||
| $wb['variables_txt'] = 'Variables'; | |||
| $wb['added_by_txt'] = 'Added by'; | |||
| $wb['added_date_txt'] = 'Added date'; | |||
| $wb['backup_excludes_txt'] = 'Excluded Directories'; | |||
| $wb['backup_excludes_note_txt'] = '(Separate multiple directories with commas. Example: web/cache/*,web/backup)'; | |||
| $wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid characters.'; | |||
| $wb['invalid_custom_php_ini_settings_txt'] = 'Invalid php.ini settings'; | |||
| $wb['invalid_system_user_or_group_txt'] = 'Invalid system user or group'; | |||
| $wb['apache_directive_blocked_error'] = 'Apache directive blocked by security settings:'; | |||
| $wb['http_port_txt'] = 'HTTP Port'; | |||
| $wb['https_port_txt'] = 'HTTPS Port'; | |||
| $wb['http_port_error_regex'] = 'HTTP Port invalid.'; | |||
| $wb['https_port_error_regex'] = 'HTTPS Port invalid.'; | |||
| $wb['error_dominio_mas_puntos'] = 'El dominio no es correcto, hay 3 puntos o más.'; | |||
| $wb['error_dominio_www'] = 'El dominio no es correcto. No escriba "www" antes del dominio.'; | |||
| $wb['error_no_existe_dominio_padre'] = 'El dominio padre para este subdominio, no existe.'; | |||
| $wb['error_no_ip'] = 'No tiene ip, necesita añadirla en la configuración.'; | |||
| $wb['error_subdominio_existe'] = 'Este subdominio existe.'; | |||
| $wb["nom_bd_txt"] = 'Nombre'; | |||
| $wb["usuario_bd_txt"] = 'Usuario'; | |||
| $wb["pass_bd_txt"] = 'Clave'; | |||
| $wb["usuario_ftp_txt"] = 'Usuario'; | |||
| $wb["clave_ftp_txt"] = 'Clave'; | |||
| $wb["database_user_txt"] = 'Database user'; | |||
| $wb["database_password_txt"] = 'Database password'; | |||
| $wb["password_strength_txt"] = 'Password strength'; | |||
| $wb["client_txt"] = 'Client'; | |||
| $wb["active_txt"] = 'Active'; | |||
| $wb["database_user_error_empty"] = 'Database user is empty.'; | |||
| $wb["database_user_error_unique"] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; | |||
| $wb["database_user_error_regex"] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; | |||
| $wb["database_user_error_len"] = 'Database username - {user} - too long. The max. database username length incl. prefix is 16 chars.'; | |||
| $wb["btn_save_txt"] = 'Save'; | |||
| $wb["btn_cancel_txt"] = 'Cancel'; | |||
| $wb['generate_password_txt'] = 'Generate Password'; | |||
| $wb['repeat_password_txt'] = 'Repeat Password'; | |||
| $wb['password_mismatch_txt'] = 'The passwords do not match.'; | |||
| $wb['password_match_txt'] = 'The passwords do match.'; | |||
| $wb['globalsearch_resultslimit_of_txt'] = "of"; | |||
| $wb['globalsearch_resultslimit_results_txt'] = "results"; | |||
| $wb['globalsearch_noresults_text_txt'] = "No results."; | |||
| $wb['globalsearch_noresults_limit_txt'] = "0 results"; | |||
| $wb['globalsearch_searchfield_watermark_txt'] = "Search"; | |||
| $wb['globalsearch_suggestions_text_txt'] = "Suggestions"; | |||
| $wb['limit_database_user_txt'] = "The max. number of database users is reached."; | |||
| $wb['database_password_error_empty'] = 'Database password is empty.'; | |||
| $wb['uid_txt'] = 'Identificador de usuario (UID)'; | |||
| $wb['gid_txt'] = 'Identificador de grupo (GID)'; | |||
| $wb['dir_txt'] = 'Directorio'; | |||
| $wb['quota_files_txt'] = 'Cuota de archivos'; | |||
| $wb['quota_files_unity_txt'] = 'Archivos'; | |||
| $wb['ul_ratio_txt'] = 'Radio de subida'; | |||
| $wb['dl_ratio_txt'] = 'Radio de descarga'; | |||
| $wb['ul_bandwidth_txt'] = 'Ancho de banda de subida'; | |||
| $wb['dl_bandwidth_txt'] = 'Ancho de banda de bajada'; | |||
| $wb['server_id_txt'] = 'Servidor'; | |||
| $wb['parent_domain_id_txt'] = 'Sitio web'; | |||
| $wb['username_txt'] = 'Nombre de usuario'; | |||
| $wb['password_txt'] = 'Contraseña'; | |||
| $wb['password_strength_txt'] = 'Fortaleza de la contraseña'; | |||
| $wb['quota_size_txt'] = 'Cuota de disco'; | |||
| $wb['active_txt'] = 'Habilitado'; | |||
| $wb['limit_ftp_user_txt'] = 'Ha alcanzado en su cuenta el número máx. de usuarios FTP.'; | |||
| $wb['username_error_empty'] = 'El nombre de usuario está vacío.'; | |||
| $wb['username_error_unique'] = 'El nombre de usuario debe ser único.'; | |||
| $wb['username_error_regex'] = 'El nombre de usuario contiene caracteres inválidos.'; | |||
| $wb['quota_size_error_empty'] = 'La cuota está vacía.'; | |||
| $wb['uid_error_empty'] = 'GID está vacío.'; | |||
| $wb['directory_error_empty'] = 'El directorio está vacío.'; | |||
| $wb['directory_error_notinweb'] = 'El directorio no se encuentra dentro del directorio de inicio del sitio web.'; | |||
| $wb['parent_domain_id_error_empty'] = 'No se ha seleccionado un sitio web.'; | |||
| $wb['quota_size_error_regex'] = 'Cuota: ingrese -1 para ilimitado o un número > 0'; | |||
| $wb['dir_dot_error'] = 'No se permite .. en la ruta.'; | |||
| $wb['dir_slashdot_error'] = 'No se permite ./ en la ruta.'; | |||
| $wb['generate_password_txt'] = 'Generar contraseña'; | |||
| $wb['repeat_password_txt'] = 'Repetir contraseña'; | |||
| $wb['password_mismatch_txt'] = 'Las contraseñas no coinciden.'; | |||
| $wb['password_match_txt'] = 'Las contraseñas coinciden.'; | |||
| $wb['expires_txt'] = 'Expire at'; | |||
| ?> | |||
| @@ -1,249 +0,0 @@ | |||
| <?php | |||
| $wb["client_id_txt"] = 'Cliente'; | |||
| $wb["domain_txt"] = 'Dominio'; | |||
| $wb["db_txt"] = 'Crear DB'; | |||
| $wb["db_type_txt"] = 'Tipo DB'; | |||
| $wb["ftp_txt"] = 'Crear FTP'; | |||
| $wb["ssh_txt"] = 'Crear SSH'; | |||
| $wb["domain_error_empty"] = 'El nombre del dominio esta vacio'; | |||
| $wb["domain_error_regex"] = 'No se permite ese nombre de dominio'; | |||
| $wb['domain_error_unique'] = 'El dominio ya existe'; | |||
| $wb["template_id_txt"] = 'Plantilla'; | |||
| $wb["mail_txt"] = 'Crear Correo'; | |||
| $wb["mailboxes_txt"] = 'Buzones'; | |||
| $wb["mailboxes_help_txt"] = 'Separados por coma, solo el nombre sin el parte @tudominio.com'; | |||
| $wb["dkim_txt"] = 'Habilitar DKIM'; | |||
| $wb["dkim_private_txt"] = 'Clave-privada DKIM'; | |||
| $wb["dkim_public_txt"] = 'DKIM Clave-privada\npor informacion unicamente'; | |||
| $wb["dkim_generate_txt"] = 'Generar Clave-privada DKIM'; | |||
| $wb["dkim_dns_txt"] = 'DNS-Record'; | |||
| $wb["dkim_settings_txt"] = 'DomainKeys Identified Mail (DKIM)'; | |||
| $wb['dkim_selector_txt'] = 'Selector-DKIM'; | |||
| $wb["dkim_private_key_error"] = 'Clave-privada DKIM erronea'; | |||
| $wb["dns_txt"] = 'Crear Zona DNS'; | |||
| $wb['email_txt'] = 'Email'; | |||
| $wb['dnssec_txt'] = 'Firmar zona (DNSSEC)'; | |||
| $wb['ns1_txt'] = 'NS 1'; | |||
| $wb['ns2_txt'] = 'NS 2'; | |||
| $wb['ip_txt'] = 'Direccion IP'; | |||
| $wb['ipv6_txt'] = 'Direccion IPv6'; | |||
| $wb['error_origin_empty'] = 'El campo Origin esta vacio.'; | |||
| $wb['error_ns_empty'] = 'El campo NS esta vacio.'; | |||
| $wb['error_mbox_empty'] = 'El campo Email esta vacio.'; | |||
| $wb['error_refresh_empty'] = 'El campo Refresh esta vacio.'; | |||
| $wb['error_retry_empty'] = 'El campo Retry esta vacio.'; | |||
| $wb['error_expire_empty'] = 'El campo Expire esta vacio.'; | |||
| $wb['error_minimum_empty'] = 'El campo Minimum esta vacio.'; | |||
| $wb['error_ttl_empty'] = 'El campo TTL esta vacio.'; | |||
| $wb['error_domain_empty'] = 'El campo Domain esta vacio'; | |||
| $wb['error_ip_empty'] = 'El campo IP esta vacio.'; | |||
| $wb['error_ipv6_empty'] = 'El campo IPv6 esta vacio.'; | |||
| $wb['error_ns1_empty'] = 'El campo NS1 esta vacio.'; | |||
| $wb['error_ns2_empty'] = 'El campo NS2 esta vacio.'; | |||
| $wb['error_email_empty'] = 'El campo Email esta vacio.'; | |||
| $wb['error_domain_regex'] = 'El dominio contiene caracteres erroneos.'; | |||
| $wb['error_ns1_regex'] = 'NS1 contiene caracteres erroneos.'; | |||
| $wb['error_ns2_regex'] = 'NS2 contiene caracteres erroneos.'; | |||
| $wb['error_email_regex'] = 'El Email no contiene una direccion valida.'; | |||
| $wb['backup_interval_txt'] = 'Intervalo de copia de seguridad'; | |||
| $wb['backup_copies_txt'] = 'Número de copias de seguridad'; | |||
| $wb['ssl_state_txt'] = 'Estado/Provincia'; | |||
| $wb['ssl_locality_txt'] = 'Localidad'; | |||
| $wb['ssl_organisation_txt'] = 'Organización'; | |||
| $wb['ssl_organisation_unit_txt'] = 'Departamento de la organización'; | |||
| $wb['ssl_country_txt'] = 'País'; | |||
| $wb['ssl_request_txt'] = 'SSL Request'; | |||
| $wb['ssl_cert_txt'] = 'SSL Certificate'; | |||
| $wb['ssl_bundle_txt'] = 'SSL Bundle'; | |||
| $wb['ssl_action_txt'] = 'SSL Action'; | |||
| $wb['ssl_domain_txt'] = 'SSL Dominio'; | |||
| $wb['server_id_txt'] = 'Servidor'; | |||
| $wb['domain_txt'] = 'Dominio'; | |||
| $wb['type_txt'] = 'Tipo'; | |||
| $wb['parent_domain_id_txt'] = 'Sitio web padre'; | |||
| $wb['redirect_type_txt'] = 'Tipo redirección'; | |||
| $wb['redirect_path_txt'] = 'Ruta redirección'; | |||
| $wb['active_txt'] = 'Activar'; | |||
| $wb['document_root_txt'] = 'Documentroot'; | |||
| $wb['system_user_txt'] = 'Usuario Linux'; | |||
| $wb['system_group_txt'] = 'Grupo Linux'; | |||
| $wb['ip_address_txt'] = 'IPv4-Address'; | |||
| $wb['ipv6_address_txt'] = 'IPv6-Address'; | |||
| $wb['vhost_type_txt'] = 'VHost Tipo'; | |||
| $wb['hd_quota_txt'] = 'Couta disco duro'; | |||
| $wb['traffic_quota_txt'] = 'Cuota de tráfico'; | |||
| $wb['cgi_txt'] = 'CGI'; | |||
| $wb['ssi_txt'] = 'SSI'; | |||
| $wb['errordocs_txt'] = 'Documentos propios de error'; | |||
| $wb['subdomain_txt'] = 'Auto-Subdominio'; | |||
| $wb['ssl_txt'] = 'SSL'; | |||
| $wb['suexec_txt'] = 'SuEXEC'; | |||
| $wb['php_txt'] = 'PHP'; | |||
| $wb['client_txt'] = 'Cliente'; | |||
| $wb['limit_web_domain_txt'] = 'Se ha alcanzado el número máximo de dominios web de esta cuenta'; | |||
| $wb['limit_web_aliasdomain_txt'] = 'Se ha alcanzado el número máximo de alias de dominios de esta cuenta'; | |||
| $wb['limit_web_subdomain_txt'] = 'Se ha alcanzado el número máximo de subdominios web de esta cuenta'; | |||
| $wb['apache_directives_txt'] = 'Directivas de Apache'; | |||
| $wb['domain_error_empty'] = 'El dominio está vacío.'; | |||
| $wb['domain_error_unique'] = 'Ya existe un sitio web o sub/aliasdominio con este nombre de dominio.'; | |||
| $wb['domain_error_regex'] = 'El nombre de dominio no es válido'; | |||
| $wb['hd_quota_error_empty'] = 'Cuota de disco duro es 0 o vacío.'; | |||
| $wb['traffic_quota_error_empty'] = 'Cuota de tráfico está vacío.'; | |||
| $wb['error_ssl_state_empty'] = 'Estado SSL está vacío.'; | |||
| $wb['error_ssl_locality_empty'] = 'Sitio SSL está vacío.'; | |||
| $wb['error_ssl_organisation_empty'] = 'SSL Organización está vacío.'; | |||
| $wb['error_ssl_organisation_unit_empty'] = 'SSL Unidad de Organización está vacío.'; | |||
| $wb['error_ssl_country_empty'] = 'País SSL está vacío.'; | |||
| $wb['error_ssl_cert_empty'] = 'Campo de certificado SSL está vacío.'; | |||
| $wb['client_group_id_txt'] = 'Cliente'; | |||
| $wb['stats_password_txt'] = 'Contraseña de estadísticas Web '; | |||
| $wb['allow_override_txt'] = 'Apache AllowOverride'; | |||
| $wb['limit_web_quota_free_txt'] = 'Max. cuota disco duro disponible'; | |||
| $wb['ssl_state_error_regex'] = 'Estado no válido de SSL. Los caracteres válidos son: a-z, 0-9 y,-_.'; | |||
| $wb['ssl_locality_error_regex'] = 'Invalid Sitio válido SSL. Los caracteres válidos son: a-z, 0-9 y,-_.'; | |||
| $wb['ssl_organisation_error_regex'] = 'Organización no válido SSL. Los caracteres válidos son: a-z, 0-9 y,-_.'; | |||
| $wb['ssl_organistaion_unit_error_regex'] = 'Unidad de Organización no válido SSL. Los caracteres válidos son: a-z, 0-9 y,-_.'; | |||
| $wb['ssl_country_error_regex'] = 'País no válido SSL. Los caracteres válidos son: A-Z'; | |||
| $wb['limit_traffic_quota_free_txt'] = 'Max. Cuota de tráfico disponible'; | |||
| $wb['redirect_error_regex'] = 'Redirección no válida camino. Redirecciones válidos son, por ejemplo,: /test/ or http://www.domain.tld/test/'; | |||
| $wb['php_open_basedir_txt'] = 'PHP open_basedir'; | |||
| $wb['traffic_quota_exceeded_txt'] = 'Cuota de tráfico excedida'; | |||
| $wb['ruby_txt'] = 'Ruby'; | |||
| $wb['stats_user_txt'] = 'Estadísticas Web nombre de usuario'; | |||
| $wb['stats_type_txt'] = 'Estadísticas Web del programa'; | |||
| $wb['custom_php_ini_txt'] = 'Configuración personalizada de php.ini'; | |||
| $wb['none_txt'] = 'Ninguno'; | |||
| $wb['disabled_txt'] = 'Desactivado'; | |||
| $wb['no_redirect_txt'] = 'No redirigir'; | |||
| $wb['no_flag_txt'] = 'No flag'; | |||
| $wb['save_certificate_txt'] = 'Guardar el certificado'; | |||
| $wb['create_certificate_txt'] = 'Crear el certificado'; | |||
| $wb['delete_certificate_txt'] = 'Eliminar certificado'; | |||
| $wb['nginx_directives_txt'] = 'nginx Directives'; | |||
| $wb['seo_redirect_txt'] = 'SEO Redirect'; | |||
| $wb['non_www_to_www_txt'] = 'Non-www -> www'; | |||
| $wb['www_to_non_www_txt'] = 'www -> non-www'; | |||
| $wb['php_fpm_use_socket_txt'] = 'Usar Socket para PHP-FPM'; | |||
| $wb['error_no_sni_txt'] = 'SNI para SSL no está activado en este servidor. Sólo es posible activar un certificado SSL en cada dirección IP.'; | |||
| $wb['python_txt'] = 'Python'; | |||
| $wb['pm_max_children_txt'] = 'PHP-FPM pm.max_children'; | |||
| $wb['pm_start_servers_txt'] = 'PHP-FPM pm.start_servers'; | |||
| $wb['pm_min_spare_servers_txt'] = 'PHP-FPM pm.min_spare_servers'; | |||
| $wb['pm_max_spare_servers_txt'] = 'PHP-FPM pm.max_spare_servers'; | |||
| $wb['error_php_fpm_pm_settings_txt'] = 'Los valores de configuración de PHP-FPM pm debe ser como sigue: pm.max_children> = pm.max_spare_servers> = pm.start_servers> = pm.min_spare_servers> 0'; | |||
| $wb['pm_max_children_error_regex'] = 'PHP-FPM pm.max_children debe ser un valor entero positivo.'; | |||
| $wb['pm_start_servers_error_regex'] = 'PHP-FPM pm.start_servers debe ser un valor entero positivo.'; | |||
| $wb['pm_min_spare_servers_error_regex'] = 'PHP-FPM pm.min_spare_servers debe ser un valor entero positivo.'; | |||
| $wb['pm_max_spare_servers_error_regex'] = 'PHP-FPM pm.max_spare_servers debe ser un valor entero positivo.'; | |||
| $wb['ssl_key_txt'] = 'SSL Key'; | |||
| $wb['web_folder_error_regex'] = 'Invalid folder entered. Please do not enter a slash.'; | |||
| $wb['domain_error_autosub'] = 'There is already a subdomain with these settings.'; | |||
| $wb['perl_txt'] = 'Perl'; | |||
| $wb['hd_quota_error_regex'] = 'Harddisk quota is invalid.'; | |||
| $wb['traffic_quota_error_regex'] = 'Traffic quota is invalid.'; | |||
| $wb['fastcgi_php_version_txt'] = 'PHP Version'; | |||
| $wb['pm_txt'] = 'PHP-FPM Process Manager'; | |||
| $wb['pm_process_idle_timeout_txt'] = 'PHP-FPM pm.process_idle_timeout'; | |||
| $wb['pm_max_requests_txt'] = 'PHP-FPM pm.max_requests'; | |||
| $wb['pm_process_idle_timeout_error_regex'] = 'PHP-FPM pm.process_idle_timeout must be a positive integer value.'; | |||
| $wb['pm_max_requests_error_regex'] = 'PHP-FPM pm.max_requests must be an integer value >= 0.'; | |||
| $wb['pm_ondemand_hint_txt'] = 'Please note that you must have PHP version >= 5.3.9 in order to use the ondemand process manager. If you select ondemand for an older PHP version, PHP will not start anymore!'; | |||
| $wb['generate_password_txt'] = 'Generate Password'; | |||
| $wb['repeat_password_txt'] = 'Repeat Password'; | |||
| $wb['password_mismatch_txt'] = 'The passwords do not match.'; | |||
| $wb['password_match_txt'] = 'The passwords do match.'; | |||
| $wb['available_php_directive_snippets_txt'] = 'Available PHP Directive Snippets:'; | |||
| $wb['available_apache_directive_snippets_txt'] = 'Available Apache Directive Snippets:'; | |||
| $wb['available_nginx_directive_snippets_txt'] = 'Available nginx Directive Snippets:'; | |||
| $wb['proxy_directives_txt'] = 'Proxy Directives'; | |||
| $wb['available_proxy_directive_snippets_txt'] = 'Available Proxy Directive Snippets:'; | |||
| $wb['no_server_error'] = 'No server selected.'; | |||
| $wb['no_backup_txt'] = 'No backup'; | |||
| $wb['daily_backup_txt'] = 'Daily'; | |||
| $wb['weekly_backup_txt'] = 'Weekly'; | |||
| $wb['monthly_backup_txt'] = 'Monthly'; | |||
| $wb['rewrite_rules_txt'] = 'Rewrite Rules'; | |||
| $wb['invalid_rewrite_rules_txt'] = 'Invalid Rewrite Rules'; | |||
| $wb['allowed_rewrite_rule_directives_txt'] = 'Allowed Directives:'; | |||
| $wb['configuration_error_txt'] = 'CONFIGURATION ERROR'; | |||
| $wb['variables_txt'] = 'Variables'; | |||
| $wb['added_by_txt'] = 'Added by'; | |||
| $wb['added_date_txt'] = 'Added date'; | |||
| $wb['backup_excludes_txt'] = 'Excluded Directories'; | |||
| $wb['backup_excludes_note_txt'] = '(Separate multiple directories with commas. Example: web/cache/*,web/backup)'; | |||
| $wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid characters.'; | |||
| $wb['invalid_custom_php_ini_settings_txt'] = 'Invalid php.ini settings'; | |||
| $wb['invalid_system_user_or_group_txt'] = 'Invalid system user or group'; | |||
| $wb['apache_directive_blocked_error'] = 'Apache directive blocked by security settings:'; | |||
| $wb['http_port_txt'] = 'HTTP Port'; | |||
| $wb['https_port_txt'] = 'HTTPS Port'; | |||
| $wb['http_port_error_regex'] = 'HTTP Port invalid.'; | |||
| $wb['https_port_error_regex'] = 'HTTPS Port invalid.'; | |||
| $wb['error_dominio_mas_puntos'] = 'El dominio no es correcto, hay 3 puntos o más.'; | |||
| $wb['error_dominio_www'] = 'El dominio no es correcto. No escriba "www" antes del dominio.'; | |||
| $wb['error_no_existe_dominio_padre'] = 'El dominio padre para este subdominio, no existe.'; | |||
| $wb['error_no_ip'] = 'No tiene ip, necesita añadirla en la configuración.'; | |||
| $wb['error_subdominio_existe'] = 'Este subdominio existe.'; | |||
| $wb["nom_bd_txt"] = 'Nombre'; | |||
| $wb["usuario_bd_txt"] = 'Usuario'; | |||
| $wb["pass_bd_txt"] = 'Clave'; | |||
| $wb["usuario_ftp_txt"] = 'Usuario'; | |||
| $wb["clave_ftp_txt"] = 'Clave'; | |||
| $wb["database_user_txt"] = 'Base de Datos Usuaio'; | |||
| $wb["database_password_txt"] = 'Password'; | |||
| $wb["password_strength_txt"] = 'Password fuerza'; | |||
| $wb["client_txt"] = 'Cliente'; | |||
| $wb["active_txt"] = 'Active'; | |||
| $wb["database_user_error_empty"] = 'Base de Datos usuario esta vacío.'; | |||
| $wb["database_user_error_unique"] = 'There is already a database user with this name on the server. To get a unique name, e.g. prepend your domain name to the username.'; | |||
| $wb["database_user_error_regex"] = 'Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.'; | |||
| $wb["database_user_error_len"] = 'Database username - {user} - too long. The max. database username length incl. prefix is 16 chars.'; | |||
| $wb["btn_save_txt"] = 'Guardar'; | |||
| $wb["btn_cancel_txt"] = 'Cancelar'; | |||
| $wb['generate_password_txt'] = 'Generar Password'; | |||
| $wb['repeat_password_txt'] = 'Repetir Password'; | |||
| $wb['password_mismatch_txt'] = 'The passwords do not match.'; | |||
| $wb['password_match_txt'] = 'The passwords do match.'; | |||
| $wb['globalsearch_resultslimit_of_txt'] = "of"; | |||
| $wb['globalsearch_resultslimit_results_txt'] = "results"; | |||
| $wb['globalsearch_noresults_text_txt'] = "No results."; | |||
| $wb['globalsearch_noresults_limit_txt'] = "0 results"; | |||
| $wb['globalsearch_searchfield_watermark_txt'] = "Search"; | |||
| $wb['globalsearch_suggestions_text_txt'] = "Suggestions"; | |||
| $wb['limit_database_user_txt'] = "The max. number of database users is reached."; | |||
| $wb['database_password_error_empty'] = 'Base de Datos password esta vacío.'; | |||
| $wb['uid_txt'] = 'Identificador de usuario (UID)'; | |||
| $wb['gid_txt'] = 'Identificador de grupo (GID)'; | |||
| $wb['dir_txt'] = 'Directorio'; | |||
| $wb['quota_files_txt'] = 'Cuota de archivos'; | |||
| $wb['quota_files_unity_txt'] = 'Archivos'; | |||
| $wb['ul_ratio_txt'] = 'Radio de subida'; | |||
| $wb['dl_ratio_txt'] = 'Radio de descarga'; | |||
| $wb['ul_bandwidth_txt'] = 'Ancho de banda de subida'; | |||
| $wb['dl_bandwidth_txt'] = 'Ancho de banda de bajada'; | |||
| $wb['server_id_txt'] = 'Servidor'; | |||
| $wb['parent_domain_id_txt'] = 'Sitio web'; | |||
| $wb['username_txt'] = 'Nombre de usuario'; | |||
| $wb['password_txt'] = 'Contraseña'; | |||
| $wb['password_strength_txt'] = 'Fortaleza de la contraseña'; | |||
| $wb['quota_size_txt'] = 'Cuota de disco'; | |||
| $wb['active_txt'] = 'Habilitado'; | |||
| $wb['limit_ftp_user_txt'] = 'Ha alcanzado en su cuenta el número máx. de usuarios FTP.'; | |||
| $wb['username_error_empty'] = 'El nombre de usuario está vacío.'; | |||
| $wb['username_error_unique'] = 'El nombre de usuario debe ser único.'; | |||
| $wb['username_error_regex'] = 'El nombre de usuario contiene caracteres inválidos.'; | |||
| $wb['quota_size_error_empty'] = 'La cuota está vacía.'; | |||
| $wb['uid_error_empty'] = 'GID está vacío.'; | |||
| $wb['directory_error_empty'] = 'El directorio está vacío.'; | |||
| $wb['directory_error_notinweb'] = 'El directorio no se encuentra dentro del directorio de inicio del sitio web.'; | |||
| $wb['parent_domain_id_error_empty'] = 'No se ha seleccionado un sitio web.'; | |||
| $wb['quota_size_error_regex'] = 'Cuota: ingrese -1 para ilimitado o un número > 0'; | |||
| $wb['dir_dot_error'] = 'No se permite .. en la ruta.'; | |||
| $wb['dir_slashdot_error'] = 'No se permite ./ en la ruta.'; | |||
| $wb['generate_password_txt'] = 'Generar contraseña'; | |||
| $wb['repeat_password_txt'] = 'Repetir contraseña'; | |||
| $wb['password_mismatch_txt'] = 'Las contraseñas no coinciden.'; | |||
| $wb['password_match_txt'] = 'Las contraseñas coinciden.'; | |||
| $wb['expires_txt'] = 'Expire at'; | |||
| ?> | |||
| @@ -199,7 +199,7 @@ class page_action extends tform_actions { | |||
| "width=400, hight=150, top=200, toolbar=no, status=no, menubar=no");return false;"><img src="imagen/open6-logo.png"></img></a>'; | |||
| */ | |||
| $eldom = $fields['domain']; | |||
| echo '<form method="post" id="formulario" action="webdns/pdf_o6h.php" target="_blank"'; | |||
| echo '<form method="post" id="formulario" action="webdns/pdf_o6h.php" target="_blank">'; | |||
| echo '<input id="pdf_power" name="pdf_power" type="hidden" value="'.$html_resultado.'">'; | |||
| echo '<input id="nombre_bd" name="nombre_bd" type="hidden" value="'.$this->nombre_db_txt.'">'; | |||
| echo '<input id="usuario_bd" name="usuario_bd" type="hidden" value="'.$this->usuario_db_txt.'">'; | |||
| @@ -1,257 +0,0 @@ | |||
| <div class="form-group"> | |||
| <label class="col-sm-3 control-label">{tmpl_var name='password_strength_txt'}</label> | |||
| <div class="col-sm-9 checkbox"> | |||
| <div id="passBar"></div> | |||
| <span id="passText"> </span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group"> | |||
| <div class="col-sm-offset-3 col-sm-9"> | |||
| <div id="confirmpasswordError" style="display:none;" class="confirmpassworderror">{tmpl_var name='password_mismatch_txt'}</div> | |||
| <div id="confirmpasswordOK" style="display:none;" class="confirmpasswordok">{tmpl_var name='password_match_txt'}</div> | |||
| </div> | |||
| </div> | |||
| <div class='page-header'> | |||
| </div> | |||
| <b>BBDD</b> | |||
| <div class="form-group"> | |||
| <label class="col-sm-3 control-label" for="client_id">{tmpl_var name='client_id_txt'}</label> | |||
| <div class="col-sm-9"> | |||
| <select class="form-control" id="client_id" name="client_id"> | |||
| {tmpl_var name='client_id'} | |||
| </select> | |||
| </div> | |||
| </div> | |||
| <input id="pass_bd" name="ver_bd_fuerza" type="hidden" value="0"> | |||
| <input id="pass_ftp" name="ver_ftp_fuerza" type="hidden" value="0"> | |||
| <tmpl_if name="is_admin"> | |||
| <!--div class="form-group"> | |||
| <label for="client_group_id" class="col-sm-3 control-label">{tmpl_var name='client_txt'}</label> | |||
| <div class="col-sm-9"><select name="client_group_id" id="client_group_id" class="form-control"> | |||
| {tmpl_var name='client_group_id'} | |||
| </select></div> | |||
| </div--> | |||
| </tmpl_if> | |||
| <tmpl_if name="is_reseller"> | |||
| <!--div class="form-group"> | |||
| <label for="client_group_id" class="col-sm-3 control-label">{tmpl_var name='client_txt'}</label> | |||
| <div class="col-sm-9"><select name="client_group_id" id="client_group_id" class="form-control"> | |||
| {tmpl_var name='client_group_id'} | |||
| </select></div> | |||
| </div--> | |||
| </tmpl_if> | |||
| <div class="form-group"> | |||
| <label for="database_user" class="col-sm-3 control-label">{tmpl_var name='database_user_txt'}</label> | |||
| <div class="col-sm-9"> | |||
| <div class="input-group"> | |||
| <span class="input-group-addon" id="database_user-desc">{tmpl_var name='database_user_prefix'}</span> | |||
| <input type="text" name="database_user" id="database_user" value="{tmpl_var name='database_user'}" class="form-control" aria-describedby="database_user-desc" /> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="form-group"> | |||
| <label for="database_password" class="col-sm-3 control-label">{tmpl_var name='database_password_txt'}</label> | |||
| <div class="col-sm-9"> | |||
| <div class="input-group"> | |||
| <input type="password" name="database_password" id="database_password" value="{tmpl_var name='database_password'}" class="form-control" autocomplete="off" onkeyup="pass_check(this.value);checkPassMatch('database_password','repeat_password');" /> | |||
| <span class="input-group-btn"> | |||
| <button class="btn btn-default" type="button" onclick="generatePassword('database_password','repeat_password');">{tmpl_var name='generate_password_txt'}</button> | |||
| </span> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <!--div class="form-group"> | |||
| <label class="col-sm-3 control-label">{tmpl_var name='password_strength_txt'}</label> | |||
| <div class="col-sm-9 checkbox"> | |||
| <div id="passBar2"></div> | |||
| <span id="passText2"> </span> | |||
| </div> | |||
| </div--> | |||
| <div class="form-group"> | |||
| <label for="repeat_password" class="col-sm-3 control-label">{tmpl_var name='repeat_password_txt'}</label> | |||
| <div class="col-sm-9"><input type="password" name="repeat_password" id="repeat_password" value="" class="form-control" autocomplete="off" onkeyup="checkPassMatch('database_password','repeat_password');" /></div></div> | |||
| <!--div class="form-group"> | |||
| <div class="col-sm-offset-3 col-sm-9"> | |||
| <div id="confirmpasswordError" style="display:none;" class="confirmpassworderror">{tmpl_var name='password_mismatch_txt'}</div> | |||
| <div id="confirmpasswordOK" style="display:none;" class="confirmpasswordok">{tmpl_var name='password_match_txt'}</div> | |||
| </div> | |||
| </div--> | |||
| <!--input type="hidden" name="id" value="{tmpl_var name='id'}"> | |||
| <div class="clear"><div class="right"> | |||
| <button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="sites/database_user_edit.php">{tmpl_var name='btn_save_txt'}</button> | |||
| <button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="sites/database_user_list.php">{tmpl_var name='btn_cancel_txt'}</button> | |||
| </div></div --> | |||
| <div class='page-header'> | |||
| </div> | |||
| <b>FTP</b> | |||
| <div class="form-group"> | |||
| <label for="parent_domain_id" class="col-sm-3 control-label">{tmpl_var name='parent_domain_id_txt'}</label> | |||
| <div class="col-sm-9"><select name="parent_domain_id" id="parent_domain_id" class="form-control"> | |||
| {tmpl_var name='parent_domain_id'} | |||
| </select></div> | |||
| </div> | |||
| <div class="form-group"> | |||
| <label for="username" class="col-sm-3 control-label">{tmpl_var name='username_txt'}</label> | |||
| <div class="col-sm-9"> | |||
| <div class="input-group"> | |||
| <span class="input-group-addon" id="username-desc">{tmpl_var name='username_prefix'}</span> | |||
| <input type="text" name="username" id="username" value="{tmpl_var name='username'}" class="form-control" aria-describedby="username-desc" /> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="form-group"> | |||
| <label for="passwordftp" class="col-sm-3 control-label">{tmpl_var name='password_txt'}</label> | |||
| <div class="col-sm-9"> | |||
| <div class="input-group"> | |||
| <input type="password" name="passwordftp" id="passwordftp" value="{tmpl_var name='passwordftp'}" class="form-control" autocomplete="off" onkeyup="pass_check(this.value);checkPassMatch('passwordftp','repeat_passwordftp');" /> | |||
| <span class="input-group-btn"> | |||
| <button class="btn btn-default" type="button" onclick="generatePassword('passwordftp','repeat_passwordftp');">{tmpl_var name='generate_password_txt'}</button> | |||
| </span> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <!--div class="form-group"> | |||
| <label class="col-sm-3 control-label">{tmpl_var name='password_strength_txt'}</label> | |||
| <div class="col-sm-9 checkbox"> | |||
| <div id="passBar"></div> | |||
| <span id="passText"> </span> | |||
| </div> | |||
| </div--> | |||
| <div class="form-group"> | |||
| <label for="repeat_passwordftp" class="col-sm-3 control-label">{tmpl_var name='repeat_password_txt'}</label> | |||
| <div class="col-sm-9"><input type="password" name="repeat_passwordftp" id="repeat_passwordftp" value="" class="form-control" autocomplete="off" onkeyup="checkPassMatch('passwordftp','repeat_passwordftp');" /></div></div> | |||
| <!--div class="form-group"> | |||
| <div class="col-sm-offset-3 col-sm-9"> | |||
| <div id="confirmpasswordError" style="display:none;" class="confirmpassworderror">{tmpl_var name='password_mismatch_txt'}</div> | |||
| <div id="confirmpasswordOK" style="display:none;" class="confirmpasswordok">{tmpl_var name='password_match_txt'}</div> | |||
| </div> | |||
| </div--> | |||
| <!--div class="form-group"> | |||
| <label for="quota_size" class="col-sm-3 control-label">{tmpl_var name='quota_size_txt'}</label> | |||
| <div class="col-sm-9"><div class="input-group"><input type="text" name="quota_size" id="quota_size" value="{tmpl_var name='quota_size'}" class="form-control" aria-describedby="quota_size-desc" /><span class="input-group-addon" id="quota_size-desc">MB</span></div></div> | |||
| </div> | |||
| <div class="form-group"> | |||
| <label class="col-sm-3 control-label">{tmpl_var name='active_txt'}</label> | |||
| <div class="col-sm-9"> | |||
| {tmpl_var name='active'} | |||
| </div> | |||
| </div--> | |||
| <input id="create_service" name="create" type="hidden" value="0"> | |||
| <form> | |||
| <input name="id" type="hidden" value="{tmpl_var name='id'}"> | |||
| </form> | |||
| <div class="clear"> | |||
| <div class="right"> | |||
| <button class="btn btn-default formbutton-success" id="dom-edit-submit" type="button" value="{tmpl_var name='btn_save_txt'}">{tmpl_var name='btn_save_txt'}</button> | |||
| <button class="btn btn-default formbutton-default" data-load-content="webdns/ftp_bd_service.php" type="button" value="{tmpl_var name='btn_cancel_txt'}">{tmpl_var name='btn_cancel_txt'}</button> | |||
| </div> | |||
| </div> | |||
| <!-- script type="text/javascript"> | |||
| $("input[name=db]").change(function(){ | |||
| if($(this).is(':checked')) | |||
| { | |||
| $(".db").show(); | |||
| } | |||
| else | |||
| { | |||
| $(".db").hide(); | |||
| } | |||
| }); | |||
| $("input[name=mail]").change(function(){ | |||
| if($(this).is(':checked')) | |||
| { | |||
| $(".mail").show(); | |||
| } | |||
| else | |||
| { | |||
| $(".mail").hide(); | |||
| $(".dkim").hide(); | |||
| $("input[name=dkim]").prop('checked', false); | |||
| } | |||
| }); | |||
| if( ! $("input[name=dkim]").is(':checked')) | |||
| { | |||
| $(".dkim").hide(); | |||
| } | |||
| $("input[name=dkim]").change(function(){ | |||
| if($(this).is(':checked')) | |||
| { | |||
| $(".dkim").show(); | |||
| $(".dns").show(); | |||
| $("input[name=dns]").prop('checked', true); | |||
| } | |||
| else | |||
| { | |||
| $(".dkim").hide(); | |||
| } | |||
| }); | |||
| $("input[name=dns]").change(function(){ | |||
| if($(this).is(':checked')) | |||
| { | |||
| $(".dns").show(); | |||
| } | |||
| else | |||
| { | |||
| $(".dns").hide(); | |||
| $(".dkim").hide(); | |||
| $("input[name=dkim]").prop('checked', false); | |||
| } | |||
| }); | |||
| jQuery('#dom-edit-submit').click(function() { | |||
| $("#create_service").val("1"); | |||
| ISPConfig.submitForm('pageForm','webdns/ftp_bd_service.php'); | |||
| }); | |||
| jQuery('#dns_ip').ispconfigSearch({ | |||
| dataSrc: '/dns/ajax_get_json.php?type=get_ipv4', | |||
| resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">', | |||
| ResultsTextPrefix: '<tmpl_var name="globalsearch_suggestions_text_txt">', | |||
| noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">', | |||
| noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">', | |||
| minChars: 0, | |||
| cssPrefix: 'df-', | |||
| fillSearchField: true, | |||
| fillSearchFieldWith: 'fill_text', | |||
| searchFieldWatermark: '', | |||
| resultBoxPosition: '' | |||
| }); | |||
| jQuery('#dns_ipv6').ispconfigSearch({ | |||
| dataSrc: '/dns/ajax_get_json.php?type=get_ipv6', | |||
| resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">', | |||
| ResultsTextPrefix: '<tmpl_var name="globalsearch_suggestions_text_txt">', | |||
| noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">', | |||
| noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">', | |||
| minChars: 0, | |||
| cssPrefix: 'df-', | |||
| fillSearchField: true, | |||
| fillSearchFieldWith: 'fill_text', | |||
| searchFieldWatermark: '', | |||
| resultBoxPosition: '' | |||
| }); | |||
| </script --!> | |||
| <script language="JavaScript" type="text/javascript" src="js/mail_domain_dkim.js"></script> | |||