Setting eol-style for php and tpl - files
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: admin_aps.php 2692 2009-03-27 18:04:47Z flo $
|
||||
* @todo
|
||||
*/
|
||||
|
||||
// Required code
|
||||
|
||||
define('AREA', 'admin');
|
||||
require ("./lib/init.php");
|
||||
require ("./lib/class_apsparser.php");
|
||||
$Id = 0;
|
||||
|
||||
if(isset($_GET['id']))$Id = (int)$_GET['id'];
|
||||
|
||||
if(isset($_POST['id']))$Id = (int)$_POST['id'];
|
||||
eval("echo \"" . getTemplate("aps/header") . "\";");
|
||||
$Aps = new ApsParser($userinfo, $settings, $db);
|
||||
$Aps->MainHandler($action);
|
||||
eval("echo \"" . getTemplate("aps/footer") . "\";");
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: admin_aps.php 2692 2009-03-27 18:04:47Z flo $
|
||||
* @todo
|
||||
*/
|
||||
|
||||
// Required code
|
||||
|
||||
define('AREA', 'admin');
|
||||
require ("./lib/init.php");
|
||||
require ("./lib/class_apsparser.php");
|
||||
$Id = 0;
|
||||
|
||||
if(isset($_GET['id']))$Id = (int)$_GET['id'];
|
||||
|
||||
if(isset($_POST['id']))$Id = (int)$_POST['id'];
|
||||
eval("echo \"" . getTemplate("aps/header") . "\";");
|
||||
$Aps = new ApsParser($userinfo, $settings, $db);
|
||||
$Aps->MainHandler($action);
|
||||
eval("echo \"" . getTemplate("aps/footer") . "\";");
|
||||
|
||||
?>
|
||||
2370
admin_customers.php
2370
admin_customers.php
File diff suppressed because it is too large
Load Diff
@@ -1,320 +1,320 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Michael Duergner <michael@duergner.com>
|
||||
* @author Luca Longinotti <chtekk@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: admin_ipsandports.php 2699 2009-04-14 11:21:26Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'admin');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'ipsandports'
|
||||
|| $page == 'overview')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports");
|
||||
$fields = array(
|
||||
'ip' => $lng['admin']['ipsandports']['ip'],
|
||||
'port' => $lng['admin']['ipsandports']['port']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_IPSANDPORTS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$ipsandports = '';
|
||||
$result = $db->query("SELECT `id`, `ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl` FROM `" . TABLE_PANEL_IPSANDPORTS . "` " . $paging->getSqlWhere(false) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($row);
|
||||
|
||||
if(filter_var($row['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$row['ip'] = '[' . $row['ip'] . ']';
|
||||
}
|
||||
|
||||
eval("\$ipsandports.=\"" . getTemplate("ipsandports/ipsandports_ipandport") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("ipsandports/ipsandports") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['id'])
|
||||
&& $result['id'] == $id)
|
||||
{
|
||||
$result_checkdomain = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `ipandport`='" . (int)$id . "'");
|
||||
|
||||
if($result_checkdomain['id'] == '')
|
||||
{
|
||||
if($result['id'] != $settings['system']['defaultip'])
|
||||
{
|
||||
$result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'");
|
||||
|
||||
if(($result['ip'] != $settings['system']['ipaddress'])
|
||||
|| ($result['ip'] == $settings['system']['ipaddress'] && $result_sameipotherport['id'] != ''))
|
||||
{
|
||||
$result = $db->query_first("SELECT `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
|
||||
if($result['ip'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "deleted IP/port '" . $result['ip'] . ":" . $result['port'] . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_ip_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['ip'] . ':' . $result['port']);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('cantdeletesystemip');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('cantdeletedefaultip');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('ipstillhasdomains');
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$ip = validate_ip($_POST['ip']);
|
||||
$port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport'));
|
||||
$listen_statement = intval($_POST['listen_statement']);
|
||||
$namevirtualhost_statement = intval($_POST['namevirtualhost_statement']);
|
||||
$vhostcontainer = intval($_POST['vhostcontainer']);
|
||||
$specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/');
|
||||
$vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']);
|
||||
$ssl = intval($_POST['ssl']);
|
||||
$ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file');
|
||||
$ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file');
|
||||
$ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file');
|
||||
$default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/');
|
||||
|
||||
if($listen_statement != '1')
|
||||
{
|
||||
$listen_statement = '0';
|
||||
}
|
||||
|
||||
if($namevirtualhost_statement != '1')
|
||||
{
|
||||
$namevirtualhost_statement = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer != '1')
|
||||
{
|
||||
$vhostcontainer = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer_servername_statement != '1')
|
||||
{
|
||||
$vhostcontainer_servername_statement = '0';
|
||||
}
|
||||
|
||||
if($ssl != '1')
|
||||
{
|
||||
$ssl = '0';
|
||||
}
|
||||
|
||||
if($ssl_cert_file != '')
|
||||
{
|
||||
$ssl_cert_file = makeCorrectFile($ssl_cert_file);
|
||||
}
|
||||
|
||||
if($ssl_key_file != '')
|
||||
{
|
||||
$ssl_key_file = makeCorrectFile($ssl_key_file);
|
||||
}
|
||||
|
||||
if($ssl_ca_file != '')
|
||||
{
|
||||
$ssl_ca_file = makeCorrectFile($ssl_ca_file);
|
||||
}
|
||||
|
||||
$result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'");
|
||||
|
||||
if($result_checkfordouble['id'] != '')
|
||||
{
|
||||
standard_error('myipnotdouble');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_IPSANDPORTS . "` (`ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl`, `ssl_cert_file`, `ssl_key_file`, `ssl_ca_file`, `default_vhostconf_domain`) VALUES ('" . $db->escape($ip) . "', '" . (int)$port . "', '" . (int)$listen_statement . "', '" . (int)$namevirtualhost_statement . "', '" . (int)$vhostcontainer . "', '" . (int)$vhostcontainer_servername_statement . "', '" . $db->escape($specialsettings) . "', '" . (int)$ssl . "', '" . $db->escape($ssl_cert_file) . "', '" . $db->escape($ssl_key_file) . "', '" . $db->escape($ssl_ca_file) . "', '" . $db->escape($default_vhostconf_domain) . "')");
|
||||
|
||||
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$ip = '[' . $ip . ']';
|
||||
}
|
||||
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "added IP/port '" . $ip . ":" . $port . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$enable_ssl = makeyesno('ssl', '1', '0', '0');
|
||||
$listen_statement = makeyesno('listen_statement', '1', '0', '1');
|
||||
$namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', '1');
|
||||
$vhostcontainer = makeyesno('vhostcontainer', '1', '0', '1');
|
||||
$vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', '1');
|
||||
eval("echo \"" . getTemplate("ipsandports/ipsandports_add") . "\";");
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
|
||||
if($result['ip'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$ip = validate_ip($_POST['ip']);
|
||||
$port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport'));
|
||||
$result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'");
|
||||
$result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'");
|
||||
$listen_statement = intval($_POST['listen_statement']);
|
||||
$namevirtualhost_statement = intval($_POST['namevirtualhost_statement']);
|
||||
$vhostcontainer = intval($_POST['vhostcontainer']);
|
||||
$specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/');
|
||||
$vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']);
|
||||
$ssl = intval($_POST['ssl']);
|
||||
$ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file');
|
||||
$ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file');
|
||||
$ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file');
|
||||
$default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/');
|
||||
|
||||
if($listen_statement != '1')
|
||||
{
|
||||
$listen_statement = '0';
|
||||
}
|
||||
|
||||
if($namevirtualhost_statement != '1')
|
||||
{
|
||||
$namevirtualhost_statement = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer != '1')
|
||||
{
|
||||
$vhostcontainer = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer_servername_statement != '1')
|
||||
{
|
||||
$vhostcontainer_servername_statement = '0';
|
||||
}
|
||||
|
||||
if($ssl != '1')
|
||||
{
|
||||
$ssl = '0';
|
||||
}
|
||||
|
||||
if($ssl_cert_file != '')
|
||||
{
|
||||
$ssl_cert_file = makeCorrectFile($ssl_cert_file);
|
||||
}
|
||||
|
||||
if($ssl_key_file != '')
|
||||
{
|
||||
$ssl_key_file = makeCorrectFile($ssl_key_file);
|
||||
}
|
||||
|
||||
if($ssl_ca_file != '')
|
||||
{
|
||||
$ssl_ca_file = makeCorrectFile($ssl_ca_file);
|
||||
}
|
||||
|
||||
if($result['ip'] != $ip
|
||||
&& $result['ip'] == $settings['system']['ipaddress']
|
||||
&& $result_sameipotherport['id'] == '')
|
||||
{
|
||||
standard_error('cantchangesystemip');
|
||||
}
|
||||
elseif($result_checkfordouble['id'] != ''
|
||||
&& $result_checkfordouble['id'] != $id)
|
||||
{
|
||||
standard_error('myipnotdouble');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_IPSANDPORTS . "` SET `ip`='" . $db->escape($ip) . "', `port`='" . (int)$port . "', `listen_statement`='" . (int)$listen_statement . "', `namevirtualhost_statement`='" . (int)$namevirtualhost_statement . "', `vhostcontainer`='" . (int)$vhostcontainer . "', `vhostcontainer_servername_statement`='" . (int)$vhostcontainer_servername_statement . "', `specialsettings`='" . $db->escape($specialsettings) . "', `ssl`='" . (int)$ssl . "', `ssl_cert_file`='" . $db->escape($ssl_cert_file) . "', `ssl_key_file`='" . $db->escape($ssl_key_file) . "', `ssl_ca_file`='" . $db->escape($ssl_ca_file) . "', `default_vhostconf_domain`='" . $db->escape($default_vhostconf_domain) . "' WHERE `id`='" . (int)$id . "'");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "changed IP/port from '" . $result['ip'] . ":" . $result['port'] . "' to '" . $ip . ":" . $port . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$enable_ssl = makeyesno('ssl', '1', '0', $result['ssl']);
|
||||
$result = htmlentities_array($result);
|
||||
$listen_statement = makeyesno('listen_statement', '1', '0', $result['listen_statement']);
|
||||
$namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', $result['namevirtualhost_statement']);
|
||||
$vhostcontainer = makeyesno('vhostcontainer', '1', '0', $result['vhostcontainer']);
|
||||
$vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', $result['vhostcontainer_servername_statement']);
|
||||
eval("echo \"" . getTemplate("ipsandports/ipsandports_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Michael Duergner <michael@duergner.com>
|
||||
* @author Luca Longinotti <chtekk@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: admin_ipsandports.php 2699 2009-04-14 11:21:26Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'admin');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'ipsandports'
|
||||
|| $page == 'overview')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports");
|
||||
$fields = array(
|
||||
'ip' => $lng['admin']['ipsandports']['ip'],
|
||||
'port' => $lng['admin']['ipsandports']['port']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_IPSANDPORTS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$ipsandports = '';
|
||||
$result = $db->query("SELECT `id`, `ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl` FROM `" . TABLE_PANEL_IPSANDPORTS . "` " . $paging->getSqlWhere(false) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($row);
|
||||
|
||||
if(filter_var($row['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$row['ip'] = '[' . $row['ip'] . ']';
|
||||
}
|
||||
|
||||
eval("\$ipsandports.=\"" . getTemplate("ipsandports/ipsandports_ipandport") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("ipsandports/ipsandports") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['id'])
|
||||
&& $result['id'] == $id)
|
||||
{
|
||||
$result_checkdomain = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `ipandport`='" . (int)$id . "'");
|
||||
|
||||
if($result_checkdomain['id'] == '')
|
||||
{
|
||||
if($result['id'] != $settings['system']['defaultip'])
|
||||
{
|
||||
$result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'");
|
||||
|
||||
if(($result['ip'] != $settings['system']['ipaddress'])
|
||||
|| ($result['ip'] == $settings['system']['ipaddress'] && $result_sameipotherport['id'] != ''))
|
||||
{
|
||||
$result = $db->query_first("SELECT `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
|
||||
if($result['ip'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "deleted IP/port '" . $result['ip'] . ":" . $result['port'] . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_ip_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['ip'] . ':' . $result['port']);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('cantdeletesystemip');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('cantdeletedefaultip');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('ipstillhasdomains');
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$ip = validate_ip($_POST['ip']);
|
||||
$port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport'));
|
||||
$listen_statement = intval($_POST['listen_statement']);
|
||||
$namevirtualhost_statement = intval($_POST['namevirtualhost_statement']);
|
||||
$vhostcontainer = intval($_POST['vhostcontainer']);
|
||||
$specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/');
|
||||
$vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']);
|
||||
$ssl = intval($_POST['ssl']);
|
||||
$ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file');
|
||||
$ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file');
|
||||
$ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file');
|
||||
$default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/');
|
||||
|
||||
if($listen_statement != '1')
|
||||
{
|
||||
$listen_statement = '0';
|
||||
}
|
||||
|
||||
if($namevirtualhost_statement != '1')
|
||||
{
|
||||
$namevirtualhost_statement = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer != '1')
|
||||
{
|
||||
$vhostcontainer = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer_servername_statement != '1')
|
||||
{
|
||||
$vhostcontainer_servername_statement = '0';
|
||||
}
|
||||
|
||||
if($ssl != '1')
|
||||
{
|
||||
$ssl = '0';
|
||||
}
|
||||
|
||||
if($ssl_cert_file != '')
|
||||
{
|
||||
$ssl_cert_file = makeCorrectFile($ssl_cert_file);
|
||||
}
|
||||
|
||||
if($ssl_key_file != '')
|
||||
{
|
||||
$ssl_key_file = makeCorrectFile($ssl_key_file);
|
||||
}
|
||||
|
||||
if($ssl_ca_file != '')
|
||||
{
|
||||
$ssl_ca_file = makeCorrectFile($ssl_ca_file);
|
||||
}
|
||||
|
||||
$result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'");
|
||||
|
||||
if($result_checkfordouble['id'] != '')
|
||||
{
|
||||
standard_error('myipnotdouble');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_IPSANDPORTS . "` (`ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl`, `ssl_cert_file`, `ssl_key_file`, `ssl_ca_file`, `default_vhostconf_domain`) VALUES ('" . $db->escape($ip) . "', '" . (int)$port . "', '" . (int)$listen_statement . "', '" . (int)$namevirtualhost_statement . "', '" . (int)$vhostcontainer . "', '" . (int)$vhostcontainer_servername_statement . "', '" . $db->escape($specialsettings) . "', '" . (int)$ssl . "', '" . $db->escape($ssl_cert_file) . "', '" . $db->escape($ssl_key_file) . "', '" . $db->escape($ssl_ca_file) . "', '" . $db->escape($default_vhostconf_domain) . "')");
|
||||
|
||||
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$ip = '[' . $ip . ']';
|
||||
}
|
||||
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "added IP/port '" . $ip . ":" . $port . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$enable_ssl = makeyesno('ssl', '1', '0', '0');
|
||||
$listen_statement = makeyesno('listen_statement', '1', '0', '1');
|
||||
$namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', '1');
|
||||
$vhostcontainer = makeyesno('vhostcontainer', '1', '0', '1');
|
||||
$vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', '1');
|
||||
eval("echo \"" . getTemplate("ipsandports/ipsandports_add") . "\";");
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'");
|
||||
|
||||
if($result['ip'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$ip = validate_ip($_POST['ip']);
|
||||
$port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport'));
|
||||
$result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'");
|
||||
$result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'");
|
||||
$listen_statement = intval($_POST['listen_statement']);
|
||||
$namevirtualhost_statement = intval($_POST['namevirtualhost_statement']);
|
||||
$vhostcontainer = intval($_POST['vhostcontainer']);
|
||||
$specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/');
|
||||
$vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']);
|
||||
$ssl = intval($_POST['ssl']);
|
||||
$ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file');
|
||||
$ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file');
|
||||
$ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file');
|
||||
$default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/');
|
||||
|
||||
if($listen_statement != '1')
|
||||
{
|
||||
$listen_statement = '0';
|
||||
}
|
||||
|
||||
if($namevirtualhost_statement != '1')
|
||||
{
|
||||
$namevirtualhost_statement = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer != '1')
|
||||
{
|
||||
$vhostcontainer = '0';
|
||||
}
|
||||
|
||||
if($vhostcontainer_servername_statement != '1')
|
||||
{
|
||||
$vhostcontainer_servername_statement = '0';
|
||||
}
|
||||
|
||||
if($ssl != '1')
|
||||
{
|
||||
$ssl = '0';
|
||||
}
|
||||
|
||||
if($ssl_cert_file != '')
|
||||
{
|
||||
$ssl_cert_file = makeCorrectFile($ssl_cert_file);
|
||||
}
|
||||
|
||||
if($ssl_key_file != '')
|
||||
{
|
||||
$ssl_key_file = makeCorrectFile($ssl_key_file);
|
||||
}
|
||||
|
||||
if($ssl_ca_file != '')
|
||||
{
|
||||
$ssl_ca_file = makeCorrectFile($ssl_ca_file);
|
||||
}
|
||||
|
||||
if($result['ip'] != $ip
|
||||
&& $result['ip'] == $settings['system']['ipaddress']
|
||||
&& $result_sameipotherport['id'] == '')
|
||||
{
|
||||
standard_error('cantchangesystemip');
|
||||
}
|
||||
elseif($result_checkfordouble['id'] != ''
|
||||
&& $result_checkfordouble['id'] != $id)
|
||||
{
|
||||
standard_error('myipnotdouble');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_IPSANDPORTS . "` SET `ip`='" . $db->escape($ip) . "', `port`='" . (int)$port . "', `listen_statement`='" . (int)$listen_statement . "', `namevirtualhost_statement`='" . (int)$namevirtualhost_statement . "', `vhostcontainer`='" . (int)$vhostcontainer . "', `vhostcontainer_servername_statement`='" . (int)$vhostcontainer_servername_statement . "', `specialsettings`='" . $db->escape($specialsettings) . "', `ssl`='" . (int)$ssl . "', `ssl_cert_file`='" . $db->escape($ssl_cert_file) . "', `ssl_key_file`='" . $db->escape($ssl_key_file) . "', `ssl_ca_file`='" . $db->escape($ssl_ca_file) . "', `default_vhostconf_domain`='" . $db->escape($default_vhostconf_domain) . "' WHERE `id`='" . (int)$id . "'");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "changed IP/port from '" . $result['ip'] . ":" . $result['port'] . "' to '" . $ip . ":" . $port . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$enable_ssl = makeyesno('ssl', '1', '0', $result['ssl']);
|
||||
$result = htmlentities_array($result);
|
||||
$listen_statement = makeyesno('listen_statement', '1', '0', $result['listen_statement']);
|
||||
$namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', $result['namevirtualhost_statement']);
|
||||
$vhostcontainer = makeyesno('vhostcontainer', '1', '0', $result['vhostcontainer']);
|
||||
$vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', $result['vhostcontainer_servername_statement']);
|
||||
eval("echo \"" . getTemplate("ipsandports/ipsandports_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
348
admin_logger.php
348
admin_logger.php
@@ -1,175 +1,175 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* System-Logger - Admin
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @package Panel
|
||||
* @version CVS: $Id: admin_logger.php 2452 2008-11-30 13:12:36Z flo $
|
||||
* @link http://www.nutime.de/
|
||||
* @since File available since Release 1.2.20
|
||||
*/
|
||||
|
||||
define('AREA', 'admin');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if($page == 'log'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$fields = array(
|
||||
'action' => $lng['logger']['action'],
|
||||
'date' => $lng['logger']['date'],
|
||||
'type' => $lng['logger']['type'],
|
||||
'user' => $lng['logger']['user']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_LOG, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$paging->sortfield = 'date';
|
||||
$paging->sortorder = 'desc';
|
||||
$result = $db->query('SELECT * FROM `' . TABLE_PANEL_LOG . '` ' . $paging->getSqlWhere(false) . ' ' . $paging->getSqlOrderBy() . ' ' . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$clog = array();
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(!isset($clog[$row['action']])
|
||||
|| !is_array($clog[$row['action']]))
|
||||
{
|
||||
$clog[$row['action']] = array();
|
||||
}
|
||||
|
||||
$clog[$row['action']][$row['logid']] = $row;
|
||||
}
|
||||
|
||||
if($paging->sortfield == 'date'
|
||||
&& $paging->sortorder == 'desc')
|
||||
{
|
||||
krsort($clog);
|
||||
}
|
||||
else
|
||||
{
|
||||
ksort($clog);
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$log_count = 0;
|
||||
$log = '';
|
||||
foreach($clog as $action => $logrows)
|
||||
{
|
||||
$_action = 0;
|
||||
foreach($logrows as $row)
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($row);
|
||||
$row['date'] = date("d.m.y H:i:s", $row['date']);
|
||||
|
||||
if($_action != $action)
|
||||
{
|
||||
switch($action)
|
||||
{
|
||||
case USR_ACTION:
|
||||
$_action = $lng['admin']['customer'];
|
||||
break;
|
||||
case RES_ACTION:
|
||||
$_action = 'Reseller';
|
||||
break;
|
||||
case ADM_ACTION:
|
||||
$_action = 'Administrator';
|
||||
break;
|
||||
case CRON_ACTION:
|
||||
$_action = 'Cronjob';
|
||||
break;
|
||||
case LOG_ERROR:
|
||||
$_action = 'Internal';
|
||||
break;
|
||||
default:
|
||||
$_action = 'Unknown';
|
||||
break;
|
||||
}
|
||||
|
||||
$row['action'] = $_action;
|
||||
eval("\$log.=\"" . getTemplate("logger/logger_action") . "\";");
|
||||
}
|
||||
|
||||
$log_count++;
|
||||
$type = $row['type'];
|
||||
$_type = 'unknown';
|
||||
|
||||
switch($type)
|
||||
{
|
||||
case LOG_INFO:
|
||||
$_type = 'Information';
|
||||
break;
|
||||
case LOG_NOTICE:
|
||||
$_type = 'Notice';
|
||||
break;
|
||||
case LOG_WARNING:
|
||||
$_type = 'Warning';
|
||||
break;
|
||||
case LOG_ERR:
|
||||
$_type = 'Error';
|
||||
break;
|
||||
case LOG_CRIT:
|
||||
$_type = 'Critical';
|
||||
break;
|
||||
default:
|
||||
$_type = 'Unknown';
|
||||
break;
|
||||
}
|
||||
|
||||
$row['type'] = $_type;
|
||||
eval("\$log.=\"" . getTemplate("logger/logger_log") . "\";");
|
||||
$count++;
|
||||
$_action = $action;
|
||||
}
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("logger/logger") . "\";");
|
||||
}
|
||||
elseif($action == 'truncate')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$yesterday = time() - (60 * 10);
|
||||
|
||||
/* (60*60*24); */
|
||||
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_LOG . "` WHERE `date` < '" . $yesterday . "'");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "truncated the system-log (mysql)");
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('logger_reallytruncate', $filename, array('page' => $page, 'action' => $action), TABLE_PANEL_LOG);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* System-Logger - Admin
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @package Panel
|
||||
* @version CVS: $Id: admin_logger.php 2452 2008-11-30 13:12:36Z flo $
|
||||
* @link http://www.nutime.de/
|
||||
* @since File available since Release 1.2.20
|
||||
*/
|
||||
|
||||
define('AREA', 'admin');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if($page == 'log'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$fields = array(
|
||||
'action' => $lng['logger']['action'],
|
||||
'date' => $lng['logger']['date'],
|
||||
'type' => $lng['logger']['type'],
|
||||
'user' => $lng['logger']['user']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_LOG, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$paging->sortfield = 'date';
|
||||
$paging->sortorder = 'desc';
|
||||
$result = $db->query('SELECT * FROM `' . TABLE_PANEL_LOG . '` ' . $paging->getSqlWhere(false) . ' ' . $paging->getSqlOrderBy() . ' ' . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$clog = array();
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(!isset($clog[$row['action']])
|
||||
|| !is_array($clog[$row['action']]))
|
||||
{
|
||||
$clog[$row['action']] = array();
|
||||
}
|
||||
|
||||
$clog[$row['action']][$row['logid']] = $row;
|
||||
}
|
||||
|
||||
if($paging->sortfield == 'date'
|
||||
&& $paging->sortorder == 'desc')
|
||||
{
|
||||
krsort($clog);
|
||||
}
|
||||
else
|
||||
{
|
||||
ksort($clog);
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$log_count = 0;
|
||||
$log = '';
|
||||
foreach($clog as $action => $logrows)
|
||||
{
|
||||
$_action = 0;
|
||||
foreach($logrows as $row)
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($row);
|
||||
$row['date'] = date("d.m.y H:i:s", $row['date']);
|
||||
|
||||
if($_action != $action)
|
||||
{
|
||||
switch($action)
|
||||
{
|
||||
case USR_ACTION:
|
||||
$_action = $lng['admin']['customer'];
|
||||
break;
|
||||
case RES_ACTION:
|
||||
$_action = 'Reseller';
|
||||
break;
|
||||
case ADM_ACTION:
|
||||
$_action = 'Administrator';
|
||||
break;
|
||||
case CRON_ACTION:
|
||||
$_action = 'Cronjob';
|
||||
break;
|
||||
case LOG_ERROR:
|
||||
$_action = 'Internal';
|
||||
break;
|
||||
default:
|
||||
$_action = 'Unknown';
|
||||
break;
|
||||
}
|
||||
|
||||
$row['action'] = $_action;
|
||||
eval("\$log.=\"" . getTemplate("logger/logger_action") . "\";");
|
||||
}
|
||||
|
||||
$log_count++;
|
||||
$type = $row['type'];
|
||||
$_type = 'unknown';
|
||||
|
||||
switch($type)
|
||||
{
|
||||
case LOG_INFO:
|
||||
$_type = 'Information';
|
||||
break;
|
||||
case LOG_NOTICE:
|
||||
$_type = 'Notice';
|
||||
break;
|
||||
case LOG_WARNING:
|
||||
$_type = 'Warning';
|
||||
break;
|
||||
case LOG_ERR:
|
||||
$_type = 'Error';
|
||||
break;
|
||||
case LOG_CRIT:
|
||||
$_type = 'Critical';
|
||||
break;
|
||||
default:
|
||||
$_type = 'Unknown';
|
||||
break;
|
||||
}
|
||||
|
||||
$row['type'] = $_type;
|
||||
eval("\$log.=\"" . getTemplate("logger/logger_log") . "\";");
|
||||
$count++;
|
||||
$_action = $action;
|
||||
}
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("logger/logger") . "\";");
|
||||
}
|
||||
elseif($action == 'truncate')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$yesterday = time() - (60 * 10);
|
||||
|
||||
/* (60*60*24); */
|
||||
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_LOG . "` WHERE `date` < '" . $yesterday . "'");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "truncated the system-log (mysql)");
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('logger_reallytruncate', $filename, array('page' => $page, 'action' => $action), TABLE_PANEL_LOG);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,159 +1,159 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: admin_settings.php 2733 2009-11-06 09:32:00Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'admin');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
$need_db_sql_data = true;
|
||||
$need_root_db_sql_data = true;
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(($page == 'settings' || $page == 'overview')
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
$settings_data = loadConfigArrayDir('./actions/admin/settings/');
|
||||
$settings = loadSettings(&$settings_data, &$db);
|
||||
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
if(processForm(&$settings_data, &$_POST, array('filename' => $filename, 'action' => $action, 'page' => $page)))
|
||||
{
|
||||
standard_success('settingssaved', '', array('filename' => $filename, 'action' => $action, 'page' => $page));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$fields = buildForm(&$settings_data);
|
||||
eval("echo \"" . getTemplate("settings/settings") . "\";");
|
||||
}
|
||||
}
|
||||
elseif($page == 'rebuildconfigs'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_INFO, "rebuild configfiles");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
inserttask('5');
|
||||
redirectTo('admin_index.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_configs_reallyrebuild', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'updatecounters'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_INFO, "updated resource-counters");
|
||||
$updatecounters = updateCounters(true);
|
||||
$customers = '';
|
||||
foreach($updatecounters['customers'] as $customerid => $customer)
|
||||
{
|
||||
eval("\$customers.=\"" . getTemplate("settings/updatecounters_row_customer") . "\";");
|
||||
}
|
||||
|
||||
$admins = '';
|
||||
foreach($updatecounters['admins'] as $adminid => $admin)
|
||||
{
|
||||
eval("\$admins.=\"" . getTemplate("settings/updatecounters_row_admin") . "\";");
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("settings/updatecounters") . "\";");
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_counters_reallyupdate', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'wipecleartextmailpws'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "wiped all cleartext mail passwords");
|
||||
$db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `password`='' ");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value`='0' WHERE `settinggroup`='system' AND `varname`='mailpwcleartext'");
|
||||
redirectTo('admin_settings.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_cleartextmailpws_reallywipe', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'wipequotas'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "wiped all mailquotas");
|
||||
|
||||
// Set the quota to 0 which means unlimited
|
||||
|
||||
$db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='0' ");
|
||||
$db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = 0");
|
||||
redirectTo('admin_settings.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_quotas_reallywipe', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'enforcequotas'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
// Fetch all accounts
|
||||
|
||||
$result = $db->query("SELECT `quota`, `customerid` FROM " . TABLE_MAIL_USERS);
|
||||
|
||||
while($array = $db->fetch_array($result))
|
||||
{
|
||||
$difference = $settings['system']['mail_quota'] - $array['quota'];
|
||||
$db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = `email_quota_used` + " . (int)$difference . " WHERE `customerid` = '" . $array['customerid'] . "'");
|
||||
}
|
||||
|
||||
// Set the new quota
|
||||
|
||||
$db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='" . $settings['system']['mail_quota'] . "'");
|
||||
|
||||
// Update the Customer, if the used quota is bigger than the allowed quota
|
||||
|
||||
$db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota` = `email_quota_used` WHERE `email_quota` < `email_quota_used`");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, 'enforcing mailquota to all customers: ' . $settings['system']['mail_quota'] . ' MB');
|
||||
redirectTo('admin_settings.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_quotas_reallyenforce', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: admin_settings.php 2733 2009-11-06 09:32:00Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'admin');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
$need_db_sql_data = true;
|
||||
$need_root_db_sql_data = true;
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(($page == 'settings' || $page == 'overview')
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
$settings_data = loadConfigArrayDir('./actions/admin/settings/');
|
||||
$settings = loadSettings(&$settings_data, &$db);
|
||||
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
if(processForm(&$settings_data, &$_POST, array('filename' => $filename, 'action' => $action, 'page' => $page)))
|
||||
{
|
||||
standard_success('settingssaved', '', array('filename' => $filename, 'action' => $action, 'page' => $page));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$fields = buildForm(&$settings_data);
|
||||
eval("echo \"" . getTemplate("settings/settings") . "\";");
|
||||
}
|
||||
}
|
||||
elseif($page == 'rebuildconfigs'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_INFO, "rebuild configfiles");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
inserttask('5');
|
||||
redirectTo('admin_index.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_configs_reallyrebuild', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'updatecounters'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_INFO, "updated resource-counters");
|
||||
$updatecounters = updateCounters(true);
|
||||
$customers = '';
|
||||
foreach($updatecounters['customers'] as $customerid => $customer)
|
||||
{
|
||||
eval("\$customers.=\"" . getTemplate("settings/updatecounters_row_customer") . "\";");
|
||||
}
|
||||
|
||||
$admins = '';
|
||||
foreach($updatecounters['admins'] as $adminid => $admin)
|
||||
{
|
||||
eval("\$admins.=\"" . getTemplate("settings/updatecounters_row_admin") . "\";");
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("settings/updatecounters") . "\";");
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_counters_reallyupdate', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'wipecleartextmailpws'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "wiped all cleartext mail passwords");
|
||||
$db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `password`='' ");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value`='0' WHERE `settinggroup`='system' AND `varname`='mailpwcleartext'");
|
||||
redirectTo('admin_settings.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_cleartextmailpws_reallywipe', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'wipequotas'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, "wiped all mailquotas");
|
||||
|
||||
// Set the quota to 0 which means unlimited
|
||||
|
||||
$db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='0' ");
|
||||
$db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = 0");
|
||||
redirectTo('admin_settings.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_quotas_reallywipe', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
elseif($page == 'enforcequotas'
|
||||
&& $userinfo['change_serversettings'] == '1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
// Fetch all accounts
|
||||
|
||||
$result = $db->query("SELECT `quota`, `customerid` FROM " . TABLE_MAIL_USERS);
|
||||
|
||||
while($array = $db->fetch_array($result))
|
||||
{
|
||||
$difference = $settings['system']['mail_quota'] - $array['quota'];
|
||||
$db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = `email_quota_used` + " . (int)$difference . " WHERE `customerid` = '" . $array['customerid'] . "'");
|
||||
}
|
||||
|
||||
// Set the new quota
|
||||
|
||||
$db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='" . $settings['system']['mail_quota'] . "'");
|
||||
|
||||
// Update the Customer, if the used quota is bigger than the allowed quota
|
||||
|
||||
$db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota` = `email_quota_used` WHERE `email_quota` < `email_quota_used`");
|
||||
$log->logAction(ADM_ACTION, LOG_WARNING, 'enforcing mailquota to all customers: ' . $settings['system']['mail_quota'] . ' MB');
|
||||
redirectTo('admin_settings.php', array('s' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('admin_quotas_reallyenforce', $filename, array('page' => $page));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
1604
admin_tickets.php
1604
admin_tickets.php
File diff suppressed because it is too large
Load Diff
@@ -1,492 +1,492 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_domains.php 2713 2009-04-17 08:55:53Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains");
|
||||
eval("echo \"" . getTemplate("domains/domains") . "\";");
|
||||
}
|
||||
elseif($page == 'domains')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains::domains");
|
||||
$fields = array(
|
||||
'd.domain' => $lng['domains']['domainname'],
|
||||
'd.documentroot' => $lng['panel']['path'],
|
||||
'd.aliasdomain' => $lng['domains']['aliasdomain']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_DOMAINS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `d`.`id`, " . " `d`.`customerid`, " . " `d`.`domain`, " . " `d`.`documentroot`, " . " `d`.`isemaildomain`, " . " `d`.`caneditdomain`, " . " `d`.`iswildcarddomain`, " . " `d`.`parentdomainid`, " . " `ad`.`id` AS `aliasdomainid`, " . " `ad`.`domain` AS `aliasdomain`, " . " `da`.`id` AS `domainaliasid`, " . " `da`.`domain` AS `domainalias` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `ad` ON `d`.`aliasdomain`=`ad`.`id` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `da` ON `da`.`aliasdomain`=`d`.`id` " . "WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' " . " AND `d`.`email_only`='0' AND `d`.`id` <> " . (int)$userinfo['standardsubdomain'] . " " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$domains = '';
|
||||
$parentdomains_count = 0;
|
||||
$domains_count = 0;
|
||||
$domain_array = array();
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
$row['domain'] = $idna_convert->decode($row['domain']);
|
||||
$row['aliasdomain'] = $idna_convert->decode($row['aliasdomain']);
|
||||
$row['domainalias'] = $idna_convert->decode($row['domainalias']);
|
||||
|
||||
if($row['parentdomainid'] == '0'
|
||||
&& $row['iswildcarddomain'] != '1'
|
||||
&& $row['caneditdomain'] == '1')
|
||||
{
|
||||
$parentdomains_count++;
|
||||
}
|
||||
|
||||
$domains_count++;
|
||||
$domainparts = explode('.', $row['domain']);
|
||||
$domainparts = array_reverse($domainparts);
|
||||
$sortkey = '';
|
||||
foreach($domainparts as $key => $part)
|
||||
{
|
||||
$sortkey.= $part . '.';
|
||||
}
|
||||
|
||||
$domain_array[$sortkey] = $row;
|
||||
}
|
||||
|
||||
ksort($domain_array);
|
||||
$domain_id_array = array();
|
||||
foreach($domain_array as $sortkey => $row)
|
||||
{
|
||||
$domain_id_array[$row['id']] = $sortkey;
|
||||
}
|
||||
|
||||
$domain_sort_array = array();
|
||||
foreach($domain_array as $sortkey => $row)
|
||||
{
|
||||
if($row['parentdomainid'] == 0)
|
||||
{
|
||||
$domain_sort_array[$sortkey][$sortkey] = $row;
|
||||
}
|
||||
else
|
||||
{
|
||||
$domain_sort_array[$domain_id_array[$row['parentdomainid']]][$sortkey] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
$domain_array = array();
|
||||
|
||||
if($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'asc')
|
||||
{
|
||||
ksort($domain_sort_array);
|
||||
}
|
||||
elseif($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'desc')
|
||||
{
|
||||
krsort($domain_sort_array);
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
foreach($domain_sort_array as $sortkey => $domain_array)
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($domain_array[$sortkey]);
|
||||
eval("\$domains.=\"" . getTemplate("domains/domains_delimiter") . "\";");
|
||||
|
||||
if($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'asc')
|
||||
{
|
||||
ksort($domain_array);
|
||||
}
|
||||
elseif($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'desc')
|
||||
{
|
||||
krsort($domain_array);
|
||||
}
|
||||
|
||||
foreach($domain_array as $row)
|
||||
{
|
||||
if(strpos($row['documentroot'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot'])));
|
||||
}
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$domains.=\"" . getTemplate("domains/domains_domain") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
$i+= count($domain_array);
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("domains/domainlist") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain`, `parentdomainid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$alias_check = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$id . '\'');
|
||||
|
||||
if(isset($result['parentdomainid'])
|
||||
&& $result['parentdomainid'] != '0'
|
||||
&& $alias_check['count'] == 0)
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
if($result['isemaildomain'] == '1')
|
||||
{
|
||||
$emails = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_MAIL_VIRTUAL . '` WHERE `customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `domainid`=\'' . (int)$id . '\'');
|
||||
|
||||
if($emails['count'] != '0')
|
||||
{
|
||||
standard_error('domains_cantdeletedomainwithemail');
|
||||
}
|
||||
}
|
||||
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted subdomain '" . $idna_convert->decode($result['domain']) . "'");
|
||||
$result = $db->query("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`-1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('domains_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['domain']));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('domains_cantdeletemaindomain');
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if($userinfo['subdomains_used'] < $userinfo['subdomains']
|
||||
|| $userinfo['subdomains'] == '-1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$subdomain = $idna_convert->encode(preg_replace(Array('/\:(\d)+$/', '/^https?\:\/\//'), '', validate($_POST['subdomain'], 'subdomain', '', 'subdomainiswrong')));
|
||||
$domain = $idna_convert->encode($_POST['domain']);
|
||||
$domain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($domain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ");
|
||||
$completedomain = $subdomain . '.' . $domain;
|
||||
$completedomain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($completedomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `email_only`='0' AND `caneditdomain` = '1'");
|
||||
$aliasdomain = intval($_POST['alias']);
|
||||
$aliasdomain_check = array(
|
||||
'id' => 0
|
||||
);
|
||||
|
||||
if($aliasdomain != 0)
|
||||
{
|
||||
$aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\'');
|
||||
}
|
||||
|
||||
if(isset($_POST['url'])
|
||||
&& $_POST['url'] != ''
|
||||
&& validateUrl($idna_convert->encode($_POST['url'])))
|
||||
{
|
||||
$path = $_POST['url'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$path = validate($_POST['path'], 'path');
|
||||
}
|
||||
|
||||
if(!preg_match('/^https?\:\/\//', $path)
|
||||
|| !validateUrl($idna_convert->encode($path)))
|
||||
{
|
||||
$path = $userinfo['documentroot'] . '/' . $path;
|
||||
$path = makeCorrectDir($path);
|
||||
}
|
||||
|
||||
if(isset($_POST['openbasedir_path'])
|
||||
&& $_POST['openbasedir_path'] == '1')
|
||||
{
|
||||
$openbasedir_path = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir_path = '0';
|
||||
}
|
||||
|
||||
if(isset($_POST['ssl_redirect'])
|
||||
&& $_POST['ssl_redirect'] == '1')
|
||||
{
|
||||
$ssl_redirect = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ssl_redirect = '0';
|
||||
}
|
||||
|
||||
if($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
elseif($subdomain == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'domainname'));
|
||||
}
|
||||
elseif($subdomain == 'www' && $domain_check['wwwserveralias'] == '1')
|
||||
{
|
||||
standard_error('wwwnotallowed');
|
||||
}
|
||||
elseif($domain == '')
|
||||
{
|
||||
standard_error('domaincantbeempty');
|
||||
}
|
||||
elseif(strtolower($completedomain_check['domain']) == strtolower($completedomain))
|
||||
{
|
||||
standard_error('domainexistalready', $completedomain);
|
||||
}
|
||||
elseif(strtolower($domain_check['domain']) != strtolower($domain))
|
||||
{
|
||||
standard_error('maindomainnonexist', $domain);
|
||||
}
|
||||
elseif($aliasdomain_check['id'] != $aliasdomain)
|
||||
{
|
||||
standard_error('domainisaliasorothercustomer');
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` (`customerid`, `domain`, `documentroot`, `ipandport`, `aliasdomain`, `parentdomainid`, `isemaildomain`, `openbasedir`, `openbasedir_path`, `safemode`, `speciallogfile`, `specialsettings`, `ssl_redirect`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($completedomain) . "', '" . $db->escape($path) . "', '" . $db->escape($domain_check['ipandport']) . "', " . (($aliasdomain != 0) ? "'" . $db->escape($aliasdomain) . "'" : "NULL") . ", '" . (int)$domain_check['id'] . "', '" . ($domain_check['subcanemaildomain'] == '3' ? '1' : '0') . "', '" . $db->escape($domain_check['openbasedir']) . "', '" . $db->escape($openbasedir_path) . "', '" . $db->escape($domain_check['safemode']) . "', '" . $db->escape($domain_check['speciallogfile']) . "', '" . $db->escape($domain_check['specialsettings']) . "', '" . $ssl_redirect . "')");
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added subdomain '" . $completedomain . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $db->query("SELECT `id`, `domain`, `documentroot`, `ssl_redirect`,`isemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ORDER BY `domain` ASC");
|
||||
$domains = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
$domains.= makeoption($idna_convert->decode($row['domain']), $row['domain']);
|
||||
}
|
||||
|
||||
$aliasdomains = makeoption($lng['domains']['noaliasdomain'], 0, NULL, true);
|
||||
$result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id` <> `c`.`standardsubdomain` AND `d`.`customerid`=`c`.`customerid` AND `d`.`email_only`='0' AND `d`.`customerid`=" . (int)$userinfo['customerid'] . " ORDER BY `d`.`domain` ASC");
|
||||
|
||||
while($row_domain = $db->fetch_array($result_domains))
|
||||
{
|
||||
$aliasdomains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id']);
|
||||
}
|
||||
|
||||
$ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']);
|
||||
$openbasedir = makeoption($lng['domain']['docroot'], 0, NULL, true) . makeoption($lng['domain']['homedir'], 1, NULL, true);
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
eval("echo \"" . getTemplate("domains/domains_add") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`ssl_redirect`, `d`.`aliasdomain`, `d`.`openbasedir_path` ,`pd`.`subcanemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_DOMAINS . "` `pd` WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `d`.`id`='" . (int)$id . "' AND ((`d`.`parentdomainid`!='0' AND `pd`.`id`=`d`.`parentdomainid`) OR (`d`.`parentdomainid`='0' AND `pd`.`id`=`d`.`id`)) AND `d`.`caneditdomain`='1'");
|
||||
$alias_check = $db->query_first('SELECT COUNT(`id`) AS count FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$result['id'] . '\'');
|
||||
$alias_check = $alias_check['count'];
|
||||
|
||||
if(isset($result['customerid'])
|
||||
&& $result['customerid'] == $userinfo['customerid'])
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
if(isset($_POST['url'])
|
||||
&& $_POST['url'] != ''
|
||||
&& validateUrl($idna_convert->encode($_POST['url'])))
|
||||
{
|
||||
$path = $_POST['url'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$path = validate($_POST['path'], 'path');
|
||||
}
|
||||
|
||||
if(!preg_match('/^https?\:\/\//', $path)
|
||||
|| !validateUrl($idna_convert->encode($path)))
|
||||
{
|
||||
$path = $userinfo['documentroot'] . '/' . $path;
|
||||
$path = makeCorrectDir($path);
|
||||
}
|
||||
|
||||
$aliasdomain = intval($_POST['alias']);
|
||||
|
||||
if(isset($_POST['iswildcarddomain'])
|
||||
&& $_POST['iswildcarddomain'] == '1'
|
||||
&& $result['parentdomainid'] == '0'
|
||||
&& $userinfo['subdomains'] != '0')
|
||||
{
|
||||
$wildcarddomaincheck = $db->query("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `parentdomainid` = '" . (int)$result['id'] . "'");
|
||||
|
||||
if($db->num_rows($wildcarddomaincheck) != '0')
|
||||
{
|
||||
standard_error('firstdeleteallsubdomains');
|
||||
exit;
|
||||
}
|
||||
|
||||
$iswildcarddomain = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$iswildcarddomain = '0';
|
||||
}
|
||||
|
||||
if($result['parentdomainid'] != '0'
|
||||
&& ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2')
|
||||
&& isset($_POST['isemaildomain']))
|
||||
{
|
||||
$isemaildomain = intval($_POST['isemaildomain']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$isemaildomain = $result['isemaildomain'];
|
||||
}
|
||||
|
||||
$aliasdomain_check = array(
|
||||
'id' => 0
|
||||
);
|
||||
|
||||
if($aliasdomain != 0)
|
||||
{
|
||||
$aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\'');
|
||||
}
|
||||
|
||||
if($aliasdomain_check['id'] != $aliasdomain)
|
||||
{
|
||||
standard_error('domainisaliasorothercustomer');
|
||||
}
|
||||
|
||||
if(isset($_POST['openbasedir_path'])
|
||||
&& $_POST['openbasedir_path'] == '1')
|
||||
{
|
||||
$openbasedir_path = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir_path = '0';
|
||||
}
|
||||
|
||||
if(isset($_POST['ssl_redirect'])
|
||||
&& $_POST['ssl_redirect'] == '1')
|
||||
{
|
||||
$ssl_redirect = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ssl_redirect = '0';
|
||||
}
|
||||
|
||||
if($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
if(($result['isemaildomain'] == '1')
|
||||
&& ($isemaildomain == '0'))
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'");
|
||||
$db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "automatically deleted mail-table entries for '" . $idna_convert->decode($result['domain']) . "'");
|
||||
}
|
||||
|
||||
if($path != $result['documentroot']
|
||||
|| $isemaildomain != $result['isemaildomain']
|
||||
|| $iswildcarddomain != $result['iswildcarddomain']
|
||||
|| $aliasdomain != $result['aliasdomain']
|
||||
|| $openbasedir_path != $result['openbasedir_path']
|
||||
|| $ssl_redirect != $result['ssl_redirect'])
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited domain '" . $idna_convert->decode($result['domain']) . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `documentroot`='" . $db->escape($path) . "', `isemaildomain`='" . (int)$isemaildomain . "', `iswildcarddomain`='" . (int)$iswildcarddomain . "', `aliasdomain`=" . (($aliasdomain != 0 && $alias_check == 0) ? '\'' . $db->escape($aliasdomain) . '\'' : 'NULL') . ",`openbasedir_path`='" . $db->escape($openbasedir_path) . "', `ssl_redirect`='" . $ssl_redirect . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
}
|
||||
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$result['domain'] = $idna_convert->decode($result['domain']);
|
||||
$domains = makeoption($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true);
|
||||
$result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id`<>'" . (int)$result['id'] . "' AND `c`.`standardsubdomain`<>`d`.`id` AND `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `c`.`customerid`=`d`.`customerid` ORDER BY `d`.`domain` ASC");
|
||||
|
||||
while($row_domain = $db->fetch_array($result_domains))
|
||||
{
|
||||
$domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']);
|
||||
}
|
||||
|
||||
if(preg_match('/^https?\:\/\//', $result['documentroot'])
|
||||
&& validateUrl($idna_convert->encode($result['documentroot']))
|
||||
&& $settings['panel']['pathedit'] == 'Dropdown')
|
||||
{
|
||||
$urlvalue = $result['documentroot'];
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$urlvalue = '';
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit'], $result['documentroot']);
|
||||
}
|
||||
|
||||
$ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']);
|
||||
$iswildcarddomain = makeyesno('iswildcarddomain', '1', '0', $result['iswildcarddomain']);
|
||||
$isemaildomain = makeyesno('isemaildomain', '1', '0', $result['isemaildomain']);
|
||||
$openbasedir = makeoption($lng['domain']['docroot'], 0, $result['openbasedir_path'], true) . makeoption($lng['domain']['homedir'], 1, $result['openbasedir_path'], true);
|
||||
$result = htmlentities_array($result);
|
||||
|
||||
if($settings['system']['use_ssl'] == "1")
|
||||
{
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("domains/domains_edit") . "\";");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('domains_canteditdomain');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_domains.php 2713 2009-04-17 08:55:53Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains");
|
||||
eval("echo \"" . getTemplate("domains/domains") . "\";");
|
||||
}
|
||||
elseif($page == 'domains')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains::domains");
|
||||
$fields = array(
|
||||
'd.domain' => $lng['domains']['domainname'],
|
||||
'd.documentroot' => $lng['panel']['path'],
|
||||
'd.aliasdomain' => $lng['domains']['aliasdomain']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_DOMAINS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `d`.`id`, " . " `d`.`customerid`, " . " `d`.`domain`, " . " `d`.`documentroot`, " . " `d`.`isemaildomain`, " . " `d`.`caneditdomain`, " . " `d`.`iswildcarddomain`, " . " `d`.`parentdomainid`, " . " `ad`.`id` AS `aliasdomainid`, " . " `ad`.`domain` AS `aliasdomain`, " . " `da`.`id` AS `domainaliasid`, " . " `da`.`domain` AS `domainalias` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `ad` ON `d`.`aliasdomain`=`ad`.`id` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `da` ON `da`.`aliasdomain`=`d`.`id` " . "WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' " . " AND `d`.`email_only`='0' AND `d`.`id` <> " . (int)$userinfo['standardsubdomain'] . " " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$domains = '';
|
||||
$parentdomains_count = 0;
|
||||
$domains_count = 0;
|
||||
$domain_array = array();
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
$row['domain'] = $idna_convert->decode($row['domain']);
|
||||
$row['aliasdomain'] = $idna_convert->decode($row['aliasdomain']);
|
||||
$row['domainalias'] = $idna_convert->decode($row['domainalias']);
|
||||
|
||||
if($row['parentdomainid'] == '0'
|
||||
&& $row['iswildcarddomain'] != '1'
|
||||
&& $row['caneditdomain'] == '1')
|
||||
{
|
||||
$parentdomains_count++;
|
||||
}
|
||||
|
||||
$domains_count++;
|
||||
$domainparts = explode('.', $row['domain']);
|
||||
$domainparts = array_reverse($domainparts);
|
||||
$sortkey = '';
|
||||
foreach($domainparts as $key => $part)
|
||||
{
|
||||
$sortkey.= $part . '.';
|
||||
}
|
||||
|
||||
$domain_array[$sortkey] = $row;
|
||||
}
|
||||
|
||||
ksort($domain_array);
|
||||
$domain_id_array = array();
|
||||
foreach($domain_array as $sortkey => $row)
|
||||
{
|
||||
$domain_id_array[$row['id']] = $sortkey;
|
||||
}
|
||||
|
||||
$domain_sort_array = array();
|
||||
foreach($domain_array as $sortkey => $row)
|
||||
{
|
||||
if($row['parentdomainid'] == 0)
|
||||
{
|
||||
$domain_sort_array[$sortkey][$sortkey] = $row;
|
||||
}
|
||||
else
|
||||
{
|
||||
$domain_sort_array[$domain_id_array[$row['parentdomainid']]][$sortkey] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
$domain_array = array();
|
||||
|
||||
if($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'asc')
|
||||
{
|
||||
ksort($domain_sort_array);
|
||||
}
|
||||
elseif($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'desc')
|
||||
{
|
||||
krsort($domain_sort_array);
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
foreach($domain_sort_array as $sortkey => $domain_array)
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($domain_array[$sortkey]);
|
||||
eval("\$domains.=\"" . getTemplate("domains/domains_delimiter") . "\";");
|
||||
|
||||
if($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'asc')
|
||||
{
|
||||
ksort($domain_array);
|
||||
}
|
||||
elseif($paging->sortfield == 'd.domain'
|
||||
&& $paging->sortorder == 'desc')
|
||||
{
|
||||
krsort($domain_array);
|
||||
}
|
||||
|
||||
foreach($domain_array as $row)
|
||||
{
|
||||
if(strpos($row['documentroot'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot'])));
|
||||
}
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$domains.=\"" . getTemplate("domains/domains_domain") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
$i+= count($domain_array);
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("domains/domainlist") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain`, `parentdomainid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$alias_check = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$id . '\'');
|
||||
|
||||
if(isset($result['parentdomainid'])
|
||||
&& $result['parentdomainid'] != '0'
|
||||
&& $alias_check['count'] == 0)
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
if($result['isemaildomain'] == '1')
|
||||
{
|
||||
$emails = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_MAIL_VIRTUAL . '` WHERE `customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `domainid`=\'' . (int)$id . '\'');
|
||||
|
||||
if($emails['count'] != '0')
|
||||
{
|
||||
standard_error('domains_cantdeletedomainwithemail');
|
||||
}
|
||||
}
|
||||
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted subdomain '" . $idna_convert->decode($result['domain']) . "'");
|
||||
$result = $db->query("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`-1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('domains_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['domain']));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('domains_cantdeletemaindomain');
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if($userinfo['subdomains_used'] < $userinfo['subdomains']
|
||||
|| $userinfo['subdomains'] == '-1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$subdomain = $idna_convert->encode(preg_replace(Array('/\:(\d)+$/', '/^https?\:\/\//'), '', validate($_POST['subdomain'], 'subdomain', '', 'subdomainiswrong')));
|
||||
$domain = $idna_convert->encode($_POST['domain']);
|
||||
$domain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($domain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ");
|
||||
$completedomain = $subdomain . '.' . $domain;
|
||||
$completedomain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($completedomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `email_only`='0' AND `caneditdomain` = '1'");
|
||||
$aliasdomain = intval($_POST['alias']);
|
||||
$aliasdomain_check = array(
|
||||
'id' => 0
|
||||
);
|
||||
|
||||
if($aliasdomain != 0)
|
||||
{
|
||||
$aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\'');
|
||||
}
|
||||
|
||||
if(isset($_POST['url'])
|
||||
&& $_POST['url'] != ''
|
||||
&& validateUrl($idna_convert->encode($_POST['url'])))
|
||||
{
|
||||
$path = $_POST['url'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$path = validate($_POST['path'], 'path');
|
||||
}
|
||||
|
||||
if(!preg_match('/^https?\:\/\//', $path)
|
||||
|| !validateUrl($idna_convert->encode($path)))
|
||||
{
|
||||
$path = $userinfo['documentroot'] . '/' . $path;
|
||||
$path = makeCorrectDir($path);
|
||||
}
|
||||
|
||||
if(isset($_POST['openbasedir_path'])
|
||||
&& $_POST['openbasedir_path'] == '1')
|
||||
{
|
||||
$openbasedir_path = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir_path = '0';
|
||||
}
|
||||
|
||||
if(isset($_POST['ssl_redirect'])
|
||||
&& $_POST['ssl_redirect'] == '1')
|
||||
{
|
||||
$ssl_redirect = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ssl_redirect = '0';
|
||||
}
|
||||
|
||||
if($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
elseif($subdomain == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'domainname'));
|
||||
}
|
||||
elseif($subdomain == 'www' && $domain_check['wwwserveralias'] == '1')
|
||||
{
|
||||
standard_error('wwwnotallowed');
|
||||
}
|
||||
elseif($domain == '')
|
||||
{
|
||||
standard_error('domaincantbeempty');
|
||||
}
|
||||
elseif(strtolower($completedomain_check['domain']) == strtolower($completedomain))
|
||||
{
|
||||
standard_error('domainexistalready', $completedomain);
|
||||
}
|
||||
elseif(strtolower($domain_check['domain']) != strtolower($domain))
|
||||
{
|
||||
standard_error('maindomainnonexist', $domain);
|
||||
}
|
||||
elseif($aliasdomain_check['id'] != $aliasdomain)
|
||||
{
|
||||
standard_error('domainisaliasorothercustomer');
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` (`customerid`, `domain`, `documentroot`, `ipandport`, `aliasdomain`, `parentdomainid`, `isemaildomain`, `openbasedir`, `openbasedir_path`, `safemode`, `speciallogfile`, `specialsettings`, `ssl_redirect`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($completedomain) . "', '" . $db->escape($path) . "', '" . $db->escape($domain_check['ipandport']) . "', " . (($aliasdomain != 0) ? "'" . $db->escape($aliasdomain) . "'" : "NULL") . ", '" . (int)$domain_check['id'] . "', '" . ($domain_check['subcanemaildomain'] == '3' ? '1' : '0') . "', '" . $db->escape($domain_check['openbasedir']) . "', '" . $db->escape($openbasedir_path) . "', '" . $db->escape($domain_check['safemode']) . "', '" . $db->escape($domain_check['speciallogfile']) . "', '" . $db->escape($domain_check['specialsettings']) . "', '" . $ssl_redirect . "')");
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added subdomain '" . $completedomain . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $db->query("SELECT `id`, `domain`, `documentroot`, `ssl_redirect`,`isemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ORDER BY `domain` ASC");
|
||||
$domains = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
$domains.= makeoption($idna_convert->decode($row['domain']), $row['domain']);
|
||||
}
|
||||
|
||||
$aliasdomains = makeoption($lng['domains']['noaliasdomain'], 0, NULL, true);
|
||||
$result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id` <> `c`.`standardsubdomain` AND `d`.`customerid`=`c`.`customerid` AND `d`.`email_only`='0' AND `d`.`customerid`=" . (int)$userinfo['customerid'] . " ORDER BY `d`.`domain` ASC");
|
||||
|
||||
while($row_domain = $db->fetch_array($result_domains))
|
||||
{
|
||||
$aliasdomains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id']);
|
||||
}
|
||||
|
||||
$ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']);
|
||||
$openbasedir = makeoption($lng['domain']['docroot'], 0, NULL, true) . makeoption($lng['domain']['homedir'], 1, NULL, true);
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
eval("echo \"" . getTemplate("domains/domains_add") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`ssl_redirect`, `d`.`aliasdomain`, `d`.`openbasedir_path` ,`pd`.`subcanemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_DOMAINS . "` `pd` WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `d`.`id`='" . (int)$id . "' AND ((`d`.`parentdomainid`!='0' AND `pd`.`id`=`d`.`parentdomainid`) OR (`d`.`parentdomainid`='0' AND `pd`.`id`=`d`.`id`)) AND `d`.`caneditdomain`='1'");
|
||||
$alias_check = $db->query_first('SELECT COUNT(`id`) AS count FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$result['id'] . '\'');
|
||||
$alias_check = $alias_check['count'];
|
||||
|
||||
if(isset($result['customerid'])
|
||||
&& $result['customerid'] == $userinfo['customerid'])
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
if(isset($_POST['url'])
|
||||
&& $_POST['url'] != ''
|
||||
&& validateUrl($idna_convert->encode($_POST['url'])))
|
||||
{
|
||||
$path = $_POST['url'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$path = validate($_POST['path'], 'path');
|
||||
}
|
||||
|
||||
if(!preg_match('/^https?\:\/\//', $path)
|
||||
|| !validateUrl($idna_convert->encode($path)))
|
||||
{
|
||||
$path = $userinfo['documentroot'] . '/' . $path;
|
||||
$path = makeCorrectDir($path);
|
||||
}
|
||||
|
||||
$aliasdomain = intval($_POST['alias']);
|
||||
|
||||
if(isset($_POST['iswildcarddomain'])
|
||||
&& $_POST['iswildcarddomain'] == '1'
|
||||
&& $result['parentdomainid'] == '0'
|
||||
&& $userinfo['subdomains'] != '0')
|
||||
{
|
||||
$wildcarddomaincheck = $db->query("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `parentdomainid` = '" . (int)$result['id'] . "'");
|
||||
|
||||
if($db->num_rows($wildcarddomaincheck) != '0')
|
||||
{
|
||||
standard_error('firstdeleteallsubdomains');
|
||||
exit;
|
||||
}
|
||||
|
||||
$iswildcarddomain = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$iswildcarddomain = '0';
|
||||
}
|
||||
|
||||
if($result['parentdomainid'] != '0'
|
||||
&& ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2')
|
||||
&& isset($_POST['isemaildomain']))
|
||||
{
|
||||
$isemaildomain = intval($_POST['isemaildomain']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$isemaildomain = $result['isemaildomain'];
|
||||
}
|
||||
|
||||
$aliasdomain_check = array(
|
||||
'id' => 0
|
||||
);
|
||||
|
||||
if($aliasdomain != 0)
|
||||
{
|
||||
$aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\'');
|
||||
}
|
||||
|
||||
if($aliasdomain_check['id'] != $aliasdomain)
|
||||
{
|
||||
standard_error('domainisaliasorothercustomer');
|
||||
}
|
||||
|
||||
if(isset($_POST['openbasedir_path'])
|
||||
&& $_POST['openbasedir_path'] == '1')
|
||||
{
|
||||
$openbasedir_path = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir_path = '0';
|
||||
}
|
||||
|
||||
if(isset($_POST['ssl_redirect'])
|
||||
&& $_POST['ssl_redirect'] == '1')
|
||||
{
|
||||
$ssl_redirect = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ssl_redirect = '0';
|
||||
}
|
||||
|
||||
if($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
if(($result['isemaildomain'] == '1')
|
||||
&& ($isemaildomain == '0'))
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'");
|
||||
$db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "automatically deleted mail-table entries for '" . $idna_convert->decode($result['domain']) . "'");
|
||||
}
|
||||
|
||||
if($path != $result['documentroot']
|
||||
|| $isemaildomain != $result['isemaildomain']
|
||||
|| $iswildcarddomain != $result['iswildcarddomain']
|
||||
|| $aliasdomain != $result['aliasdomain']
|
||||
|| $openbasedir_path != $result['openbasedir_path']
|
||||
|| $ssl_redirect != $result['ssl_redirect'])
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited domain '" . $idna_convert->decode($result['domain']) . "'");
|
||||
inserttask('1');
|
||||
inserttask('4');
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `documentroot`='" . $db->escape($path) . "', `isemaildomain`='" . (int)$isemaildomain . "', `iswildcarddomain`='" . (int)$iswildcarddomain . "', `aliasdomain`=" . (($aliasdomain != 0 && $alias_check == 0) ? '\'' . $db->escape($aliasdomain) . '\'' : 'NULL') . ",`openbasedir_path`='" . $db->escape($openbasedir_path) . "', `ssl_redirect`='" . $ssl_redirect . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
}
|
||||
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$result['domain'] = $idna_convert->decode($result['domain']);
|
||||
$domains = makeoption($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true);
|
||||
$result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id`<>'" . (int)$result['id'] . "' AND `c`.`standardsubdomain`<>`d`.`id` AND `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `c`.`customerid`=`d`.`customerid` ORDER BY `d`.`domain` ASC");
|
||||
|
||||
while($row_domain = $db->fetch_array($result_domains))
|
||||
{
|
||||
$domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']);
|
||||
}
|
||||
|
||||
if(preg_match('/^https?\:\/\//', $result['documentroot'])
|
||||
&& validateUrl($idna_convert->encode($result['documentroot']))
|
||||
&& $settings['panel']['pathedit'] == 'Dropdown')
|
||||
{
|
||||
$urlvalue = $result['documentroot'];
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$urlvalue = '';
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit'], $result['documentroot']);
|
||||
}
|
||||
|
||||
$ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']);
|
||||
$iswildcarddomain = makeyesno('iswildcarddomain', '1', '0', $result['iswildcarddomain']);
|
||||
$isemaildomain = makeyesno('isemaildomain', '1', '0', $result['isemaildomain']);
|
||||
$openbasedir = makeoption($lng['domain']['docroot'], 0, $result['openbasedir_path'], true) . makeoption($lng['domain']['homedir'], 1, $result['openbasedir_path'], true);
|
||||
$result = htmlentities_array($result);
|
||||
|
||||
if($settings['system']['use_ssl'] == "1")
|
||||
{
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("domains/domains_edit") . "\";");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('domains_canteditdomain');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
1424
customer_email.php
1424
customer_email.php
File diff suppressed because it is too large
Load Diff
@@ -1,426 +1,426 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_extras.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras");
|
||||
eval("echo \"" . getTemplate("extras/extras") . "\";");
|
||||
}
|
||||
elseif($page == 'htpasswds')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htpasswds");
|
||||
$fields = array(
|
||||
'username' => $lng['login']['username'],
|
||||
'path' => $lng['panel']['path']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_HTPASSWDS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$htpasswds = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
if(strpos($row['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['path'] = substr($row['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$htpasswds.=\"" . getTemplate("extras/htpasswds_htpasswd") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("extras/htpasswds") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `customerid`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='$id'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strpos($result['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$result['path'] = substr($result['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
ask_yesno('extras_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username'] . ' (' . $result['path'] . ')');
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$path = makeCorrectDir(validate($_POST['path'], 'path'));
|
||||
$userpath = $path;
|
||||
$path = makeCorrectDir($userinfo['documentroot'] . '/' . $path);
|
||||
$username = validate($_POST['username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/');
|
||||
validate($_POST['directory_password'], 'password');
|
||||
$username_path_check = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `username`='" . $db->escape($username) . "' AND `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
if(CRYPT_STD_DES == 1)
|
||||
{
|
||||
$saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2);
|
||||
$password = crypt($_POST['directory_password'], $saltfordescrypt);
|
||||
}
|
||||
else
|
||||
{
|
||||
$password = crypt($_POST['directory_password']);
|
||||
}
|
||||
|
||||
if(!$_POST['path'])
|
||||
{
|
||||
standard_error('invalidpath');
|
||||
}
|
||||
|
||||
if($username == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'myloginname'));
|
||||
}
|
||||
elseif($username_path_check['username'] == $username
|
||||
&& $username_path_check['path'] == $path)
|
||||
{
|
||||
standard_error('userpathcombinationdupe');
|
||||
}
|
||||
elseif($_POST['directory_password'] == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
elseif($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` (`customerid`, `username`, `password`, `path`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', '" . $db->escape($password) . "', '" . $db->escape($path) . "')");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added htpasswd for '" . $username . " (" . $path . ")'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
eval("echo \"" . getTemplate("extras/htpasswds_add") . "\";");
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
validate($_POST['directory_password'], 'password');
|
||||
|
||||
if(CRYPT_STD_DES == 1)
|
||||
{
|
||||
$saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2);
|
||||
$password = crypt($_POST['directory_password'], $saltfordescrypt);
|
||||
}
|
||||
else
|
||||
{
|
||||
$password = crypt($_POST['directory_password']);
|
||||
}
|
||||
|
||||
if($_POST['directory_password'] == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_HTPASSWDS . "` SET `password`='" . $db->escape($password) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strpos($result['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$result['path'] = substr($result['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$result = htmlentities_array($result);
|
||||
eval("echo \"" . getTemplate("extras/htpasswds_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($page == 'htaccess')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htaccess");
|
||||
$fields = array(
|
||||
'path' => $lng['panel']['path'],
|
||||
'options_indexes' => $lng['extras']['view_directory'],
|
||||
'error404path' => $lng['extras']['error404path'],
|
||||
'error403path' => $lng['extras']['error403path'],
|
||||
'error500path' => $lng['extras']['error500path']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_HTACCESS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$htaccess = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
if(strpos($row['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['path'] = substr($row['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$row['options_indexes'] = str_replace('1', $lng['panel']['yes'], $row['options_indexes']);
|
||||
$row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']);
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$htaccess.=\"" . getTemplate("extras/htaccess_htaccess") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("extras/htaccess") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['customerid'])
|
||||
&& $result['customerid'] != ''
|
||||
&& $result['customerid'] == $userinfo['customerid'])
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('extras_reallydelete_pathoptions', $filename, array('id' => $id, 'page' => $page, 'action' => $action), str_replace($userinfo['documentroot'], '', $result['path']));
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$path = makeCorrectDir(validate($_POST['path'], 'path'));
|
||||
$userpath = $path;
|
||||
$path = makeCorrectDir($userinfo['documentroot'] . '/' . $path);
|
||||
$path_dupe_check = $db->query_first("SELECT `id`, `path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
if(!$_POST['path'])
|
||||
{
|
||||
standard_error('invalidpath');
|
||||
}
|
||||
|
||||
if(($_POST['error404path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error404path']))))
|
||||
{
|
||||
$error404path = $_POST['error404path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error403path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error403path']))))
|
||||
{
|
||||
$error403path = $_POST['error403path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error500path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error500path']))))
|
||||
{
|
||||
$error500path = $_POST['error500path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if($path_dupe_check['path'] == $path)
|
||||
{
|
||||
standard_error('errordocpathdupe', $userpath);
|
||||
}
|
||||
elseif($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query('INSERT INTO `' . TABLE_PANEL_HTACCESS . '` (`customerid`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` ) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($path) . '", "' . $db->escape($_POST['options_indexes'] == '1' ? '1' : '0') . '", "' . $db->escape($error404path) . '", "' . $db->escape($error403path) . '", "' . $db->escape($error500path) . '" )');
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added htaccess for '" . $path . "'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
$options_indexes = makeyesno('options_indexes', '1', '0', '1');
|
||||
eval("echo \"" . getTemplate("extras/htaccess_add") . "\";");
|
||||
}
|
||||
}
|
||||
elseif(($action == 'edit')
|
||||
&& ($id != 0))
|
||||
{
|
||||
$result = $db->query_first('SELECT * FROM `' . TABLE_PANEL_HTACCESS . '` WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"');
|
||||
|
||||
if((isset($result['customerid']))
|
||||
&& ($result['customerid'] != '')
|
||||
&& ($result['customerid'] == $userinfo['customerid']))
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$option_indexes = intval($_POST['options_indexes']);
|
||||
|
||||
if($option_indexes != '1')
|
||||
{
|
||||
$option_indexes = '0';
|
||||
}
|
||||
|
||||
if(($_POST['error404path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error404path']))))
|
||||
{
|
||||
$error404path = $_POST['error404path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error403path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error403path']))))
|
||||
{
|
||||
$error403path = $_POST['error403path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error500path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error500path']))))
|
||||
{
|
||||
$error500path = $_POST['error500path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($option_indexes != $result['options_indexes'])
|
||||
|| ($error404path != $result['error404path'])
|
||||
|| ($error403path != $result['error403path'])
|
||||
|| ($error500path != $result['error500path']))
|
||||
{
|
||||
inserttask('1');
|
||||
$db->query('UPDATE `' . TABLE_PANEL_HTACCESS . '` SET `options_indexes` = "' . $db->escape($option_indexes) . '", `error404path` = "' . $db->escape($error404path) . '", `error403path` = "' . $db->escape($error403path) . '", `error500path` = "' . $db->escape($error500path) . '" WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"');
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'");
|
||||
}
|
||||
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strpos($result['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$result['path'] = substr($result['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$result['error404path'] = $result['error404path'];
|
||||
$result['error403path'] = $result['error403path'];
|
||||
$result['error500path'] = $result['error500path'];
|
||||
$options_indexes = makeyesno('options_indexes', '1', '0', $result['options_indexes']);
|
||||
$result = htmlentities_array($result);
|
||||
eval("echo \"" . getTemplate("extras/htaccess_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_extras.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras");
|
||||
eval("echo \"" . getTemplate("extras/extras") . "\";");
|
||||
}
|
||||
elseif($page == 'htpasswds')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htpasswds");
|
||||
$fields = array(
|
||||
'username' => $lng['login']['username'],
|
||||
'path' => $lng['panel']['path']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_HTPASSWDS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$htpasswds = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
if(strpos($row['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['path'] = substr($row['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$htpasswds.=\"" . getTemplate("extras/htpasswds_htpasswd") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("extras/htpasswds") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `customerid`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='$id'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strpos($result['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$result['path'] = substr($result['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
ask_yesno('extras_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username'] . ' (' . $result['path'] . ')');
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$path = makeCorrectDir(validate($_POST['path'], 'path'));
|
||||
$userpath = $path;
|
||||
$path = makeCorrectDir($userinfo['documentroot'] . '/' . $path);
|
||||
$username = validate($_POST['username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/');
|
||||
validate($_POST['directory_password'], 'password');
|
||||
$username_path_check = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `username`='" . $db->escape($username) . "' AND `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
if(CRYPT_STD_DES == 1)
|
||||
{
|
||||
$saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2);
|
||||
$password = crypt($_POST['directory_password'], $saltfordescrypt);
|
||||
}
|
||||
else
|
||||
{
|
||||
$password = crypt($_POST['directory_password']);
|
||||
}
|
||||
|
||||
if(!$_POST['path'])
|
||||
{
|
||||
standard_error('invalidpath');
|
||||
}
|
||||
|
||||
if($username == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'myloginname'));
|
||||
}
|
||||
elseif($username_path_check['username'] == $username
|
||||
&& $username_path_check['path'] == $path)
|
||||
{
|
||||
standard_error('userpathcombinationdupe');
|
||||
}
|
||||
elseif($_POST['directory_password'] == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
elseif($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` (`customerid`, `username`, `password`, `path`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', '" . $db->escape($password) . "', '" . $db->escape($path) . "')");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added htpasswd for '" . $username . " (" . $path . ")'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
eval("echo \"" . getTemplate("extras/htpasswds_add") . "\";");
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
validate($_POST['directory_password'], 'password');
|
||||
|
||||
if(CRYPT_STD_DES == 1)
|
||||
{
|
||||
$saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2);
|
||||
$password = crypt($_POST['directory_password'], $saltfordescrypt);
|
||||
}
|
||||
else
|
||||
{
|
||||
$password = crypt($_POST['directory_password']);
|
||||
}
|
||||
|
||||
if($_POST['directory_password'] == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_HTPASSWDS . "` SET `password`='" . $db->escape($password) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strpos($result['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$result['path'] = substr($result['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$result = htmlentities_array($result);
|
||||
eval("echo \"" . getTemplate("extras/htpasswds_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($page == 'htaccess')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htaccess");
|
||||
$fields = array(
|
||||
'path' => $lng['panel']['path'],
|
||||
'options_indexes' => $lng['extras']['view_directory'],
|
||||
'error404path' => $lng['extras']['error404path'],
|
||||
'error403path' => $lng['extras']['error403path'],
|
||||
'error500path' => $lng['extras']['error500path']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_HTACCESS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$htaccess = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
if(strpos($row['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['path'] = substr($row['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$row['options_indexes'] = str_replace('1', $lng['panel']['yes'], $row['options_indexes']);
|
||||
$row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']);
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$htaccess.=\"" . getTemplate("extras/htaccess_htaccess") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("extras/htaccess") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['customerid'])
|
||||
&& $result['customerid'] != ''
|
||||
&& $result['customerid'] == $userinfo['customerid'])
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('extras_reallydelete_pathoptions', $filename, array('id' => $id, 'page' => $page, 'action' => $action), str_replace($userinfo['documentroot'], '', $result['path']));
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$path = makeCorrectDir(validate($_POST['path'], 'path'));
|
||||
$userpath = $path;
|
||||
$path = makeCorrectDir($userinfo['documentroot'] . '/' . $path);
|
||||
$path_dupe_check = $db->query_first("SELECT `id`, `path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
if(!$_POST['path'])
|
||||
{
|
||||
standard_error('invalidpath');
|
||||
}
|
||||
|
||||
if(($_POST['error404path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error404path']))))
|
||||
{
|
||||
$error404path = $_POST['error404path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error403path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error403path']))))
|
||||
{
|
||||
$error403path = $_POST['error403path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error500path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error500path']))))
|
||||
{
|
||||
$error500path = $_POST['error500path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if($path_dupe_check['path'] == $path)
|
||||
{
|
||||
standard_error('errordocpathdupe', $userpath);
|
||||
}
|
||||
elseif($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query('INSERT INTO `' . TABLE_PANEL_HTACCESS . '` (`customerid`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` ) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($path) . '", "' . $db->escape($_POST['options_indexes'] == '1' ? '1' : '0') . '", "' . $db->escape($error404path) . '", "' . $db->escape($error403path) . '", "' . $db->escape($error500path) . '" )');
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added htaccess for '" . $path . "'");
|
||||
inserttask('1');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
$options_indexes = makeyesno('options_indexes', '1', '0', '1');
|
||||
eval("echo \"" . getTemplate("extras/htaccess_add") . "\";");
|
||||
}
|
||||
}
|
||||
elseif(($action == 'edit')
|
||||
&& ($id != 0))
|
||||
{
|
||||
$result = $db->query_first('SELECT * FROM `' . TABLE_PANEL_HTACCESS . '` WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"');
|
||||
|
||||
if((isset($result['customerid']))
|
||||
&& ($result['customerid'] != '')
|
||||
&& ($result['customerid'] == $userinfo['customerid']))
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$option_indexes = intval($_POST['options_indexes']);
|
||||
|
||||
if($option_indexes != '1')
|
||||
{
|
||||
$option_indexes = '0';
|
||||
}
|
||||
|
||||
if(($_POST['error404path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error404path']))))
|
||||
{
|
||||
$error404path = $_POST['error404path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error403path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error403path']))))
|
||||
{
|
||||
$error403path = $_POST['error403path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($_POST['error500path'] === '')
|
||||
|| (validateUrl($idna_convert->encode($_POST['error500path']))))
|
||||
{
|
||||
$error500path = $_POST['error500path'];
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('mustbeurl');
|
||||
}
|
||||
|
||||
if(($option_indexes != $result['options_indexes'])
|
||||
|| ($error404path != $result['error404path'])
|
||||
|| ($error403path != $result['error403path'])
|
||||
|| ($error500path != $result['error500path']))
|
||||
{
|
||||
inserttask('1');
|
||||
$db->query('UPDATE `' . TABLE_PANEL_HTACCESS . '` SET `options_indexes` = "' . $db->escape($option_indexes) . '", `error404path` = "' . $db->escape($error404path) . '", `error403path` = "' . $db->escape($error403path) . '", `error500path` = "' . $db->escape($error500path) . '" WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"');
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'");
|
||||
}
|
||||
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strpos($result['path'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$result['path'] = substr($result['path'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
|
||||
$result['error404path'] = $result['error404path'];
|
||||
$result['error403path'] = $result['error403path'];
|
||||
$result['error500path'] = $result['error500path'];
|
||||
$options_indexes = makeyesno('options_indexes', '1', '0', $result['options_indexes']);
|
||||
$result = htmlentities_array($result);
|
||||
eval("echo \"" . getTemplate("extras/htaccess_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
484
customer_ftp.php
484
customer_ftp.php
@@ -1,243 +1,243 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_ftp.php 2707 2009-04-17 07:47:29Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp");
|
||||
eval("echo \"" . getTemplate("ftp/ftp") . "\";");
|
||||
}
|
||||
elseif($page == 'accounts')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp::accounts");
|
||||
$fields = array(
|
||||
'username' => $lng['login']['username'],
|
||||
'homedir' => $lng['panel']['path']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_FTP_USERS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . $userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$accounts = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
if(strpos($row['homedir'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$row['documentroot'] = $row['homedir'];
|
||||
}
|
||||
|
||||
$row['documentroot'] = makeCorrectDir($row['documentroot']);
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$accounts.=\"" . getTemplate("ftp/accounts_account") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$ftps_count = $db->num_rows($result);
|
||||
eval("echo \"" . getTemplate("ftp/accounts") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `username`, `homedir`, `up_count`, `up_bytes`, `down_count`, `down_bytes` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != $userinfo['loginname'])
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_count`=`up_count`+'" . (int)$result['up_count'] . "', `up_bytes`=`up_bytes`+'" . (int)$result['up_bytes'] . "', `down_count`=`down_count`+'" . (int)$result['down_count'] . "', `down_bytes`=`down_bytes`+'" . (int)$result['down_bytes'] . "' WHERE `username`='" . $db->escape($userinfo['loginname']) . "'");
|
||||
$db->query("DELETE FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted ftp-account '" . $result['username'] . "'");
|
||||
$db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=REPLACE(`members`,'," . $db->escape($result['username']) . "','') WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
// $db->query("DELETE FROM `".TABLE_FTP_GROUPS."` WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'");
|
||||
|
||||
if($userinfo['ftps_used'] == '1')
|
||||
{
|
||||
$resetaccnumber = " , `ftp_lastaccountnumber`='0'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$resetaccnumber = '';
|
||||
}
|
||||
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`-1 $resetaccnumber WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('ftp_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('ftp_cantdeletemainaccount');
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if($userinfo['ftps_used'] < $userinfo['ftps']
|
||||
|| $userinfo['ftps'] == '-1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$path = validate($_POST['path'], 'path');
|
||||
$password = validate($_POST['ftp_password'], 'password');
|
||||
|
||||
if($settings['customer']['ftpatdomain'] == '1')
|
||||
{
|
||||
$ftpusername = validate($_POST['ftp_username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/');
|
||||
if($ftpusername == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'username'));
|
||||
}
|
||||
$ftpdomain = $idna_convert->encode(validate($_POST['ftp_domain'], 'domain'));
|
||||
$ftpdomain_check = $db->query_first("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($ftpdomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
if($ftpdomain_check['domain'] != $ftpdomain)
|
||||
{
|
||||
standard_error('maindomainnonexist', $domain);
|
||||
}
|
||||
$username = $ftpusername . "@" . $ftpdomain;
|
||||
}
|
||||
else
|
||||
{
|
||||
$username = $userinfo['loginname'] . $settings['customer']['ftpprefix'] . (intval($userinfo['ftp_lastaccountnumber']) + 1);
|
||||
}
|
||||
|
||||
$username_check = $db->query_first('SELECT * FROM `' . TABLE_FTP_USERS .'` WHERE `username` = \'' . $db->escape($username) . '\'');
|
||||
|
||||
if(!empty($username_check) && $username_check['username'] = $username)
|
||||
{
|
||||
standard_error('usernamealreadyexists', $username);
|
||||
}
|
||||
elseif($password == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
elseif($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
$userpath = makeCorrectDir($path);
|
||||
$path = makeCorrectDir($userinfo['documentroot'] . '/' . $path);
|
||||
|
||||
$db->query("INSERT INTO `" . TABLE_FTP_USERS . "` (`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($path) . "', 'y', '" . (int)$userinfo['guid'] . "', '" . (int)$userinfo['guid'] . "')");
|
||||
$db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=CONCAT_WS(',',`members`,'" . $db->escape($username) . "') WHERE `customerid`='" . $userinfo['customerid'] . "' AND `gid`='" . (int)$userinfo['guid'] . "'");
|
||||
|
||||
// $db->query("INSERT INTO `".TABLE_FTP_GROUPS."` (`customerid`, `groupname`, `gid`, `members`) VALUES ('".$userinfo['customerid']."', '$username', '$uid', '$username')");
|
||||
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`+1, `ftp_lastaccountnumber`=`ftp_lastaccountnumber`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
// $db->query("UPDATE `".TABLE_PANEL_SETTINGS."` SET `value`='$uid' WHERE settinggroup='ftp' AND varname='lastguid'");
|
||||
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added ftp-account '" . $username . " (" . $path . ")'");
|
||||
inserttask(5);
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
|
||||
if($settings['customer']['ftpatdomain'] == '1')
|
||||
{
|
||||
$domains = '';
|
||||
|
||||
$result_domains = $db->query("SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
while($row_domain = $db->fetch_array($result_domains))
|
||||
{
|
||||
$domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['domain']);
|
||||
}
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("ftp/accounts_add") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$password = validate($_POST['ftp_password'], 'password');
|
||||
|
||||
if($password == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `password`=ENCRYPT('" . $db->escape($password) . "') WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited ftp-account '" . $result['username'] . "'");
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
eval("echo \"" . getTemplate("ftp/accounts_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_ftp.php 2707 2009-04-17 07:47:29Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp");
|
||||
eval("echo \"" . getTemplate("ftp/ftp") . "\";");
|
||||
}
|
||||
elseif($page == 'accounts')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp::accounts");
|
||||
$fields = array(
|
||||
'username' => $lng['login']['username'],
|
||||
'homedir' => $lng['panel']['path']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_FTP_USERS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . $userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$accounts = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
if(strpos($row['homedir'], $userinfo['documentroot']) === 0)
|
||||
{
|
||||
$row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$row['documentroot'] = $row['homedir'];
|
||||
}
|
||||
|
||||
$row['documentroot'] = makeCorrectDir($row['documentroot']);
|
||||
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$accounts.=\"" . getTemplate("ftp/accounts_account") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$ftps_count = $db->num_rows($result);
|
||||
eval("echo \"" . getTemplate("ftp/accounts") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `username`, `homedir`, `up_count`, `up_bytes`, `down_count`, `down_bytes` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != $userinfo['loginname'])
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_count`=`up_count`+'" . (int)$result['up_count'] . "', `up_bytes`=`up_bytes`+'" . (int)$result['up_bytes'] . "', `down_count`=`down_count`+'" . (int)$result['down_count'] . "', `down_bytes`=`down_bytes`+'" . (int)$result['down_bytes'] . "' WHERE `username`='" . $db->escape($userinfo['loginname']) . "'");
|
||||
$db->query("DELETE FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "deleted ftp-account '" . $result['username'] . "'");
|
||||
$db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=REPLACE(`members`,'," . $db->escape($result['username']) . "','') WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
// $db->query("DELETE FROM `".TABLE_FTP_GROUPS."` WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'");
|
||||
|
||||
if($userinfo['ftps_used'] == '1')
|
||||
{
|
||||
$resetaccnumber = " , `ftp_lastaccountnumber`='0'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$resetaccnumber = '';
|
||||
}
|
||||
|
||||
$result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`-1 $resetaccnumber WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('ftp_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
standard_error('ftp_cantdeletemainaccount');
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if($userinfo['ftps_used'] < $userinfo['ftps']
|
||||
|| $userinfo['ftps'] == '-1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$path = validate($_POST['path'], 'path');
|
||||
$password = validate($_POST['ftp_password'], 'password');
|
||||
|
||||
if($settings['customer']['ftpatdomain'] == '1')
|
||||
{
|
||||
$ftpusername = validate($_POST['ftp_username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/');
|
||||
if($ftpusername == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'username'));
|
||||
}
|
||||
$ftpdomain = $idna_convert->encode(validate($_POST['ftp_domain'], 'domain'));
|
||||
$ftpdomain_check = $db->query_first("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($ftpdomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
if($ftpdomain_check['domain'] != $ftpdomain)
|
||||
{
|
||||
standard_error('maindomainnonexist', $domain);
|
||||
}
|
||||
$username = $ftpusername . "@" . $ftpdomain;
|
||||
}
|
||||
else
|
||||
{
|
||||
$username = $userinfo['loginname'] . $settings['customer']['ftpprefix'] . (intval($userinfo['ftp_lastaccountnumber']) + 1);
|
||||
}
|
||||
|
||||
$username_check = $db->query_first('SELECT * FROM `' . TABLE_FTP_USERS .'` WHERE `username` = \'' . $db->escape($username) . '\'');
|
||||
|
||||
if(!empty($username_check) && $username_check['username'] = $username)
|
||||
{
|
||||
standard_error('usernamealreadyexists', $username);
|
||||
}
|
||||
elseif($password == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
elseif($path == '')
|
||||
{
|
||||
standard_error('patherror');
|
||||
}
|
||||
else
|
||||
{
|
||||
$userpath = makeCorrectDir($path);
|
||||
$path = makeCorrectDir($userinfo['documentroot'] . '/' . $path);
|
||||
|
||||
$db->query("INSERT INTO `" . TABLE_FTP_USERS . "` (`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($path) . "', 'y', '" . (int)$userinfo['guid'] . "', '" . (int)$userinfo['guid'] . "')");
|
||||
$db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=CONCAT_WS(',',`members`,'" . $db->escape($username) . "') WHERE `customerid`='" . $userinfo['customerid'] . "' AND `gid`='" . (int)$userinfo['guid'] . "'");
|
||||
|
||||
// $db->query("INSERT INTO `".TABLE_FTP_GROUPS."` (`customerid`, `groupname`, `gid`, `members`) VALUES ('".$userinfo['customerid']."', '$username', '$uid', '$username')");
|
||||
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`+1, `ftp_lastaccountnumber`=`ftp_lastaccountnumber`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
// $db->query("UPDATE `".TABLE_PANEL_SETTINGS."` SET `value`='$uid' WHERE settinggroup='ftp' AND varname='lastguid'");
|
||||
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "added ftp-account '" . $username . " (" . $path . ")'");
|
||||
inserttask(5);
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
|
||||
|
||||
if($settings['customer']['ftpatdomain'] == '1')
|
||||
{
|
||||
$domains = '';
|
||||
|
||||
$result_domains = $db->query("SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");
|
||||
|
||||
while($row_domain = $db->fetch_array($result_domains))
|
||||
{
|
||||
$domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['domain']);
|
||||
}
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("ftp/accounts_add") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
|
||||
if(isset($result['username'])
|
||||
&& $result['username'] != '')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$password = validate($_POST['ftp_password'], 'password');
|
||||
|
||||
if($password == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `password`=ENCRYPT('" . $db->escape($password) . "') WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'");
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited ftp-account '" . $result['username'] . "'");
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
eval("echo \"" . getTemplate("ftp/accounts_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,252 +1,252 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_mysql.php 2732 2009-10-30 16:24:48Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
$need_root_db_sql_data = true;
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql");
|
||||
$lng['mysql']['description'] = str_replace('<SQL_HOST>', $sql['host'], $lng['mysql']['description']);
|
||||
eval("echo \"" . getTemplate("mysql/mysql") . "\";");
|
||||
}
|
||||
elseif($page == 'mysqls')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql::mysqls");
|
||||
$fields = array(
|
||||
'databasename' => $lng['mysql']['databasename'],
|
||||
'description' => $lng['mysql']['databasedescription']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_DATABASES, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `databasename`, `description`, `dbserver` FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$mysqls = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$mysqls.=\"" . getTemplate("mysql/mysqls_database") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$mysqls_count = $db->num_rows($result);
|
||||
eval("echo \"" . getTemplate("mysql/mysqls") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first('SELECT `id`, `databasename`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"');
|
||||
|
||||
if(isset($result['databasename'])
|
||||
&& $result['databasename'] != '')
|
||||
{
|
||||
if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']]))
|
||||
{
|
||||
$result['dbserver'] = 0;
|
||||
}
|
||||
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
// Begin root-session
|
||||
|
||||
$db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], '');
|
||||
unset($db_root->password);
|
||||
foreach(array_map('trim', array_unique(explode(',', $settings['system']['mysql_access_host']))) as $mysql_access_host)
|
||||
{
|
||||
$db_root->query('REVOKE ALL PRIVILEGES ON * . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`');
|
||||
$db_root->query('REVOKE ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($result['databasename'])) . '` . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`');
|
||||
$db_root->query('DELETE FROM `mysql`.`user` WHERE `User` = "' . $db_root->escape($result['databasename']) . '" AND `Host` = "' . $db_root->escape($mysql_access_host) . '"');
|
||||
}
|
||||
|
||||
$db_root->query('DROP DATABASE IF EXISTS `' . $db_root->escape($result['databasename']) . '`');
|
||||
$db_root->query('FLUSH PRIVILEGES');
|
||||
$db_root->close();
|
||||
|
||||
// End root-session
|
||||
|
||||
$db->query('DELETE FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"');
|
||||
|
||||
if($userinfo['mysqls_used'] == '1')
|
||||
{
|
||||
$resetaccnumber = " , `mysql_lastaccountnumber`='0' ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$resetaccnumber = '';
|
||||
}
|
||||
|
||||
$result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`-1 ' . $resetaccnumber . 'WHERE `customerid`="' . (int)$userinfo['customerid'] . '"');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('mysql_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['databasename']);
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if($userinfo['mysqls_used'] < $userinfo['mysqls']
|
||||
|| $userinfo['mysqls'] == '-1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$password = validate($_POST['mysql_password'], 'password');
|
||||
|
||||
if($password == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$username = $userinfo['loginname'] . $settings['customer']['mysqlprefix'] . (intval($userinfo['mysql_lastaccountnumber']) + 1);
|
||||
|
||||
if(count($sql_root) > 1)
|
||||
{
|
||||
$dbserver = validate($_POST['mysql_server'], html_entity_decode($lng['mysql']['mysql_server']), '', '', 0);
|
||||
|
||||
if(!isset($sql_root[$dbserver]) || !is_array($sql_root[$dbserver]))
|
||||
{
|
||||
$dbserver = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbserver = 0;
|
||||
}
|
||||
|
||||
// Begin root-session
|
||||
|
||||
$db_root = new db($sql_root[$dbserver]['host'], $sql_root[$dbserver]['user'], $sql_root[$dbserver]['password'], '');
|
||||
unset($db_root->password);
|
||||
$db_root->query('CREATE DATABASE `' . $db_root->escape($username) . '`');
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "created database '" . $username . "'");
|
||||
foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host)
|
||||
{
|
||||
$db_root->query('GRANT ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($username)) . '`.* TO `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` IDENTIFIED BY \'password\'');
|
||||
$db_root->query('SET PASSWORD FOR `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')');
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "grant all privileges for '" . $username . "'@'" . $mysql_access_host . "'");
|
||||
}
|
||||
|
||||
$db_root->query('FLUSH PRIVILEGES');
|
||||
$db_root->close();
|
||||
|
||||
// End root-session
|
||||
// Statement modifyed for Database description -- PH 2004-11-29
|
||||
|
||||
$databasedescription = validate($_POST['description'], 'description');
|
||||
$result = $db->query('INSERT INTO `' . TABLE_PANEL_DATABASES . '` (`customerid`, `databasename`, `description`, `dbserver`) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($username) . '", "' . $db->escape($databasedescription) . '", "' . $db->escape($dbserver) . '")');
|
||||
$result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`+1, `mysql_lastaccountnumber`=`mysql_lastaccountnumber`+1 WHERE `customerid`="' . (int)$userinfo['customerid'] . '"');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$mysql_servers = '';
|
||||
|
||||
foreach($sql_root as $mysql_server => $mysql_server_details)
|
||||
{
|
||||
$mysql_servers .= makeoption($mysql_server_details['caption'], $mysql_server);
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("mysql/mysqls_add") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first('SELECT `id`, `databasename`, `description`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"');
|
||||
|
||||
if(isset($result['databasename'])
|
||||
&& $result['databasename'] != '')
|
||||
{
|
||||
if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']]))
|
||||
{
|
||||
$result['dbserver'] = 0;
|
||||
}
|
||||
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
// Only change Password if it is set, do nothing if it is empty! -- PH 2004-11-29
|
||||
|
||||
$password = validate($_POST['mysql_password'], 'password');
|
||||
|
||||
if($password != '')
|
||||
{
|
||||
// Begin root-session
|
||||
|
||||
$db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], '');
|
||||
unset($db_root->password);
|
||||
foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host)
|
||||
{
|
||||
$db_root->query('SET PASSWORD FOR `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')');
|
||||
}
|
||||
|
||||
$db_root->query('FLUSH PRIVILEGES');
|
||||
$db_root->close();
|
||||
|
||||
// End root-session
|
||||
}
|
||||
|
||||
// Update the Database description -- PH 2004-11-29
|
||||
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited database '" . $result['databasename'] . "'");
|
||||
$databasedescription = validate($_POST['description'], 'description');
|
||||
$result = $db->query('UPDATE `' . TABLE_PANEL_DATABASES . '` SET `description`="' . $db->escape($databasedescription) . '" WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
eval("echo \"" . getTemplate("mysql/mysqls_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: customer_mysql.php 2732 2009-10-30 16:24:48Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'customer');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
$need_root_db_sql_data = true;
|
||||
require ("./lib/init.php");
|
||||
|
||||
if(isset($_POST['id']))
|
||||
{
|
||||
$id = intval($_POST['id']);
|
||||
}
|
||||
elseif(isset($_GET['id']))
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
|
||||
if($page == 'overview')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql");
|
||||
$lng['mysql']['description'] = str_replace('<SQL_HOST>', $sql['host'], $lng['mysql']['description']);
|
||||
eval("echo \"" . getTemplate("mysql/mysql") . "\";");
|
||||
}
|
||||
elseif($page == 'mysqls')
|
||||
{
|
||||
if($action == '')
|
||||
{
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql::mysqls");
|
||||
$fields = array(
|
||||
'databasename' => $lng['mysql']['databasename'],
|
||||
'description' => $lng['mysql']['databasedescription']
|
||||
);
|
||||
$paging = new paging($userinfo, $db, TABLE_PANEL_DATABASES, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']);
|
||||
$result = $db->query("SELECT `id`, `databasename`, `description`, `dbserver` FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
|
||||
$paging->setEntries($db->num_rows($result));
|
||||
$sortcode = $paging->getHtmlSortCode($lng);
|
||||
$arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$searchcode = $paging->getHtmlSearchCode($lng);
|
||||
$pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
|
||||
$i = 0;
|
||||
$count = 0;
|
||||
$mysqls = '';
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if($paging->checkDisplay($i))
|
||||
{
|
||||
$row = htmlentities_array($row);
|
||||
eval("\$mysqls.=\"" . getTemplate("mysql/mysqls_database") . "\";");
|
||||
$count++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$mysqls_count = $db->num_rows($result);
|
||||
eval("echo \"" . getTemplate("mysql/mysqls") . "\";");
|
||||
}
|
||||
elseif($action == 'delete'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first('SELECT `id`, `databasename`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"');
|
||||
|
||||
if(isset($result['databasename'])
|
||||
&& $result['databasename'] != '')
|
||||
{
|
||||
if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']]))
|
||||
{
|
||||
$result['dbserver'] = 0;
|
||||
}
|
||||
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
// Begin root-session
|
||||
|
||||
$db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], '');
|
||||
unset($db_root->password);
|
||||
foreach(array_map('trim', array_unique(explode(',', $settings['system']['mysql_access_host']))) as $mysql_access_host)
|
||||
{
|
||||
$db_root->query('REVOKE ALL PRIVILEGES ON * . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`');
|
||||
$db_root->query('REVOKE ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($result['databasename'])) . '` . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`');
|
||||
$db_root->query('DELETE FROM `mysql`.`user` WHERE `User` = "' . $db_root->escape($result['databasename']) . '" AND `Host` = "' . $db_root->escape($mysql_access_host) . '"');
|
||||
}
|
||||
|
||||
$db_root->query('DROP DATABASE IF EXISTS `' . $db_root->escape($result['databasename']) . '`');
|
||||
$db_root->query('FLUSH PRIVILEGES');
|
||||
$db_root->close();
|
||||
|
||||
// End root-session
|
||||
|
||||
$db->query('DELETE FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"');
|
||||
|
||||
if($userinfo['mysqls_used'] == '1')
|
||||
{
|
||||
$resetaccnumber = " , `mysql_lastaccountnumber`='0' ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$resetaccnumber = '';
|
||||
}
|
||||
|
||||
$result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`-1 ' . $resetaccnumber . 'WHERE `customerid`="' . (int)$userinfo['customerid'] . '"');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
ask_yesno('mysql_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['databasename']);
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'add')
|
||||
{
|
||||
if($userinfo['mysqls_used'] < $userinfo['mysqls']
|
||||
|| $userinfo['mysqls'] == '-1')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$password = validate($_POST['mysql_password'], 'password');
|
||||
|
||||
if($password == '')
|
||||
{
|
||||
standard_error(array('stringisempty', 'mypassword'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$username = $userinfo['loginname'] . $settings['customer']['mysqlprefix'] . (intval($userinfo['mysql_lastaccountnumber']) + 1);
|
||||
|
||||
if(count($sql_root) > 1)
|
||||
{
|
||||
$dbserver = validate($_POST['mysql_server'], html_entity_decode($lng['mysql']['mysql_server']), '', '', 0);
|
||||
|
||||
if(!isset($sql_root[$dbserver]) || !is_array($sql_root[$dbserver]))
|
||||
{
|
||||
$dbserver = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbserver = 0;
|
||||
}
|
||||
|
||||
// Begin root-session
|
||||
|
||||
$db_root = new db($sql_root[$dbserver]['host'], $sql_root[$dbserver]['user'], $sql_root[$dbserver]['password'], '');
|
||||
unset($db_root->password);
|
||||
$db_root->query('CREATE DATABASE `' . $db_root->escape($username) . '`');
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "created database '" . $username . "'");
|
||||
foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host)
|
||||
{
|
||||
$db_root->query('GRANT ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($username)) . '`.* TO `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` IDENTIFIED BY \'password\'');
|
||||
$db_root->query('SET PASSWORD FOR `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')');
|
||||
$log->logAction(USR_ACTION, LOG_NOTICE, "grant all privileges for '" . $username . "'@'" . $mysql_access_host . "'");
|
||||
}
|
||||
|
||||
$db_root->query('FLUSH PRIVILEGES');
|
||||
$db_root->close();
|
||||
|
||||
// End root-session
|
||||
// Statement modifyed for Database description -- PH 2004-11-29
|
||||
|
||||
$databasedescription = validate($_POST['description'], 'description');
|
||||
$result = $db->query('INSERT INTO `' . TABLE_PANEL_DATABASES . '` (`customerid`, `databasename`, `description`, `dbserver`) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($username) . '", "' . $db->escape($databasedescription) . '", "' . $db->escape($dbserver) . '")');
|
||||
$result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`+1, `mysql_lastaccountnumber`=`mysql_lastaccountnumber`+1 WHERE `customerid`="' . (int)$userinfo['customerid'] . '"');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$mysql_servers = '';
|
||||
|
||||
foreach($sql_root as $mysql_server => $mysql_server_details)
|
||||
{
|
||||
$mysql_servers .= makeoption($mysql_server_details['caption'], $mysql_server);
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("mysql/mysqls_add") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($action == 'edit'
|
||||
&& $id != 0)
|
||||
{
|
||||
$result = $db->query_first('SELECT `id`, `databasename`, `description`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"');
|
||||
|
||||
if(isset($result['databasename'])
|
||||
&& $result['databasename'] != '')
|
||||
{
|
||||
if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']]))
|
||||
{
|
||||
$result['dbserver'] = 0;
|
||||
}
|
||||
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
// Only change Password if it is set, do nothing if it is empty! -- PH 2004-11-29
|
||||
|
||||
$password = validate($_POST['mysql_password'], 'password');
|
||||
|
||||
if($password != '')
|
||||
{
|
||||
// Begin root-session
|
||||
|
||||
$db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], '');
|
||||
unset($db_root->password);
|
||||
foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host)
|
||||
{
|
||||
$db_root->query('SET PASSWORD FOR `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')');
|
||||
}
|
||||
|
||||
$db_root->query('FLUSH PRIVILEGES');
|
||||
$db_root->close();
|
||||
|
||||
// End root-session
|
||||
}
|
||||
|
||||
// Update the Database description -- PH 2004-11-29
|
||||
|
||||
$log->logAction(USR_ACTION, LOG_INFO, "edited database '" . $result['databasename'] . "'");
|
||||
$databasedescription = validate($_POST['description'], 'description');
|
||||
$result = $db->query('UPDATE `' . TABLE_PANEL_DATABASES . '` SET `description`="' . $db->escape($databasedescription) . '" WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
else
|
||||
{
|
||||
eval("echo \"" . getTemplate("mysql/mysqls_edit") . "\";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
540
index.php
540
index.php
@@ -1,271 +1,271 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: index.php 2693 2009-03-27 19:31:48Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'login');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if($action == '')
|
||||
{
|
||||
$action = 'login';
|
||||
}
|
||||
|
||||
if($action == 'login')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$loginname = validate($_POST['loginname'], 'loginname');
|
||||
$password = validate($_POST['password'], 'password');
|
||||
$row = $db->query_first("SELECT `loginname` AS `customer` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `loginname`='" . $db->escape($loginname) . "'");
|
||||
|
||||
if($row['customer'] == $loginname)
|
||||
{
|
||||
$table = "`" . TABLE_PANEL_CUSTOMERS . "`";
|
||||
$uid = 'customerid';
|
||||
$adminsession = '0';
|
||||
}
|
||||
else
|
||||
{
|
||||
$row = $db->query_first("SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `loginname`='" . $db->escape($loginname) . "'");
|
||||
|
||||
if($row['admin'] == $loginname)
|
||||
{
|
||||
$table = "`" . TABLE_PANEL_ADMINS . "`";
|
||||
$uid = 'adminid';
|
||||
$adminsession = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
redirectTo('index.php', Array('showmessage' => '2'), true);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$userinfo = $db->query_first("SELECT * FROM $table WHERE `loginname`='" . $db->escape($loginname) . "'");
|
||||
|
||||
if($userinfo['loginfail_count'] >= $settings['login']['maxloginattempts']
|
||||
&& $userinfo['lastlogin_fail'] > (time() - $settings['login']['deactivatetime']))
|
||||
{
|
||||
redirectTo('index.php', Array('showmessage' => '3'), true);
|
||||
exit;
|
||||
}
|
||||
elseif($userinfo['password'] == md5($password))
|
||||
{
|
||||
// login correct
|
||||
// reset loginfail_counter, set lastlogin_succ
|
||||
|
||||
$db->query("UPDATE $table SET `lastlogin_succ`='" . time() . "', `loginfail_count`='0' WHERE `$uid`='" . (int)$userinfo[$uid] . "'");
|
||||
$userinfo['userid'] = $userinfo[$uid];
|
||||
$userinfo['adminsession'] = $adminsession;
|
||||
}
|
||||
else
|
||||
{
|
||||
// login incorrect
|
||||
|
||||
$db->query("UPDATE $table SET `lastlogin_fail`='" . time() . "', `loginfail_count`=`loginfail_count`+1 WHERE `$uid`='" . (int)$userinfo[$uid] . "'");
|
||||
unset($userinfo);
|
||||
redirectTo('index.php', Array('showmessage' => '2'), true);
|
||||
exit;
|
||||
}
|
||||
|
||||
if(isset($userinfo['userid'])
|
||||
&& $userinfo['userid'] != '')
|
||||
{
|
||||
$s = md5(uniqid(microtime(), 1));
|
||||
|
||||
if(isset($_POST['language']))
|
||||
{
|
||||
$language = validate($_POST['language'], 'language');
|
||||
|
||||
if($language == 'profile')
|
||||
{
|
||||
$language = $userinfo['def_language'];
|
||||
}
|
||||
elseif(!isset($languages[$language]))
|
||||
{
|
||||
$language = $settings['panel']['standardlanguage'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$language = $settings['panel']['standardlanguage'];
|
||||
}
|
||||
|
||||
if($settings['session']['allow_multiple_login'] != '1')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid` = '" . (int)$userinfo['userid'] . "' AND `adminsession` = '" . $db->escape($userinfo['adminsession']) . "'");
|
||||
}
|
||||
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$userinfo['userid'] . "', '" . $db->escape($remote_addr) . "', '" . $db->escape($http_user_agent) . "', '" . time() . "', '" . $db->escape($language) . "', '" . $db->escape($userinfo['adminsession']) . "')");
|
||||
|
||||
if($userinfo['adminsession'] == '1')
|
||||
{
|
||||
redirectTo('admin_index.php', Array('s' => $s), true);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
redirectTo('customer_index.php', Array('s' => $s), true);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
redirectTo('index.php', Array('showmessage' => '2'), true);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$language_options = '';
|
||||
$language_options.= makeoption($lng['login']['profile_lng'], 'profile', 'profile', true, true);
|
||||
|
||||
while(list($language_file, $language_name) = each($languages))
|
||||
{
|
||||
$language_options.= makeoption($language_name, $language_file, 'profile', true);
|
||||
}
|
||||
|
||||
$smessage = isset($_GET['showmessage']) ? (int)$_GET['showmessage'] : 0;
|
||||
$message = '';
|
||||
|
||||
switch($smessage)
|
||||
{
|
||||
case 1:
|
||||
$message = $lng['pwdreminder']['success'];
|
||||
break;
|
||||
case 2:
|
||||
$message = $lng['error']['login'];
|
||||
break;
|
||||
case 3:
|
||||
$message = $lng['error']['login_blocked'];
|
||||
break;
|
||||
case 4:
|
||||
$message = $lng['error']['errorsendingmail'];
|
||||
break;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("login") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
if($action == 'forgotpwd')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$adminchecked = false;
|
||||
$loginname = validate($_POST['loginname'], 'loginname');
|
||||
$email = validateEmail($_POST['loginemail'], 'email');
|
||||
$sql = "SELECT `customerid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "`
|
||||
WHERE `loginname`='" . $db->escape($loginname) . "'
|
||||
AND `email`='" . $db->escape($email) . "'";
|
||||
$result = $db->query($sql);
|
||||
|
||||
if($db->num_rows() == 0)
|
||||
{
|
||||
$sql = "SELECT `adminid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "`
|
||||
WHERE `loginname`='" . $db->escape($loginname) . "'
|
||||
AND `email`='" . $db->escape($email) . "'";
|
||||
$result = $db->query($sql);
|
||||
$adminchecked = true;
|
||||
}
|
||||
|
||||
$user = $db->fetch_array($result);
|
||||
|
||||
if(($adminchecked && $settings['panel']['allow_preset_admin'] == '1')
|
||||
|| $adminchecked == false)
|
||||
{
|
||||
if($user !== false)
|
||||
{
|
||||
$password = substr(md5(uniqid(microtime(), 1)), 12, 6);
|
||||
|
||||
if($adminchecked)
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `password`='" . md5($password) . "'
|
||||
WHERE `loginname`='" . $user['loginname'] . "'
|
||||
AND `email`='" . $user['email'] . "'");
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `password`='" . md5($password) . "'
|
||||
WHERE `loginname`='" . $user['loginname'] . "'
|
||||
AND `email`='" . $user['email'] . "'");
|
||||
}
|
||||
|
||||
$rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings);
|
||||
$rstlog->logAction(USR_ACTION, LOG_WARNING, "Password for user '" . $user['loginname'] . "' has been reset!");
|
||||
$body = strtr($lng['pwdreminder']['body'], array('%s' => $user['firstname'] . ' ' . $user['name'], '%p' => $password));
|
||||
$mail->From = $settings['panel']['adminmail'];
|
||||
$mail->FromName = 'SysCP';
|
||||
$mail->Subject = $lng['pwdreminder']['subject'];
|
||||
$mail->Body = $body;
|
||||
$mail->AddAddress($user['email'], $user['firstname'] . ' ' . $user['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
if($mail->ErrorInfo != '')
|
||||
{
|
||||
$mailerr_msg = $mail->ErrorInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
$mailerr_msg = $email;
|
||||
}
|
||||
|
||||
$rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings);
|
||||
$rstlog->logAction(ADM_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg);
|
||||
redirectTo('index.php', Array('showmessage' => '4'), true);
|
||||
exit;
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
redirectTo('index.php', Array('showmessage' => '1'), true);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings);
|
||||
$rstlog->logAction(USR_ACTION, LOG_WARNING, "User '" . $loginname . "' tried to reset pwd but wasn't found in database!");
|
||||
$message = $lng['login']['usernotfound'];
|
||||
}
|
||||
|
||||
unset($user, $adminchecked);
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = '';
|
||||
}
|
||||
|
||||
if($settings['panel']['allow_preset'] != '1')
|
||||
{
|
||||
$message = $lng['pwdreminder']['notallowed'];
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("fpwd") . "\";");
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Panel
|
||||
* @version $Id: index.php 2693 2009-03-27 19:31:48Z flo $
|
||||
*/
|
||||
|
||||
define('AREA', 'login');
|
||||
|
||||
/**
|
||||
* Include our init.php, which manages Sessions, Language etc.
|
||||
*/
|
||||
|
||||
require ("./lib/init.php");
|
||||
|
||||
if($action == '')
|
||||
{
|
||||
$action = 'login';
|
||||
}
|
||||
|
||||
if($action == 'login')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$loginname = validate($_POST['loginname'], 'loginname');
|
||||
$password = validate($_POST['password'], 'password');
|
||||
$row = $db->query_first("SELECT `loginname` AS `customer` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `loginname`='" . $db->escape($loginname) . "'");
|
||||
|
||||
if($row['customer'] == $loginname)
|
||||
{
|
||||
$table = "`" . TABLE_PANEL_CUSTOMERS . "`";
|
||||
$uid = 'customerid';
|
||||
$adminsession = '0';
|
||||
}
|
||||
else
|
||||
{
|
||||
$row = $db->query_first("SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `loginname`='" . $db->escape($loginname) . "'");
|
||||
|
||||
if($row['admin'] == $loginname)
|
||||
{
|
||||
$table = "`" . TABLE_PANEL_ADMINS . "`";
|
||||
$uid = 'adminid';
|
||||
$adminsession = '1';
|
||||
}
|
||||
else
|
||||
{
|
||||
redirectTo('index.php', Array('showmessage' => '2'), true);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$userinfo = $db->query_first("SELECT * FROM $table WHERE `loginname`='" . $db->escape($loginname) . "'");
|
||||
|
||||
if($userinfo['loginfail_count'] >= $settings['login']['maxloginattempts']
|
||||
&& $userinfo['lastlogin_fail'] > (time() - $settings['login']['deactivatetime']))
|
||||
{
|
||||
redirectTo('index.php', Array('showmessage' => '3'), true);
|
||||
exit;
|
||||
}
|
||||
elseif($userinfo['password'] == md5($password))
|
||||
{
|
||||
// login correct
|
||||
// reset loginfail_counter, set lastlogin_succ
|
||||
|
||||
$db->query("UPDATE $table SET `lastlogin_succ`='" . time() . "', `loginfail_count`='0' WHERE `$uid`='" . (int)$userinfo[$uid] . "'");
|
||||
$userinfo['userid'] = $userinfo[$uid];
|
||||
$userinfo['adminsession'] = $adminsession;
|
||||
}
|
||||
else
|
||||
{
|
||||
// login incorrect
|
||||
|
||||
$db->query("UPDATE $table SET `lastlogin_fail`='" . time() . "', `loginfail_count`=`loginfail_count`+1 WHERE `$uid`='" . (int)$userinfo[$uid] . "'");
|
||||
unset($userinfo);
|
||||
redirectTo('index.php', Array('showmessage' => '2'), true);
|
||||
exit;
|
||||
}
|
||||
|
||||
if(isset($userinfo['userid'])
|
||||
&& $userinfo['userid'] != '')
|
||||
{
|
||||
$s = md5(uniqid(microtime(), 1));
|
||||
|
||||
if(isset($_POST['language']))
|
||||
{
|
||||
$language = validate($_POST['language'], 'language');
|
||||
|
||||
if($language == 'profile')
|
||||
{
|
||||
$language = $userinfo['def_language'];
|
||||
}
|
||||
elseif(!isset($languages[$language]))
|
||||
{
|
||||
$language = $settings['panel']['standardlanguage'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$language = $settings['panel']['standardlanguage'];
|
||||
}
|
||||
|
||||
if($settings['session']['allow_multiple_login'] != '1')
|
||||
{
|
||||
$db->query("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid` = '" . (int)$userinfo['userid'] . "' AND `adminsession` = '" . $db->escape($userinfo['adminsession']) . "'");
|
||||
}
|
||||
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$userinfo['userid'] . "', '" . $db->escape($remote_addr) . "', '" . $db->escape($http_user_agent) . "', '" . time() . "', '" . $db->escape($language) . "', '" . $db->escape($userinfo['adminsession']) . "')");
|
||||
|
||||
if($userinfo['adminsession'] == '1')
|
||||
{
|
||||
redirectTo('admin_index.php', Array('s' => $s), true);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
redirectTo('customer_index.php', Array('s' => $s), true);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
redirectTo('index.php', Array('showmessage' => '2'), true);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$language_options = '';
|
||||
$language_options.= makeoption($lng['login']['profile_lng'], 'profile', 'profile', true, true);
|
||||
|
||||
while(list($language_file, $language_name) = each($languages))
|
||||
{
|
||||
$language_options.= makeoption($language_name, $language_file, 'profile', true);
|
||||
}
|
||||
|
||||
$smessage = isset($_GET['showmessage']) ? (int)$_GET['showmessage'] : 0;
|
||||
$message = '';
|
||||
|
||||
switch($smessage)
|
||||
{
|
||||
case 1:
|
||||
$message = $lng['pwdreminder']['success'];
|
||||
break;
|
||||
case 2:
|
||||
$message = $lng['error']['login'];
|
||||
break;
|
||||
case 3:
|
||||
$message = $lng['error']['login_blocked'];
|
||||
break;
|
||||
case 4:
|
||||
$message = $lng['error']['errorsendingmail'];
|
||||
break;
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("login") . "\";");
|
||||
}
|
||||
}
|
||||
|
||||
if($action == 'forgotpwd')
|
||||
{
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
$adminchecked = false;
|
||||
$loginname = validate($_POST['loginname'], 'loginname');
|
||||
$email = validateEmail($_POST['loginemail'], 'email');
|
||||
$sql = "SELECT `customerid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "`
|
||||
WHERE `loginname`='" . $db->escape($loginname) . "'
|
||||
AND `email`='" . $db->escape($email) . "'";
|
||||
$result = $db->query($sql);
|
||||
|
||||
if($db->num_rows() == 0)
|
||||
{
|
||||
$sql = "SELECT `adminid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "`
|
||||
WHERE `loginname`='" . $db->escape($loginname) . "'
|
||||
AND `email`='" . $db->escape($email) . "'";
|
||||
$result = $db->query($sql);
|
||||
$adminchecked = true;
|
||||
}
|
||||
|
||||
$user = $db->fetch_array($result);
|
||||
|
||||
if(($adminchecked && $settings['panel']['allow_preset_admin'] == '1')
|
||||
|| $adminchecked == false)
|
||||
{
|
||||
if($user !== false)
|
||||
{
|
||||
$password = substr(md5(uniqid(microtime(), 1)), 12, 6);
|
||||
|
||||
if($adminchecked)
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `password`='" . md5($password) . "'
|
||||
WHERE `loginname`='" . $user['loginname'] . "'
|
||||
AND `email`='" . $user['email'] . "'");
|
||||
}
|
||||
else
|
||||
{
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `password`='" . md5($password) . "'
|
||||
WHERE `loginname`='" . $user['loginname'] . "'
|
||||
AND `email`='" . $user['email'] . "'");
|
||||
}
|
||||
|
||||
$rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings);
|
||||
$rstlog->logAction(USR_ACTION, LOG_WARNING, "Password for user '" . $user['loginname'] . "' has been reset!");
|
||||
$body = strtr($lng['pwdreminder']['body'], array('%s' => $user['firstname'] . ' ' . $user['name'], '%p' => $password));
|
||||
$mail->From = $settings['panel']['adminmail'];
|
||||
$mail->FromName = 'SysCP';
|
||||
$mail->Subject = $lng['pwdreminder']['subject'];
|
||||
$mail->Body = $body;
|
||||
$mail->AddAddress($user['email'], $user['firstname'] . ' ' . $user['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
if($mail->ErrorInfo != '')
|
||||
{
|
||||
$mailerr_msg = $mail->ErrorInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
$mailerr_msg = $email;
|
||||
}
|
||||
|
||||
$rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings);
|
||||
$rstlog->logAction(ADM_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg);
|
||||
redirectTo('index.php', Array('showmessage' => '4'), true);
|
||||
exit;
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
redirectTo('index.php', Array('showmessage' => '1'), true);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings);
|
||||
$rstlog->logAction(USR_ACTION, LOG_WARNING, "User '" . $loginname . "' tried to reset pwd but wasn't found in database!");
|
||||
$message = $lng['login']['usernotfound'];
|
||||
}
|
||||
|
||||
unset($user, $adminchecked);
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = '';
|
||||
}
|
||||
|
||||
if($settings['panel']['allow_preset'] != '1')
|
||||
{
|
||||
$message = $lng['pwdreminder']['notallowed'];
|
||||
}
|
||||
|
||||
eval("echo \"" . getTemplate("fpwd") . "\";");
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,436 +1,436 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Nickola Kolev <nikky@minus273.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: bulgarian.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Никола Колев';
|
||||
$lng['panel']['edit'] = 'редакция';
|
||||
$lng['panel']['delete'] = 'изтриване';
|
||||
$lng['panel']['create'] = 'създаване';
|
||||
$lng['panel']['save'] = 'запазване';
|
||||
$lng['panel']['yes'] = 'да';
|
||||
$lng['panel']['no'] = 'не';
|
||||
$lng['panel']['emptyfornochanges'] = 'оставете празно, ако няма промени';
|
||||
$lng['panel']['emptyfordefault'] = 'оставете празно за стойности по подразбиране';
|
||||
$lng['panel']['path'] = 'Път';
|
||||
$lng['panel']['toggle'] = 'Изберете';
|
||||
$lng['panel']['next'] = 'следващ';
|
||||
$lng['panel']['dirsmissing'] = 'Не мога да намеря или да прочета директорията!';
|
||||
$lng['panel']['urloverridespath'] = 'URL (отменя пътя)';
|
||||
$lng['panel']['pathorurl'] = 'Път или URL';
|
||||
$lng['panel']['ascending'] = 'възходящ';
|
||||
$lng['panel']['decending'] = 'низходящ';
|
||||
$lng['panel']['search'] = 'Търсете';
|
||||
$lng['panel']['used'] = 'използвани';
|
||||
$lng['panel']['translator'] = 'Преводач';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = 'Потребителско име';
|
||||
$lng['login']['password'] = 'Парола';
|
||||
$lng['login']['language'] = 'Език';
|
||||
$lng['login']['login'] = 'Вход';
|
||||
$lng['login']['logout'] = 'Изход';
|
||||
$lng['login']['profile_lng'] = 'Език от профила';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = 'Домашна директория';
|
||||
$lng['customer']['name'] = 'Фамилия';
|
||||
$lng['customer']['firstname'] = 'Име';
|
||||
$lng['customer']['company'] = 'Фирма';
|
||||
$lng['customer']['street'] = 'Улица';
|
||||
$lng['customer']['zipcode'] = 'Пощенски код';
|
||||
$lng['customer']['city'] = 'Град';
|
||||
$lng['customer']['phone'] = 'Телефон';
|
||||
$lng['customer']['fax'] = 'Факс';
|
||||
$lng['customer']['email'] = 'E-поща';
|
||||
$lng['customer']['customernumber'] = 'Клиентски номер';
|
||||
$lng['customer']['diskspace'] = 'Уеб пространство (МБ)';
|
||||
$lng['customer']['traffic'] = 'Трафик (ГБ)';
|
||||
$lng['customer']['mysqls'] = 'MySQL бази данни';
|
||||
$lng['customer']['emails'] = 'Адреси за е-поща';
|
||||
$lng['customer']['accounts'] = 'Акаунти за е-поща';
|
||||
$lng['customer']['forwarders'] = 'Препращане на е-поща';
|
||||
$lng['customer']['ftps'] = 'FTP акаунти';
|
||||
$lng['customer']['subdomains'] = 'Поддомейн(и)';
|
||||
$lng['customer']['domains'] = 'Домейн(и)';
|
||||
$lng['customer']['unlimited'] = 'неограничен';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = 'Начало';
|
||||
$lng['menue']['main']['changepassword'] = 'Смяна на паролата';
|
||||
$lng['menue']['main']['changelanguage'] = 'Смяна на езика';
|
||||
$lng['menue']['email']['email'] = 'Е-поща';
|
||||
$lng['menue']['email']['emails'] = 'Адреси';
|
||||
$lng['menue']['email']['webmail'] = 'УебПоща';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = 'Бази данни';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = 'Домейни';
|
||||
$lng['menue']['domains']['settings'] = 'Настройки';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = 'Акаунти';
|
||||
$lng['menue']['ftp']['webftp'] = 'WebFTP';
|
||||
$lng['menue']['extras']['extras'] = 'Допълнителни';
|
||||
$lng['menue']['extras']['directoryprotection'] = 'Защита на директории';
|
||||
$lng['menue']['extras']['pathoptions'] = 'Опции за директории';
|
||||
$lng['menue']['main']['username'] = 'Потребителско име: ';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = 'Подробности за клиента';
|
||||
$lng['index']['accountdetails'] = 'Подробности за акаунта';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = 'Стара парола';
|
||||
$lng['changepassword']['new_password'] = 'Нова парола';
|
||||
$lng['changepassword']['new_password_confirm'] = 'Нова парола (още веднъж)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = 'Нова парола (ако оставите празно, няма да се промени)';
|
||||
$lng['changepassword']['also_change_ftp'] = ' сменя също и паролата на главния FTP акаунт';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = 'Тук можете да създавате (под)домейни и да променяте техните директории.<br />.Системата ще има нужда от известно време, за да влезе в сила всяка промяна.';
|
||||
$lng['domains']['domainsettings'] = 'Настройки на домейна';
|
||||
$lng['domains']['domainname'] = 'Име на домейна';
|
||||
$lng['domains']['subdomain_add'] = 'Създаване на поддомейн';
|
||||
$lng['domains']['subdomain_edit'] = 'Редакция на (под)домейн';
|
||||
$lng['domains']['wildcarddomain'] = 'Създаване като домейн, който прихваща всички заявки?';
|
||||
$lng['domains']['aliasdomain'] = 'Псевдоним за домейн';
|
||||
$lng['domains']['noaliasdomain'] = 'Без псевдоним за домейн';
|
||||
$lng['domain']['openbasedirpath'] = 'OpenBasedir-път';
|
||||
$lng['domain']['docroot'] = 'Път за полето по-горе';
|
||||
$lng['domain']['homedir'] = 'Домашна директория';
|
||||
$lng['domains']['hasaliasdomains'] = 'Дали да има псевдоними на домейни';
|
||||
$lng['domains']['statstics'] = 'Статистики на потреблението';
|
||||
|
||||
/**
|
||||
* eMails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = 'Тук можете да създавате и да променяте своите
|
||||
адреси за електронна поща.<br />Акаунтът представлява нещо като пощенска кутия
|
||||
пред дома ви. Ако някой иска да ви изпрати електронна поща, тя ще бъде доставена
|
||||
във вашия акаунт.<br /><br />За да свалите своята електронна поща, използвайте
|
||||
следните настройки за пощенската програма: (Данните в <i>курсив</i> трябва да
|
||||
бъдат променени по съответния начин!)<br />Име на хост: <b><i>Име на
|
||||
домейн</i></b><br />Потребителско име: <b><i>Име на акаунта/адрес за електронна
|
||||
поща</i></b><br />Парола: <b><i>паролата, която сте си избрали</i><b>';
|
||||
$lng['emails']['emailaddress'] = 'Email адрес';
|
||||
$lng['emails']['emails_add'] = 'Създаване на email адрес';
|
||||
$lng['emails']['emails_edit'] = 'Редакция на email адрес';
|
||||
$lng['emails']['catchall'] = 'Catchall';
|
||||
$lng['emails']['iscatchall'] = 'Да дефинирам ли като catchall адрес?';
|
||||
$lng['emails']['account'] = 'Акаунт';
|
||||
$lng['emails']['account_add'] = 'Създаване на акаунт';
|
||||
$lng['emails']['account_delete'] = 'Изтриване на акаунт';
|
||||
$lng['emails']['from'] = 'Източник';
|
||||
$lng['emails']['to'] = 'Назначение';
|
||||
$lng['emails']['forwarders'] = 'Пренасочване към';
|
||||
$lng['emails']['forwarder_add'] = 'Създаване на пренасочване';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = 'Тук можете да създадете и да промените своите
|
||||
сметки за достъп до FTP.<br />Промените се прилагат незабавно и акаунтите могат
|
||||
да бъдат използвани веднага';
|
||||
$lng['ftp']['account_add'] = 'Създаване на акаунт';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = 'Тук можете да създавате и редактирате MySQL бази от данни.<br />Промените влизат в сила незабавно, а базите могат да бъдат използвани веднага.<br />В менюто отляво ще намерите инструмента phpMyAdmin, с който лесно можете да администрирате своите бази от данни.<br /><br />За да ги използвате в php скриптове, ви трябват следните стойности: (Данните в <i>курсив</i> трябва да бъдат заменени със съответните стойности, които сте записали!)<br />Име на хост: <b>localhost</b><br />Потребителско име: <b><i>Име на база</i></b><br />Парола: <b><i>паролата, която сте избрали</i></b><br />База данни: <b><i>Име на базата';
|
||||
$lng['mysql']['databasename'] = 'Име на базата или на потребителя';
|
||||
$lng['mysql']['databasedescription'] = 'Описание на базата';
|
||||
$lng['mysql']['database_create'] = 'Създаване на база';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = 'Тук можете да добавите някои екстри, например защита на директориите. <br /> Системата ще има нужда от време, за да приложи новите настройки след всяка промяна.';
|
||||
$lng['extras']['directoryprotection_add'] = 'Добавяне защита на директории';
|
||||
$lng['extras']['view_directory'] = 'показване съдържанието на директорията';
|
||||
$lng['extras']['pathoptions_add'] = 'добавяне опции на пътя';
|
||||
$lng['extras']['directory_browsing'] = 'разглеждане съдържанието на директорията';
|
||||
$lng['extras']['pathoptions_edit'] = 'редактиране опции на пътя';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = 'URL към ErrorDocument 404';
|
||||
$lng['extras']['errordocument403path'] = 'URL към ErrorDocument 403';
|
||||
$lng['extras']['errordocument500path'] = 'URL към ErrorDocument 500';
|
||||
$lng['extras']['errordocument401path'] = 'URL към ErrorDocument 401';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = 'Грешка';
|
||||
$lng['error']['directorymustexist'] = 'Директорията %s трябва да съществува. Моля, създайте я със своя FTP клиент.';
|
||||
$lng['error']['filemustexist'] = 'Файлът %s трябва да съществува.';
|
||||
$lng['error']['allresourcesused'] = 'Вече сте изразходвали всичките си ресурси.';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = 'Не можете да изтриете домейн, който се използва като email домейн.';
|
||||
$lng['error']['domains_canteditdomain'] = 'Не можете да редактиране този домейн. Това е забранено от администратора.';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = 'Не можете да изтриете домейн, който се използва като email домейн. Първо изтрийте всички email адреси.';
|
||||
$lng['error']['firstdeleteallsubdomains'] = 'Първо трябва да изтриете всички поддомейни, за да можете да създадете общ домейн за пренасочване.';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Вече сте дефинирали catchall адрес за този домейн.';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = 'Не можете да изтриете главния си FTP акаунт';
|
||||
$lng['error']['login'] = 'Потребителското име или паролата са грешни. Моля, опитайте отново!';
|
||||
$lng['error']['login_blocked'] = 'Акаунтът е замразен поради твърде много грешни опити за влизане. <br />Моля, опитайте отново след ' . $settings['login']['deactivatetime'] . ' секунди.';
|
||||
$lng['error']['notallreqfieldsorerrors'] = 'Не сте попълнили всичко, или някои от полетата са попълнени неправилно.';
|
||||
$lng['error']['oldpasswordnotcorrect'] = 'Старата ви парола е неправилна.';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = 'Не можете да раздадете повече ресурси, отколкото има отделени за самите вас.';
|
||||
$lng['error']['mustbeurl'] = 'Не сте въвели правилно или пълно url (напр. http://somedomain.com/error404.htm)';
|
||||
$lng['error']['stringisempty'] = 'Липсват въведени данни в поле';
|
||||
$lng['error']['stringiswrong'] = 'Грешни въведени данни в поле';
|
||||
$lng['error']['myloginname'] = '\'Потребителско име\'';
|
||||
$lng['error']['mypassword'] = '\'Парола\'';
|
||||
$lng['error']['oldpassword'] = '\'Стара парола\'';
|
||||
$lng['error']['newpassword'] = '\'Нова парола\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'Нова парола (отново)\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = 'Новата парола и потвърждението не съвпадат';
|
||||
$lng['error']['myname'] = '\'Фамилия\'';
|
||||
$lng['error']['myfirstname'] = '\'Име\'';
|
||||
$lng['error']['emailadd'] = '\'Ел. поща\'';
|
||||
$lng['error']['mydomain'] = '\'Домейн\'';
|
||||
$lng['error']['mydocumentroot'] = '\'Основен път\'';
|
||||
$lng['error']['loginnameexists'] = 'Потребителското име %s вече съществува';
|
||||
$lng['error']['emailiswrong'] = 'Електронният адрес %s съдържа невалидни знаци или е непълен';
|
||||
$lng['error']['loginnameiswrong'] = 'Потребителското име %s съдържа невалидни знаци';
|
||||
$lng['error']['userpathcombinationdupe'] = 'Комбинацията от потребителско име и път вече съществува';
|
||||
$lng['error']['patherror'] = 'Генерална грешка! Пътят не може да бъде празен!';
|
||||
$lng['error']['errordocpathdupe'] = 'Опцията за път %s вече съществува';
|
||||
$lng['error']['adduserfirst'] = 'Моля, първо създайте клиент';
|
||||
$lng['error']['domainalreadyexists'] = 'Домейнът %s вече е даден на клиент';
|
||||
$lng['error']['nolanguageselect'] = 'Не е избран език.';
|
||||
$lng['error']['nosubjectcreate'] = 'Трябва да изберете тема за този шаблон за електронна поща.';
|
||||
$lng['error']['nomailbodycreate'] = 'Трябва да изберете съдържание за този шаблон за електронна поща.';
|
||||
$lng['error']['templatenotfound'] = 'Шаблонът не е открит.';
|
||||
$lng['error']['alltemplatesdefined'] = 'Не можете да дефинирате повече шаблони. Вече се поддържат всички езици.';
|
||||
$lng['error']['wwwnotallowed'] = 'www не е позволено като име на поддомейн.';
|
||||
$lng['error']['subdomainiswrong'] = 'Поддомейнът %s съдържа невалидни знаци.';
|
||||
$lng['error']['domaincantbeempty'] = 'Името на домейн не може да бъде празно.';
|
||||
$lng['error']['domainexistalready'] = 'Домейнът %s вече съществува.';
|
||||
$lng['error']['emailexistalready'] = 'Адресът за електронна поща %s вече съществува.';
|
||||
$lng['error']['maindomainnonexist'] = 'Главният домейн %s не съществува.';
|
||||
$lng['error']['destinationnonexist'] = 'Моля, създайте своeто препращане в полето \'Дестинация\'.';
|
||||
$lng['error']['destinationalreadyexistasmail'] = 'Препращането към %s вече съществува като активен ел. адрес.';
|
||||
$lng['error']['destinationalreadyexist'] = 'Вече сте дефинирали препращач %s .';
|
||||
$lng['error']['destinationiswrong'] = 'Препращачът %s съдържа невалидни знаци или е непълен.';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
$lng['error']['invalidpath'] = 'Не сте избрали валиден URL (или може би проблем с показването съдържание на директория?)';
|
||||
$lng['error']['domainisaliasorothercustomer'] = 'Избраният псевдоним на домейн е или псевдоним сам по себе си, или принадлежи на друг клиент.';
|
||||
$lng['error']['ipstillhasdomains'] = 'Комбинацията от IP и порт все още има домейни, свързани с нея. Моля, прехвърлете ги към друга IP/порт комбинация, преди да изтриете тази.';
|
||||
$lng['error']['cantdeletedefaultip'] = 'Не можете да изтриете комбинацията по подразбиране от IP и порт за риселъри. Моля, направете друга комбинация по подразбиране за риселъри, преди да изтриете тази.';
|
||||
$lng['error']['cantdeletesystemip'] = 'Не можете да изтриете последното системно IP. Можете или да създадете нова IP/порт комбинация за системното IP или да зададете ново системно IP.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'Порт\'';
|
||||
$lng['error']['myipdefault'] = 'Трябва да изберете комбинация от IP и порт по подразбиране.';
|
||||
$lng['error']['myipnotdouble'] = 'Тази комбинация IP/порт вече съществува.';
|
||||
$lng['error']['cantchangesystemip'] = 'Не можете да промените последното системно IP. Можете или да създадете нова IP/порт комбинация за системното IP или да зададете ново системно IP..';
|
||||
$lng['error']['loginnameissystemaccount'] = 'Не можете да създавате сметки, които са подобни на системните. Моля, въведете друго име на сметка.';
|
||||
$lng['error']['sessiontimeoutiswrong'] = 'За "Изтичане на сесия" е позволена само числова стойност.';
|
||||
$lng['error']['maxloginattemptsiswrong'] = 'За "Максимален брой опити за влизане" е позволена само числова стойност.';
|
||||
$lng['error']['deactivatetimiswrong'] = 'За "Време за деактивация" е позволена само числова стойност.';
|
||||
$lng['error']['accountprefixiswrong'] = '"Клиентски префикс" е грешен.';
|
||||
$lng['error']['mysqlprefixiswrong'] = '"SQL префикс" е грешен.';
|
||||
$lng['error']['ftpprefixiswrong'] = '"FTP префикс" е грешен.';
|
||||
$lng['error']['ipiswrong'] = '"IP адрес" е грешен. Позволени са само валидни IP адреси.';
|
||||
$lng['error']['vmailuidiswrong'] = '"UID на поща" е грешен. Позволени са само числови стойности на UID.';
|
||||
$lng['error']['vmailgidiswrong'] = '"GID на поща" е грешен. Позволени са само числови стойности на GID.';
|
||||
$lng['error']['adminmailiswrong'] = '"Адрес на изпращач" е грешен. Позволени са само валидни адреси за e-поща.';
|
||||
$lng['error']['pagingiswrong'] = 'Стойността на "Записи на страница" е грешен. Позволени са само цифрови стойности.';
|
||||
$lng['error']['phpmyadminiswrong'] = 'Връзката съм phpMyAdmin е невалидна.';
|
||||
$lng['error']['webmailiswrong'] = 'Връзката към уеб поща е невалидна.';
|
||||
$lng['error']['webftpiswrong'] = 'Връзката към WebFTP е невалидна.';
|
||||
$lng['error']['stringformaterror'] = 'Стойността в полето "%s" не е в очаквания формат.';
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = 'Таен въпрос';
|
||||
$lng['question']['admin_customer_reallydelete'] = 'Наистина ли искате да изтриете клиент %s? Това е необратимо!';
|
||||
$lng['question']['admin_domain_reallydelete'] = 'Наистина ли искате да изтриете домейн %s?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Наистина ли искате да деактивирате тези настройки на сигурността (OpenBasedir и/или SafeMode)?';
|
||||
$lng['question']['admin_admin_reallydelete'] = 'Наистина ли искате да изтриете администраторът %s? Всеки негов клиент и домейн ще бъдат прикрепени към главния администратор.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'Наистина ли искате да изтриете шаблона \'%s\'?';
|
||||
$lng['question']['domains_reallydelete'] = 'Наистина ли искате да изтриете домейна %s?';
|
||||
$lng['question']['email_reallydelete'] = 'Наистина ли искате да изтриете адреса за електронна поща %s?';
|
||||
$lng['question']['email_reallydelete_account'] = 'Наистина ли искате да изтриете сметката за електронна поща на %s?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = 'Наистина ли искате да изтриете препращането за %s?';
|
||||
$lng['question']['extras_reallydelete'] = 'Наистина ли искате да изтриете защитата на директория %s?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = 'Наистина ли искате да изтриете опциите на пътя %s?';
|
||||
$lng['question']['ftp_reallydelete'] = 'Наистина ли искате да изтриете FTP сметката %s?';
|
||||
$lng['question']['mysql_reallydelete'] = 'Наистина ли искате да изтриете базата данни %s? Това е необратимо!';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = 'Наистина ли искате да изградите отново конфигурационните файлове на bind и apache?';
|
||||
$lng['question']['admin_ip_reallydelete'] = 'Наистина ли искате да изтриете IP адресът %s?';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Сигурни ли сте, че искате главната директория на този домейн да не попада в главната директория на клиента?';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = 'Здравейте,\n\nвашият пощенски акаунт {EMAIL}\nе създаден успешно.\n\nТова съобщение е генерирано автоматично, затова\nмоля, не отговаряйте!\n\nПоздрави, екипът на МНЕТ';
|
||||
$lng['mails']['pop_success']['subject'] = 'Пощенският акаунт е създаден успешно';
|
||||
$lng['mails']['createcustomer']['mailbody'] = 'Здравейте {FIRSTNAME} {NAME},\n\nето информация за вашия акаунт:\n\nПотребителско име: {USERNAME}\nПарола: {PASSWORD}\n\nПоздрави,\nекипът на МНЕТ';
|
||||
$lng['mails']['createcustomer']['subject'] = 'Информация за сметката';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = 'Преглед';
|
||||
$lng['admin']['ressourcedetails'] = 'Използвани ресурси';
|
||||
$lng['admin']['systemdetails'] = 'Системни детайли';
|
||||
$lng['admin']['syscpdetails'] = 'SysCP детайли';
|
||||
$lng['admin']['installedversion'] = 'Инсталирана версия';
|
||||
$lng['admin']['latestversion'] = 'Последна версия';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = 'Потърсете чрез уеб услуга';
|
||||
$lng['admin']['lookfornewversion']['error'] = 'Грешка при четене';
|
||||
$lng['admin']['resources'] = 'Ресурси';
|
||||
$lng['admin']['customer'] = 'Клиент';
|
||||
$lng['admin']['customers'] = 'Клиенти';
|
||||
$lng['admin']['customer_add'] = 'Добавяне на клиент';
|
||||
$lng['admin']['customer_edit'] = 'Редакция на клиент';
|
||||
$lng['admin']['domains'] = 'Домейни';
|
||||
$lng['admin']['domain_add'] = 'Добавяне на домейн';
|
||||
$lng['admin']['domain_edit'] = 'Редакция на домейн';
|
||||
$lng['admin']['subdomainforemail'] = 'Поддомейни като емайл домейни';
|
||||
$lng['admin']['admin'] = 'Администратор';
|
||||
$lng['admin']['admins'] = 'Администратори';
|
||||
$lng['admin']['admin_add'] = 'Добавяне на администратор';
|
||||
$lng['admin']['admin_edit'] = 'Редакция на администратор';
|
||||
$lng['admin']['customers_see_all'] = 'Може ли да вижда всички клиенти?';
|
||||
$lng['admin']['domains_see_all'] = 'Може ли да вижда всички домейни?';
|
||||
$lng['admin']['change_serversettings'] = 'Може ли да променя настройките на сървъра?';
|
||||
$lng['admin']['server'] = 'Сървър';
|
||||
$lng['admin']['serversettings'] = 'Настройки';
|
||||
$lng['admin']['stdsubdomain'] = 'Стандартен поддомейн';
|
||||
$lng['admin']['stdsubdomain_add'] = 'Създаване на стандартен поддомейн';
|
||||
$lng['admin']['deactivated'] = 'Деактивиран';
|
||||
$lng['admin']['deactivated_user'] = 'Деактивирай потребител';
|
||||
$lng['admin']['sendpassword'] = 'Изпрати парола';
|
||||
$lng['admin']['ownvhostsettings'] = 'Собствени настройки на виртуален хост';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = 'Конфигурация';
|
||||
$lng['admin']['configfiles']['files'] = '<b>Конфигурационни файлове:</b> Моля, променете следните файлове или ги създайте със<br />следното съдържание, ако не съществуват.<br /> <b>Внимание:</b> Паролата за MySQL не е сменена поради съображения за сигурност.<br />Моля, сменете "MYSQL_PASSWORD" сами. Ако забравите своята MySQL md,f.d<br />можете да я намерите в "lib/userdata.inc.php".';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>Команди:</b> Моля, изпълнете следните команди в командния ред на обвивката.';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>Restart:</b> Моля, изпълнете следните команди в командния ред на обвивката, за да се презареди новата конфигурация.';
|
||||
$lng['admin']['templates']['templates'] = 'Шаблони';
|
||||
$lng['admin']['templates']['template_add'] = 'Добавяне на шаблон';
|
||||
$lng['admin']['templates']['template_edit'] = 'Редакция на шаблон';
|
||||
$lng['admin']['templates']['action'] = 'Действие';
|
||||
$lng['admin']['templates']['email'] = 'Ел. поща';
|
||||
$lng['admin']['templates']['subject'] = 'Тема';
|
||||
$lng['admin']['templates']['mailbody'] = 'Съдържание';
|
||||
$lng['admin']['templates']['createcustomer'] = 'Поздравителна поща за всички клиенти';
|
||||
$lng['admin']['templates']['pop_success'] = 'Поздравителна поща за нови сметки за ел. поща';
|
||||
$lng['admin']['templates']['template_replace_vars'] = 'Променлива, която да бъде заменена в шаблона:';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = 'Ще бъде заменено с първото име на клиента.';
|
||||
$lng['admin']['templates']['NAME'] = 'Ще бъде заменено с името на клиента.';
|
||||
$lng['admin']['templates']['USERNAME'] = 'Ще бъде заменено с потребителското име на клиента.';
|
||||
$lng['admin']['templates']['PASSWORD'] = 'Ще бъде заменено с паролата за сметката на клиента.';
|
||||
$lng['admin']['templates']['EMAIL'] = 'Ще бъде заменено със сметка за POP3/IMAP.';
|
||||
$lng['admin']['rebuildconf'] = 'Възстановяване на конфигурационни файлове';
|
||||
$lng['admin']['cronlastrun'] = 'Последен cron';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = 'IP адреси и портове';
|
||||
$lng['admin']['ipsandports']['add'] = 'Добавяне на IP/порт';
|
||||
$lng['admin']['ipsandports']['edit'] = 'Редакция на на IP/порт';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/порт';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = 'Порт';
|
||||
$lng['admin']['memorylimitdisabled'] = 'Забранен';
|
||||
$lng['admin']['valuemandatory'] = 'Тази стойност е задължителна';
|
||||
$lng['admin']['valuemandatorycompany'] = 'Трябва да бъдат попълнени или "фамилия" и "първо име" or "фирма"';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = 'Изтичане на сесия';
|
||||
$lng['serversettings']['session_timeout']['description'] = 'Колко дълго трябва да е неактивен един потребител, преди сесията да стане невалидна (в секунди)?';
|
||||
$lng['serversettings']['accountprefix']['title'] = 'Префикс на клиент';
|
||||
$lng['serversettings']['accountprefix']['description'] = 'Какъв ще бъде префикса на сметките на клиенти?';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'SQL префикс';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = 'Какъв префикс ще имат сметките за MySQL?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'FTP префикс';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'Какъв префикс ще имат сметките за FTP?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = 'Директория за документи';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = 'Къде ще се съхраняват всички данни?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = 'Директория за журнални файлове';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = 'Къде ще се съхраняват всички журнални файлове?';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP адрес';
|
||||
$lng['serversettings']['ipaddress']['description'] = 'Какъв е IP адресът на този сървър?';
|
||||
$lng['serversettings']['hostname']['title'] = 'Име на хост';
|
||||
$lng['serversettings']['hostname']['description'] = 'Какво е името на хост на този сървър?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = 'Команда за презареждане на apache';
|
||||
$lng['serversettings']['apachereload_command']['description'] = 'Каква е командата за презареждане на apache?';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = 'Конфигурационна директория на Bind';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = 'Къде се намират конфигурационните файлове на bind?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = 'Команда за презареждане на bind';
|
||||
$lng['serversettings']['bindreload_command']['description'] = 'Каква е командата за презареждане на bind?';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = 'Зона по подразбиране на Bind';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = 'Какво е името на зоната по подразбиране?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = 'UID на пощите';
|
||||
$lng['serversettings']['vmail_uid']['description'] = 'Какво ще бъде потребителското ID на пощите?';
|
||||
$lng['serversettings']['vmail_gid']['title'] = 'GID на пощите';
|
||||
$lng['serversettings']['vmail_gid']['description'] = 'Какво ще бъде груповото ID на пощите?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = 'Директория за пощи';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = 'Къде ще се съхраняват всички пощи?';
|
||||
$lng['serversettings']['adminmail']['title'] = 'Изпращач';
|
||||
$lng['serversettings']['adminmail']['description'] = 'Какъв ще бъде адреса на изпращача на всички пощи от този панел?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = 'Какъв е адресът на phpMyAdmin? (трябва да започва с http://)';
|
||||
$lng['serversettings']['webmail_url']['title'] = 'Адрес на уеб поща';
|
||||
$lng['serversettings']['webmail_url']['description'] = 'Какъв е адресът на уеб пощата? (трябва да започва с http://)';
|
||||
$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = 'Какъв е адресът на WebFTP? (трябва да започва с http://)';
|
||||
$lng['serversettings']['language']['description'] = 'Какъв е езикът по подразбиране на вашия сървър?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = 'Максимален брой опити за влизане';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = 'Максимален брой неуспешни опити за влизане, преди сметката да бъде деактивирана.';
|
||||
$lng['serversettings']['deactivatetime']['title'] = 'Продължителност на деактивацията';
|
||||
$lng['serversettings']['deactivatetime']['description'] = 'Време в секунди, за което ще бъде деактивирана дадена сметка при прекалено голям брой неуспешни опити за влизане.';
|
||||
$lng['serversettings']['pathedit']['title'] = 'Тип на въвеждането на пътя';
|
||||
$lng['serversettings']['pathedit']['description'] = 'Пътят да бъде избиран посредством падащо меню или поле за вход?';
|
||||
$lng['serversettings']['paging']['title'] = 'Записи на страница';
|
||||
$lng['serversettings']['paging']['description'] = 'Колко записа да бъдат показвани на страница? (0 = забранява странирането)';
|
||||
$lng['serversettings']['defaultip']['title'] = 'IP/порт по подразбиране';
|
||||
$lng['serversettings']['defaultip']['description'] = 'Коя е комбинацията IP/порт по подразбиране?';
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Nickola Kolev <nikky@minus273.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: bulgarian.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Никола Колев';
|
||||
$lng['panel']['edit'] = 'редакция';
|
||||
$lng['panel']['delete'] = 'изтриване';
|
||||
$lng['panel']['create'] = 'създаване';
|
||||
$lng['panel']['save'] = 'запазване';
|
||||
$lng['panel']['yes'] = 'да';
|
||||
$lng['panel']['no'] = 'не';
|
||||
$lng['panel']['emptyfornochanges'] = 'оставете празно, ако няма промени';
|
||||
$lng['panel']['emptyfordefault'] = 'оставете празно за стойности по подразбиране';
|
||||
$lng['panel']['path'] = 'Път';
|
||||
$lng['panel']['toggle'] = 'Изберете';
|
||||
$lng['panel']['next'] = 'следващ';
|
||||
$lng['panel']['dirsmissing'] = 'Не мога да намеря или да прочета директорията!';
|
||||
$lng['panel']['urloverridespath'] = 'URL (отменя пътя)';
|
||||
$lng['panel']['pathorurl'] = 'Път или URL';
|
||||
$lng['panel']['ascending'] = 'възходящ';
|
||||
$lng['panel']['decending'] = 'низходящ';
|
||||
$lng['panel']['search'] = 'Търсете';
|
||||
$lng['panel']['used'] = 'използвани';
|
||||
$lng['panel']['translator'] = 'Преводач';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = 'Потребителско име';
|
||||
$lng['login']['password'] = 'Парола';
|
||||
$lng['login']['language'] = 'Език';
|
||||
$lng['login']['login'] = 'Вход';
|
||||
$lng['login']['logout'] = 'Изход';
|
||||
$lng['login']['profile_lng'] = 'Език от профила';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = 'Домашна директория';
|
||||
$lng['customer']['name'] = 'Фамилия';
|
||||
$lng['customer']['firstname'] = 'Име';
|
||||
$lng['customer']['company'] = 'Фирма';
|
||||
$lng['customer']['street'] = 'Улица';
|
||||
$lng['customer']['zipcode'] = 'Пощенски код';
|
||||
$lng['customer']['city'] = 'Град';
|
||||
$lng['customer']['phone'] = 'Телефон';
|
||||
$lng['customer']['fax'] = 'Факс';
|
||||
$lng['customer']['email'] = 'E-поща';
|
||||
$lng['customer']['customernumber'] = 'Клиентски номер';
|
||||
$lng['customer']['diskspace'] = 'Уеб пространство (МБ)';
|
||||
$lng['customer']['traffic'] = 'Трафик (ГБ)';
|
||||
$lng['customer']['mysqls'] = 'MySQL бази данни';
|
||||
$lng['customer']['emails'] = 'Адреси за е-поща';
|
||||
$lng['customer']['accounts'] = 'Акаунти за е-поща';
|
||||
$lng['customer']['forwarders'] = 'Препращане на е-поща';
|
||||
$lng['customer']['ftps'] = 'FTP акаунти';
|
||||
$lng['customer']['subdomains'] = 'Поддомейн(и)';
|
||||
$lng['customer']['domains'] = 'Домейн(и)';
|
||||
$lng['customer']['unlimited'] = 'неограничен';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = 'Начало';
|
||||
$lng['menue']['main']['changepassword'] = 'Смяна на паролата';
|
||||
$lng['menue']['main']['changelanguage'] = 'Смяна на езика';
|
||||
$lng['menue']['email']['email'] = 'Е-поща';
|
||||
$lng['menue']['email']['emails'] = 'Адреси';
|
||||
$lng['menue']['email']['webmail'] = 'УебПоща';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = 'Бази данни';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = 'Домейни';
|
||||
$lng['menue']['domains']['settings'] = 'Настройки';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = 'Акаунти';
|
||||
$lng['menue']['ftp']['webftp'] = 'WebFTP';
|
||||
$lng['menue']['extras']['extras'] = 'Допълнителни';
|
||||
$lng['menue']['extras']['directoryprotection'] = 'Защита на директории';
|
||||
$lng['menue']['extras']['pathoptions'] = 'Опции за директории';
|
||||
$lng['menue']['main']['username'] = 'Потребителско име: ';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = 'Подробности за клиента';
|
||||
$lng['index']['accountdetails'] = 'Подробности за акаунта';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = 'Стара парола';
|
||||
$lng['changepassword']['new_password'] = 'Нова парола';
|
||||
$lng['changepassword']['new_password_confirm'] = 'Нова парола (още веднъж)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = 'Нова парола (ако оставите празно, няма да се промени)';
|
||||
$lng['changepassword']['also_change_ftp'] = ' сменя също и паролата на главния FTP акаунт';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = 'Тук можете да създавате (под)домейни и да променяте техните директории.<br />.Системата ще има нужда от известно време, за да влезе в сила всяка промяна.';
|
||||
$lng['domains']['domainsettings'] = 'Настройки на домейна';
|
||||
$lng['domains']['domainname'] = 'Име на домейна';
|
||||
$lng['domains']['subdomain_add'] = 'Създаване на поддомейн';
|
||||
$lng['domains']['subdomain_edit'] = 'Редакция на (под)домейн';
|
||||
$lng['domains']['wildcarddomain'] = 'Създаване като домейн, който прихваща всички заявки?';
|
||||
$lng['domains']['aliasdomain'] = 'Псевдоним за домейн';
|
||||
$lng['domains']['noaliasdomain'] = 'Без псевдоним за домейн';
|
||||
$lng['domain']['openbasedirpath'] = 'OpenBasedir-път';
|
||||
$lng['domain']['docroot'] = 'Път за полето по-горе';
|
||||
$lng['domain']['homedir'] = 'Домашна директория';
|
||||
$lng['domains']['hasaliasdomains'] = 'Дали да има псевдоними на домейни';
|
||||
$lng['domains']['statstics'] = 'Статистики на потреблението';
|
||||
|
||||
/**
|
||||
* eMails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = 'Тук можете да създавате и да променяте своите
|
||||
адреси за електронна поща.<br />Акаунтът представлява нещо като пощенска кутия
|
||||
пред дома ви. Ако някой иска да ви изпрати електронна поща, тя ще бъде доставена
|
||||
във вашия акаунт.<br /><br />За да свалите своята електронна поща, използвайте
|
||||
следните настройки за пощенската програма: (Данните в <i>курсив</i> трябва да
|
||||
бъдат променени по съответния начин!)<br />Име на хост: <b><i>Име на
|
||||
домейн</i></b><br />Потребителско име: <b><i>Име на акаунта/адрес за електронна
|
||||
поща</i></b><br />Парола: <b><i>паролата, която сте си избрали</i><b>';
|
||||
$lng['emails']['emailaddress'] = 'Email адрес';
|
||||
$lng['emails']['emails_add'] = 'Създаване на email адрес';
|
||||
$lng['emails']['emails_edit'] = 'Редакция на email адрес';
|
||||
$lng['emails']['catchall'] = 'Catchall';
|
||||
$lng['emails']['iscatchall'] = 'Да дефинирам ли като catchall адрес?';
|
||||
$lng['emails']['account'] = 'Акаунт';
|
||||
$lng['emails']['account_add'] = 'Създаване на акаунт';
|
||||
$lng['emails']['account_delete'] = 'Изтриване на акаунт';
|
||||
$lng['emails']['from'] = 'Източник';
|
||||
$lng['emails']['to'] = 'Назначение';
|
||||
$lng['emails']['forwarders'] = 'Пренасочване към';
|
||||
$lng['emails']['forwarder_add'] = 'Създаване на пренасочване';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = 'Тук можете да създадете и да промените своите
|
||||
сметки за достъп до FTP.<br />Промените се прилагат незабавно и акаунтите могат
|
||||
да бъдат използвани веднага';
|
||||
$lng['ftp']['account_add'] = 'Създаване на акаунт';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = 'Тук можете да създавате и редактирате MySQL бази от данни.<br />Промените влизат в сила незабавно, а базите могат да бъдат използвани веднага.<br />В менюто отляво ще намерите инструмента phpMyAdmin, с който лесно можете да администрирате своите бази от данни.<br /><br />За да ги използвате в php скриптове, ви трябват следните стойности: (Данните в <i>курсив</i> трябва да бъдат заменени със съответните стойности, които сте записали!)<br />Име на хост: <b>localhost</b><br />Потребителско име: <b><i>Име на база</i></b><br />Парола: <b><i>паролата, която сте избрали</i></b><br />База данни: <b><i>Име на базата';
|
||||
$lng['mysql']['databasename'] = 'Име на базата или на потребителя';
|
||||
$lng['mysql']['databasedescription'] = 'Описание на базата';
|
||||
$lng['mysql']['database_create'] = 'Създаване на база';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = 'Тук можете да добавите някои екстри, например защита на директориите. <br /> Системата ще има нужда от време, за да приложи новите настройки след всяка промяна.';
|
||||
$lng['extras']['directoryprotection_add'] = 'Добавяне защита на директории';
|
||||
$lng['extras']['view_directory'] = 'показване съдържанието на директорията';
|
||||
$lng['extras']['pathoptions_add'] = 'добавяне опции на пътя';
|
||||
$lng['extras']['directory_browsing'] = 'разглеждане съдържанието на директорията';
|
||||
$lng['extras']['pathoptions_edit'] = 'редактиране опции на пътя';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = 'URL към ErrorDocument 404';
|
||||
$lng['extras']['errordocument403path'] = 'URL към ErrorDocument 403';
|
||||
$lng['extras']['errordocument500path'] = 'URL към ErrorDocument 500';
|
||||
$lng['extras']['errordocument401path'] = 'URL към ErrorDocument 401';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = 'Грешка';
|
||||
$lng['error']['directorymustexist'] = 'Директорията %s трябва да съществува. Моля, създайте я със своя FTP клиент.';
|
||||
$lng['error']['filemustexist'] = 'Файлът %s трябва да съществува.';
|
||||
$lng['error']['allresourcesused'] = 'Вече сте изразходвали всичките си ресурси.';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = 'Не можете да изтриете домейн, който се използва като email домейн.';
|
||||
$lng['error']['domains_canteditdomain'] = 'Не можете да редактиране този домейн. Това е забранено от администратора.';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = 'Не можете да изтриете домейн, който се използва като email домейн. Първо изтрийте всички email адреси.';
|
||||
$lng['error']['firstdeleteallsubdomains'] = 'Първо трябва да изтриете всички поддомейни, за да можете да създадете общ домейн за пренасочване.';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Вече сте дефинирали catchall адрес за този домейн.';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = 'Не можете да изтриете главния си FTP акаунт';
|
||||
$lng['error']['login'] = 'Потребителското име или паролата са грешни. Моля, опитайте отново!';
|
||||
$lng['error']['login_blocked'] = 'Акаунтът е замразен поради твърде много грешни опити за влизане. <br />Моля, опитайте отново след ' . $settings['login']['deactivatetime'] . ' секунди.';
|
||||
$lng['error']['notallreqfieldsorerrors'] = 'Не сте попълнили всичко, или някои от полетата са попълнени неправилно.';
|
||||
$lng['error']['oldpasswordnotcorrect'] = 'Старата ви парола е неправилна.';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = 'Не можете да раздадете повече ресурси, отколкото има отделени за самите вас.';
|
||||
$lng['error']['mustbeurl'] = 'Не сте въвели правилно или пълно url (напр. http://somedomain.com/error404.htm)';
|
||||
$lng['error']['stringisempty'] = 'Липсват въведени данни в поле';
|
||||
$lng['error']['stringiswrong'] = 'Грешни въведени данни в поле';
|
||||
$lng['error']['myloginname'] = '\'Потребителско име\'';
|
||||
$lng['error']['mypassword'] = '\'Парола\'';
|
||||
$lng['error']['oldpassword'] = '\'Стара парола\'';
|
||||
$lng['error']['newpassword'] = '\'Нова парола\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'Нова парола (отново)\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = 'Новата парола и потвърждението не съвпадат';
|
||||
$lng['error']['myname'] = '\'Фамилия\'';
|
||||
$lng['error']['myfirstname'] = '\'Име\'';
|
||||
$lng['error']['emailadd'] = '\'Ел. поща\'';
|
||||
$lng['error']['mydomain'] = '\'Домейн\'';
|
||||
$lng['error']['mydocumentroot'] = '\'Основен път\'';
|
||||
$lng['error']['loginnameexists'] = 'Потребителското име %s вече съществува';
|
||||
$lng['error']['emailiswrong'] = 'Електронният адрес %s съдържа невалидни знаци или е непълен';
|
||||
$lng['error']['loginnameiswrong'] = 'Потребителското име %s съдържа невалидни знаци';
|
||||
$lng['error']['userpathcombinationdupe'] = 'Комбинацията от потребителско име и път вече съществува';
|
||||
$lng['error']['patherror'] = 'Генерална грешка! Пътят не може да бъде празен!';
|
||||
$lng['error']['errordocpathdupe'] = 'Опцията за път %s вече съществува';
|
||||
$lng['error']['adduserfirst'] = 'Моля, първо създайте клиент';
|
||||
$lng['error']['domainalreadyexists'] = 'Домейнът %s вече е даден на клиент';
|
||||
$lng['error']['nolanguageselect'] = 'Не е избран език.';
|
||||
$lng['error']['nosubjectcreate'] = 'Трябва да изберете тема за този шаблон за електронна поща.';
|
||||
$lng['error']['nomailbodycreate'] = 'Трябва да изберете съдържание за този шаблон за електронна поща.';
|
||||
$lng['error']['templatenotfound'] = 'Шаблонът не е открит.';
|
||||
$lng['error']['alltemplatesdefined'] = 'Не можете да дефинирате повече шаблони. Вече се поддържат всички езици.';
|
||||
$lng['error']['wwwnotallowed'] = 'www не е позволено като име на поддомейн.';
|
||||
$lng['error']['subdomainiswrong'] = 'Поддомейнът %s съдържа невалидни знаци.';
|
||||
$lng['error']['domaincantbeempty'] = 'Името на домейн не може да бъде празно.';
|
||||
$lng['error']['domainexistalready'] = 'Домейнът %s вече съществува.';
|
||||
$lng['error']['emailexistalready'] = 'Адресът за електронна поща %s вече съществува.';
|
||||
$lng['error']['maindomainnonexist'] = 'Главният домейн %s не съществува.';
|
||||
$lng['error']['destinationnonexist'] = 'Моля, създайте своeто препращане в полето \'Дестинация\'.';
|
||||
$lng['error']['destinationalreadyexistasmail'] = 'Препращането към %s вече съществува като активен ел. адрес.';
|
||||
$lng['error']['destinationalreadyexist'] = 'Вече сте дефинирали препращач %s .';
|
||||
$lng['error']['destinationiswrong'] = 'Препращачът %s съдържа невалидни знаци или е непълен.';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
$lng['error']['invalidpath'] = 'Не сте избрали валиден URL (или може би проблем с показването съдържание на директория?)';
|
||||
$lng['error']['domainisaliasorothercustomer'] = 'Избраният псевдоним на домейн е или псевдоним сам по себе си, или принадлежи на друг клиент.';
|
||||
$lng['error']['ipstillhasdomains'] = 'Комбинацията от IP и порт все още има домейни, свързани с нея. Моля, прехвърлете ги към друга IP/порт комбинация, преди да изтриете тази.';
|
||||
$lng['error']['cantdeletedefaultip'] = 'Не можете да изтриете комбинацията по подразбиране от IP и порт за риселъри. Моля, направете друга комбинация по подразбиране за риселъри, преди да изтриете тази.';
|
||||
$lng['error']['cantdeletesystemip'] = 'Не можете да изтриете последното системно IP. Можете или да създадете нова IP/порт комбинация за системното IP или да зададете ново системно IP.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'Порт\'';
|
||||
$lng['error']['myipdefault'] = 'Трябва да изберете комбинация от IP и порт по подразбиране.';
|
||||
$lng['error']['myipnotdouble'] = 'Тази комбинация IP/порт вече съществува.';
|
||||
$lng['error']['cantchangesystemip'] = 'Не можете да промените последното системно IP. Можете или да създадете нова IP/порт комбинация за системното IP или да зададете ново системно IP..';
|
||||
$lng['error']['loginnameissystemaccount'] = 'Не можете да създавате сметки, които са подобни на системните. Моля, въведете друго име на сметка.';
|
||||
$lng['error']['sessiontimeoutiswrong'] = 'За "Изтичане на сесия" е позволена само числова стойност.';
|
||||
$lng['error']['maxloginattemptsiswrong'] = 'За "Максимален брой опити за влизане" е позволена само числова стойност.';
|
||||
$lng['error']['deactivatetimiswrong'] = 'За "Време за деактивация" е позволена само числова стойност.';
|
||||
$lng['error']['accountprefixiswrong'] = '"Клиентски префикс" е грешен.';
|
||||
$lng['error']['mysqlprefixiswrong'] = '"SQL префикс" е грешен.';
|
||||
$lng['error']['ftpprefixiswrong'] = '"FTP префикс" е грешен.';
|
||||
$lng['error']['ipiswrong'] = '"IP адрес" е грешен. Позволени са само валидни IP адреси.';
|
||||
$lng['error']['vmailuidiswrong'] = '"UID на поща" е грешен. Позволени са само числови стойности на UID.';
|
||||
$lng['error']['vmailgidiswrong'] = '"GID на поща" е грешен. Позволени са само числови стойности на GID.';
|
||||
$lng['error']['adminmailiswrong'] = '"Адрес на изпращач" е грешен. Позволени са само валидни адреси за e-поща.';
|
||||
$lng['error']['pagingiswrong'] = 'Стойността на "Записи на страница" е грешен. Позволени са само цифрови стойности.';
|
||||
$lng['error']['phpmyadminiswrong'] = 'Връзката съм phpMyAdmin е невалидна.';
|
||||
$lng['error']['webmailiswrong'] = 'Връзката към уеб поща е невалидна.';
|
||||
$lng['error']['webftpiswrong'] = 'Връзката към WebFTP е невалидна.';
|
||||
$lng['error']['stringformaterror'] = 'Стойността в полето "%s" не е в очаквания формат.';
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = 'Таен въпрос';
|
||||
$lng['question']['admin_customer_reallydelete'] = 'Наистина ли искате да изтриете клиент %s? Това е необратимо!';
|
||||
$lng['question']['admin_domain_reallydelete'] = 'Наистина ли искате да изтриете домейн %s?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Наистина ли искате да деактивирате тези настройки на сигурността (OpenBasedir и/или SafeMode)?';
|
||||
$lng['question']['admin_admin_reallydelete'] = 'Наистина ли искате да изтриете администраторът %s? Всеки негов клиент и домейн ще бъдат прикрепени към главния администратор.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'Наистина ли искате да изтриете шаблона \'%s\'?';
|
||||
$lng['question']['domains_reallydelete'] = 'Наистина ли искате да изтриете домейна %s?';
|
||||
$lng['question']['email_reallydelete'] = 'Наистина ли искате да изтриете адреса за електронна поща %s?';
|
||||
$lng['question']['email_reallydelete_account'] = 'Наистина ли искате да изтриете сметката за електронна поща на %s?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = 'Наистина ли искате да изтриете препращането за %s?';
|
||||
$lng['question']['extras_reallydelete'] = 'Наистина ли искате да изтриете защитата на директория %s?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = 'Наистина ли искате да изтриете опциите на пътя %s?';
|
||||
$lng['question']['ftp_reallydelete'] = 'Наистина ли искате да изтриете FTP сметката %s?';
|
||||
$lng['question']['mysql_reallydelete'] = 'Наистина ли искате да изтриете базата данни %s? Това е необратимо!';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = 'Наистина ли искате да изградите отново конфигурационните файлове на bind и apache?';
|
||||
$lng['question']['admin_ip_reallydelete'] = 'Наистина ли искате да изтриете IP адресът %s?';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Сигурни ли сте, че искате главната директория на този домейн да не попада в главната директория на клиента?';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = 'Здравейте,\n\nвашият пощенски акаунт {EMAIL}\nе създаден успешно.\n\nТова съобщение е генерирано автоматично, затова\nмоля, не отговаряйте!\n\nПоздрави, екипът на МНЕТ';
|
||||
$lng['mails']['pop_success']['subject'] = 'Пощенският акаунт е създаден успешно';
|
||||
$lng['mails']['createcustomer']['mailbody'] = 'Здравейте {FIRSTNAME} {NAME},\n\nето информация за вашия акаунт:\n\nПотребителско име: {USERNAME}\nПарола: {PASSWORD}\n\nПоздрави,\nекипът на МНЕТ';
|
||||
$lng['mails']['createcustomer']['subject'] = 'Информация за сметката';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = 'Преглед';
|
||||
$lng['admin']['ressourcedetails'] = 'Използвани ресурси';
|
||||
$lng['admin']['systemdetails'] = 'Системни детайли';
|
||||
$lng['admin']['syscpdetails'] = 'SysCP детайли';
|
||||
$lng['admin']['installedversion'] = 'Инсталирана версия';
|
||||
$lng['admin']['latestversion'] = 'Последна версия';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = 'Потърсете чрез уеб услуга';
|
||||
$lng['admin']['lookfornewversion']['error'] = 'Грешка при четене';
|
||||
$lng['admin']['resources'] = 'Ресурси';
|
||||
$lng['admin']['customer'] = 'Клиент';
|
||||
$lng['admin']['customers'] = 'Клиенти';
|
||||
$lng['admin']['customer_add'] = 'Добавяне на клиент';
|
||||
$lng['admin']['customer_edit'] = 'Редакция на клиент';
|
||||
$lng['admin']['domains'] = 'Домейни';
|
||||
$lng['admin']['domain_add'] = 'Добавяне на домейн';
|
||||
$lng['admin']['domain_edit'] = 'Редакция на домейн';
|
||||
$lng['admin']['subdomainforemail'] = 'Поддомейни като емайл домейни';
|
||||
$lng['admin']['admin'] = 'Администратор';
|
||||
$lng['admin']['admins'] = 'Администратори';
|
||||
$lng['admin']['admin_add'] = 'Добавяне на администратор';
|
||||
$lng['admin']['admin_edit'] = 'Редакция на администратор';
|
||||
$lng['admin']['customers_see_all'] = 'Може ли да вижда всички клиенти?';
|
||||
$lng['admin']['domains_see_all'] = 'Може ли да вижда всички домейни?';
|
||||
$lng['admin']['change_serversettings'] = 'Може ли да променя настройките на сървъра?';
|
||||
$lng['admin']['server'] = 'Сървър';
|
||||
$lng['admin']['serversettings'] = 'Настройки';
|
||||
$lng['admin']['stdsubdomain'] = 'Стандартен поддомейн';
|
||||
$lng['admin']['stdsubdomain_add'] = 'Създаване на стандартен поддомейн';
|
||||
$lng['admin']['deactivated'] = 'Деактивиран';
|
||||
$lng['admin']['deactivated_user'] = 'Деактивирай потребител';
|
||||
$lng['admin']['sendpassword'] = 'Изпрати парола';
|
||||
$lng['admin']['ownvhostsettings'] = 'Собствени настройки на виртуален хост';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = 'Конфигурация';
|
||||
$lng['admin']['configfiles']['files'] = '<b>Конфигурационни файлове:</b> Моля, променете следните файлове или ги създайте със<br />следното съдържание, ако не съществуват.<br /> <b>Внимание:</b> Паролата за MySQL не е сменена поради съображения за сигурност.<br />Моля, сменете "MYSQL_PASSWORD" сами. Ако забравите своята MySQL md,f.d<br />можете да я намерите в "lib/userdata.inc.php".';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>Команди:</b> Моля, изпълнете следните команди в командния ред на обвивката.';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>Restart:</b> Моля, изпълнете следните команди в командния ред на обвивката, за да се презареди новата конфигурация.';
|
||||
$lng['admin']['templates']['templates'] = 'Шаблони';
|
||||
$lng['admin']['templates']['template_add'] = 'Добавяне на шаблон';
|
||||
$lng['admin']['templates']['template_edit'] = 'Редакция на шаблон';
|
||||
$lng['admin']['templates']['action'] = 'Действие';
|
||||
$lng['admin']['templates']['email'] = 'Ел. поща';
|
||||
$lng['admin']['templates']['subject'] = 'Тема';
|
||||
$lng['admin']['templates']['mailbody'] = 'Съдържание';
|
||||
$lng['admin']['templates']['createcustomer'] = 'Поздравителна поща за всички клиенти';
|
||||
$lng['admin']['templates']['pop_success'] = 'Поздравителна поща за нови сметки за ел. поща';
|
||||
$lng['admin']['templates']['template_replace_vars'] = 'Променлива, която да бъде заменена в шаблона:';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = 'Ще бъде заменено с първото име на клиента.';
|
||||
$lng['admin']['templates']['NAME'] = 'Ще бъде заменено с името на клиента.';
|
||||
$lng['admin']['templates']['USERNAME'] = 'Ще бъде заменено с потребителското име на клиента.';
|
||||
$lng['admin']['templates']['PASSWORD'] = 'Ще бъде заменено с паролата за сметката на клиента.';
|
||||
$lng['admin']['templates']['EMAIL'] = 'Ще бъде заменено със сметка за POP3/IMAP.';
|
||||
$lng['admin']['rebuildconf'] = 'Възстановяване на конфигурационни файлове';
|
||||
$lng['admin']['cronlastrun'] = 'Последен cron';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = 'IP адреси и портове';
|
||||
$lng['admin']['ipsandports']['add'] = 'Добавяне на IP/порт';
|
||||
$lng['admin']['ipsandports']['edit'] = 'Редакция на на IP/порт';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/порт';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = 'Порт';
|
||||
$lng['admin']['memorylimitdisabled'] = 'Забранен';
|
||||
$lng['admin']['valuemandatory'] = 'Тази стойност е задължителна';
|
||||
$lng['admin']['valuemandatorycompany'] = 'Трябва да бъдат попълнени или "фамилия" и "първо име" or "фирма"';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = 'Изтичане на сесия';
|
||||
$lng['serversettings']['session_timeout']['description'] = 'Колко дълго трябва да е неактивен един потребител, преди сесията да стане невалидна (в секунди)?';
|
||||
$lng['serversettings']['accountprefix']['title'] = 'Префикс на клиент';
|
||||
$lng['serversettings']['accountprefix']['description'] = 'Какъв ще бъде префикса на сметките на клиенти?';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'SQL префикс';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = 'Какъв префикс ще имат сметките за MySQL?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'FTP префикс';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'Какъв префикс ще имат сметките за FTP?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = 'Директория за документи';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = 'Къде ще се съхраняват всички данни?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = 'Директория за журнални файлове';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = 'Къде ще се съхраняват всички журнални файлове?';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP адрес';
|
||||
$lng['serversettings']['ipaddress']['description'] = 'Какъв е IP адресът на този сървър?';
|
||||
$lng['serversettings']['hostname']['title'] = 'Име на хост';
|
||||
$lng['serversettings']['hostname']['description'] = 'Какво е името на хост на този сървър?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = 'Команда за презареждане на apache';
|
||||
$lng['serversettings']['apachereload_command']['description'] = 'Каква е командата за презареждане на apache?';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = 'Конфигурационна директория на Bind';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = 'Къде се намират конфигурационните файлове на bind?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = 'Команда за презареждане на bind';
|
||||
$lng['serversettings']['bindreload_command']['description'] = 'Каква е командата за презареждане на bind?';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = 'Зона по подразбиране на Bind';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = 'Какво е името на зоната по подразбиране?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = 'UID на пощите';
|
||||
$lng['serversettings']['vmail_uid']['description'] = 'Какво ще бъде потребителското ID на пощите?';
|
||||
$lng['serversettings']['vmail_gid']['title'] = 'GID на пощите';
|
||||
$lng['serversettings']['vmail_gid']['description'] = 'Какво ще бъде груповото ID на пощите?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = 'Директория за пощи';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = 'Къде ще се съхраняват всички пощи?';
|
||||
$lng['serversettings']['adminmail']['title'] = 'Изпращач';
|
||||
$lng['serversettings']['adminmail']['description'] = 'Какъв ще бъде адреса на изпращача на всички пощи от този панел?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = 'Какъв е адресът на phpMyAdmin? (трябва да започва с http://)';
|
||||
$lng['serversettings']['webmail_url']['title'] = 'Адрес на уеб поща';
|
||||
$lng['serversettings']['webmail_url']['description'] = 'Какъв е адресът на уеб пощата? (трябва да започва с http://)';
|
||||
$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = 'Какъв е адресът на WebFTP? (трябва да започва с http://)';
|
||||
$lng['serversettings']['language']['description'] = 'Какъв е езикът по подразбиране на вашия сървър?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = 'Максимален брой опити за влизане';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = 'Максимален брой неуспешни опити за влизане, преди сметката да бъде деактивирана.';
|
||||
$lng['serversettings']['deactivatetime']['title'] = 'Продължителност на деактивацията';
|
||||
$lng['serversettings']['deactivatetime']['description'] = 'Време в секунди, за което ще бъде деактивирана дадена сметка при прекалено голям брой неуспешни опити за влизане.';
|
||||
$lng['serversettings']['pathedit']['title'] = 'Тип на въвеждането на пътя';
|
||||
$lng['serversettings']['pathedit']['description'] = 'Пътят да бъде избиран посредством падащо меню или поле за вход?';
|
||||
$lng['serversettings']['paging']['title'] = 'Записи на страница';
|
||||
$lng['serversettings']['paging']['description'] = 'Колко записа да бъдат показвани на страница? (0 = забранява странирането)';
|
||||
$lng['serversettings']['defaultip']['title'] = 'IP/порт по подразбиране';
|
||||
$lng['serversettings']['defaultip']['description'] = 'Коя е комбинацията IP/порт по подразбиране?';
|
||||
|
||||
?>
|
||||
|
||||
1398
lng/czech.lng.php
1398
lng/czech.lng.php
File diff suppressed because it is too large
Load Diff
2494
lng/english.lng.php
2494
lng/english.lng.php
File diff suppressed because it is too large
Load Diff
2456
lng/german.lng.php
2456
lng/german.lng.php
File diff suppressed because it is too large
Load Diff
@@ -1,469 +1,469 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Laszlo (Laci) Puchner <puchnerl@konyvbroker.hu>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: hungarian.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Puchner László';
|
||||
$lng['panel']['edit'] = 'szerkeszt';
|
||||
$lng['panel']['delete'] = 'töröl';
|
||||
$lng['panel']['create'] = 'létrehoz';
|
||||
$lng['panel']['save'] = 'ment';
|
||||
$lng['panel']['yes'] = 'igen';
|
||||
$lng['panel']['no'] = 'nem';
|
||||
$lng['panel']['emptyfornochanges'] = 'változtatásig üres';
|
||||
$lng['panel']['emptyfordefault'] = 'alapértelmezésben üres';
|
||||
$lng['panel']['path'] = 'Útvonal';
|
||||
$lng['panel']['toggle'] = 'Átkapcsol';
|
||||
$lng['panel']['next'] = 'következő';
|
||||
$lng['panel']['dirsmissing'] = 'Könyvtár nem található vagy nem olvasható!';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = 'Felhasználónév';
|
||||
$lng['login']['password'] = 'Jelszó';
|
||||
$lng['login']['language'] = 'Nyelv';
|
||||
$lng['login']['login'] = 'Bejelentkezés';
|
||||
$lng['login']['logout'] = 'Kijelentkezés';
|
||||
$lng['login']['profile_lng'] = 'Profile nyelve';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = 'Kezdőkönyvtár';
|
||||
$lng['customer']['name'] = 'Név';
|
||||
$lng['customer']['firstname'] = 'Keresztnév';
|
||||
$lng['customer']['company'] = 'Cégnév';
|
||||
$lng['customer']['street'] = 'Utca';
|
||||
$lng['customer']['zipcode'] = 'Irányítószám';
|
||||
$lng['customer']['city'] = 'Település';
|
||||
$lng['customer']['phone'] = 'Telefon';
|
||||
$lng['customer']['fax'] = 'Fax';
|
||||
$lng['customer']['email'] = 'E-mail';
|
||||
$lng['customer']['customernumber'] = 'Felhasználó-azonosító';
|
||||
$lng['customer']['diskspace'] = 'Tárhely (MB)';
|
||||
$lng['customer']['traffic'] = 'Forgalom (GB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL-Adatbázis';
|
||||
$lng['customer']['emails'] = 'E-mail címek';
|
||||
$lng['customer']['accounts'] = 'E-mail fiókok';
|
||||
$lng['customer']['forwarders'] = 'E-mail továbbítók';
|
||||
$lng['customer']['ftps'] = 'FTP fiókok';
|
||||
$lng['customer']['subdomains'] = 'Aldomain(ek)';
|
||||
$lng['customer']['domains'] = 'Domain(ek)';
|
||||
$lng['customer']['unlimited'] = 'korlátlan';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = 'Főmenü';
|
||||
$lng['menue']['main']['changepassword'] = 'Jelszócsere';
|
||||
$lng['menue']['main']['changelanguage'] = 'Nyelv-változtatás';
|
||||
$lng['menue']['email']['email'] = 'E-mail';
|
||||
$lng['menue']['email']['emails'] = 'Címek';
|
||||
$lng['menue']['email']['webmail'] = 'WebMail';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = 'Adatbázisok';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = 'Domainek';
|
||||
$lng['menue']['domains']['settings'] = 'Beállítások';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = 'Fiókok';
|
||||
$lng['menue']['ftp']['webftp'] = 'WebFTP';
|
||||
$lng['menue']['extras']['extras'] = 'Extrák';
|
||||
$lng['menue']['extras']['directoryprotection'] = 'Könyvtárvédelem';
|
||||
$lng['menue']['extras']['pathoptions'] = 'Útvonal opciók';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = 'Felhasználói adatok';
|
||||
$lng['index']['accountdetails'] = 'Fiók adatok';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = 'Régi jelszó';
|
||||
$lng['changepassword']['new_password'] = 'Új jelszó';
|
||||
$lng['changepassword']['new_password_confirm'] = 'Új jelszó (megerősítés)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = 'Új jelszó (üres = nem változik)';
|
||||
$lng['changepassword']['also_change_ftp'] = ' a fő FTP fiók jelszav&aat is megváltoztatja';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = 'Itt hozhat létre (al-)domaineket és megváltoztathatja azok útvonalait.<br />A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.';
|
||||
$lng['domains']['domainsettings'] = 'Domain beállítások';
|
||||
$lng['domains']['domainname'] = 'Domain n<>v';
|
||||
$lng['domains']['subdomain_add'] = '(Al-)domain létrehozása';
|
||||
$lng['domains']['subdomain_edit'] = '(Al-)domain szerkesztése';
|
||||
$lng['domains']['wildcarddomain'] = 'Helyettesítőként hozza létre?';
|
||||
$lng['domains']['aliasdomain'] = 'Domain alias (álnév)';
|
||||
$lng['domains']['noaliasdomain'] = 'Nincs domain alias (álnév)';
|
||||
|
||||
/**
|
||||
* E-mails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = 'Itt hozhatja létre és módosíthatja e-mail címeit.<br />Egy fiók olyan, mint az Ön postaládája a ház előtt. Ha valaki küld Önnek egy e-mailt, az a postaládába érkezik meg.<br /><br />Az e-mailek letöltéséhez állísa be levelező-programját az alábbiak szerint: (A <i>dőltbetűs</i> adatokat változtassa meg azok alapján, amelyeket beírt!)<br />Szerver (host) neve: <b><i>Domain név</i></b><br />felhasználón&eav: <b><i>Postafiók neve / e-mail cím</i></b><br />Jelszó: <b><i>A jelszó, amelyet választott</i></b>';
|
||||
$lng['emails']['emailaddress'] = 'E-mail cím';
|
||||
$lng['emails']['emails_add'] = 'E-mail cím létrehozása';
|
||||
$lng['emails']['emails_edit'] = 'E-mail cím szerkesztése';
|
||||
$lng['emails']['catchall'] = 'Gyűjtő';
|
||||
$lng['emails']['iscatchall'] = 'Beállítja gyűjtő címként?';
|
||||
$lng['emails']['account'] = 'Fiók';
|
||||
$lng['emails']['account_add'] = 'Fiók létrehozása';
|
||||
$lng['emails']['account_delete'] = 'Fiók törlése';
|
||||
$lng['emails']['from'] = 'Feladó';
|
||||
$lng['emails']['to'] = 'Cím';
|
||||
$lng['emails']['forwarders'] = 'Továbbítók';
|
||||
$lng['emails']['forwarder_add'] = 'Továbbító létrehozása';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = 'Itt hozhatja létre és módosíthatja FTP fiókjait.<br />A változások azonnal érvénybe lépnek és használhatók.';
|
||||
$lng['ftp']['account_add'] = 'Fiók létrehozása';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['databasename'] = 'felhasználó/adatbázis neve';
|
||||
$lng['mysql']['databasedescription'] = 'adatbázis leírása';
|
||||
$lng['mysql']['database_create'] = 'Adatbázis létrehozása';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = 'Itt állíthat be egyebeket, pl. könyvtárvédelmet.<br />A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.';
|
||||
$lng['extras']['directoryprotection_add'] = 'Könyvtárvédelem hozzáadása';
|
||||
$lng['extras']['view_directory'] = 'A könyvtár tartalmának megmutatása';
|
||||
$lng['extras']['pathoptions_add'] = 'Útvonal opciók hozzáadása';
|
||||
$lng['extras']['directory_browsing'] = 'A könyvtár tartalmána böngészése';
|
||||
$lng['extras']['pathoptions_edit'] = 'Útvonal opciók szerkesztése';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = 'A 404-es hibaüzenet URL-je';
|
||||
$lng['extras']['errordocument403path'] = 'A 403-as hibaüzenet URL-je';
|
||||
$lng['extras']['errordocument500path'] = 'A 500-as hibaüzenet URL-je';
|
||||
$lng['extras']['errordocument401path'] = 'A 401-es hibaüzenet URL-je';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = 'Hiba';
|
||||
$lng['error']['directorymustexist'] = 'Léteznie kell a %s könyvtárnak. Kérem, hozza létre FTP cliensével.';
|
||||
$lng['error']['filemustexist'] = 'Léteznie kell a %sfájlnak.';
|
||||
$lng['error']['allresourcesused'] = 'Ön már minden erőforrását felhasználta.';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak.';
|
||||
$lng['error']['domains_canteditdomain'] = 'Nem szerkeszthati ezt a domain nevet. Az adminisztrátor letiltotta.';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak. Töröljön ki minden e-mail címet előbb.';
|
||||
$lng['error']['firstdeleteallsubdomains'] = 'Mielőtt létrehozna egy gyűjtő-domaint, törölnie kell az összes al-domaint.';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Ön már meghatározott egy gyűjtőt erre a domain-re.';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = 'Nem törölheti fő FTP hozzáférését.';
|
||||
$lng['error']['login'] = 'Helytelen a felhasználónév vagy a jelszó, amelyet begépelt. Kérem, próbálja újra!';
|
||||
$lng['error']['login_blocked'] = 'Ezt a hozzáférés fel lett függesztve a túl sok bejelentkezési hiba miatt. Kérem, próbálja újra!';
|
||||
$settings['login']['deactivatetime'] . ' seconds.';
|
||||
$lng['error']['notallreqfieldsorerrors'] = 'Nem teljesen vagy helytelenül töltötte ki a mezőket.';
|
||||
$lng['error']['oldpasswordnotcorrect'] = 'A régi jelszó helytelen.';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = 'Nem oszthat ki több erőforrást, mint amennyit birtokol.';
|
||||
$lng['error']['mustbeurl'] = 'Nem teljes vagy nem érvényes URL-t (pl.: http://somedomain.com/error404.htm) gépelt be';
|
||||
$lng['error']['invalidpath'] = 'Nem választott ki érvényes URL-t (lehet, hogy probléma van a könyvtárlistázással?).';
|
||||
$lng['error']['stringisempty'] = 'A mezőben nincs adat.';
|
||||
$lng['error']['stringiswrong'] = 'A mezőben helytelen adat van.';
|
||||
$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\'';
|
||||
$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\'';
|
||||
$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\'';
|
||||
$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = 'Az új jelszó és annak megerősítése nem egyezik meg.';
|
||||
$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\'';
|
||||
$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\'';
|
||||
$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\'';
|
||||
$lng['error']['mydomain'] = '\'Domain\'';
|
||||
$lng['error']['mydocumentroot'] = '\'Dokumentum útvonal\'';
|
||||
$lng['error']['loginnameexists'] = 'A(z) %s felhasználónév már létezik';
|
||||
$lng['error']['emailiswrong'] = 'A(z) %s e-mail cím érvénytelen karaktereket tartalmaz vagy nem teljes.';
|
||||
$lng['error']['loginnameiswrong'] = 'A(z) %s felhasználónév érvénytelen karaktereket tartalmaz.';
|
||||
$lng['error']['userpathcombinationdupe'] = 'A felhasználónév és útvonal kombinációja már létezik.';
|
||||
$lng['error']['patherror'] = 'Általános hiba! Az útvonal nem lehet üres.';
|
||||
$lng['error']['errordocpathdupe'] = 'A(z) %s útvonalra vonatkozó opció már létezik.';
|
||||
$lng['error']['adduserfirst'] = 'Kérem, előbb hozzon létre egy felhasználót!';
|
||||
$lng['error']['domainalreadyexists'] = 'A(z) %s domain név már hozzá van rendelve egy felhasználóhoz.';
|
||||
$lng['error']['nolanguageselect'] = 'Nincs kiválasztott nyelv.';
|
||||
$lng['error']['nosubjectcreate'] = 'Meg kell határoznia egy tárgyat ehhez a sablonhoz.';
|
||||
$lng['error']['nomailbodycreate'] = 'Meg kell határoznia az üzenet szövegét ehhez a sablonhoz.';
|
||||
$lng['error']['templatenotfound'] = 'A sablon nem található.';
|
||||
$lng['error']['alltemplatesdefined'] = 'Nem készíthet több sablont, már minden nyelv támogatva van.';
|
||||
$lng['error']['wwwnotallowed'] = 'a www előtag al-domaineknél nem használható.';
|
||||
$lng['error']['subdomainiswrong'] = 'A(z) %s al-domain érvénytelen karaktereket tartalmaz.';
|
||||
$lng['error']['domaincantbeempty'] = 'A domain neve nem lehet üres.';
|
||||
$lng['error']['domainexistalready'] = 'A(z) %s domain már létezik.';
|
||||
$lng['error']['domainisaliasorothercustomer'] = 'A választott domain álnév (alias) vagy maga is domain álnév, vagy más felhasználóhoz tartozik.';
|
||||
$lng['error']['emailexistalready'] = 'A(z) %s e-mail cím már létezik.';
|
||||
$lng['error']['maindomainnonexist'] = 'A(z) %s fő domain nem létezik.';
|
||||
$lng['error']['destinationnonexist'] = 'Kérem, levél-továbbítóját a \'Cél\' mappában hozza létre.';
|
||||
$lng['error']['destinationalreadyexistasmail'] = 'A(z) %s továbbító már létezik mint aktív e-mail cím.';
|
||||
$lng['error']['destinationalreadyexist'] = 'Ön már létrehozott egy továbbítót ehhez: %s .';
|
||||
$lng['error']['destinationiswrong'] = 'A(z) %s továbbító érvénytelen karakter(eke)t tartalmaz vagy nem teljes.';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = 'Biztonsági kérdés';
|
||||
$lng['question']['admin_customer_reallydelete'] = 'Tényleg törölni akarja a(z) %s felhasználót? Ezt a lépést nem lehet visszavonni!';
|
||||
$lng['question']['admin_domain_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Tényleg hatástalanítani akarja ezeket a biztonsági beállításokat (OpenBasedir és/vagy SafeMode)?';
|
||||
$lng['question']['admin_admin_reallydelete'] = 'Tényleg törölni akarja a(z) %s adminisztrátort? Minden hozzá tartozó felhasználó és domain a főadminisztrátorhoz lesz rendelve.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'Tényleg törölni akarja a(z) \'%s\' sablont?';
|
||||
$lng['question']['domains_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain-t?';
|
||||
$lng['question']['email_reallydelete'] = 'Tényleg törölni akarja a(z) %s e-mail címet?';
|
||||
$lng['question']['email_reallydelete_account'] = 'Tényleg törölni akarja a(z) %s e-mail postafiókot?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = 'Tényleg törölni akarja a(z) %s továbbítót?';
|
||||
$lng['question']['extras_reallydelete'] = 'Tényleg törölni akarja a(z) %s könyvtár-védelmét?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = 'Tényleg törölni akarja a(z) %s útvonal-beállításait?';
|
||||
$lng['question']['ftp_reallydelete'] = 'Tényleg törölni akarja a(z) %s FTP hozzáférést?';
|
||||
$lng['question']['mysql_reallydelete'] = 'Tényleg törölni szeretné a(z) adatbázist? Ez a lépés nem vonható vissza!';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = 'Tényleg újra szeretné építeni az Apache és Bind konfigurációs állományait?';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = 'Üdvözlöm!\n\nE-mail fiókja {EMAIL} létrejött.\n\nEz egy automatikusan küldött\ne-mail, kérem, ne válaszoljon rá!\n\nTisztelettel: a SysCP csapata';
|
||||
$lng['mails']['pop_success']['subject'] = 'E-mail fiók létrehozva.';
|
||||
$lng['mails']['createcustomer']['mailbody'] = 'Tisztelt {FIRSTNAME} {NAME}!\n\nAz Ön postafiók adatai:\n\nFelhasználónév: {USERNAME}\nJelszó: {PASSWORD}\n\nKöszönjük:\na SysCP csapata';
|
||||
$lng['mails']['createcustomer']['subject'] = 'Postafiók információ';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = 'Áttekintés';
|
||||
$lng['admin']['ressourcedetails'] = 'Felhasznált erőforrások';
|
||||
$lng['admin']['systemdetails'] = 'Rendszeradatok';
|
||||
$lng['admin']['syscpdetails'] = 'SysCP adatok';
|
||||
$lng['admin']['installedversion'] = 'Installált Verzió';
|
||||
$lng['admin']['latestversion'] = 'Legutolsó verzió';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = 'keres<65>s a webszervizen keresztül';
|
||||
$lng['admin']['lookfornewversion']['error'] = 'Olvasási hiba';
|
||||
$lng['admin']['resources'] = 'Erőforrások';
|
||||
$lng['admin']['customer'] = 'Felhasznál<>';
|
||||
$lng['admin']['customers'] = 'Felhasznál<>k';
|
||||
$lng['admin']['customer_add'] = 'Felhasznál<> hozzáadása';
|
||||
$lng['admin']['customer_edit'] = 'Felhasznál<> szerkesztése';
|
||||
$lng['admin']['domains'] = 'Domainek';
|
||||
$lng['admin']['domain_add'] = 'Domain hozzáadása';
|
||||
$lng['admin']['domain_edit'] = 'Domain szerkesztése';
|
||||
$lng['admin']['subdomainforemail'] = 'Aldomainek mint e-mail-domainek';
|
||||
$lng['admin']['admin'] = 'Adminisztrátor';
|
||||
$lng['admin']['admins'] = 'Adminisztrátorok';
|
||||
$lng['admin']['admin_add'] = 'Adminisztrátor hozzáadása';
|
||||
$lng['admin']['admin_edit'] = 'Adminisztrátor szerkesztése';
|
||||
$lng['admin']['customers_see_all'] = 'Láthatja az összes felhasználót?';
|
||||
$lng['admin']['domains_see_all'] = 'Láthatja az összes domaint?';
|
||||
$lng['admin']['change_serversettings'] = 'Megváltoztathatja a szerver beállításait?';
|
||||
$lng['admin']['server'] = 'Szerver';
|
||||
$lng['admin']['serversettings'] = 'Beállítások';
|
||||
$lng['admin']['rebuildconf'] = 'A konfig. fájlok újraírása';
|
||||
$lng['admin']['stdsubdomain'] = 'Egyszerű aldomain';
|
||||
$lng['admin']['stdsubdomain_add'] = 'Egyszerű aldomain hozzáadása';
|
||||
$lng['admin']['deactivated'] = 'Kikapcsolva';
|
||||
$lng['admin']['deactivated_user'] = 'Felhasznál<> kikapcsolása';
|
||||
$lng['admin']['sendpassword'] = 'Jelszó k<>ldése';
|
||||
$lng['admin']['ownvhostsettings'] = 'Saját vHost beállítások';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguráció';
|
||||
$lng['admin']['configfiles']['files'] = '<b>Konfig. fájlok:</b> Kérem, változtassa meg a következő f<>jlokat, vagy - ha m<>g nem l<>teznek - hozza l<>tre őket a k<>vetkező tartalommal.<br /><b>Fontos:</b> A MySQL jelszó biztonsági okokból nem lesz kicserélve. Kérem, cserélje ki a "MYSQL_PASSWORD"-öt! Ha elfelejtette a NySQL jelszót, megtalálja a "lib/userdata.inc.php" fájlban.';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>Parancsok:</b> Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell)!';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>Újraindítás:</b> Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell), hogy az új konfiguráció betöltődjön.';
|
||||
$lng['admin']['templates']['templates'] = 'Sablonok';
|
||||
$lng['admin']['templates']['template_add'] = 'Sablon hozzáadása';
|
||||
$lng['admin']['templates']['template_edit'] = 'Sablon szerkesztése';
|
||||
$lng['admin']['templates']['action'] = 'Alkalom';
|
||||
$lng['admin']['templates']['email'] = 'E-mail';
|
||||
$lng['admin']['templates']['subject'] = 'Tárgy';
|
||||
$lng['admin']['templates']['mailbody'] = 'Szövegrörzs';
|
||||
$lng['admin']['templates']['createcustomer'] = 'Üdvözlő levél új felhasználóknak';
|
||||
$lng['admin']['templates']['pop_success'] = 'Üdvözlő levél új fiók esetén';
|
||||
$lng['admin']['templates']['template_replace_vars'] = 'A sablonban használható változók';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = 'A felhasználó keresztneve ';
|
||||
$lng['admin']['templates']['NAME'] = 'A felhasználó neve ';
|
||||
$lng['admin']['templates']['USERNAME'] = 'A felhasználó felhasználóneve';
|
||||
$lng['admin']['templates']['PASSWORD'] = 'A felhasználó felhasználóneve jelszava';
|
||||
$lng['admin']['templates']['EMAIL'] = 'A POP3/IMAP fiók címe.';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = 'Munkamenet időtúllépés';
|
||||
$lng['serversettings']['session_timeout']['description'] = 'Mennyi idő múlva váljon a munkamenet érvénytelenné a felhasználó utolsó tevékenységétől (másodperc)?';
|
||||
$lng['serversettings']['accountprefix']['title'] = 'Felhasználói előtag';
|
||||
$lng['serversettings']['accountprefix']['description'] = 'Milyen előtaggal legyenek a felhasználói hozzáférések ellátva?';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'SQL előtag';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = 'Melyen előtaggal legyenek a mysql hozzáférések ellátva?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'FTP előtag';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'Milyen előtaggal legyenek az FTP hozzáférések ellátva?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = 'Documentum könyvtár';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = 'Hol legyen minen adat tárolva?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = 'Naplófájlok könyvtára';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = 'Hol legyen minden naplófájl tárolva?';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP cím';
|
||||
$lng['serversettings']['ipaddress']['description'] = 'Mi az IP címe ennek a szervernek?';
|
||||
$lng['serversettings']['hostname']['title'] = 'Hostnév (gépnév)';
|
||||
$lng['serversettings']['hostname']['description'] = 'Mi legyen a neve ennek a szervernek?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = 'Apache újraindítási parancs';
|
||||
$lng['serversettings']['apachereload_command']['description'] = 'Mi az Apache újraindítási parancsa?';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = 'Bind konfigurációs könyvtár';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = 'Hol vannak a Bind konfigurációs állományok?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = 'Bind újraindítási parancs';
|
||||
$lng['serversettings']['bindreload_command']['description'] = 'Mi a Bind újraindítási parancsa?';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = 'Bind alapértelmezett zóna';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = 'Mi az alapértelmezett zóna neve?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = 'E-mail felhasználó-azonosító (UID)';
|
||||
$lng['serversettings']['vmail_uid']['description'] = 'Melyik felhasználó-azonosítót (UserID) használják a levelek?';
|
||||
$lng['serversettings']['vmail_gid']['title'] = 'E-mail csoport-azonosító (GID)';
|
||||
$lng['serversettings']['vmail_gid']['description'] = 'Melyik csoport-azonosítót (GroupID) használják a levelek?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = 'E-mail könyvtár';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = 'Hol legyenek az e-mailek tárolva?';
|
||||
$lng['serversettings']['adminmail']['title'] = 'Feladó';
|
||||
$lng['serversettings']['adminmail']['description'] = 'Ki legyen a feladója a panelről küldött leveleknek?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = 'Mi a phpMyAdmin URL-je? (http://-vel kell kezdődnie)';
|
||||
$lng['serversettings']['webmail_url']['title'] = 'WebMail URL';
|
||||
$lng['serversettings']['webmail_url']['description'] = 'Mi a WebMail URL-je? (http://-vel kell kezdődnie)';
|
||||
$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = 'Mi a WebFTP URL-je? (http://-vel kell kezdődnie)';
|
||||
$lng['serversettings']['language']['description'] = 'Mi a szerver alapértelmezett nyelve?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = 'Maximális bejelentkezési kísérlet';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = 'Bejelentkezési kísérletek maximális száma, mielőtt a hozzáférés zárolva lesz.';
|
||||
$lng['serversettings']['deactivatetime']['title'] = 'Zárlat-idő';
|
||||
$lng['serversettings']['deactivatetime']['description'] = 'Az időszak (másodpercekben), ameddig a túl sok bejelentkezési kísérlet után a hozzáférés zárolva lesz.';
|
||||
$lng['serversettings']['pathedit']['title'] = 'Az útvonal-megadás típusa';
|
||||
$lng['serversettings']['pathedit']['description'] = 'Legördülő menü vagy beviteli mező segítségével lesznek az útvonalak kiválasztva?';
|
||||
|
||||
/**
|
||||
* CHANGED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = 'Itt hozhatja létre és változtathatja meg MySQL adatbázisait. <br />
|
||||
A változások azonnal érvényre jutnak, és az adatbázis rögtön használható.<br />
|
||||
A bal oldali menüben megtalálja a phpMyAdmin eszközt, amellyel könnyedén kezelheti adatbázisát.<br />
|
||||
<br />Saját PHP kódjaiból a következő beállításokkal férhet hozzá adatbázisához: (A <i>dőltbetűs</i> adatokat helyettesítenie kell az Ön által megadottakkal!)<br /> Hostnév: <b> <SQL_HOST></b><br />
|
||||
Felhasználónév: <b><i>Adatbázisnév</i></b><br />Jelszó: <b><i>a jelszó, amelyet Ön kiválasztott </i></b><br />Adatbázis: <b><i>Adatbázisnév</i></b>';
|
||||
|
||||
/**
|
||||
* ADDED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['admin']['cronlastrun'] = 'Utolsó Cron futás';
|
||||
$lng['serversettings']['paging']['title'] = 'Bejegyzések száma egy lapon';
|
||||
$lng['serversettings']['paging']['description'] = 'Hány bejegyzés jelenjen meg egy lapon? (0 = lapozás kikapcsolása)';
|
||||
$lng['error']['ipstillhasdomains'] = 'A törölni kívánt IP/Port kombinációhoz domainek vannak rendelve. Rendelje hozzá ezeket egy másik IP/Port kombinációhoz, mielőtt a jelenlegi IP/Port kombinációt törli.';
|
||||
$lng['error']['cantdeletedefaultip'] = 'Nem törölheti az alapértelmezett viszonteladói IP/Port kombinációt. Hozzon létre új alapértelmezett IP/Port kombinációt a viszonteladóknak, mielőtt ezt az IP/Port kombinációt törli.';
|
||||
$lng['error']['cantdeletesystemip'] = 'Nem törölheti a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'Port\'';
|
||||
$lng['error']['myipdefault'] = 'Választania kell egy IP/Port kombinációt alapértelmezésnek.';
|
||||
$lng['error']['myipnotdouble'] = 'Ez az IP/Port kombináció már létezik.';
|
||||
$lng['question']['admin_ip_reallydelete'] = 'Valóban törölni akarja a(z) %s IP címet?';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = 'IP címek és Portok';
|
||||
$lng['admin']['ipsandports']['add'] = 'IP/Port hozzáadása';
|
||||
$lng['admin']['ipsandports']['edit'] = 'IP/Port szerkesztése';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/Port';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = 'Port';
|
||||
|
||||
// ADDED IN 1.2.13-rc3
|
||||
|
||||
$lng['error']['cantchangesystemip'] = 'Nem változtathatja meg a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Biztos, hogy a dokumentum gyökerét (root) rendeli ehhez a domainhez, nem pedig a felhasználói könyvtárban marad?';
|
||||
|
||||
// ADDED IN 1.2.14-rc1
|
||||
|
||||
$lng['admin']['memorylimitdisabled'] = 'Letiltva';
|
||||
$lng['domain']['openbasedirpath'] = 'OpenBasedir útvonal';
|
||||
$lng['domain']['docroot'] = 'Útvonal a a fenti mezőből';
|
||||
$lng['domain']['homedir'] = 'Kezdőkönyvtár';
|
||||
$lng['admin']['valuemandatory'] = 'Ez a mező kötelező';
|
||||
$lng['admin']['valuemandatorycompany'] = 'Vagy a "név" és "keresztnév", vagy a "cégnév" mezőt ki kell tölteni.';
|
||||
$lng['menue']['main']['username'] = 'Bejelentkezve mint: ';
|
||||
$lng['panel']['urloverridespath'] = 'URL (figyelmen kívül hagyja az útvonalat)';
|
||||
$lng['panel']['pathorurl'] = 'Útvonal az URL-hez';
|
||||
$lng['error']['sessiontimeoutiswrong'] = 'Csak numerikus "Munkamenet Időtúllépés"adható meg.';
|
||||
$lng['error']['maxloginattemptsiswrong'] = 'Csak numerikus "Maximális Bejelentkezési Kísérlet"adható meg. ';
|
||||
$lng['error']['deactivatetimiswrong'] = 'Csak numerikus "Kikapcsolási Idő" adható meg.';
|
||||
$lng['error']['accountprefixiswrong'] = 'A "Felhasználói Előtag" helytelen.';
|
||||
$lng['error']['mysqlprefixiswrong'] = 'Az "SQL Előtag" helytelen.';
|
||||
$lng['error']['ftpprefixiswrong'] = 'Az "FTP Előtag "helytelen.';
|
||||
$lng['error']['ipiswrong'] = 'Az "IP Cím" helytelen. Csak érvényes IPcím adható meg.';
|
||||
$lng['error']['vmailuidiswrong'] = 'A "Levelezési Felhasználó-azonosító (LFA) " helytelen. Csak numerikus LFA adható meg.';
|
||||
$lng['error']['vmailgidiswrong'] = 'A "Levelezési GID " helytelen. Csak numerikus GID adható meg.';
|
||||
$lng['error']['adminmailiswrong'] = 'A "Feladó Címe " helytelen. Csak érvényes e-mail cím adható meg.';
|
||||
$lng['error']['pagingiswrong'] = 'A "Laponkénti Bejegyzés " értéke helytelen. Csak numerikus karaktereket lehet megadni..';
|
||||
$lng['error']['phpmyadminiswrong'] = 'A phpMyAdmin hivatkozás érvénytelen.';
|
||||
$lng['error']['webmailiswrong'] = 'A WebMail hivatkozás érvénytelen.';
|
||||
$lng['error']['webftpiswrong'] = 'A WebFTP hivatkozás érvénytelen';
|
||||
$lng['domains']['hasaliasdomains'] = 'Alias (al-)domainjei';
|
||||
$lng['serversettings']['defaultip']['title'] = 'Alapértelmezett IP/Port';
|
||||
$lng['serversettings']['defaultip']['description'] = 'Mi az alapértelmezett IP/Port kombináció?';
|
||||
$lng['domains']['statstics'] = 'Használati statisztika';
|
||||
$lng['panel']['ascending'] = 'növekvő';
|
||||
$lng['panel']['decending'] = 'cs<63>kkenő';
|
||||
$lng['panel']['search'] = 'Keresés';
|
||||
$lng['panel']['used'] = 'felhasznált';
|
||||
|
||||
// ADDED IN 1.2.14-rc3
|
||||
|
||||
$lng['panel']['translator'] = 'Fordító';
|
||||
|
||||
// ADDED IN 1.2.14-rc4
|
||||
|
||||
$lng['error']['stringformaterror'] = 'A "%s" mező értéke nem megfelelő formátumú.';
|
||||
|
||||
// ADDED IN 1.2.15-rc1
|
||||
|
||||
$lng['admin']['serversoftware'] = 'Szerverszoftver';
|
||||
$lng['admin']['phpversion'] = 'PHP verzió';
|
||||
$lng['admin']['phpmemorylimit'] = 'PHP memória korlát';
|
||||
$lng['admin']['mysqlserverversion'] = 'MySQL szerver verzió';
|
||||
$lng['admin']['mysqlclientversion'] = 'MySQL kliens verzió';
|
||||
$lng['admin']['webserverinterface'] = 'Webszerver Interfész';
|
||||
$lng['domains']['isassigneddomain'] = 'Hozzárendelt domain';
|
||||
$lng['serversettings']['phpappendopenbasedir']['title'] = 'Az OpenBasedir-hez csatolt útvonalak';
|
||||
$lng['serversettings']['phpappendopenbasedir']['description'] = 'Ezek az útvonalak (kettősponttal elválasztva) lesznek hozzáadva az OpenBasedir jegyzékhez minden vhost tárolóban.';
|
||||
|
||||
// CHANGED IN 1.2.15-rc1
|
||||
|
||||
$lng['error']['loginnameissystemaccount'] = 'Nem hozhat létre olyan fiókot, amely hasonlít a rendszerfiókokhoz (mint pl. a "%s" kezdetűek). Kérem, adjon meg másik fióknevet!';
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Laszlo (Laci) Puchner <puchnerl@konyvbroker.hu>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: hungarian.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Puchner László';
|
||||
$lng['panel']['edit'] = 'szerkeszt';
|
||||
$lng['panel']['delete'] = 'töröl';
|
||||
$lng['panel']['create'] = 'létrehoz';
|
||||
$lng['panel']['save'] = 'ment';
|
||||
$lng['panel']['yes'] = 'igen';
|
||||
$lng['panel']['no'] = 'nem';
|
||||
$lng['panel']['emptyfornochanges'] = 'változtatásig üres';
|
||||
$lng['panel']['emptyfordefault'] = 'alapértelmezésben üres';
|
||||
$lng['panel']['path'] = 'Útvonal';
|
||||
$lng['panel']['toggle'] = 'Átkapcsol';
|
||||
$lng['panel']['next'] = 'következő';
|
||||
$lng['panel']['dirsmissing'] = 'Könyvtár nem található vagy nem olvasható!';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = 'Felhasználónév';
|
||||
$lng['login']['password'] = 'Jelszó';
|
||||
$lng['login']['language'] = 'Nyelv';
|
||||
$lng['login']['login'] = 'Bejelentkezés';
|
||||
$lng['login']['logout'] = 'Kijelentkezés';
|
||||
$lng['login']['profile_lng'] = 'Profile nyelve';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = 'Kezdőkönyvtár';
|
||||
$lng['customer']['name'] = 'Név';
|
||||
$lng['customer']['firstname'] = 'Keresztnév';
|
||||
$lng['customer']['company'] = 'Cégnév';
|
||||
$lng['customer']['street'] = 'Utca';
|
||||
$lng['customer']['zipcode'] = 'Irányítószám';
|
||||
$lng['customer']['city'] = 'Település';
|
||||
$lng['customer']['phone'] = 'Telefon';
|
||||
$lng['customer']['fax'] = 'Fax';
|
||||
$lng['customer']['email'] = 'E-mail';
|
||||
$lng['customer']['customernumber'] = 'Felhasználó-azonosító';
|
||||
$lng['customer']['diskspace'] = 'Tárhely (MB)';
|
||||
$lng['customer']['traffic'] = 'Forgalom (GB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL-Adatbázis';
|
||||
$lng['customer']['emails'] = 'E-mail címek';
|
||||
$lng['customer']['accounts'] = 'E-mail fiókok';
|
||||
$lng['customer']['forwarders'] = 'E-mail továbbítók';
|
||||
$lng['customer']['ftps'] = 'FTP fiókok';
|
||||
$lng['customer']['subdomains'] = 'Aldomain(ek)';
|
||||
$lng['customer']['domains'] = 'Domain(ek)';
|
||||
$lng['customer']['unlimited'] = 'korlátlan';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = 'Főmenü';
|
||||
$lng['menue']['main']['changepassword'] = 'Jelszócsere';
|
||||
$lng['menue']['main']['changelanguage'] = 'Nyelv-változtatás';
|
||||
$lng['menue']['email']['email'] = 'E-mail';
|
||||
$lng['menue']['email']['emails'] = 'Címek';
|
||||
$lng['menue']['email']['webmail'] = 'WebMail';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = 'Adatbázisok';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = 'Domainek';
|
||||
$lng['menue']['domains']['settings'] = 'Beállítások';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = 'Fiókok';
|
||||
$lng['menue']['ftp']['webftp'] = 'WebFTP';
|
||||
$lng['menue']['extras']['extras'] = 'Extrák';
|
||||
$lng['menue']['extras']['directoryprotection'] = 'Könyvtárvédelem';
|
||||
$lng['menue']['extras']['pathoptions'] = 'Útvonal opciók';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = 'Felhasználói adatok';
|
||||
$lng['index']['accountdetails'] = 'Fiók adatok';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = 'Régi jelszó';
|
||||
$lng['changepassword']['new_password'] = 'Új jelszó';
|
||||
$lng['changepassword']['new_password_confirm'] = 'Új jelszó (megerősítés)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = 'Új jelszó (üres = nem változik)';
|
||||
$lng['changepassword']['also_change_ftp'] = ' a fő FTP fiók jelszav&aat is megváltoztatja';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = 'Itt hozhat létre (al-)domaineket és megváltoztathatja azok útvonalait.<br />A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.';
|
||||
$lng['domains']['domainsettings'] = 'Domain beállítások';
|
||||
$lng['domains']['domainname'] = 'Domain n<>v';
|
||||
$lng['domains']['subdomain_add'] = '(Al-)domain létrehozása';
|
||||
$lng['domains']['subdomain_edit'] = '(Al-)domain szerkesztése';
|
||||
$lng['domains']['wildcarddomain'] = 'Helyettesítőként hozza létre?';
|
||||
$lng['domains']['aliasdomain'] = 'Domain alias (álnév)';
|
||||
$lng['domains']['noaliasdomain'] = 'Nincs domain alias (álnév)';
|
||||
|
||||
/**
|
||||
* E-mails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = 'Itt hozhatja létre és módosíthatja e-mail címeit.<br />Egy fiók olyan, mint az Ön postaládája a ház előtt. Ha valaki küld Önnek egy e-mailt, az a postaládába érkezik meg.<br /><br />Az e-mailek letöltéséhez állísa be levelező-programját az alábbiak szerint: (A <i>dőltbetűs</i> adatokat változtassa meg azok alapján, amelyeket beírt!)<br />Szerver (host) neve: <b><i>Domain név</i></b><br />felhasználón&eav: <b><i>Postafiók neve / e-mail cím</i></b><br />Jelszó: <b><i>A jelszó, amelyet választott</i></b>';
|
||||
$lng['emails']['emailaddress'] = 'E-mail cím';
|
||||
$lng['emails']['emails_add'] = 'E-mail cím létrehozása';
|
||||
$lng['emails']['emails_edit'] = 'E-mail cím szerkesztése';
|
||||
$lng['emails']['catchall'] = 'Gyűjtő';
|
||||
$lng['emails']['iscatchall'] = 'Beállítja gyűjtő címként?';
|
||||
$lng['emails']['account'] = 'Fiók';
|
||||
$lng['emails']['account_add'] = 'Fiók létrehozása';
|
||||
$lng['emails']['account_delete'] = 'Fiók törlése';
|
||||
$lng['emails']['from'] = 'Feladó';
|
||||
$lng['emails']['to'] = 'Cím';
|
||||
$lng['emails']['forwarders'] = 'Továbbítók';
|
||||
$lng['emails']['forwarder_add'] = 'Továbbító létrehozása';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = 'Itt hozhatja létre és módosíthatja FTP fiókjait.<br />A változások azonnal érvénybe lépnek és használhatók.';
|
||||
$lng['ftp']['account_add'] = 'Fiók létrehozása';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['databasename'] = 'felhasználó/adatbázis neve';
|
||||
$lng['mysql']['databasedescription'] = 'adatbázis leírása';
|
||||
$lng['mysql']['database_create'] = 'Adatbázis létrehozása';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = 'Itt állíthat be egyebeket, pl. könyvtárvédelmet.<br />A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.';
|
||||
$lng['extras']['directoryprotection_add'] = 'Könyvtárvédelem hozzáadása';
|
||||
$lng['extras']['view_directory'] = 'A könyvtár tartalmának megmutatása';
|
||||
$lng['extras']['pathoptions_add'] = 'Útvonal opciók hozzáadása';
|
||||
$lng['extras']['directory_browsing'] = 'A könyvtár tartalmána böngészése';
|
||||
$lng['extras']['pathoptions_edit'] = 'Útvonal opciók szerkesztése';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = 'A 404-es hibaüzenet URL-je';
|
||||
$lng['extras']['errordocument403path'] = 'A 403-as hibaüzenet URL-je';
|
||||
$lng['extras']['errordocument500path'] = 'A 500-as hibaüzenet URL-je';
|
||||
$lng['extras']['errordocument401path'] = 'A 401-es hibaüzenet URL-je';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = 'Hiba';
|
||||
$lng['error']['directorymustexist'] = 'Léteznie kell a %s könyvtárnak. Kérem, hozza létre FTP cliensével.';
|
||||
$lng['error']['filemustexist'] = 'Léteznie kell a %sfájlnak.';
|
||||
$lng['error']['allresourcesused'] = 'Ön már minden erőforrását felhasználta.';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak.';
|
||||
$lng['error']['domains_canteditdomain'] = 'Nem szerkeszthati ezt a domain nevet. Az adminisztrátor letiltotta.';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak. Töröljön ki minden e-mail címet előbb.';
|
||||
$lng['error']['firstdeleteallsubdomains'] = 'Mielőtt létrehozna egy gyűjtő-domaint, törölnie kell az összes al-domaint.';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Ön már meghatározott egy gyűjtőt erre a domain-re.';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = 'Nem törölheti fő FTP hozzáférését.';
|
||||
$lng['error']['login'] = 'Helytelen a felhasználónév vagy a jelszó, amelyet begépelt. Kérem, próbálja újra!';
|
||||
$lng['error']['login_blocked'] = 'Ezt a hozzáférés fel lett függesztve a túl sok bejelentkezési hiba miatt. Kérem, próbálja újra!';
|
||||
$settings['login']['deactivatetime'] . ' seconds.';
|
||||
$lng['error']['notallreqfieldsorerrors'] = 'Nem teljesen vagy helytelenül töltötte ki a mezőket.';
|
||||
$lng['error']['oldpasswordnotcorrect'] = 'A régi jelszó helytelen.';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = 'Nem oszthat ki több erőforrást, mint amennyit birtokol.';
|
||||
$lng['error']['mustbeurl'] = 'Nem teljes vagy nem érvényes URL-t (pl.: http://somedomain.com/error404.htm) gépelt be';
|
||||
$lng['error']['invalidpath'] = 'Nem választott ki érvényes URL-t (lehet, hogy probléma van a könyvtárlistázással?).';
|
||||
$lng['error']['stringisempty'] = 'A mezőben nincs adat.';
|
||||
$lng['error']['stringiswrong'] = 'A mezőben helytelen adat van.';
|
||||
$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\'';
|
||||
$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\'';
|
||||
$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\'';
|
||||
$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = 'Az új jelszó és annak megerősítése nem egyezik meg.';
|
||||
$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\'';
|
||||
$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\'';
|
||||
$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\'';
|
||||
$lng['error']['mydomain'] = '\'Domain\'';
|
||||
$lng['error']['mydocumentroot'] = '\'Dokumentum útvonal\'';
|
||||
$lng['error']['loginnameexists'] = 'A(z) %s felhasználónév már létezik';
|
||||
$lng['error']['emailiswrong'] = 'A(z) %s e-mail cím érvénytelen karaktereket tartalmaz vagy nem teljes.';
|
||||
$lng['error']['loginnameiswrong'] = 'A(z) %s felhasználónév érvénytelen karaktereket tartalmaz.';
|
||||
$lng['error']['userpathcombinationdupe'] = 'A felhasználónév és útvonal kombinációja már létezik.';
|
||||
$lng['error']['patherror'] = 'Általános hiba! Az útvonal nem lehet üres.';
|
||||
$lng['error']['errordocpathdupe'] = 'A(z) %s útvonalra vonatkozó opció már létezik.';
|
||||
$lng['error']['adduserfirst'] = 'Kérem, előbb hozzon létre egy felhasználót!';
|
||||
$lng['error']['domainalreadyexists'] = 'A(z) %s domain név már hozzá van rendelve egy felhasználóhoz.';
|
||||
$lng['error']['nolanguageselect'] = 'Nincs kiválasztott nyelv.';
|
||||
$lng['error']['nosubjectcreate'] = 'Meg kell határoznia egy tárgyat ehhez a sablonhoz.';
|
||||
$lng['error']['nomailbodycreate'] = 'Meg kell határoznia az üzenet szövegét ehhez a sablonhoz.';
|
||||
$lng['error']['templatenotfound'] = 'A sablon nem található.';
|
||||
$lng['error']['alltemplatesdefined'] = 'Nem készíthet több sablont, már minden nyelv támogatva van.';
|
||||
$lng['error']['wwwnotallowed'] = 'a www előtag al-domaineknél nem használható.';
|
||||
$lng['error']['subdomainiswrong'] = 'A(z) %s al-domain érvénytelen karaktereket tartalmaz.';
|
||||
$lng['error']['domaincantbeempty'] = 'A domain neve nem lehet üres.';
|
||||
$lng['error']['domainexistalready'] = 'A(z) %s domain már létezik.';
|
||||
$lng['error']['domainisaliasorothercustomer'] = 'A választott domain álnév (alias) vagy maga is domain álnév, vagy más felhasználóhoz tartozik.';
|
||||
$lng['error']['emailexistalready'] = 'A(z) %s e-mail cím már létezik.';
|
||||
$lng['error']['maindomainnonexist'] = 'A(z) %s fő domain nem létezik.';
|
||||
$lng['error']['destinationnonexist'] = 'Kérem, levél-továbbítóját a \'Cél\' mappában hozza létre.';
|
||||
$lng['error']['destinationalreadyexistasmail'] = 'A(z) %s továbbító már létezik mint aktív e-mail cím.';
|
||||
$lng['error']['destinationalreadyexist'] = 'Ön már létrehozott egy továbbítót ehhez: %s .';
|
||||
$lng['error']['destinationiswrong'] = 'A(z) %s továbbító érvénytelen karakter(eke)t tartalmaz vagy nem teljes.';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = 'Biztonsági kérdés';
|
||||
$lng['question']['admin_customer_reallydelete'] = 'Tényleg törölni akarja a(z) %s felhasználót? Ezt a lépést nem lehet visszavonni!';
|
||||
$lng['question']['admin_domain_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Tényleg hatástalanítani akarja ezeket a biztonsági beállításokat (OpenBasedir és/vagy SafeMode)?';
|
||||
$lng['question']['admin_admin_reallydelete'] = 'Tényleg törölni akarja a(z) %s adminisztrátort? Minden hozzá tartozó felhasználó és domain a főadminisztrátorhoz lesz rendelve.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'Tényleg törölni akarja a(z) \'%s\' sablont?';
|
||||
$lng['question']['domains_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain-t?';
|
||||
$lng['question']['email_reallydelete'] = 'Tényleg törölni akarja a(z) %s e-mail címet?';
|
||||
$lng['question']['email_reallydelete_account'] = 'Tényleg törölni akarja a(z) %s e-mail postafiókot?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = 'Tényleg törölni akarja a(z) %s továbbítót?';
|
||||
$lng['question']['extras_reallydelete'] = 'Tényleg törölni akarja a(z) %s könyvtár-védelmét?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = 'Tényleg törölni akarja a(z) %s útvonal-beállításait?';
|
||||
$lng['question']['ftp_reallydelete'] = 'Tényleg törölni akarja a(z) %s FTP hozzáférést?';
|
||||
$lng['question']['mysql_reallydelete'] = 'Tényleg törölni szeretné a(z) adatbázist? Ez a lépés nem vonható vissza!';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = 'Tényleg újra szeretné építeni az Apache és Bind konfigurációs állományait?';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = 'Üdvözlöm!\n\nE-mail fiókja {EMAIL} létrejött.\n\nEz egy automatikusan küldött\ne-mail, kérem, ne válaszoljon rá!\n\nTisztelettel: a SysCP csapata';
|
||||
$lng['mails']['pop_success']['subject'] = 'E-mail fiók létrehozva.';
|
||||
$lng['mails']['createcustomer']['mailbody'] = 'Tisztelt {FIRSTNAME} {NAME}!\n\nAz Ön postafiók adatai:\n\nFelhasználónév: {USERNAME}\nJelszó: {PASSWORD}\n\nKöszönjük:\na SysCP csapata';
|
||||
$lng['mails']['createcustomer']['subject'] = 'Postafiók információ';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = 'Áttekintés';
|
||||
$lng['admin']['ressourcedetails'] = 'Felhasznált erőforrások';
|
||||
$lng['admin']['systemdetails'] = 'Rendszeradatok';
|
||||
$lng['admin']['syscpdetails'] = 'SysCP adatok';
|
||||
$lng['admin']['installedversion'] = 'Installált Verzió';
|
||||
$lng['admin']['latestversion'] = 'Legutolsó verzió';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = 'keres<65>s a webszervizen keresztül';
|
||||
$lng['admin']['lookfornewversion']['error'] = 'Olvasási hiba';
|
||||
$lng['admin']['resources'] = 'Erőforrások';
|
||||
$lng['admin']['customer'] = 'Felhasznál<>';
|
||||
$lng['admin']['customers'] = 'Felhasznál<>k';
|
||||
$lng['admin']['customer_add'] = 'Felhasznál<> hozzáadása';
|
||||
$lng['admin']['customer_edit'] = 'Felhasznál<> szerkesztése';
|
||||
$lng['admin']['domains'] = 'Domainek';
|
||||
$lng['admin']['domain_add'] = 'Domain hozzáadása';
|
||||
$lng['admin']['domain_edit'] = 'Domain szerkesztése';
|
||||
$lng['admin']['subdomainforemail'] = 'Aldomainek mint e-mail-domainek';
|
||||
$lng['admin']['admin'] = 'Adminisztrátor';
|
||||
$lng['admin']['admins'] = 'Adminisztrátorok';
|
||||
$lng['admin']['admin_add'] = 'Adminisztrátor hozzáadása';
|
||||
$lng['admin']['admin_edit'] = 'Adminisztrátor szerkesztése';
|
||||
$lng['admin']['customers_see_all'] = 'Láthatja az összes felhasználót?';
|
||||
$lng['admin']['domains_see_all'] = 'Láthatja az összes domaint?';
|
||||
$lng['admin']['change_serversettings'] = 'Megváltoztathatja a szerver beállításait?';
|
||||
$lng['admin']['server'] = 'Szerver';
|
||||
$lng['admin']['serversettings'] = 'Beállítások';
|
||||
$lng['admin']['rebuildconf'] = 'A konfig. fájlok újraírása';
|
||||
$lng['admin']['stdsubdomain'] = 'Egyszerű aldomain';
|
||||
$lng['admin']['stdsubdomain_add'] = 'Egyszerű aldomain hozzáadása';
|
||||
$lng['admin']['deactivated'] = 'Kikapcsolva';
|
||||
$lng['admin']['deactivated_user'] = 'Felhasznál<> kikapcsolása';
|
||||
$lng['admin']['sendpassword'] = 'Jelszó k<>ldése';
|
||||
$lng['admin']['ownvhostsettings'] = 'Saját vHost beállítások';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguráció';
|
||||
$lng['admin']['configfiles']['files'] = '<b>Konfig. fájlok:</b> Kérem, változtassa meg a következő f<>jlokat, vagy - ha m<>g nem l<>teznek - hozza l<>tre őket a k<>vetkező tartalommal.<br /><b>Fontos:</b> A MySQL jelszó biztonsági okokból nem lesz kicserélve. Kérem, cserélje ki a "MYSQL_PASSWORD"-öt! Ha elfelejtette a NySQL jelszót, megtalálja a "lib/userdata.inc.php" fájlban.';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>Parancsok:</b> Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell)!';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>Újraindítás:</b> Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell), hogy az új konfiguráció betöltődjön.';
|
||||
$lng['admin']['templates']['templates'] = 'Sablonok';
|
||||
$lng['admin']['templates']['template_add'] = 'Sablon hozzáadása';
|
||||
$lng['admin']['templates']['template_edit'] = 'Sablon szerkesztése';
|
||||
$lng['admin']['templates']['action'] = 'Alkalom';
|
||||
$lng['admin']['templates']['email'] = 'E-mail';
|
||||
$lng['admin']['templates']['subject'] = 'Tárgy';
|
||||
$lng['admin']['templates']['mailbody'] = 'Szövegrörzs';
|
||||
$lng['admin']['templates']['createcustomer'] = 'Üdvözlő levél új felhasználóknak';
|
||||
$lng['admin']['templates']['pop_success'] = 'Üdvözlő levél új fiók esetén';
|
||||
$lng['admin']['templates']['template_replace_vars'] = 'A sablonban használható változók';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = 'A felhasználó keresztneve ';
|
||||
$lng['admin']['templates']['NAME'] = 'A felhasználó neve ';
|
||||
$lng['admin']['templates']['USERNAME'] = 'A felhasználó felhasználóneve';
|
||||
$lng['admin']['templates']['PASSWORD'] = 'A felhasználó felhasználóneve jelszava';
|
||||
$lng['admin']['templates']['EMAIL'] = 'A POP3/IMAP fiók címe.';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = 'Munkamenet időtúllépés';
|
||||
$lng['serversettings']['session_timeout']['description'] = 'Mennyi idő múlva váljon a munkamenet érvénytelenné a felhasználó utolsó tevékenységétől (másodperc)?';
|
||||
$lng['serversettings']['accountprefix']['title'] = 'Felhasználói előtag';
|
||||
$lng['serversettings']['accountprefix']['description'] = 'Milyen előtaggal legyenek a felhasználói hozzáférések ellátva?';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'SQL előtag';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = 'Melyen előtaggal legyenek a mysql hozzáférések ellátva?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'FTP előtag';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'Milyen előtaggal legyenek az FTP hozzáférések ellátva?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = 'Documentum könyvtár';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = 'Hol legyen minen adat tárolva?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = 'Naplófájlok könyvtára';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = 'Hol legyen minden naplófájl tárolva?';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP cím';
|
||||
$lng['serversettings']['ipaddress']['description'] = 'Mi az IP címe ennek a szervernek?';
|
||||
$lng['serversettings']['hostname']['title'] = 'Hostnév (gépnév)';
|
||||
$lng['serversettings']['hostname']['description'] = 'Mi legyen a neve ennek a szervernek?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = 'Apache újraindítási parancs';
|
||||
$lng['serversettings']['apachereload_command']['description'] = 'Mi az Apache újraindítási parancsa?';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = 'Bind konfigurációs könyvtár';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = 'Hol vannak a Bind konfigurációs állományok?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = 'Bind újraindítási parancs';
|
||||
$lng['serversettings']['bindreload_command']['description'] = 'Mi a Bind újraindítási parancsa?';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = 'Bind alapértelmezett zóna';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = 'Mi az alapértelmezett zóna neve?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = 'E-mail felhasználó-azonosító (UID)';
|
||||
$lng['serversettings']['vmail_uid']['description'] = 'Melyik felhasználó-azonosítót (UserID) használják a levelek?';
|
||||
$lng['serversettings']['vmail_gid']['title'] = 'E-mail csoport-azonosító (GID)';
|
||||
$lng['serversettings']['vmail_gid']['description'] = 'Melyik csoport-azonosítót (GroupID) használják a levelek?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = 'E-mail könyvtár';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = 'Hol legyenek az e-mailek tárolva?';
|
||||
$lng['serversettings']['adminmail']['title'] = 'Feladó';
|
||||
$lng['serversettings']['adminmail']['description'] = 'Ki legyen a feladója a panelről küldött leveleknek?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = 'Mi a phpMyAdmin URL-je? (http://-vel kell kezdődnie)';
|
||||
$lng['serversettings']['webmail_url']['title'] = 'WebMail URL';
|
||||
$lng['serversettings']['webmail_url']['description'] = 'Mi a WebMail URL-je? (http://-vel kell kezdődnie)';
|
||||
$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = 'Mi a WebFTP URL-je? (http://-vel kell kezdődnie)';
|
||||
$lng['serversettings']['language']['description'] = 'Mi a szerver alapértelmezett nyelve?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = 'Maximális bejelentkezési kísérlet';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = 'Bejelentkezési kísérletek maximális száma, mielőtt a hozzáférés zárolva lesz.';
|
||||
$lng['serversettings']['deactivatetime']['title'] = 'Zárlat-idő';
|
||||
$lng['serversettings']['deactivatetime']['description'] = 'Az időszak (másodpercekben), ameddig a túl sok bejelentkezési kísérlet után a hozzáférés zárolva lesz.';
|
||||
$lng['serversettings']['pathedit']['title'] = 'Az útvonal-megadás típusa';
|
||||
$lng['serversettings']['pathedit']['description'] = 'Legördülő menü vagy beviteli mező segítségével lesznek az útvonalak kiválasztva?';
|
||||
|
||||
/**
|
||||
* CHANGED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = 'Itt hozhatja létre és változtathatja meg MySQL adatbázisait. <br />
|
||||
A változások azonnal érvényre jutnak, és az adatbázis rögtön használható.<br />
|
||||
A bal oldali menüben megtalálja a phpMyAdmin eszközt, amellyel könnyedén kezelheti adatbázisát.<br />
|
||||
<br />Saját PHP kódjaiból a következő beállításokkal férhet hozzá adatbázisához: (A <i>dőltbetűs</i> adatokat helyettesítenie kell az Ön által megadottakkal!)<br /> Hostnév: <b> <SQL_HOST></b><br />
|
||||
Felhasználónév: <b><i>Adatbázisnév</i></b><br />Jelszó: <b><i>a jelszó, amelyet Ön kiválasztott </i></b><br />Adatbázis: <b><i>Adatbázisnév</i></b>';
|
||||
|
||||
/**
|
||||
* ADDED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['admin']['cronlastrun'] = 'Utolsó Cron futás';
|
||||
$lng['serversettings']['paging']['title'] = 'Bejegyzések száma egy lapon';
|
||||
$lng['serversettings']['paging']['description'] = 'Hány bejegyzés jelenjen meg egy lapon? (0 = lapozás kikapcsolása)';
|
||||
$lng['error']['ipstillhasdomains'] = 'A törölni kívánt IP/Port kombinációhoz domainek vannak rendelve. Rendelje hozzá ezeket egy másik IP/Port kombinációhoz, mielőtt a jelenlegi IP/Port kombinációt törli.';
|
||||
$lng['error']['cantdeletedefaultip'] = 'Nem törölheti az alapértelmezett viszonteladói IP/Port kombinációt. Hozzon létre új alapértelmezett IP/Port kombinációt a viszonteladóknak, mielőtt ezt az IP/Port kombinációt törli.';
|
||||
$lng['error']['cantdeletesystemip'] = 'Nem törölheti a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'Port\'';
|
||||
$lng['error']['myipdefault'] = 'Választania kell egy IP/Port kombinációt alapértelmezésnek.';
|
||||
$lng['error']['myipnotdouble'] = 'Ez az IP/Port kombináció már létezik.';
|
||||
$lng['question']['admin_ip_reallydelete'] = 'Valóban törölni akarja a(z) %s IP címet?';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = 'IP címek és Portok';
|
||||
$lng['admin']['ipsandports']['add'] = 'IP/Port hozzáadása';
|
||||
$lng['admin']['ipsandports']['edit'] = 'IP/Port szerkesztése';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/Port';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = 'Port';
|
||||
|
||||
// ADDED IN 1.2.13-rc3
|
||||
|
||||
$lng['error']['cantchangesystemip'] = 'Nem változtathatja meg a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Biztos, hogy a dokumentum gyökerét (root) rendeli ehhez a domainhez, nem pedig a felhasználói könyvtárban marad?';
|
||||
|
||||
// ADDED IN 1.2.14-rc1
|
||||
|
||||
$lng['admin']['memorylimitdisabled'] = 'Letiltva';
|
||||
$lng['domain']['openbasedirpath'] = 'OpenBasedir útvonal';
|
||||
$lng['domain']['docroot'] = 'Útvonal a a fenti mezőből';
|
||||
$lng['domain']['homedir'] = 'Kezdőkönyvtár';
|
||||
$lng['admin']['valuemandatory'] = 'Ez a mező kötelező';
|
||||
$lng['admin']['valuemandatorycompany'] = 'Vagy a "név" és "keresztnév", vagy a "cégnév" mezőt ki kell tölteni.';
|
||||
$lng['menue']['main']['username'] = 'Bejelentkezve mint: ';
|
||||
$lng['panel']['urloverridespath'] = 'URL (figyelmen kívül hagyja az útvonalat)';
|
||||
$lng['panel']['pathorurl'] = 'Útvonal az URL-hez';
|
||||
$lng['error']['sessiontimeoutiswrong'] = 'Csak numerikus "Munkamenet Időtúllépés"adható meg.';
|
||||
$lng['error']['maxloginattemptsiswrong'] = 'Csak numerikus "Maximális Bejelentkezési Kísérlet"adható meg. ';
|
||||
$lng['error']['deactivatetimiswrong'] = 'Csak numerikus "Kikapcsolási Idő" adható meg.';
|
||||
$lng['error']['accountprefixiswrong'] = 'A "Felhasználói Előtag" helytelen.';
|
||||
$lng['error']['mysqlprefixiswrong'] = 'Az "SQL Előtag" helytelen.';
|
||||
$lng['error']['ftpprefixiswrong'] = 'Az "FTP Előtag "helytelen.';
|
||||
$lng['error']['ipiswrong'] = 'Az "IP Cím" helytelen. Csak érvényes IPcím adható meg.';
|
||||
$lng['error']['vmailuidiswrong'] = 'A "Levelezési Felhasználó-azonosító (LFA) " helytelen. Csak numerikus LFA adható meg.';
|
||||
$lng['error']['vmailgidiswrong'] = 'A "Levelezési GID " helytelen. Csak numerikus GID adható meg.';
|
||||
$lng['error']['adminmailiswrong'] = 'A "Feladó Címe " helytelen. Csak érvényes e-mail cím adható meg.';
|
||||
$lng['error']['pagingiswrong'] = 'A "Laponkénti Bejegyzés " értéke helytelen. Csak numerikus karaktereket lehet megadni..';
|
||||
$lng['error']['phpmyadminiswrong'] = 'A phpMyAdmin hivatkozás érvénytelen.';
|
||||
$lng['error']['webmailiswrong'] = 'A WebMail hivatkozás érvénytelen.';
|
||||
$lng['error']['webftpiswrong'] = 'A WebFTP hivatkozás érvénytelen';
|
||||
$lng['domains']['hasaliasdomains'] = 'Alias (al-)domainjei';
|
||||
$lng['serversettings']['defaultip']['title'] = 'Alapértelmezett IP/Port';
|
||||
$lng['serversettings']['defaultip']['description'] = 'Mi az alapértelmezett IP/Port kombináció?';
|
||||
$lng['domains']['statstics'] = 'Használati statisztika';
|
||||
$lng['panel']['ascending'] = 'növekvő';
|
||||
$lng['panel']['decending'] = 'cs<63>kkenő';
|
||||
$lng['panel']['search'] = 'Keresés';
|
||||
$lng['panel']['used'] = 'felhasznált';
|
||||
|
||||
// ADDED IN 1.2.14-rc3
|
||||
|
||||
$lng['panel']['translator'] = 'Fordító';
|
||||
|
||||
// ADDED IN 1.2.14-rc4
|
||||
|
||||
$lng['error']['stringformaterror'] = 'A "%s" mező értéke nem megfelelő formátumú.';
|
||||
|
||||
// ADDED IN 1.2.15-rc1
|
||||
|
||||
$lng['admin']['serversoftware'] = 'Szerverszoftver';
|
||||
$lng['admin']['phpversion'] = 'PHP verzió';
|
||||
$lng['admin']['phpmemorylimit'] = 'PHP memória korlát';
|
||||
$lng['admin']['mysqlserverversion'] = 'MySQL szerver verzió';
|
||||
$lng['admin']['mysqlclientversion'] = 'MySQL kliens verzió';
|
||||
$lng['admin']['webserverinterface'] = 'Webszerver Interfész';
|
||||
$lng['domains']['isassigneddomain'] = 'Hozzárendelt domain';
|
||||
$lng['serversettings']['phpappendopenbasedir']['title'] = 'Az OpenBasedir-hez csatolt útvonalak';
|
||||
$lng['serversettings']['phpappendopenbasedir']['description'] = 'Ezek az útvonalak (kettősponttal elválasztva) lesznek hozzáadva az OpenBasedir jegyzékhez minden vhost tárolóban.';
|
||||
|
||||
// CHANGED IN 1.2.15-rc1
|
||||
|
||||
$lng['error']['loginnameissystemaccount'] = 'Nem hozhat létre olyan fiókot, amely hasonlít a rendszerfiókokhoz (mint pl. a "%s" kezdetűek). Kérem, adjon meg másik fióknevet!';
|
||||
|
||||
?>
|
||||
@@ -1,447 +1,447 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Carlo Pedro Woedl <carlopedrowoedl@hotmail.com>
|
||||
* @author Ron Brand <ron.brand@web.de>
|
||||
* @author Sandra Aders
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: spanish.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Carlo Pedro Woedl, Ron Brand, Sandra Aders';
|
||||
$lng['panel']['edit'] = 'modificar';
|
||||
$lng['panel']['delete'] = 'borar';
|
||||
$lng['panel']['create'] = 'crear';
|
||||
$lng['panel']['save'] = 'almacenar';
|
||||
$lng['panel']['yes'] = 'si';
|
||||
$lng['panel']['no'] = 'no';
|
||||
$lng['panel']['emptyfornochanges'] = 'vacío si no hay cambios';
|
||||
$lng['panel']['emptyfordefault'] = 'vacia para los valores por defecto';
|
||||
$lng['panel']['path'] = 'camino';
|
||||
$lng['panel']['toggle'] = 'cambio';
|
||||
$lng['panel']['next'] = 'continuar';
|
||||
$lng['panel']['dirsmissing'] = 'Los registros no están disponibles o no son leíbles.';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = 'Nombre del usuario';
|
||||
$lng['login']['password'] = 'contraseña';
|
||||
$lng['login']['language'] = 'Lengua';
|
||||
$lng['login']['login'] = 'Registrarse';
|
||||
$lng['login']['logout'] = 'Finalizar sesión';
|
||||
$lng['login']['profile_lng'] = 'Lenguaje del perfil';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = 'Hogar';
|
||||
$lng['customer']['name'] = 'Apellido';
|
||||
$lng['customer']['firstname'] = 'Nombre';
|
||||
$lng['customer']['company'] = 'Razón social';
|
||||
$lng['customer']['street'] = 'Dirección';
|
||||
$lng['customer']['zipcode'] = 'Codigo Postal/Población';
|
||||
$lng['customer']['city'] = 'Ciudad';
|
||||
$lng['customer']['phone'] = 'Teléfono';
|
||||
$lng['customer']['fax'] = 'Telefax';
|
||||
$lng['customer']['email'] = 'Email';
|
||||
$lng['customer']['customernumber'] = 'Numero de Cliente';
|
||||
$lng['customer']['diskspace'] = 'Espacio de web (MB)';
|
||||
$lng['customer']['traffic'] = 'Trafico (GB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL-Base de datos';
|
||||
$lng['customer']['emails'] = 'Direcciones e-mail';
|
||||
$lng['customer']['accounts'] = 'Cuentas e-mail';
|
||||
$lng['customer']['forwarders'] = 'e-mail de reenvío';
|
||||
$lng['customer']['ftps'] = 'FTP-Cuentas';
|
||||
$lng['customer']['subdomains'] = 'Subdominios';
|
||||
$lng['customer']['domains'] = 'Dominios';
|
||||
$lng['customer']['unlimited'] = 'infinito';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = 'Universal';
|
||||
$lng['menue']['main']['changepassword'] = 'Cambiar contraseña';
|
||||
$lng['menue']['main']['changelanguage'] = 'Cambiar Idioma';
|
||||
$lng['menue']['email']['email'] = 'eMail';
|
||||
$lng['menue']['email']['emails'] = 'Direcciones';
|
||||
$lng['menue']['email']['webmail'] = 'Sistema Webmail';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = 'Base de datos';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = 'Dominios';
|
||||
$lng['menue']['domains']['settings'] = 'Configuraciones';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = 'Cuentas';
|
||||
$lng['menue']['ftp']['webftp'] = 'WebFTP';
|
||||
$lng['menue']['extras']['directoryprotection'] = 'directorio de protección';
|
||||
$lng['menue']['extras']['pathoptions'] = 'Opciones del camino';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = 'Datos de Clientes';
|
||||
$lng['index']['accountdetails'] = 'Datos Cuentas';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = 'Contraseña anterior';
|
||||
$lng['changepassword']['new_password'] = 'Contraseña nueva';
|
||||
$lng['changepassword']['new_password_confirm'] = 'Contraseña (Repetir)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = 'Contraseña nueva (libre=sin cambio)';
|
||||
$lng['changepassword']['also_change_ftp'] = 'tambien cambiar la Contraseña del FTP';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = 'Aquí usted puede crear dominios (secundarios) y cambiar sus caminos.<br />El sistema necesitará un cierto tiempo para aplicar las nuevas configuraciones después de cada cambio.';
|
||||
$lng['domains']['domainsettings'] = 'Configuraciones del dominio';
|
||||
$lng['domains']['domainname'] = 'Nombre del dominio';
|
||||
$lng['domains']['subdomain_add'] = 'Crear el secundario-dominio';
|
||||
$lng['domains']['subdomain_edit'] = 'Corrija el dominio (secundario)';
|
||||
$lng['domains']['wildcarddomain'] = '¿Crear como comodÃn-dominio?';
|
||||
$lng['domains']['aliasdomain'] = 'Alias para dominio';
|
||||
$lng['domains']['noaliasdomain'] = 'No es un alias de dominio';
|
||||
|
||||
/**
|
||||
* eMails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = 'Aqui puede Usted crear su propia direccion e-mail.<br />Una Cuenta es como un Buzon en la Puerta de la Casa . Cuando alguien le escribe una email , esta aparece en su cuenta.<br/><br />Para descargar sus email utilice las configuraciones siguientes en su email-programa: (Los datos en letra <i>kursiva</i> seran sustituidas por las asignadas!)<br />nombre del Host: <b><i>Nombre del Domain</i></b><br />Nombre del Usuario: <b><i>Cuenta / Direccion e-mail</i></b><br />Clave: <b><i>Clave Elegida</i></b>';
|
||||
$lng['emails']['emailaddress'] = 'Direccion e-mail';
|
||||
$lng['emails']['emails_add'] = 'Crear Direccion e-mail';
|
||||
$lng['emails']['emails_edit'] = 'Cambiar Direccion e-mail';
|
||||
$lng['emails']['catchall'] = 'Catchall';
|
||||
$lng['emails']['iscatchall'] = 'Definir como Direccion Catchall';
|
||||
$lng['emails']['account'] = 'Cuenta ';
|
||||
$lng['emails']['account_add'] = 'Crear Cuenta';
|
||||
$lng['emails']['account_delete'] = 'Borar Cuenta';
|
||||
$lng['emails']['from'] = 'Fuente';
|
||||
$lng['emails']['to'] = 'Destinación';
|
||||
$lng['emails']['forwarders'] = 'Reenviar';
|
||||
$lng['emails']['forwarder_add'] = 'agregar reenvio';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = 'Aqui puede Usted crear FTP-Cuentas adicionales.<br />Los cambios se actualizan de inmediato y Usted puede Usar los FTP-Cuentas.';
|
||||
$lng['ftp']['account_add'] = 'Crear Cuenta';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = 'Aqui se puede crear/cancelar la MySQL Base de Datos.<br>Los Cambios se actualizan de inmediato y la Base de Datos se puede usar enseguida.<br />En el menú usted encuentra el phpMyAdmin de la herramienta con el cual usted puede administrar fácilmente su base de datos.<br /><br />Para utilizar sus bases de datos en sus propias php-escrituras utilice las configuraciones siguientes: (Los datos en letra <i>cursiva</i> seran sustituidas por las asignadas!)<br />Nombre del Host:<b><SQL_HOST></b><br />Nombre del Usuario: <b><i>nombre de la base de datos</i></b><br />Clave: <b><i>contraseña elegida</i></b><br />Base de datos: <b><i>Nombre de la base de datos';
|
||||
$lng['mysql']['databasename'] = 'Nombre -/Base de Datos';
|
||||
$lng['mysql']['databasedescription'] = 'Indentificador de la Base de Datos';
|
||||
$lng['mysql']['database_create'] = 'Abrir base de Datos';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = 'Aqui se pueden crear Extras , por Eje.protector de Directorio.<br />Los cambios son despues de cierto tiempo aplicables.';
|
||||
$lng['extras']['directoryprotection_add'] = 'Crear Protección de Directorio';
|
||||
$lng['extras']['view_directory'] = 'Mostrar directorio';
|
||||
$lng['extras']['pathoptions_add'] = 'agregue las opciones del camino';
|
||||
$lng['extras']['directory_browsing'] = 'Mostrar contenido del Directorio';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = 'URL para errorDocumento 404';
|
||||
$lng['extras']['errordocument403path'] = 'URL para errorDocumento 403';
|
||||
$lng['extras']['errordocument500path'] = 'URL para errorDocumento 500';
|
||||
$lng['extras']['errordocument401path'] = 'URL para errorDocumento 401';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = 'Error';
|
||||
$lng['error']['directorymustexist'] = 'El Directorio %s tiene que Existir. Crearlo por Favor a traves del FTP-Programa.';
|
||||
$lng['error']['filemustexist'] = 'El archivo %s debe existir';
|
||||
$lng['error']['allresourcesused'] = 'Usted ha usado todos los recursos a su disposicion.';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain.';
|
||||
$lng['error']['domains_canteditdomain'] = 'Usted no puede trabajar con este Domain . Debido a que el Admin se lo niega.';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain , Borre primero todos las Direcciones e-mail de este dominio.';
|
||||
$lng['error']['firstdeleteallsubdomains'] = 'Usted debe primero borar todos los Subdomains, antes de Usted crear un dominio del comodÃn.';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Usted acaba de definer una Direccion como Catchall para este dominio.';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = 'Usted no puede suprimir su cuenta principal del ftp';
|
||||
$lng['error']['login'] = 'El Nombre de Usuario/Clave esta Errado. Por favor intento otra vez!';
|
||||
$lng['error']['login_blocked'] = 'Esta cuenta fue cerrada transitoriamente debido a demasiados intentos falsos. <br />Por favor intente otra vez en ' . $settings['login']['deactivatetime'] . ' segundos.';
|
||||
$lng['error']['notallreqfieldsorerrors'] = 'Usted no ha llenado todos los espacios asignados o ha colocado un dato Erroneo.';
|
||||
$lng['error']['oldpasswordnotcorrect'] = 'La Clave Vieja no es correcta.';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = 'Usted no puede afectar un aparato más recursos que los que usted posee.';
|
||||
$lng['error']['mustbeurl'] = 'Usted tiene que dar una completa direccion URL(por ejemplo: http://algo.de/error404.htm)';
|
||||
$lng['error']['invalidpath'] = 'No ha seleccionado una URL válida (¿probablemente problemas con el listado de registros?)';
|
||||
$lng['error']['stringisempty'] = 'Falta un dato';
|
||||
$lng['error']['stringiswrong'] = 'Dato falso';
|
||||
$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\'';
|
||||
$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\'';
|
||||
$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\'';
|
||||
$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = 'La Clave Nueva a la Confirmacion de Clave no Coinciden';
|
||||
$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\'';
|
||||
$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\'';
|
||||
$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\'';
|
||||
$lng['error']['mydomain'] = '\'dominio\'';
|
||||
$lng['error']['mydocumentroot'] = '\'Documentroot\'';
|
||||
$lng['error']['loginnameexists'] = 'Conexión-Nombre %s existe ya';
|
||||
$lng['error']['emailiswrong'] = 'Email address %s contiene caracteres inválidos o es incompleta';
|
||||
$lng['error']['loginnameiswrong'] = 'Conexión-Nombre %s contiene caracteres inválidos';
|
||||
$lng['error']['userpathcombinationdupe'] = 'combinación del nombre del usuario y del camino existe ya';
|
||||
$lng['error']['patherror'] = '¡Error general! el camino no puede estar vacÃo';
|
||||
$lng['error']['errordocpathdupe'] = 'Opción para el camino %s existe ya';
|
||||
$lng['error']['adduserfirst'] = 'Usted debe primero crear un Cliente';
|
||||
$lng['error']['domainalreadyexists'] = 'El dominio %s se ha asignado ya a un cliente';
|
||||
$lng['error']['nolanguageselect'] = 'Asigne un Idioma.';
|
||||
$lng['error']['nosubjectcreate'] = 'Usted debe de asignar un asunto.';
|
||||
$lng['error']['nomailbodycreate'] = 'Usted debe de Agregar Texto al Mail.';
|
||||
$lng['error']['templatenotfound'] = 'Modelo no encontrado.';
|
||||
$lng['error']['alltemplatesdefined'] = 'Usted no puede definir más modelos, todos los lenguajes se utilizan ya.';
|
||||
$lng['error']['wwwnotallowed'] = 'www no se permite como nombre para los secundario-dominios.';
|
||||
$lng['error']['subdomainiswrong'] = 'El dominio-secundario %s contiene caracteres inválidos.';
|
||||
$lng['error']['domaincantbeempty'] = 'El nombre del dominio-Apellido no puede estar Vacio.';
|
||||
$lng['error']['domainexistalready'] = 'El dominio %s existe ya.';
|
||||
$lng['error']['domainisaliasorothercustomer'] = 'El alias de dominio seleccionado es un propio alias de dominio o pertenece a otro cliente.';
|
||||
$lng['error']['emailexistalready'] = 'El email address %s existe ya.';
|
||||
$lng['error']['maindomainnonexist'] = 'El dominio-principal %s no existe.';
|
||||
$lng['error']['destinationnonexist'] = 'Crear por favor su email-expedición en \'Destinación\'.';
|
||||
$lng['error']['destinationalreadyexistasmail'] = 'La direccion Secundaria %s ya existe como Direccion e-mail activa.';
|
||||
$lng['error']['destinationalreadyexist'] = 'Ya existe una Direccion Secundaria para %s .';
|
||||
$lng['error']['destinationiswrong'] = 'La Direccion Secundaria %s contiene simbolos invalidos o esta incompleta.';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = 'Pregunta de seguridad';
|
||||
$lng['question']['admin_customer_reallydelete'] = '¿Usted realmente desea suprimir el %s del cliente? ATENCIÒN!todos los datos se perderán definitivamente, deberá borar los datos manualmente del sistema!';
|
||||
$lng['question']['admin_domain_reallydelete'] = '¿Usted realmente desea suprimir el dominio %s?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = '¿Usted realmente desea desactivar estas configuraciones de seguridad (OpenBasedir y/o SafeMode)?';
|
||||
$lng['question']['admin_admin_reallydelete'] = '¿Usted realmente desea suprimir al administrador %s? todos los clientes y dominios serán reasignados al administrador principal.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'desea usted realmente suprimir el modelo \'%s\'?';
|
||||
$lng['question']['domains_reallydelete'] = '¿desea Usted realmente suprimir el dominio %s?';
|
||||
$lng['question']['email_reallydelete'] = '¿Usted realmente desea suprimir el email address %s?';
|
||||
$lng['question']['email_reallydelete_account'] = '¿Usted realmente desea suprimir la cuenta de email %s?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = '¿Usted realmente desea suprimir el reenvío de email %s?';
|
||||
$lng['question']['extras_reallydelete'] = '¿Usted realmente desea suprimir la protección del directorio %s?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = '¿Usted realmente desea suprimir las opciones del camino para el %s?';
|
||||
$lng['question']['ftp_reallydelete'] = '¿Usted realmente desea suprimir la cuenta %s del ftp?';
|
||||
$lng['question']['mysql_reallydelete'] = '¿Usted realmente desea suprimir la base de datos %s?ATENCIÒN! todos los datos se perderán definitivamente';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = '¿Realmente desea elaborar de nuevo sus archivos de configuración de Apache y Bind? ';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = 'Hola,\n\nsu cuenta del correo {EMAIL}\nfue instalada con éxito .\n\nEsto es un email automáticamente creado,\n\nno conteste por favor!\n\nSinceramente suyo, el SysCP-Equipo';
|
||||
$lng['mails']['pop_success']['subject'] = 'cuenta del email instalada con éxito';
|
||||
$lng['mails']['createcustomer']['mailbody'] = 'Hola {FIRSTNAME} {NAME},\n\naquà está su información de la cuenta:\n\nNombre del usuario: {USERNAME}\nContraseña: {PASSWORD}\n\nGracias,\nel SysCP-Equipo';
|
||||
$lng['mails']['createcustomer']['subject'] = 'Información de la cuenta';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = 'Descripción';
|
||||
$lng['admin']['ressourcedetails'] = 'Recursos usados';
|
||||
$lng['admin']['systemdetails'] = 'Detalles del sistema';
|
||||
$lng['admin']['syscpdetails'] = 'Detalles de SysCP';
|
||||
$lng['admin']['installedversion'] = 'Versión instalada';
|
||||
$lng['admin']['latestversion'] = 'La última versión';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = 'búsqueda via Web-servicio';
|
||||
$lng['admin']['lookfornewversion']['error'] = 'Error de lectura';
|
||||
$lng['admin']['resources'] = 'Recursos';
|
||||
$lng['admin']['customer'] = 'Cliente';
|
||||
$lng['admin']['customers'] = 'Clientes';
|
||||
$lng['admin']['customer_add'] = 'Crear un cliente nuevo';
|
||||
$lng['admin']['customer_edit'] = 'Corrija a un cliente';
|
||||
$lng['admin']['domains'] = 'Dominios';
|
||||
$lng['admin']['domain_add'] = 'Crear el dominio';
|
||||
$lng['admin']['domain_edit'] = 'Corrija el dominio';
|
||||
$lng['admin']['subdomainforemail'] = 'dominio-secundario como dominio de email';
|
||||
$lng['admin']['admin'] = 'Administrador';
|
||||
$lng['admin']['admins'] = 'Administradores';
|
||||
$lng['admin']['admin_add'] = 'Crear un admininstrator';
|
||||
$lng['admin']['admin_edit'] = 'corrija el admininstrator';
|
||||
$lng['admin']['customers_see_all'] = '¿Puede ver a todos los clientes?';
|
||||
$lng['admin']['domains_see_all'] = '¿Puede ver todos los dominios?';
|
||||
$lng['admin']['change_serversettings'] = '¿Puede cambiar configuraciones del servidor?';
|
||||
$lng['admin']['server'] = 'Servidor';
|
||||
$lng['admin']['serversettings'] = 'Configuraciones';
|
||||
$lng['admin']['rebuildconf'] = 'Reescribir las configuraciones';
|
||||
$lng['admin']['stdsubdomain'] = 'dominio-secundario estándar';
|
||||
$lng['admin']['stdsubdomain_add'] = 'Crear el subdomain estándar';
|
||||
$lng['admin']['deactivated'] = 'Desactivado';
|
||||
$lng['admin']['deactivated_user'] = 'Desactive a utilizador';
|
||||
$lng['admin']['sendpassword'] = 'EnvÃe la contraseña';
|
||||
$lng['admin']['ownvhostsettings'] = 'vHost-Configuraciones propias';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = 'Configuración';
|
||||
$lng['admin']['configfiles']['files'] = '<b>Configfiles:</b> Cambie por favor los ficheros siguientes<br />o créelos con el contenido siguiente si no existen.<br /><b>Por favor note:</b> La MySQL-contraseña no se ha substituido por razones de seguridad.<br />Substituya por favor "MYSQL_PASSWORD"manualmente por la propia. Si usted se olvidó de su MySQL-contraseña<br />usted la encontrará en el "lib/userdata.inc.php".';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>Commands:</b> Ejecute por favor los comandos siguientes en un shell.';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>Relanzar:</b> Ejecute por favor los comandos siguientes en un shell para recargar la nueva configuración.';
|
||||
$lng['admin']['templates']['templates'] = 'Modelos';
|
||||
$lng['admin']['templates']['template_add'] = 'Agregue el modelo';
|
||||
$lng['admin']['templates']['template_edit'] = 'Corrija el modelo';
|
||||
$lng['admin']['templates']['action'] = 'Acción';
|
||||
$lng['admin']['templates']['email'] = 'E-Mail';
|
||||
$lng['admin']['templates']['subject'] = 'asunto';
|
||||
$lng['admin']['templates']['mailbody'] = 'email-texto';
|
||||
$lng['admin']['templates']['createcustomer'] = 'email de Bienvenida para los nuevos clientes';
|
||||
$lng['admin']['templates']['pop_success'] = 'email de Bienvenida para las nuevas cuentas del email';
|
||||
$lng['admin']['templates']['template_replace_vars'] = 'Variables que se substituirán en el modelo:';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = 'Substituido por el nombre de los clientes.';
|
||||
$lng['admin']['templates']['NAME'] = 'Substituido por el Apellido de los clientes.';
|
||||
$lng['admin']['templates']['USERNAME'] = 'Substituido por el username de la cuenta de clientes.';
|
||||
$lng['admin']['templates']['PASSWORD'] = 'Substituido por la contraseña de la cuenta de clientes.';
|
||||
$lng['admin']['templates']['EMAIL'] = 'Substituido por la direccion de la cuenta de POP3/del IMAP.';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = 'Descanso de la sesión';
|
||||
$lng['serversettings']['session_timeout']['description'] = '¿Cuanto tiempo un utilizador tiene que estar inactivo antes de que una sesión consiga quedar inválida (segundos)?';
|
||||
$lng['serversettings']['accountprefix']['title'] = 'Cliente-prefijo';
|
||||
$lng['serversettings']['accountprefix']['description'] = '¿Qué prefijo deben las cuentas de cliente tener??';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'Prefijo del SQL';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = '¿Qué prefijo deben tener las cuentas del mysql?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'Prefijo del ftp';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'Qué prefijo deben tener las cuentas del ftp?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = 'Directorio de documento';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = '¿Dónde deben quedar todos los clientes?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = 'Directorio de los ficheros de diario';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = '¿Dónde deben todos los ficheros de diario ser salvados?';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP address';
|
||||
$lng['serversettings']['ipaddress']['description'] = '¿Cuál es el IP address de este servidor?';
|
||||
$lng['serversettings']['hostname']['title'] = 'Hostname';
|
||||
$lng['serversettings']['hostname']['description'] = '¿Cuál es el hostname de este servidor?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = 'Comando de la recarga de Apache';
|
||||
$lng['serversettings']['apachereload_command']['description'] = '¿Cuál es el comando de la recarga de Apache?';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = 'Directorio de la configuración de Bind';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = '¿Dónde está la configuración del Bind?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = 'Comando de la recarga de Bindmm';
|
||||
$lng['serversettings']['bindreload_command']['description'] = '¿Cuál es el comando de la recarga de Bind?';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = 'Zona del valor por defecto de Bind';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = '¿Cuál es el nombre de la zona del valor por defecto?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = 'eMail-Uid';
|
||||
$lng['serversettings']['vmail_uid']['description'] = '¿Qué UserID deben tener los email?';
|
||||
$lng['serversettings']['vmail_gid']['title'] = 'eMail-Gid';
|
||||
$lng['serversettings']['vmail_gid']['description'] = '¿Qué identificación del grupo deben tener los email?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = 'Hogar-directorio de los email';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = '¿Dónde deben quedar todos los email?';
|
||||
$lng['serversettings']['adminmail']['title'] = 'Remitente';
|
||||
$lng['serversettings']['adminmail']['description'] = '¿Qué remitente-tratan para los email se envÃa del panel?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = '¿Cuál es el URL al phpMyAdmin? (tienen que comenzar con http://)';
|
||||
$lng['serversettings']['webmail_url']['title'] = 'WebMail URL';
|
||||
$lng['serversettings']['webmail_url']['description'] = '¿Cuál es el URL a WebMail? (tienen que comenzar con http://)';
|
||||
$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = '¿Cuál es el URL a WebFTP?? (tienen que comenzar con http://)';
|
||||
$lng['serversettings']['language']['description'] = 'Cuál es su lenguaje estándar del servidor?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = 'Tentativas máximas de registro';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = 'Las tentativas máximas de registro después de lo cual la cuenta se desactiva.';
|
||||
$lng['serversettings']['deactivatetime']['title'] = 'tiempo de la desactivación';
|
||||
$lng['serversettings']['deactivatetime']['description'] = 'tiempo (en segundos) para el cual la cuenta está desactivada.';
|
||||
$lng['serversettings']['pathedit']['title'] = 'Método de introducción de datos del trayecto ';
|
||||
$lng['serversettings']['pathedit']['description'] = 'Prefiere seleccionar un trayecto a través de un menú-dropdown o introducirlo manualmente.';
|
||||
|
||||
/**
|
||||
* ADDED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['admin']['cronlastrun'] = 'Último Cron';
|
||||
$lng['serversettings']['paging']['title'] = 'Entradas por página';
|
||||
$lng['serversettings']['paging']['description'] = '¿Cuantas entradas deben ser mostradas en una página? (0=desactivar paginación)';
|
||||
$lng['error']['ipstillhasdomains'] = 'La combinación IP/Puerto que Usted quiere eliminar todavía tiene dominios asignados, por favor vuelva a reasignar estas combinaciones IP/Puerto antes de eliminar esta combinación IP/Puerto.';
|
||||
$lng['error']['cantdeletedefaultip'] = 'Usted no puede eliminar la combinación IP/Puerto del distribuidor predeterminada, por favor crea otra combinación IP/Puerto predeterminada para distribuidores antes de eliminar esta combinación IP/Puerto.';
|
||||
$lng['error']['cantdeletesystemip'] = 'No puede eliminar la IP del sistema, crea una nueva combinación IP/Puerto para el sistema IP o cambia the sistema IP.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'Port\'';
|
||||
$lng['error']['myipdefault'] = 'Debe seleccionar una combinación IP/Puerto que se convierta de manera predeterminado.';
|
||||
$lng['error']['myipnotdouble'] = 'Esta combinación IP/Puerto ya existe.';
|
||||
$lng['question']['admin_ip_reallydelete'] = '¿Realmente quiere eliminar esta dirección IP %s?';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = 'IPs y Puertos';
|
||||
$lng['admin']['ipsandports']['add'] = 'Añadir IP/Puerto';
|
||||
$lng['admin']['ipsandports']['edit'] = 'Editar IP/Puerto';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/Puerto';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = 'Puerto';
|
||||
|
||||
// ADDED IN 1.2.13-rc3
|
||||
|
||||
$lng['error']['cantchangesystemip'] = 'No puede cambiar el último IP de sistema, cree una nueva combinación de IP/Puerto para la IP de sistema o cambie la IP de sistema.';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '¿Está seguro de que quiere la raíz de documento para este dominio, ya que no se encuentra dentro de la raíz cliente del cliente?';
|
||||
|
||||
// ADDED IN 1.2.14-rc1
|
||||
|
||||
$lng['admin']['memorylimitdisabled'] = 'Desactivado';
|
||||
$lng['error']['loginnameissystemaccount'] = 'No puede crear cuentas parecidas a cuentas de sistema. Por favor, introduzca otro nombre de cuenta.';
|
||||
$lng['domain']['docroot'] = 'Path del campo de arriba';
|
||||
$lng['domain']['homedir'] = 'Hogar-directorio';
|
||||
$lng['admin']['valuemandatory'] = 'Este valor es obligatorio';
|
||||
$lng['admin']['valuemandatorycompany'] = 'Hay que rellenar ó "apellido" y "nombre" ó "empresa"';
|
||||
$lng['panel']['pathorurl'] = 'Path ó URL';
|
||||
$lng['error']['sessiontimeoutiswrong'] = 'Sólo están permitidos "descansos de la sesión" num<75>ricos';
|
||||
$lng['error']['maxloginattemptsiswrong'] = 'Sólo están permitidos "intentos máximas de registro" num<75>ricos';
|
||||
$lng['error']['deactivatetimiswrong'] = 'Sólo está permitido un "tiempo de desactivación" num<75>rico';
|
||||
$lng['error']['accountprefixiswrong'] = 'El prefijo de cliente está mal.';
|
||||
$lng['error']['mysqlprefixiswrong'] = 'El prefijo del SQL está mal.';
|
||||
$lng['error']['ftpprefixiswrong'] = 'El prefijo del FTP está mal.';
|
||||
$lng['error']['ipiswrong'] = 'La dirección IP está mal. Sólo se permiten direcciones IP válidas.';
|
||||
$lng['error']['vmailuidiswrong'] = 'El eMail-Uid está mal. Sólo se permiten UIDs num<75>ricos.';
|
||||
$lng['error']['vmailgidiswrong'] = 'El eMail-Gid está mal. Sólo se permiten GIDs num<75>ricos.';
|
||||
$lng['error']['adminmailiswrong'] = 'La dirección del remitente está mal. Sólo se permiten direcciones de correo electrónico válidas.';
|
||||
$lng['error']['pagingiswrong'] = 'Las entradas por página están mal. Sólo se permiten caracteres num<75>ricos.';
|
||||
$lng['error']['phpmyadminiswrong'] = 'La URL de phpMyAdmin no es una URL válida.';
|
||||
$lng['error']['webmailiswrong'] = 'La URL de WebMail no es una URL válida.';
|
||||
$lng['error']['webftpiswrong'] = 'La URL de WebFTP no es una URL válida.';
|
||||
|
||||
// ADDED IN 1.2.15-rc1
|
||||
|
||||
$lng['admin']['serversoftware'] = 'Software del servidor';
|
||||
$lng['admin']['phpversion'] = 'Versión PHP';
|
||||
$lng['admin']['phpmemorylimit'] = 'Limite memoria PHP';
|
||||
$lng['admin']['mysqlserverversion'] = 'Versión servidor MySQL';
|
||||
$lng['admin']['mysqlclientversion'] = 'Versión cliente MySQL';
|
||||
$lng['admin']['webserverinterface'] = 'Interface servidor de red';
|
||||
$lng['menue']['extras']['extras'] = 'Extras';
|
||||
$lng['extras']['pathoptions_edit'] = 'editar opciones de ruta/directorio';
|
||||
$lng['domain']['openbasedirpath'] = 'Directorio OpenBasedir';
|
||||
$lng['menue']['main']['username'] = 'Ingreso como: ';
|
||||
$lng['serversettings']['defaultip']['title'] = 'IP/Puerto por defecto';
|
||||
$lng['serversettings']['defaultip']['description'] = '¿Cuál es la combinación de IP y Puerto por defecto?';
|
||||
$lng['domains']['statstics'] = 'Estadisticas de uso';
|
||||
$lng['panel']['ascending'] = 'ascendiente';
|
||||
$lng['panel']['decending'] = 'descendiente';
|
||||
$lng['panel']['search'] = 'Buscar';
|
||||
$lng['panel']['used'] = 'usado';
|
||||
$lng['panel']['translator'] = 'Traductor';
|
||||
$lng['error']['stringformaterror'] = 'El valor para la fila "%s" no esta dentro de los formatos esperados.';
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Carlo Pedro Woedl <carlopedrowoedl@hotmail.com>
|
||||
* @author Ron Brand <ron.brand@web.de>
|
||||
* @author Sandra Aders
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: spanish.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Carlo Pedro Woedl, Ron Brand, Sandra Aders';
|
||||
$lng['panel']['edit'] = 'modificar';
|
||||
$lng['panel']['delete'] = 'borar';
|
||||
$lng['panel']['create'] = 'crear';
|
||||
$lng['panel']['save'] = 'almacenar';
|
||||
$lng['panel']['yes'] = 'si';
|
||||
$lng['panel']['no'] = 'no';
|
||||
$lng['panel']['emptyfornochanges'] = 'vacío si no hay cambios';
|
||||
$lng['panel']['emptyfordefault'] = 'vacia para los valores por defecto';
|
||||
$lng['panel']['path'] = 'camino';
|
||||
$lng['panel']['toggle'] = 'cambio';
|
||||
$lng['panel']['next'] = 'continuar';
|
||||
$lng['panel']['dirsmissing'] = 'Los registros no están disponibles o no son leíbles.';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = 'Nombre del usuario';
|
||||
$lng['login']['password'] = 'contraseña';
|
||||
$lng['login']['language'] = 'Lengua';
|
||||
$lng['login']['login'] = 'Registrarse';
|
||||
$lng['login']['logout'] = 'Finalizar sesión';
|
||||
$lng['login']['profile_lng'] = 'Lenguaje del perfil';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = 'Hogar';
|
||||
$lng['customer']['name'] = 'Apellido';
|
||||
$lng['customer']['firstname'] = 'Nombre';
|
||||
$lng['customer']['company'] = 'Razón social';
|
||||
$lng['customer']['street'] = 'Dirección';
|
||||
$lng['customer']['zipcode'] = 'Codigo Postal/Población';
|
||||
$lng['customer']['city'] = 'Ciudad';
|
||||
$lng['customer']['phone'] = 'Teléfono';
|
||||
$lng['customer']['fax'] = 'Telefax';
|
||||
$lng['customer']['email'] = 'Email';
|
||||
$lng['customer']['customernumber'] = 'Numero de Cliente';
|
||||
$lng['customer']['diskspace'] = 'Espacio de web (MB)';
|
||||
$lng['customer']['traffic'] = 'Trafico (GB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL-Base de datos';
|
||||
$lng['customer']['emails'] = 'Direcciones e-mail';
|
||||
$lng['customer']['accounts'] = 'Cuentas e-mail';
|
||||
$lng['customer']['forwarders'] = 'e-mail de reenvío';
|
||||
$lng['customer']['ftps'] = 'FTP-Cuentas';
|
||||
$lng['customer']['subdomains'] = 'Subdominios';
|
||||
$lng['customer']['domains'] = 'Dominios';
|
||||
$lng['customer']['unlimited'] = 'infinito';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = 'Universal';
|
||||
$lng['menue']['main']['changepassword'] = 'Cambiar contraseña';
|
||||
$lng['menue']['main']['changelanguage'] = 'Cambiar Idioma';
|
||||
$lng['menue']['email']['email'] = 'eMail';
|
||||
$lng['menue']['email']['emails'] = 'Direcciones';
|
||||
$lng['menue']['email']['webmail'] = 'Sistema Webmail';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = 'Base de datos';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = 'Dominios';
|
||||
$lng['menue']['domains']['settings'] = 'Configuraciones';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = 'Cuentas';
|
||||
$lng['menue']['ftp']['webftp'] = 'WebFTP';
|
||||
$lng['menue']['extras']['directoryprotection'] = 'directorio de protección';
|
||||
$lng['menue']['extras']['pathoptions'] = 'Opciones del camino';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = 'Datos de Clientes';
|
||||
$lng['index']['accountdetails'] = 'Datos Cuentas';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = 'Contraseña anterior';
|
||||
$lng['changepassword']['new_password'] = 'Contraseña nueva';
|
||||
$lng['changepassword']['new_password_confirm'] = 'Contraseña (Repetir)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = 'Contraseña nueva (libre=sin cambio)';
|
||||
$lng['changepassword']['also_change_ftp'] = 'tambien cambiar la Contraseña del FTP';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = 'Aquí usted puede crear dominios (secundarios) y cambiar sus caminos.<br />El sistema necesitará un cierto tiempo para aplicar las nuevas configuraciones después de cada cambio.';
|
||||
$lng['domains']['domainsettings'] = 'Configuraciones del dominio';
|
||||
$lng['domains']['domainname'] = 'Nombre del dominio';
|
||||
$lng['domains']['subdomain_add'] = 'Crear el secundario-dominio';
|
||||
$lng['domains']['subdomain_edit'] = 'Corrija el dominio (secundario)';
|
||||
$lng['domains']['wildcarddomain'] = '¿Crear como comodÃn-dominio?';
|
||||
$lng['domains']['aliasdomain'] = 'Alias para dominio';
|
||||
$lng['domains']['noaliasdomain'] = 'No es un alias de dominio';
|
||||
|
||||
/**
|
||||
* eMails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = 'Aqui puede Usted crear su propia direccion e-mail.<br />Una Cuenta es como un Buzon en la Puerta de la Casa . Cuando alguien le escribe una email , esta aparece en su cuenta.<br/><br />Para descargar sus email utilice las configuraciones siguientes en su email-programa: (Los datos en letra <i>kursiva</i> seran sustituidas por las asignadas!)<br />nombre del Host: <b><i>Nombre del Domain</i></b><br />Nombre del Usuario: <b><i>Cuenta / Direccion e-mail</i></b><br />Clave: <b><i>Clave Elegida</i></b>';
|
||||
$lng['emails']['emailaddress'] = 'Direccion e-mail';
|
||||
$lng['emails']['emails_add'] = 'Crear Direccion e-mail';
|
||||
$lng['emails']['emails_edit'] = 'Cambiar Direccion e-mail';
|
||||
$lng['emails']['catchall'] = 'Catchall';
|
||||
$lng['emails']['iscatchall'] = 'Definir como Direccion Catchall';
|
||||
$lng['emails']['account'] = 'Cuenta ';
|
||||
$lng['emails']['account_add'] = 'Crear Cuenta';
|
||||
$lng['emails']['account_delete'] = 'Borar Cuenta';
|
||||
$lng['emails']['from'] = 'Fuente';
|
||||
$lng['emails']['to'] = 'Destinación';
|
||||
$lng['emails']['forwarders'] = 'Reenviar';
|
||||
$lng['emails']['forwarder_add'] = 'agregar reenvio';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = 'Aqui puede Usted crear FTP-Cuentas adicionales.<br />Los cambios se actualizan de inmediato y Usted puede Usar los FTP-Cuentas.';
|
||||
$lng['ftp']['account_add'] = 'Crear Cuenta';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = 'Aqui se puede crear/cancelar la MySQL Base de Datos.<br>Los Cambios se actualizan de inmediato y la Base de Datos se puede usar enseguida.<br />En el menú usted encuentra el phpMyAdmin de la herramienta con el cual usted puede administrar fácilmente su base de datos.<br /><br />Para utilizar sus bases de datos en sus propias php-escrituras utilice las configuraciones siguientes: (Los datos en letra <i>cursiva</i> seran sustituidas por las asignadas!)<br />Nombre del Host:<b><SQL_HOST></b><br />Nombre del Usuario: <b><i>nombre de la base de datos</i></b><br />Clave: <b><i>contraseña elegida</i></b><br />Base de datos: <b><i>Nombre de la base de datos';
|
||||
$lng['mysql']['databasename'] = 'Nombre -/Base de Datos';
|
||||
$lng['mysql']['databasedescription'] = 'Indentificador de la Base de Datos';
|
||||
$lng['mysql']['database_create'] = 'Abrir base de Datos';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = 'Aqui se pueden crear Extras , por Eje.protector de Directorio.<br />Los cambios son despues de cierto tiempo aplicables.';
|
||||
$lng['extras']['directoryprotection_add'] = 'Crear Protección de Directorio';
|
||||
$lng['extras']['view_directory'] = 'Mostrar directorio';
|
||||
$lng['extras']['pathoptions_add'] = 'agregue las opciones del camino';
|
||||
$lng['extras']['directory_browsing'] = 'Mostrar contenido del Directorio';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = 'URL para errorDocumento 404';
|
||||
$lng['extras']['errordocument403path'] = 'URL para errorDocumento 403';
|
||||
$lng['extras']['errordocument500path'] = 'URL para errorDocumento 500';
|
||||
$lng['extras']['errordocument401path'] = 'URL para errorDocumento 401';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = 'Error';
|
||||
$lng['error']['directorymustexist'] = 'El Directorio %s tiene que Existir. Crearlo por Favor a traves del FTP-Programa.';
|
||||
$lng['error']['filemustexist'] = 'El archivo %s debe existir';
|
||||
$lng['error']['allresourcesused'] = 'Usted ha usado todos los recursos a su disposicion.';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain.';
|
||||
$lng['error']['domains_canteditdomain'] = 'Usted no puede trabajar con este Domain . Debido a que el Admin se lo niega.';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain , Borre primero todos las Direcciones e-mail de este dominio.';
|
||||
$lng['error']['firstdeleteallsubdomains'] = 'Usted debe primero borar todos los Subdomains, antes de Usted crear un dominio del comodÃn.';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Usted acaba de definer una Direccion como Catchall para este dominio.';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = 'Usted no puede suprimir su cuenta principal del ftp';
|
||||
$lng['error']['login'] = 'El Nombre de Usuario/Clave esta Errado. Por favor intento otra vez!';
|
||||
$lng['error']['login_blocked'] = 'Esta cuenta fue cerrada transitoriamente debido a demasiados intentos falsos. <br />Por favor intente otra vez en ' . $settings['login']['deactivatetime'] . ' segundos.';
|
||||
$lng['error']['notallreqfieldsorerrors'] = 'Usted no ha llenado todos los espacios asignados o ha colocado un dato Erroneo.';
|
||||
$lng['error']['oldpasswordnotcorrect'] = 'La Clave Vieja no es correcta.';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = 'Usted no puede afectar un aparato más recursos que los que usted posee.';
|
||||
$lng['error']['mustbeurl'] = 'Usted tiene que dar una completa direccion URL(por ejemplo: http://algo.de/error404.htm)';
|
||||
$lng['error']['invalidpath'] = 'No ha seleccionado una URL válida (¿probablemente problemas con el listado de registros?)';
|
||||
$lng['error']['stringisempty'] = 'Falta un dato';
|
||||
$lng['error']['stringiswrong'] = 'Dato falso';
|
||||
$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\'';
|
||||
$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\'';
|
||||
$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\'';
|
||||
$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = 'La Clave Nueva a la Confirmacion de Clave no Coinciden';
|
||||
$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\'';
|
||||
$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\'';
|
||||
$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\'';
|
||||
$lng['error']['mydomain'] = '\'dominio\'';
|
||||
$lng['error']['mydocumentroot'] = '\'Documentroot\'';
|
||||
$lng['error']['loginnameexists'] = 'Conexión-Nombre %s existe ya';
|
||||
$lng['error']['emailiswrong'] = 'Email address %s contiene caracteres inválidos o es incompleta';
|
||||
$lng['error']['loginnameiswrong'] = 'Conexión-Nombre %s contiene caracteres inválidos';
|
||||
$lng['error']['userpathcombinationdupe'] = 'combinación del nombre del usuario y del camino existe ya';
|
||||
$lng['error']['patherror'] = '¡Error general! el camino no puede estar vacÃo';
|
||||
$lng['error']['errordocpathdupe'] = 'Opción para el camino %s existe ya';
|
||||
$lng['error']['adduserfirst'] = 'Usted debe primero crear un Cliente';
|
||||
$lng['error']['domainalreadyexists'] = 'El dominio %s se ha asignado ya a un cliente';
|
||||
$lng['error']['nolanguageselect'] = 'Asigne un Idioma.';
|
||||
$lng['error']['nosubjectcreate'] = 'Usted debe de asignar un asunto.';
|
||||
$lng['error']['nomailbodycreate'] = 'Usted debe de Agregar Texto al Mail.';
|
||||
$lng['error']['templatenotfound'] = 'Modelo no encontrado.';
|
||||
$lng['error']['alltemplatesdefined'] = 'Usted no puede definir más modelos, todos los lenguajes se utilizan ya.';
|
||||
$lng['error']['wwwnotallowed'] = 'www no se permite como nombre para los secundario-dominios.';
|
||||
$lng['error']['subdomainiswrong'] = 'El dominio-secundario %s contiene caracteres inválidos.';
|
||||
$lng['error']['domaincantbeempty'] = 'El nombre del dominio-Apellido no puede estar Vacio.';
|
||||
$lng['error']['domainexistalready'] = 'El dominio %s existe ya.';
|
||||
$lng['error']['domainisaliasorothercustomer'] = 'El alias de dominio seleccionado es un propio alias de dominio o pertenece a otro cliente.';
|
||||
$lng['error']['emailexistalready'] = 'El email address %s existe ya.';
|
||||
$lng['error']['maindomainnonexist'] = 'El dominio-principal %s no existe.';
|
||||
$lng['error']['destinationnonexist'] = 'Crear por favor su email-expedición en \'Destinación\'.';
|
||||
$lng['error']['destinationalreadyexistasmail'] = 'La direccion Secundaria %s ya existe como Direccion e-mail activa.';
|
||||
$lng['error']['destinationalreadyexist'] = 'Ya existe una Direccion Secundaria para %s .';
|
||||
$lng['error']['destinationiswrong'] = 'La Direccion Secundaria %s contiene simbolos invalidos o esta incompleta.';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = 'Pregunta de seguridad';
|
||||
$lng['question']['admin_customer_reallydelete'] = '¿Usted realmente desea suprimir el %s del cliente? ATENCIÒN!todos los datos se perderán definitivamente, deberá borar los datos manualmente del sistema!';
|
||||
$lng['question']['admin_domain_reallydelete'] = '¿Usted realmente desea suprimir el dominio %s?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = '¿Usted realmente desea desactivar estas configuraciones de seguridad (OpenBasedir y/o SafeMode)?';
|
||||
$lng['question']['admin_admin_reallydelete'] = '¿Usted realmente desea suprimir al administrador %s? todos los clientes y dominios serán reasignados al administrador principal.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'desea usted realmente suprimir el modelo \'%s\'?';
|
||||
$lng['question']['domains_reallydelete'] = '¿desea Usted realmente suprimir el dominio %s?';
|
||||
$lng['question']['email_reallydelete'] = '¿Usted realmente desea suprimir el email address %s?';
|
||||
$lng['question']['email_reallydelete_account'] = '¿Usted realmente desea suprimir la cuenta de email %s?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = '¿Usted realmente desea suprimir el reenvío de email %s?';
|
||||
$lng['question']['extras_reallydelete'] = '¿Usted realmente desea suprimir la protección del directorio %s?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = '¿Usted realmente desea suprimir las opciones del camino para el %s?';
|
||||
$lng['question']['ftp_reallydelete'] = '¿Usted realmente desea suprimir la cuenta %s del ftp?';
|
||||
$lng['question']['mysql_reallydelete'] = '¿Usted realmente desea suprimir la base de datos %s?ATENCIÒN! todos los datos se perderán definitivamente';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = '¿Realmente desea elaborar de nuevo sus archivos de configuración de Apache y Bind? ';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = 'Hola,\n\nsu cuenta del correo {EMAIL}\nfue instalada con éxito .\n\nEsto es un email automáticamente creado,\n\nno conteste por favor!\n\nSinceramente suyo, el SysCP-Equipo';
|
||||
$lng['mails']['pop_success']['subject'] = 'cuenta del email instalada con éxito';
|
||||
$lng['mails']['createcustomer']['mailbody'] = 'Hola {FIRSTNAME} {NAME},\n\naquà está su información de la cuenta:\n\nNombre del usuario: {USERNAME}\nContraseña: {PASSWORD}\n\nGracias,\nel SysCP-Equipo';
|
||||
$lng['mails']['createcustomer']['subject'] = 'Información de la cuenta';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = 'Descripción';
|
||||
$lng['admin']['ressourcedetails'] = 'Recursos usados';
|
||||
$lng['admin']['systemdetails'] = 'Detalles del sistema';
|
||||
$lng['admin']['syscpdetails'] = 'Detalles de SysCP';
|
||||
$lng['admin']['installedversion'] = 'Versión instalada';
|
||||
$lng['admin']['latestversion'] = 'La última versión';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = 'búsqueda via Web-servicio';
|
||||
$lng['admin']['lookfornewversion']['error'] = 'Error de lectura';
|
||||
$lng['admin']['resources'] = 'Recursos';
|
||||
$lng['admin']['customer'] = 'Cliente';
|
||||
$lng['admin']['customers'] = 'Clientes';
|
||||
$lng['admin']['customer_add'] = 'Crear un cliente nuevo';
|
||||
$lng['admin']['customer_edit'] = 'Corrija a un cliente';
|
||||
$lng['admin']['domains'] = 'Dominios';
|
||||
$lng['admin']['domain_add'] = 'Crear el dominio';
|
||||
$lng['admin']['domain_edit'] = 'Corrija el dominio';
|
||||
$lng['admin']['subdomainforemail'] = 'dominio-secundario como dominio de email';
|
||||
$lng['admin']['admin'] = 'Administrador';
|
||||
$lng['admin']['admins'] = 'Administradores';
|
||||
$lng['admin']['admin_add'] = 'Crear un admininstrator';
|
||||
$lng['admin']['admin_edit'] = 'corrija el admininstrator';
|
||||
$lng['admin']['customers_see_all'] = '¿Puede ver a todos los clientes?';
|
||||
$lng['admin']['domains_see_all'] = '¿Puede ver todos los dominios?';
|
||||
$lng['admin']['change_serversettings'] = '¿Puede cambiar configuraciones del servidor?';
|
||||
$lng['admin']['server'] = 'Servidor';
|
||||
$lng['admin']['serversettings'] = 'Configuraciones';
|
||||
$lng['admin']['rebuildconf'] = 'Reescribir las configuraciones';
|
||||
$lng['admin']['stdsubdomain'] = 'dominio-secundario estándar';
|
||||
$lng['admin']['stdsubdomain_add'] = 'Crear el subdomain estándar';
|
||||
$lng['admin']['deactivated'] = 'Desactivado';
|
||||
$lng['admin']['deactivated_user'] = 'Desactive a utilizador';
|
||||
$lng['admin']['sendpassword'] = 'EnvÃe la contraseña';
|
||||
$lng['admin']['ownvhostsettings'] = 'vHost-Configuraciones propias';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = 'Configuración';
|
||||
$lng['admin']['configfiles']['files'] = '<b>Configfiles:</b> Cambie por favor los ficheros siguientes<br />o créelos con el contenido siguiente si no existen.<br /><b>Por favor note:</b> La MySQL-contraseña no se ha substituido por razones de seguridad.<br />Substituya por favor "MYSQL_PASSWORD"manualmente por la propia. Si usted se olvidó de su MySQL-contraseña<br />usted la encontrará en el "lib/userdata.inc.php".';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>Commands:</b> Ejecute por favor los comandos siguientes en un shell.';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>Relanzar:</b> Ejecute por favor los comandos siguientes en un shell para recargar la nueva configuración.';
|
||||
$lng['admin']['templates']['templates'] = 'Modelos';
|
||||
$lng['admin']['templates']['template_add'] = 'Agregue el modelo';
|
||||
$lng['admin']['templates']['template_edit'] = 'Corrija el modelo';
|
||||
$lng['admin']['templates']['action'] = 'Acción';
|
||||
$lng['admin']['templates']['email'] = 'E-Mail';
|
||||
$lng['admin']['templates']['subject'] = 'asunto';
|
||||
$lng['admin']['templates']['mailbody'] = 'email-texto';
|
||||
$lng['admin']['templates']['createcustomer'] = 'email de Bienvenida para los nuevos clientes';
|
||||
$lng['admin']['templates']['pop_success'] = 'email de Bienvenida para las nuevas cuentas del email';
|
||||
$lng['admin']['templates']['template_replace_vars'] = 'Variables que se substituirán en el modelo:';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = 'Substituido por el nombre de los clientes.';
|
||||
$lng['admin']['templates']['NAME'] = 'Substituido por el Apellido de los clientes.';
|
||||
$lng['admin']['templates']['USERNAME'] = 'Substituido por el username de la cuenta de clientes.';
|
||||
$lng['admin']['templates']['PASSWORD'] = 'Substituido por la contraseña de la cuenta de clientes.';
|
||||
$lng['admin']['templates']['EMAIL'] = 'Substituido por la direccion de la cuenta de POP3/del IMAP.';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = 'Descanso de la sesión';
|
||||
$lng['serversettings']['session_timeout']['description'] = '¿Cuanto tiempo un utilizador tiene que estar inactivo antes de que una sesión consiga quedar inválida (segundos)?';
|
||||
$lng['serversettings']['accountprefix']['title'] = 'Cliente-prefijo';
|
||||
$lng['serversettings']['accountprefix']['description'] = '¿Qué prefijo deben las cuentas de cliente tener??';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'Prefijo del SQL';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = '¿Qué prefijo deben tener las cuentas del mysql?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'Prefijo del ftp';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'Qué prefijo deben tener las cuentas del ftp?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = 'Directorio de documento';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = '¿Dónde deben quedar todos los clientes?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = 'Directorio de los ficheros de diario';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = '¿Dónde deben todos los ficheros de diario ser salvados?';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP address';
|
||||
$lng['serversettings']['ipaddress']['description'] = '¿Cuál es el IP address de este servidor?';
|
||||
$lng['serversettings']['hostname']['title'] = 'Hostname';
|
||||
$lng['serversettings']['hostname']['description'] = '¿Cuál es el hostname de este servidor?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = 'Comando de la recarga de Apache';
|
||||
$lng['serversettings']['apachereload_command']['description'] = '¿Cuál es el comando de la recarga de Apache?';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = 'Directorio de la configuración de Bind';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = '¿Dónde está la configuración del Bind?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = 'Comando de la recarga de Bindmm';
|
||||
$lng['serversettings']['bindreload_command']['description'] = '¿Cuál es el comando de la recarga de Bind?';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = 'Zona del valor por defecto de Bind';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = '¿Cuál es el nombre de la zona del valor por defecto?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = 'eMail-Uid';
|
||||
$lng['serversettings']['vmail_uid']['description'] = '¿Qué UserID deben tener los email?';
|
||||
$lng['serversettings']['vmail_gid']['title'] = 'eMail-Gid';
|
||||
$lng['serversettings']['vmail_gid']['description'] = '¿Qué identificación del grupo deben tener los email?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = 'Hogar-directorio de los email';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = '¿Dónde deben quedar todos los email?';
|
||||
$lng['serversettings']['adminmail']['title'] = 'Remitente';
|
||||
$lng['serversettings']['adminmail']['description'] = '¿Qué remitente-tratan para los email se envÃa del panel?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = '¿Cuál es el URL al phpMyAdmin? (tienen que comenzar con http://)';
|
||||
$lng['serversettings']['webmail_url']['title'] = 'WebMail URL';
|
||||
$lng['serversettings']['webmail_url']['description'] = '¿Cuál es el URL a WebMail? (tienen que comenzar con http://)';
|
||||
$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = '¿Cuál es el URL a WebFTP?? (tienen que comenzar con http://)';
|
||||
$lng['serversettings']['language']['description'] = 'Cuál es su lenguaje estándar del servidor?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = 'Tentativas máximas de registro';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = 'Las tentativas máximas de registro después de lo cual la cuenta se desactiva.';
|
||||
$lng['serversettings']['deactivatetime']['title'] = 'tiempo de la desactivación';
|
||||
$lng['serversettings']['deactivatetime']['description'] = 'tiempo (en segundos) para el cual la cuenta está desactivada.';
|
||||
$lng['serversettings']['pathedit']['title'] = 'Método de introducción de datos del trayecto ';
|
||||
$lng['serversettings']['pathedit']['description'] = 'Prefiere seleccionar un trayecto a través de un menú-dropdown o introducirlo manualmente.';
|
||||
|
||||
/**
|
||||
* ADDED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['admin']['cronlastrun'] = 'Último Cron';
|
||||
$lng['serversettings']['paging']['title'] = 'Entradas por página';
|
||||
$lng['serversettings']['paging']['description'] = '¿Cuantas entradas deben ser mostradas en una página? (0=desactivar paginación)';
|
||||
$lng['error']['ipstillhasdomains'] = 'La combinación IP/Puerto que Usted quiere eliminar todavía tiene dominios asignados, por favor vuelva a reasignar estas combinaciones IP/Puerto antes de eliminar esta combinación IP/Puerto.';
|
||||
$lng['error']['cantdeletedefaultip'] = 'Usted no puede eliminar la combinación IP/Puerto del distribuidor predeterminada, por favor crea otra combinación IP/Puerto predeterminada para distribuidores antes de eliminar esta combinación IP/Puerto.';
|
||||
$lng['error']['cantdeletesystemip'] = 'No puede eliminar la IP del sistema, crea una nueva combinación IP/Puerto para el sistema IP o cambia the sistema IP.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'Port\'';
|
||||
$lng['error']['myipdefault'] = 'Debe seleccionar una combinación IP/Puerto que se convierta de manera predeterminado.';
|
||||
$lng['error']['myipnotdouble'] = 'Esta combinación IP/Puerto ya existe.';
|
||||
$lng['question']['admin_ip_reallydelete'] = '¿Realmente quiere eliminar esta dirección IP %s?';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = 'IPs y Puertos';
|
||||
$lng['admin']['ipsandports']['add'] = 'Añadir IP/Puerto';
|
||||
$lng['admin']['ipsandports']['edit'] = 'Editar IP/Puerto';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/Puerto';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = 'Puerto';
|
||||
|
||||
// ADDED IN 1.2.13-rc3
|
||||
|
||||
$lng['error']['cantchangesystemip'] = 'No puede cambiar el último IP de sistema, cree una nueva combinación de IP/Puerto para la IP de sistema o cambie la IP de sistema.';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '¿Está seguro de que quiere la raíz de documento para este dominio, ya que no se encuentra dentro de la raíz cliente del cliente?';
|
||||
|
||||
// ADDED IN 1.2.14-rc1
|
||||
|
||||
$lng['admin']['memorylimitdisabled'] = 'Desactivado';
|
||||
$lng['error']['loginnameissystemaccount'] = 'No puede crear cuentas parecidas a cuentas de sistema. Por favor, introduzca otro nombre de cuenta.';
|
||||
$lng['domain']['docroot'] = 'Path del campo de arriba';
|
||||
$lng['domain']['homedir'] = 'Hogar-directorio';
|
||||
$lng['admin']['valuemandatory'] = 'Este valor es obligatorio';
|
||||
$lng['admin']['valuemandatorycompany'] = 'Hay que rellenar ó "apellido" y "nombre" ó "empresa"';
|
||||
$lng['panel']['pathorurl'] = 'Path ó URL';
|
||||
$lng['error']['sessiontimeoutiswrong'] = 'Sólo están permitidos "descansos de la sesión" num<75>ricos';
|
||||
$lng['error']['maxloginattemptsiswrong'] = 'Sólo están permitidos "intentos máximas de registro" num<75>ricos';
|
||||
$lng['error']['deactivatetimiswrong'] = 'Sólo está permitido un "tiempo de desactivación" num<75>rico';
|
||||
$lng['error']['accountprefixiswrong'] = 'El prefijo de cliente está mal.';
|
||||
$lng['error']['mysqlprefixiswrong'] = 'El prefijo del SQL está mal.';
|
||||
$lng['error']['ftpprefixiswrong'] = 'El prefijo del FTP está mal.';
|
||||
$lng['error']['ipiswrong'] = 'La dirección IP está mal. Sólo se permiten direcciones IP válidas.';
|
||||
$lng['error']['vmailuidiswrong'] = 'El eMail-Uid está mal. Sólo se permiten UIDs num<75>ricos.';
|
||||
$lng['error']['vmailgidiswrong'] = 'El eMail-Gid está mal. Sólo se permiten GIDs num<75>ricos.';
|
||||
$lng['error']['adminmailiswrong'] = 'La dirección del remitente está mal. Sólo se permiten direcciones de correo electrónico válidas.';
|
||||
$lng['error']['pagingiswrong'] = 'Las entradas por página están mal. Sólo se permiten caracteres num<75>ricos.';
|
||||
$lng['error']['phpmyadminiswrong'] = 'La URL de phpMyAdmin no es una URL válida.';
|
||||
$lng['error']['webmailiswrong'] = 'La URL de WebMail no es una URL válida.';
|
||||
$lng['error']['webftpiswrong'] = 'La URL de WebFTP no es una URL válida.';
|
||||
|
||||
// ADDED IN 1.2.15-rc1
|
||||
|
||||
$lng['admin']['serversoftware'] = 'Software del servidor';
|
||||
$lng['admin']['phpversion'] = 'Versión PHP';
|
||||
$lng['admin']['phpmemorylimit'] = 'Limite memoria PHP';
|
||||
$lng['admin']['mysqlserverversion'] = 'Versión servidor MySQL';
|
||||
$lng['admin']['mysqlclientversion'] = 'Versión cliente MySQL';
|
||||
$lng['admin']['webserverinterface'] = 'Interface servidor de red';
|
||||
$lng['menue']['extras']['extras'] = 'Extras';
|
||||
$lng['extras']['pathoptions_edit'] = 'editar opciones de ruta/directorio';
|
||||
$lng['domain']['openbasedirpath'] = 'Directorio OpenBasedir';
|
||||
$lng['menue']['main']['username'] = 'Ingreso como: ';
|
||||
$lng['serversettings']['defaultip']['title'] = 'IP/Puerto por defecto';
|
||||
$lng['serversettings']['defaultip']['description'] = '¿Cuál es la combinación de IP y Puerto por defecto?';
|
||||
$lng['domains']['statstics'] = 'Estadisticas de uso';
|
||||
$lng['panel']['ascending'] = 'ascendiente';
|
||||
$lng['panel']['decending'] = 'descendiente';
|
||||
$lng['panel']['search'] = 'Buscar';
|
||||
$lng['panel']['used'] = 'usado';
|
||||
$lng['panel']['translator'] = 'Traductor';
|
||||
$lng['error']['stringformaterror'] = 'El valor para la fila "%s" no esta dentro de los formatos esperados.';
|
||||
|
||||
?>
|
||||
1478
lng/swedish.lng.php
1478
lng/swedish.lng.php
File diff suppressed because it is too large
Load Diff
@@ -1,456 +1,456 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Jackie Zhang <jackie.zhang@arcor.de>
|
||||
* @author Wang Changyi <wangchangyi@hotmail.com>
|
||||
* @author Patrick Brueckner <patrick_brueckner@yahoo.de>
|
||||
* @author Yuan Yang <melodieyy@web.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: zh-cn.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Jackie Zhang, Wang Changyi, Yuan Yang';
|
||||
$lng['panel']['edit'] = '编辑';
|
||||
$lng['panel']['delete'] = '删除';
|
||||
$lng['panel']['create'] = '创建';
|
||||
$lng['panel']['save'] = '保存';
|
||||
$lng['panel']['yes'] = '是';
|
||||
$lng['panel']['no'] = '否';
|
||||
$lng['panel']['emptyfornochanges'] = '无改变清空';
|
||||
$lng['panel']['emptyfordefault'] = '默认值清空';
|
||||
$lng['panel']['path'] = '路径';
|
||||
$lng['panel']['toggle'] = '触发器';
|
||||
$lng['panel']['next'] = '下一个';
|
||||
$lng['panel']['dirsmissing'] = '目录不可添加或者不可读';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = '用户名';
|
||||
$lng['login']['password'] = '密码';
|
||||
$lng['login']['language'] = '语言';
|
||||
$lng['login']['login'] = '登陆';
|
||||
$lng['login']['logout'] = '登出';
|
||||
$lng['login']['profile_lng'] = '用户标准语言';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = '根目录';
|
||||
$lng['customer']['name'] = '姓';
|
||||
$lng['customer']['firstname'] = '名';
|
||||
$lng['customer']['company'] = '公司';
|
||||
$lng['customer']['street'] = '街道';
|
||||
$lng['customer']['zipcode'] = '邮政编码';
|
||||
$lng['customer']['city'] = '城市';
|
||||
$lng['customer']['phone'] = '电话';
|
||||
$lng['customer']['fax'] = '传真';
|
||||
$lng['customer']['email'] = '电子邮件';
|
||||
$lng['customer']['customernumber'] = '顾客号';
|
||||
$lng['customer']['diskspace'] = '磁盘空间(MB)';
|
||||
$lng['customer']['traffic'] = '流量(GB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL数据库';
|
||||
$lng['customer']['emails'] = '电子邮件地址';
|
||||
$lng['customer']['accounts'] = '电子邮件帐户';
|
||||
$lng['customer']['forwarders'] = '电子邮件转发';
|
||||
$lng['customer']['ftps'] = 'FTP文件格式';
|
||||
$lng['customer']['subdomains'] = '子域';
|
||||
$lng['customer']['domains'] = '域';
|
||||
$lng['customer']['unlimited'] = '无限的';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = '主要的';
|
||||
$lng['menue']['main']['changepassword'] = '更改密码';
|
||||
$lng['menue']['main']['changelanguage'] = '语言转换';
|
||||
$lng['menue']['email']['email'] = '电子邮件';
|
||||
$lng['menue']['email']['emails'] = '地址';
|
||||
$lng['menue']['email']['webmail'] = '网络邮件';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = '数据库';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = '域';
|
||||
$lng['menue']['domains']['settings'] = '设置';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = '账户';
|
||||
$lng['menue']['ftp']['webftp'] = '网络FTP地址';
|
||||
$lng['menue']['extras']['extras'] = '专用';
|
||||
$lng['menue']['extras']['directoryprotection'] = '目录保护';
|
||||
$lng['menue']['extras']['pathoptions'] = '路径选择';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = '用户数据';
|
||||
$lng['index']['accountdetails'] = '账户数据';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = '旧密码';
|
||||
$lng['changepassword']['new_password'] = '新密码';
|
||||
$lng['changepassword']['new_password_confirm'] = '新密码(确认)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = $lng['changepassword']['new_password'] . '(' . $lng['panel']['emptyfornochanges'] . ')';
|
||||
$lng['changepassword']['also_change_ftp'] = '改变主FTP入口的密码';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = '这里您可以设置域以及更改路径<br/>在每次更改后系统需要一些时间重新读取设置';
|
||||
$lng['domains']['domainsettings'] = '域设置';
|
||||
$lng['domains']['domainname'] = '域名';
|
||||
$lng['domains']['subdomain_add'] = '添加子域';
|
||||
$lng['domains']['subdomain_edit'] = '编辑子域';
|
||||
$lng['domains']['wildcarddomain'] = '做为原始域登记';
|
||||
$lng['domains']['aliasdomain'] = '域别名';
|
||||
$lng['domains']['noaliasdomain'] = '无域别名';
|
||||
|
||||
/**
|
||||
* eMails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = '这里您可以创建您的电子邮件地址<br />POP账户如同您门前的邮箱,每当有人给您写电子邮件,电子邮件便会被放置在POP账户中<br/><br/>您邮件程序的进入数据如下所示:<i>斜体字</i>的说明会被每次的登记而替代<br><b>主机名<b><i>域名</i></b><br>用户名):<b><i>账户名/电子邮件地址</i></b><br>密码:<b><i>被选密码</i></b>';
|
||||
$lng['emails']['emailaddress'] = '电子邮件地址';
|
||||
$lng['emails']['emails_add'] = '创建电子邮件地址';
|
||||
$lng['emails']['emails_edit'] = '编辑电子邮件地址';
|
||||
$lng['emails']['catchall'] = '电邮户口';
|
||||
$lng['emails']['iscatchall'] = '设置成电邮户口?';
|
||||
$lng['emails']['account'] = '帐户';
|
||||
$lng['emails']['account_add'] = '创建帐户';
|
||||
$lng['emails']['account_delete'] = '删除帐户';
|
||||
$lng['emails']['from'] = '从';
|
||||
$lng['emails']['to'] = '到';
|
||||
$lng['emails']['forwarders'] = '代运人';
|
||||
$lng['emails']['forwarder_add'] = '创建代运人';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = '这里您可以创建额外的FTP账户<br />更改立刻生效并且FTP账户立刻可以使用';
|
||||
$lng['ftp']['account_add'] = '添加账户';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = '这里您可以添加和删除MySQL数据库<br>更改立刻生效并且数据库立刻可以使用<br>在菜单中您可以找到去往phpMyAdmin的链接,在此您可以轻松编辑您数据库中的内容<br><br>php原文件的进入数据如下所示:<i>斜体字</i>的说明会被每次的登记而替代<br>主机名:<b><SQL_HOST></b><br>用户名:<b><i>数据库名</i></b><br>密码:<b><i>被选密码</i></b><br>数据库:<b><i>数据库名';
|
||||
$lng['mysql']['databasename'] = '用户名/数据库名';
|
||||
$lng['mysql']['databasedescription'] = '数据库描述';
|
||||
$lng['mysql']['database_create'] = '创建数据库';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = '这里您可以创建额外的专用,譬如目录保护<br/>更改在一定时间后才生效';
|
||||
$lng['extras']['directoryprotection_add'] = '添加目录保护';
|
||||
$lng['extras']['view_directory'] = '显示记录';
|
||||
$lng['extras']['pathoptions_add'] = '配置路径';
|
||||
$lng['extras']['directory_browsing'] = '显示记录内容';
|
||||
$lng['extras']['pathoptions_edit'] = '路径设置处理';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = '错误文件404路径';
|
||||
$lng['extras']['errordocument403path'] = '错误文件403路径';
|
||||
$lng['extras']['errordocument500path'] = '错误文件500路径';
|
||||
$lng['extras']['errordocument401path'] = '错误文件401路径';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = '错误报告';
|
||||
$lng['error']['directorymustexist'] = '目录%s必须存在.请创建您的FTP客户';
|
||||
$lng['error']['filemustexist'] = '文件%s必须存在.';
|
||||
$lng['error']['allresourcesused'] = '您已经使用了所有的资源';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = '您不能删除已经作为电邮域使用过的域';
|
||||
$lng['error']['domains_canteditdomain'] = '您不能编辑这个域名,它已经被版主废除';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = '您不能删除电子邮件域名,请首先删除所有的电子邮件地址';
|
||||
$lng['error']['firstdeleteallsubdomains'] = '在您创建一个新的原始域之前,必须先删除所有的子域。';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = '您已经为这项域名设置了一个电邮户口';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = '您不能删除您的主账户';
|
||||
$lng['error']['login'] = '被输入的用户名/密码错误';
|
||||
$lng['error']['login_blocked'] = '由于多次错误的尝试这个账户将被关闭!<br/>请您在' . $settings['login']['deactivatetime'] . '秒后重新尝试。';
|
||||
$lng['error']['notallreqfieldsorerrors'] = '您没有填写所有的文本栏或者有一个文本栏被错误填写';
|
||||
$lng['error']['oldpasswordnotcorrect'] = '旧密码不正确';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = '您不能分配比您现有的更多的资源。';
|
||||
$lng['error']['mustbeurl'] = '您没有输入有效或者完整的url(例如http://somedomain.com/error404.htm)';
|
||||
$lng['error']['invalidpath'] = '您没有选择有效的URL地址(可能是目录列表的问题)';
|
||||
$lng['error']['stringisempty'] = '缺少区域内的输入';
|
||||
$lng['error']['stringiswrong'] = '区域内输入错误';
|
||||
$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\'';
|
||||
$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\'';
|
||||
$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\'';
|
||||
$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = '新密码和新密码确定不匹配';
|
||||
$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\'';
|
||||
$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\'';
|
||||
$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\'';
|
||||
$lng['error']['mydomain'] = '\'域名\'';
|
||||
$lng['error']['mydocumentroot'] = '\'文件来源\'';
|
||||
$lng['error']['loginnameexists'] = '登陆名%s已经存在';
|
||||
$lng['error']['emailiswrong'] = '电子邮件地址 %s 包含了无效的字符或者不完整';
|
||||
$lng['error']['loginnameiswrong'] = '电子邮件地址 %s 包含了无效的字符';
|
||||
$lng['error']['userpathcombinationdupe'] = '用户名和路径已经存在';
|
||||
$lng['error']['patherror'] = '常规错误! 路径不能空着';
|
||||
$lng['error']['errordocpathdupe'] = '路径选项%s已经存在';
|
||||
$lng['error']['adduserfirst'] = '请首先建立一个客户';
|
||||
$lng['error']['domainalreadyexists'] = '域名%s已经指派给了客户';
|
||||
$lng['error']['nolanguageselect'] = '没有选择语言';
|
||||
$lng['error']['nosubjectcreate'] = '您必须为邮件模板定义一个主题';
|
||||
$lng['error']['nomailbodycreate'] = '您必须为邮件模板定义邮件正文';
|
||||
$lng['error']['templatenotfound'] = '模板没有找到';
|
||||
$lng['error']['alltemplatesdefined'] = '您不能定义更多的模板,已经支持所有的语言';
|
||||
$lng['error']['wwwnotallowed'] = 'www不能作为子域名名称';
|
||||
$lng['error']['subdomainiswrong'] = '子域名%s包含了无效的字符';
|
||||
$lng['error']['domaincantbeempty'] = '域名不能空着';
|
||||
$lng['error']['domainexistalready'] = '域名%s已经存在';
|
||||
$lng['error']['domainisaliasorothercustomer'] = '|所选域别名可自身为别名域 或属于另一客户.';
|
||||
$lng['error']['emailexistalready'] = '电子邮件地址%s已经存在';
|
||||
$lng['error']['maindomainnonexist'] = '主域名%s不存在';
|
||||
$lng['error']['destinationnonexist'] = '请在区域内建立你的代运人\'目的地\'';
|
||||
$lng['error']['destinationalreadyexistasmail'] = '到%s的代运人已经作为一个电子邮件地址存在';
|
||||
$lng['error']['destinationalreadyexist'] = '你已经定义了到%s的代运人';
|
||||
$lng['error']['destinationiswrong'] = '代运人%s包含了无效的字符或者不完整';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = '安全问题';
|
||||
$lng['question']['admin_customer_reallydelete'] = '您真的想要删除这个客户吗%s?<br/>注意!所有的数据将不可挽回的丢失!在操作后您必须还要用手把数据从数据系统中删除';
|
||||
$lng['question']['admin_domain_reallydelete'] = '您真的想删除域%s吗?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = '您真的想关闭这些重要的安全设置吗?';
|
||||
$lng['question']['admin_admin_reallydelete'] = '您真的要删除主要管理员%s?所有的客户和域可都是由它分配的!';
|
||||
$lng['question']['admin_template_reallydelete'] = '您真的想删除\'%s\'模板吗?';
|
||||
$lng['question']['domains_reallydelete'] = '您真的想删除域%s吗?';
|
||||
$lng['question']['email_reallydelete'] = '您真的想删除电子邮件%s吗?';
|
||||
$lng['question']['email_reallydelete_account'] = '您真的想删除电子邮件帐户%s吗?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = '您真的想删除代运人%s吗?';
|
||||
$lng['question']['extras_reallydelete'] = '您真的想删除目录保护%s吗?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = '您真的想删除这个路径的配置%s吗?';
|
||||
$lng['question']['ftp_reallydelete'] = '您真的想删FTP账户%s吗?';
|
||||
$lng['question']['mysql_reallydelete'] = '您真的想删除数据库%s吗?注意!所有的数据将不可挽回的丢失!';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = '您真的想新建Apache和Bind配置文件吗?';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = '你好以被成功创建这是一个自动生成的这是一个自动生成的邮件,请不用答复这个通知您的服务小组';
|
||||
$lng['mails']['pop_success']['subject'] = 'POP3账户成功被创建';
|
||||
$lng['mails']['createcustomer']['mailbody'] = '您好{FIRSTNAME} {NAME},\n\n这里是您的账户信息:\n\n用户名: {USERNAME}\n密码: {PASSWORD}\n\n非常感谢,您的服务小组';
|
||||
$lng['mails']['createcustomer']['subject'] = '账户信息';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = '概要';
|
||||
$lng['admin']['ressourcedetails'] = '被使用的资源';
|
||||
$lng['admin']['systemdetails'] = '系统详情';
|
||||
$lng['admin']['syscpdetails'] = 'SysCP-详情';
|
||||
$lng['admin']['installedversion'] = '安装版本';
|
||||
$lng['admin']['latestversion'] = '最新版本';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = '通过网络服务询问';
|
||||
$lng['admin']['lookfornewversion']['error'] = '在挑选上出现错误';
|
||||
$lng['admin']['resources'] = '资源';
|
||||
$lng['admin']['customer'] = '客户';
|
||||
$lng['admin']['customers'] = '客户群';
|
||||
$lng['admin']['customer_add'] = '添加客户群';
|
||||
$lng['admin']['customer_edit'] = '编辑客户群';
|
||||
$lng['admin']['domains'] = '组域';
|
||||
$lng['admin']['domain_add'] = '添加域';
|
||||
$lng['admin']['domain_edit'] = '编辑域';
|
||||
$lng['admin']['subdomainforemail'] = '副域名作为电子邮件域名';
|
||||
$lng['admin']['admin'] = '主管';
|
||||
$lng['admin']['admins'] = '管理';
|
||||
$lng['admin']['admin_add'] = '加入新的主管';
|
||||
$lng['admin']['admin_edit'] = '对主管进行编辑';
|
||||
$lng['admin']['customers_see_all'] = '所有的客户都能看到吗?';
|
||||
$lng['admin']['domains_see_all'] = '所有的域都能看到吗?';
|
||||
$lng['admin']['change_serversettings'] = '服务设置能被修改吗?';
|
||||
$lng['admin']['server'] = '服务器';
|
||||
$lng['admin']['serversettings'] = '设置';
|
||||
$lng['admin']['rebuildconf'] = '配置新建';
|
||||
$lng['admin']['stdsubdomain'] = '默认子域';
|
||||
$lng['admin']['stdsubdomain_add'] = '添加默认子域';
|
||||
$lng['admin']['deactivated'] = '被禁止';
|
||||
$lng['admin']['deactivated_user'] = '封锁用户';
|
||||
$lng['admin']['sendpassword'] = '寄出密码';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = '配置';
|
||||
$lng['admin']['ownvhostsettings'] = '自己的主机设置(vHost)';
|
||||
$lng['admin']['configfiles']['files'] = '<b>编辑数据:</b>请您更改成相符的编辑数据。<br>如果它们不存在,就请您输入下面的内容。<br><b>请您注意:</b>由于保密原因,MySQL的密码将不被替换。)<br>请您通过手动的方式替换MySQL的密码。<br>如果您忘记了密码,您可以在`lib/userdata.inc.php`找到。';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>命令:</b>请您在一页内输出以下的命令。';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>重新开始:</b>请您输出以下命令以便重新装载。编辑数据应不超过一页';
|
||||
$lng['admin']['templates']['templates'] = '模板';
|
||||
$lng['admin']['templates']['template_add'] = '添加模板';
|
||||
$lng['admin']['templates']['template_edit'] = '编辑模板';
|
||||
$lng['admin']['templates']['action'] = '动作';
|
||||
$lng['admin']['templates']['email'] = '电子邮件';
|
||||
$lng['admin']['templates']['subject'] = '主题';
|
||||
$lng['admin']['templates']['mailbody'] = '邮件内容';
|
||||
$lng['admin']['templates']['createcustomer'] = '对新客户的欢迎函';
|
||||
$lng['admin']['templates']['pop_success'] = '对新邮件帐户的欢迎函';
|
||||
$lng['admin']['templates']['template_replace_vars'] = '模板中的替换变量:';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = '更换客户名';
|
||||
$lng['admin']['templates']['NAME'] = '更换客户姓';
|
||||
$lng['admin']['templates']['USERNAME'] = '更换客户帐户用户名';
|
||||
$lng['admin']['templates']['PASSWORD'] = '更换客户帐户密码';
|
||||
$lng['admin']['templates']['EMAIL'] = '更换 POP3/IMAP 帐户地址';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = '对话超时';
|
||||
$lng['serversettings']['session_timeout']['description'] = '用户多长时间必须呈现冻结状态,与此同时对话也变为无效';
|
||||
$lng['serversettings']['accountprefix']['title'] = '客户前缀';
|
||||
$lng['serversettings']['accountprefix']['description'] = '客户账户应该有哪种前缀?';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'MySQL-前缀';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = 'MySQL 账户应该有哪些前缀?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'FTP前缀';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'FTP账户应该有哪些前缀?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = '文档目录';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = '所有的客户应位于哪里?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = '登陆文件目录';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = '所有的登陆文件应位于哪里';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP地址';
|
||||
$lng['serversettings']['ipaddress']['description'] = '这个服务器IP地址是什么?';
|
||||
$lng['serversettings']['hostname']['title'] = '主机名';
|
||||
$lng['serversettings']['hostname']['description'] = '这个服务器的主机名是什么?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = '阿帕奇重新读取命令';
|
||||
$lng['serversettings']['apachereload_command']['description'] = '被读取的阿帕奇文稿叫什么名字';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = '连接配置目录';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = '连接配置数据位于哪里?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = '连接-重新读取命令';
|
||||
$lng['serversettings']['bindreload_command']['description'] = '连接的重置文本叫作什么';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = '连接-默认区域';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = '所有域的默认区域叫作什么?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = '邮件UID';
|
||||
$lng['serversettings']['vmail_uid']['description'] = '邮件应该有哪些UID';
|
||||
$lng['serversettings']['vmail_gid']['title'] = '邮件Gid';
|
||||
$lng['serversettings']['vmail_gid']['description'] = '邮件应该有哪些Gid?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = '邮件地址目录';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = '邮件应该位于哪里?';
|
||||
$lng['serversettings']['adminmail']['title'] = '发信人地址';
|
||||
$lng['serversettings']['adminmail']['description'] = '来自调查对象的邮件发信人地址是什么?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin地址';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = 'phpMyAdmin位于哪里?';
|
||||
$lng['serversettings']['webmail_url']['title'] = '网络邮件的URL';
|
||||
$lng['serversettings']['webmail_url']['description'] = '网络邮件放在哪里?';
|
||||
$lng['serversettings']['webftp_url']['title'] = '网络FTP的URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = '网络FTP放在哪里?';
|
||||
$lng['serversettings']['language']['description'] = '您的标准语言是什么语?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = '最多登陆次数';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = '最多登陆次数直到帐户失效';
|
||||
$lng['serversettings']['deactivatetime']['title'] = '帐户失效时间';
|
||||
$lng['serversettings']['deactivatetime']['description'] = '帐户失效时间(以秒计算)';
|
||||
$lng['serversettings']['pathedit']['title'] = '路径输入方法';
|
||||
$lng['serversettings']['pathedit']['description'] = '路径是通过下拉菜单选择,还是自行输入?';
|
||||
|
||||
/**
|
||||
* ADDED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['admin']['cronlastrun'] = '定时执行程序的最后一次执行';
|
||||
$lng['serversettings']['paging']['title'] = '每页进入次数';
|
||||
$lng['serversettings']['paging']['description'] = '一页上应该显示多少次 进入?(0 =无效分页)';
|
||||
$lng['error']['ipstillhasdomains'] = '你想要删除的IP/ 端口连接仍然占有分 配给他的域,在删除此IP/端口连接之前,请把这些域分配给其他IP/端口连接.';
|
||||
$lng['error']['cantdeletedefaultip'] = '你不能删除默认的分销商IP/端口连 接, 请在删除这个IP/端口连接前为分销商另设置默认IP/端口连接.';
|
||||
$lng['error']['cantdeletesystemip'] = '你不能删除系统IP, 你可以为系统IP 另生成一个新的IP/端口连接, 或者改变系统IP.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'端口\'';
|
||||
$lng['error']['myipdefault'] = '你需要选择一个IP/端口连接并设为默认值.';
|
||||
$lng['error']['myipnotdouble'] = '这一IP/端口连接已存在.';
|
||||
$lng['question']['admin_ip_reallydelete'] = '你真的决定删除IP地址 %s?';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = '多个IP和端口';
|
||||
$lng['admin']['ipsandports']['add'] = '添加IP/端口';
|
||||
$lng['admin']['ipsandports']['edit'] = '编辑IP/端口';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/端口';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = '端口';
|
||||
|
||||
// ADDED IN 1.2.13-rc3
|
||||
|
||||
$lng['error']['cantchangesystemip'] = '你不能改变最近用过的系统IP,要么生成一个新的IP/端口组合, 要么改变系统IP.';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '你确定你想要这个域的文件源生成于客户的客户根目录之外?';
|
||||
|
||||
// ADDED IN 1.2.14-rc1
|
||||
|
||||
$lng['admin']['memorylimitdisabled'] = '关闭';
|
||||
$lng['error']['loginnameissystemaccount'] = '你不能生成与系统帐号相似的帐户. 请另输入一个帐户名';
|
||||
$lng['domain']['openbasedirpath'] = '公开基址目录路径';
|
||||
$lng['domain']['docroot'] = '来自上一信息组的路径';
|
||||
$lng['domain']['homedir'] = '家目录';
|
||||
$lng['admin']['valuemandatory'] = '此值为强制性的';
|
||||
$lng['admin']['valuemandatorycompany'] = '"姓"与"名"或者"公司名"为必填项';
|
||||
$lng['menue']['main']['username'] = '以: 登录 ';
|
||||
$lng['panel']['urloverridespath'] = 'URL (覆盖路径)';
|
||||
$lng['panel']['pathorurl'] = '路径或URL';
|
||||
$lng['error']['sessiontimeoutiswrong'] = '只容许数字的"对话超时".';
|
||||
$lng['error']['maxloginattemptsiswrong'] = '只容许数字的"登录尝试最大值".';
|
||||
$lng['error']['deactivatetimiswrong'] = '只容许数字的"停用时间".';
|
||||
$lng['error']['accountprefixiswrong'] = '"客户前缀"错误.';
|
||||
$lng['error']['mysqlprefixiswrong'] = '"SQL前缀"错误.';
|
||||
$lng['error']['ftpprefixiswrong'] = '"FTP前缀"错误.';
|
||||
$lng['error']['ipiswrong'] = '"IP地址"错误. 只容许有效的IP地址.';
|
||||
$lng['error']['vmailuidiswrong'] = '"Mails-uid"错误. 只容许数字的UID.';
|
||||
$lng['error']['vmailgidiswrong'] = '"Mails-gid"错误. 只容许数字的GID.';
|
||||
$lng['error']['adminmailiswrong'] = '"寄件人地址"错误. 只容许有效的Email地址.';
|
||||
$lng['error']['pagingiswrong'] = '"每页记录"值错误. 只容许数字符号.';
|
||||
$lng['error']['phpmyadminiswrong'] = 'phpmyadmin-链接不是一个有效链接.';
|
||||
$lng['error']['webmailiswrong'] = 'WebMail-链接不是一个有效链接.';
|
||||
$lng['error']['webftpiswrong'] = 'WebFTP-链接不是一个有效链接.';
|
||||
$lng['domains']['hasaliasdomains'] = '有别名域';
|
||||
$lng['serversettings']['defaultip']['title'] = '默认IP/端口';
|
||||
$lng['serversettings']['defaultip']['description'] = '默认的IP/端口组合是什么?';
|
||||
$lng['domains']['statstics'] = '使用统计';
|
||||
$lng['panel']['ascending'] = '向上的';
|
||||
$lng['panel']['decending'] = '向下的';
|
||||
$lng['panel']['search'] = '搜寻';
|
||||
$lng['panel']['used'] = '已用';
|
||||
|
||||
// ADDED IN 1.2.14-rc3
|
||||
|
||||
$lng['panel']['translator'] = '翻译者';
|
||||
|
||||
// ADDED IN 1.2.14-rc4
|
||||
|
||||
$lng['error']['stringformaterror'] = '信息组"%s"值不是期望格式';
|
||||
|
||||
// ADDED in 1.2.15-svn1
|
||||
|
||||
$lng['admin']['serversoftware'] = '服务器软件';
|
||||
$lng['admin']['phpversion'] = 'php版本';
|
||||
$lng['admin']['phpmemorylimit'] = 'php内存限制';
|
||||
$lng['admin']['mysqlserverversion'] = 'mysql服务器版本';
|
||||
$lng['admin']['mysqlclientversion'] = 'mysql客户端版本';
|
||||
$lng['admin']['webserverinterface'] = '网页服务器接口';
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Jackie Zhang <jackie.zhang@arcor.de>
|
||||
* @author Wang Changyi <wangchangyi@hotmail.com>
|
||||
* @author Patrick Brueckner <patrick_brueckner@yahoo.de>
|
||||
* @author Yuan Yang <melodieyy@web.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Language
|
||||
* @version $Id: zh-cn.lng.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global
|
||||
*/
|
||||
|
||||
$lng['translator'] = 'Jackie Zhang, Wang Changyi, Yuan Yang';
|
||||
$lng['panel']['edit'] = '编辑';
|
||||
$lng['panel']['delete'] = '删除';
|
||||
$lng['panel']['create'] = '创建';
|
||||
$lng['panel']['save'] = '保存';
|
||||
$lng['panel']['yes'] = '是';
|
||||
$lng['panel']['no'] = '否';
|
||||
$lng['panel']['emptyfornochanges'] = '无改变清空';
|
||||
$lng['panel']['emptyfordefault'] = '默认值清空';
|
||||
$lng['panel']['path'] = '路径';
|
||||
$lng['panel']['toggle'] = '触发器';
|
||||
$lng['panel']['next'] = '下一个';
|
||||
$lng['panel']['dirsmissing'] = '目录不可添加或者不可读';
|
||||
|
||||
/**
|
||||
* Login
|
||||
*/
|
||||
|
||||
$lng['login']['username'] = '用户名';
|
||||
$lng['login']['password'] = '密码';
|
||||
$lng['login']['language'] = '语言';
|
||||
$lng['login']['login'] = '登陆';
|
||||
$lng['login']['logout'] = '登出';
|
||||
$lng['login']['profile_lng'] = '用户标准语言';
|
||||
|
||||
/**
|
||||
* Customer
|
||||
*/
|
||||
|
||||
$lng['customer']['documentroot'] = '根目录';
|
||||
$lng['customer']['name'] = '姓';
|
||||
$lng['customer']['firstname'] = '名';
|
||||
$lng['customer']['company'] = '公司';
|
||||
$lng['customer']['street'] = '街道';
|
||||
$lng['customer']['zipcode'] = '邮政编码';
|
||||
$lng['customer']['city'] = '城市';
|
||||
$lng['customer']['phone'] = '电话';
|
||||
$lng['customer']['fax'] = '传真';
|
||||
$lng['customer']['email'] = '电子邮件';
|
||||
$lng['customer']['customernumber'] = '顾客号';
|
||||
$lng['customer']['diskspace'] = '磁盘空间(MB)';
|
||||
$lng['customer']['traffic'] = '流量(GB)';
|
||||
$lng['customer']['mysqls'] = 'MySQL数据库';
|
||||
$lng['customer']['emails'] = '电子邮件地址';
|
||||
$lng['customer']['accounts'] = '电子邮件帐户';
|
||||
$lng['customer']['forwarders'] = '电子邮件转发';
|
||||
$lng['customer']['ftps'] = 'FTP文件格式';
|
||||
$lng['customer']['subdomains'] = '子域';
|
||||
$lng['customer']['domains'] = '域';
|
||||
$lng['customer']['unlimited'] = '无限的';
|
||||
|
||||
/**
|
||||
* Customermenue
|
||||
*/
|
||||
|
||||
$lng['menue']['main']['main'] = '主要的';
|
||||
$lng['menue']['main']['changepassword'] = '更改密码';
|
||||
$lng['menue']['main']['changelanguage'] = '语言转换';
|
||||
$lng['menue']['email']['email'] = '电子邮件';
|
||||
$lng['menue']['email']['emails'] = '地址';
|
||||
$lng['menue']['email']['webmail'] = '网络邮件';
|
||||
$lng['menue']['mysql']['mysql'] = 'MySQL';
|
||||
$lng['menue']['mysql']['databases'] = '数据库';
|
||||
$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin';
|
||||
$lng['menue']['domains']['domains'] = '域';
|
||||
$lng['menue']['domains']['settings'] = '设置';
|
||||
$lng['menue']['ftp']['ftp'] = 'FTP';
|
||||
$lng['menue']['ftp']['accounts'] = '账户';
|
||||
$lng['menue']['ftp']['webftp'] = '网络FTP地址';
|
||||
$lng['menue']['extras']['extras'] = '专用';
|
||||
$lng['menue']['extras']['directoryprotection'] = '目录保护';
|
||||
$lng['menue']['extras']['pathoptions'] = '路径选择';
|
||||
|
||||
/**
|
||||
* Index
|
||||
*/
|
||||
|
||||
$lng['index']['customerdetails'] = '用户数据';
|
||||
$lng['index']['accountdetails'] = '账户数据';
|
||||
|
||||
/**
|
||||
* Change Password
|
||||
*/
|
||||
|
||||
$lng['changepassword']['old_password'] = '旧密码';
|
||||
$lng['changepassword']['new_password'] = '新密码';
|
||||
$lng['changepassword']['new_password_confirm'] = '新密码(确认)';
|
||||
$lng['changepassword']['new_password_ifnotempty'] = $lng['changepassword']['new_password'] . '(' . $lng['panel']['emptyfornochanges'] . ')';
|
||||
$lng['changepassword']['also_change_ftp'] = '改变主FTP入口的密码';
|
||||
|
||||
/**
|
||||
* Domains
|
||||
*/
|
||||
|
||||
$lng['domains']['description'] = '这里您可以设置域以及更改路径<br/>在每次更改后系统需要一些时间重新读取设置';
|
||||
$lng['domains']['domainsettings'] = '域设置';
|
||||
$lng['domains']['domainname'] = '域名';
|
||||
$lng['domains']['subdomain_add'] = '添加子域';
|
||||
$lng['domains']['subdomain_edit'] = '编辑子域';
|
||||
$lng['domains']['wildcarddomain'] = '做为原始域登记';
|
||||
$lng['domains']['aliasdomain'] = '域别名';
|
||||
$lng['domains']['noaliasdomain'] = '无域别名';
|
||||
|
||||
/**
|
||||
* eMails
|
||||
*/
|
||||
|
||||
$lng['emails']['description'] = '这里您可以创建您的电子邮件地址<br />POP账户如同您门前的邮箱,每当有人给您写电子邮件,电子邮件便会被放置在POP账户中<br/><br/>您邮件程序的进入数据如下所示:<i>斜体字</i>的说明会被每次的登记而替代<br><b>主机名<b><i>域名</i></b><br>用户名):<b><i>账户名/电子邮件地址</i></b><br>密码:<b><i>被选密码</i></b>';
|
||||
$lng['emails']['emailaddress'] = '电子邮件地址';
|
||||
$lng['emails']['emails_add'] = '创建电子邮件地址';
|
||||
$lng['emails']['emails_edit'] = '编辑电子邮件地址';
|
||||
$lng['emails']['catchall'] = '电邮户口';
|
||||
$lng['emails']['iscatchall'] = '设置成电邮户口?';
|
||||
$lng['emails']['account'] = '帐户';
|
||||
$lng['emails']['account_add'] = '创建帐户';
|
||||
$lng['emails']['account_delete'] = '删除帐户';
|
||||
$lng['emails']['from'] = '从';
|
||||
$lng['emails']['to'] = '到';
|
||||
$lng['emails']['forwarders'] = '代运人';
|
||||
$lng['emails']['forwarder_add'] = '创建代运人';
|
||||
|
||||
/**
|
||||
* FTP
|
||||
*/
|
||||
|
||||
$lng['ftp']['description'] = '这里您可以创建额外的FTP账户<br />更改立刻生效并且FTP账户立刻可以使用';
|
||||
$lng['ftp']['account_add'] = '添加账户';
|
||||
|
||||
/**
|
||||
* MySQL
|
||||
*/
|
||||
|
||||
$lng['mysql']['description'] = '这里您可以添加和删除MySQL数据库<br>更改立刻生效并且数据库立刻可以使用<br>在菜单中您可以找到去往phpMyAdmin的链接,在此您可以轻松编辑您数据库中的内容<br><br>php原文件的进入数据如下所示:<i>斜体字</i>的说明会被每次的登记而替代<br>主机名:<b><SQL_HOST></b><br>用户名:<b><i>数据库名</i></b><br>密码:<b><i>被选密码</i></b><br>数据库:<b><i>数据库名';
|
||||
$lng['mysql']['databasename'] = '用户名/数据库名';
|
||||
$lng['mysql']['databasedescription'] = '数据库描述';
|
||||
$lng['mysql']['database_create'] = '创建数据库';
|
||||
|
||||
/**
|
||||
* Extras
|
||||
*/
|
||||
|
||||
$lng['extras']['description'] = '这里您可以创建额外的专用,譬如目录保护<br/>更改在一定时间后才生效';
|
||||
$lng['extras']['directoryprotection_add'] = '添加目录保护';
|
||||
$lng['extras']['view_directory'] = '显示记录';
|
||||
$lng['extras']['pathoptions_add'] = '配置路径';
|
||||
$lng['extras']['directory_browsing'] = '显示记录内容';
|
||||
$lng['extras']['pathoptions_edit'] = '路径设置处理';
|
||||
$lng['extras']['error404path'] = '404';
|
||||
$lng['extras']['error403path'] = '403';
|
||||
$lng['extras']['error500path'] = '500';
|
||||
$lng['extras']['error401path'] = '401';
|
||||
$lng['extras']['errordocument404path'] = '错误文件404路径';
|
||||
$lng['extras']['errordocument403path'] = '错误文件403路径';
|
||||
$lng['extras']['errordocument500path'] = '错误文件500路径';
|
||||
$lng['extras']['errordocument401path'] = '错误文件401路径';
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
|
||||
$lng['error']['error'] = '错误报告';
|
||||
$lng['error']['directorymustexist'] = '目录%s必须存在.请创建您的FTP客户';
|
||||
$lng['error']['filemustexist'] = '文件%s必须存在.';
|
||||
$lng['error']['allresourcesused'] = '您已经使用了所有的资源';
|
||||
$lng['error']['domains_cantdeletemaindomain'] = '您不能删除已经作为电邮域使用过的域';
|
||||
$lng['error']['domains_canteditdomain'] = '您不能编辑这个域名,它已经被版主废除';
|
||||
$lng['error']['domains_cantdeletedomainwithemail'] = '您不能删除电子邮件域名,请首先删除所有的电子邮件地址';
|
||||
$lng['error']['firstdeleteallsubdomains'] = '在您创建一个新的原始域之前,必须先删除所有的子域。';
|
||||
$lng['error']['youhavealreadyacatchallforthisdomain'] = '您已经为这项域名设置了一个电邮户口';
|
||||
$lng['error']['ftp_cantdeletemainaccount'] = '您不能删除您的主账户';
|
||||
$lng['error']['login'] = '被输入的用户名/密码错误';
|
||||
$lng['error']['login_blocked'] = '由于多次错误的尝试这个账户将被关闭!<br/>请您在' . $settings['login']['deactivatetime'] . '秒后重新尝试。';
|
||||
$lng['error']['notallreqfieldsorerrors'] = '您没有填写所有的文本栏或者有一个文本栏被错误填写';
|
||||
$lng['error']['oldpasswordnotcorrect'] = '旧密码不正确';
|
||||
$lng['error']['youcantallocatemorethanyouhave'] = '您不能分配比您现有的更多的资源。';
|
||||
$lng['error']['mustbeurl'] = '您没有输入有效或者完整的url(例如http://somedomain.com/error404.htm)';
|
||||
$lng['error']['invalidpath'] = '您没有选择有效的URL地址(可能是目录列表的问题)';
|
||||
$lng['error']['stringisempty'] = '缺少区域内的输入';
|
||||
$lng['error']['stringiswrong'] = '区域内输入错误';
|
||||
$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\'';
|
||||
$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\'';
|
||||
$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\'';
|
||||
$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\'';
|
||||
$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\'';
|
||||
$lng['error']['newpasswordconfirmerror'] = '新密码和新密码确定不匹配';
|
||||
$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\'';
|
||||
$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\'';
|
||||
$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\'';
|
||||
$lng['error']['mydomain'] = '\'域名\'';
|
||||
$lng['error']['mydocumentroot'] = '\'文件来源\'';
|
||||
$lng['error']['loginnameexists'] = '登陆名%s已经存在';
|
||||
$lng['error']['emailiswrong'] = '电子邮件地址 %s 包含了无效的字符或者不完整';
|
||||
$lng['error']['loginnameiswrong'] = '电子邮件地址 %s 包含了无效的字符';
|
||||
$lng['error']['userpathcombinationdupe'] = '用户名和路径已经存在';
|
||||
$lng['error']['patherror'] = '常规错误! 路径不能空着';
|
||||
$lng['error']['errordocpathdupe'] = '路径选项%s已经存在';
|
||||
$lng['error']['adduserfirst'] = '请首先建立一个客户';
|
||||
$lng['error']['domainalreadyexists'] = '域名%s已经指派给了客户';
|
||||
$lng['error']['nolanguageselect'] = '没有选择语言';
|
||||
$lng['error']['nosubjectcreate'] = '您必须为邮件模板定义一个主题';
|
||||
$lng['error']['nomailbodycreate'] = '您必须为邮件模板定义邮件正文';
|
||||
$lng['error']['templatenotfound'] = '模板没有找到';
|
||||
$lng['error']['alltemplatesdefined'] = '您不能定义更多的模板,已经支持所有的语言';
|
||||
$lng['error']['wwwnotallowed'] = 'www不能作为子域名名称';
|
||||
$lng['error']['subdomainiswrong'] = '子域名%s包含了无效的字符';
|
||||
$lng['error']['domaincantbeempty'] = '域名不能空着';
|
||||
$lng['error']['domainexistalready'] = '域名%s已经存在';
|
||||
$lng['error']['domainisaliasorothercustomer'] = '|所选域别名可自身为别名域 或属于另一客户.';
|
||||
$lng['error']['emailexistalready'] = '电子邮件地址%s已经存在';
|
||||
$lng['error']['maindomainnonexist'] = '主域名%s不存在';
|
||||
$lng['error']['destinationnonexist'] = '请在区域内建立你的代运人\'目的地\'';
|
||||
$lng['error']['destinationalreadyexistasmail'] = '到%s的代运人已经作为一个电子邮件地址存在';
|
||||
$lng['error']['destinationalreadyexist'] = '你已经定义了到%s的代运人';
|
||||
$lng['error']['destinationiswrong'] = '代运人%s包含了无效的字符或者不完整';
|
||||
$lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
|
||||
/**
|
||||
* Questions
|
||||
*/
|
||||
|
||||
$lng['question']['question'] = '安全问题';
|
||||
$lng['question']['admin_customer_reallydelete'] = '您真的想要删除这个客户吗%s?<br/>注意!所有的数据将不可挽回的丢失!在操作后您必须还要用手把数据从数据系统中删除';
|
||||
$lng['question']['admin_domain_reallydelete'] = '您真的想删除域%s吗?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = '您真的想关闭这些重要的安全设置吗?';
|
||||
$lng['question']['admin_admin_reallydelete'] = '您真的要删除主要管理员%s?所有的客户和域可都是由它分配的!';
|
||||
$lng['question']['admin_template_reallydelete'] = '您真的想删除\'%s\'模板吗?';
|
||||
$lng['question']['domains_reallydelete'] = '您真的想删除域%s吗?';
|
||||
$lng['question']['email_reallydelete'] = '您真的想删除电子邮件%s吗?';
|
||||
$lng['question']['email_reallydelete_account'] = '您真的想删除电子邮件帐户%s吗?';
|
||||
$lng['question']['email_reallydelete_forwarder'] = '您真的想删除代运人%s吗?';
|
||||
$lng['question']['extras_reallydelete'] = '您真的想删除目录保护%s吗?';
|
||||
$lng['question']['extras_reallydelete_pathoptions'] = '您真的想删除这个路径的配置%s吗?';
|
||||
$lng['question']['ftp_reallydelete'] = '您真的想删FTP账户%s吗?';
|
||||
$lng['question']['mysql_reallydelete'] = '您真的想删除数据库%s吗?注意!所有的数据将不可挽回的丢失!';
|
||||
$lng['question']['admin_configs_reallyrebuild'] = '您真的想新建Apache和Bind配置文件吗?';
|
||||
|
||||
/**
|
||||
* Mails
|
||||
*/
|
||||
|
||||
$lng['mails']['pop_success']['mailbody'] = '你好以被成功创建这是一个自动生成的这是一个自动生成的邮件,请不用答复这个通知您的服务小组';
|
||||
$lng['mails']['pop_success']['subject'] = 'POP3账户成功被创建';
|
||||
$lng['mails']['createcustomer']['mailbody'] = '您好{FIRSTNAME} {NAME},\n\n这里是您的账户信息:\n\n用户名: {USERNAME}\n密码: {PASSWORD}\n\n非常感谢,您的服务小组';
|
||||
$lng['mails']['createcustomer']['subject'] = '账户信息';
|
||||
|
||||
/**
|
||||
* Admin
|
||||
*/
|
||||
|
||||
$lng['admin']['overview'] = '概要';
|
||||
$lng['admin']['ressourcedetails'] = '被使用的资源';
|
||||
$lng['admin']['systemdetails'] = '系统详情';
|
||||
$lng['admin']['syscpdetails'] = 'SysCP-详情';
|
||||
$lng['admin']['installedversion'] = '安装版本';
|
||||
$lng['admin']['latestversion'] = '最新版本';
|
||||
$lng['admin']['lookfornewversion']['clickhere'] = '通过网络服务询问';
|
||||
$lng['admin']['lookfornewversion']['error'] = '在挑选上出现错误';
|
||||
$lng['admin']['resources'] = '资源';
|
||||
$lng['admin']['customer'] = '客户';
|
||||
$lng['admin']['customers'] = '客户群';
|
||||
$lng['admin']['customer_add'] = '添加客户群';
|
||||
$lng['admin']['customer_edit'] = '编辑客户群';
|
||||
$lng['admin']['domains'] = '组域';
|
||||
$lng['admin']['domain_add'] = '添加域';
|
||||
$lng['admin']['domain_edit'] = '编辑域';
|
||||
$lng['admin']['subdomainforemail'] = '副域名作为电子邮件域名';
|
||||
$lng['admin']['admin'] = '主管';
|
||||
$lng['admin']['admins'] = '管理';
|
||||
$lng['admin']['admin_add'] = '加入新的主管';
|
||||
$lng['admin']['admin_edit'] = '对主管进行编辑';
|
||||
$lng['admin']['customers_see_all'] = '所有的客户都能看到吗?';
|
||||
$lng['admin']['domains_see_all'] = '所有的域都能看到吗?';
|
||||
$lng['admin']['change_serversettings'] = '服务设置能被修改吗?';
|
||||
$lng['admin']['server'] = '服务器';
|
||||
$lng['admin']['serversettings'] = '设置';
|
||||
$lng['admin']['rebuildconf'] = '配置新建';
|
||||
$lng['admin']['stdsubdomain'] = '默认子域';
|
||||
$lng['admin']['stdsubdomain_add'] = '添加默认子域';
|
||||
$lng['admin']['deactivated'] = '被禁止';
|
||||
$lng['admin']['deactivated_user'] = '封锁用户';
|
||||
$lng['admin']['sendpassword'] = '寄出密码';
|
||||
$lng['admin']['configfiles']['serverconfiguration'] = '配置';
|
||||
$lng['admin']['ownvhostsettings'] = '自己的主机设置(vHost)';
|
||||
$lng['admin']['configfiles']['files'] = '<b>编辑数据:</b>请您更改成相符的编辑数据。<br>如果它们不存在,就请您输入下面的内容。<br><b>请您注意:</b>由于保密原因,MySQL的密码将不被替换。)<br>请您通过手动的方式替换MySQL的密码。<br>如果您忘记了密码,您可以在`lib/userdata.inc.php`找到。';
|
||||
$lng['admin']['configfiles']['commands'] = '<b>命令:</b>请您在一页内输出以下的命令。';
|
||||
$lng['admin']['configfiles']['restart'] = '<b>重新开始:</b>请您输出以下命令以便重新装载。编辑数据应不超过一页';
|
||||
$lng['admin']['templates']['templates'] = '模板';
|
||||
$lng['admin']['templates']['template_add'] = '添加模板';
|
||||
$lng['admin']['templates']['template_edit'] = '编辑模板';
|
||||
$lng['admin']['templates']['action'] = '动作';
|
||||
$lng['admin']['templates']['email'] = '电子邮件';
|
||||
$lng['admin']['templates']['subject'] = '主题';
|
||||
$lng['admin']['templates']['mailbody'] = '邮件内容';
|
||||
$lng['admin']['templates']['createcustomer'] = '对新客户的欢迎函';
|
||||
$lng['admin']['templates']['pop_success'] = '对新邮件帐户的欢迎函';
|
||||
$lng['admin']['templates']['template_replace_vars'] = '模板中的替换变量:';
|
||||
$lng['admin']['templates']['FIRSTNAME'] = '更换客户名';
|
||||
$lng['admin']['templates']['NAME'] = '更换客户姓';
|
||||
$lng['admin']['templates']['USERNAME'] = '更换客户帐户用户名';
|
||||
$lng['admin']['templates']['PASSWORD'] = '更换客户帐户密码';
|
||||
$lng['admin']['templates']['EMAIL'] = '更换 POP3/IMAP 帐户地址';
|
||||
|
||||
/**
|
||||
* Serversettings
|
||||
*/
|
||||
|
||||
$lng['serversettings']['session_timeout']['title'] = '对话超时';
|
||||
$lng['serversettings']['session_timeout']['description'] = '用户多长时间必须呈现冻结状态,与此同时对话也变为无效';
|
||||
$lng['serversettings']['accountprefix']['title'] = '客户前缀';
|
||||
$lng['serversettings']['accountprefix']['description'] = '客户账户应该有哪种前缀?';
|
||||
$lng['serversettings']['mysqlprefix']['title'] = 'MySQL-前缀';
|
||||
$lng['serversettings']['mysqlprefix']['description'] = 'MySQL 账户应该有哪些前缀?';
|
||||
$lng['serversettings']['ftpprefix']['title'] = 'FTP前缀';
|
||||
$lng['serversettings']['ftpprefix']['description'] = 'FTP账户应该有哪些前缀?';
|
||||
$lng['serversettings']['documentroot_prefix']['title'] = '文档目录';
|
||||
$lng['serversettings']['documentroot_prefix']['description'] = '所有的客户应位于哪里?';
|
||||
$lng['serversettings']['logfiles_directory']['title'] = '登陆文件目录';
|
||||
$lng['serversettings']['logfiles_directory']['description'] = '所有的登陆文件应位于哪里';
|
||||
$lng['serversettings']['ipaddress']['title'] = 'IP地址';
|
||||
$lng['serversettings']['ipaddress']['description'] = '这个服务器IP地址是什么?';
|
||||
$lng['serversettings']['hostname']['title'] = '主机名';
|
||||
$lng['serversettings']['hostname']['description'] = '这个服务器的主机名是什么?';
|
||||
$lng['serversettings']['apachereload_command']['title'] = '阿帕奇重新读取命令';
|
||||
$lng['serversettings']['apachereload_command']['description'] = '被读取的阿帕奇文稿叫什么名字';
|
||||
$lng['serversettings']['bindconf_directory']['title'] = '连接配置目录';
|
||||
$lng['serversettings']['bindconf_directory']['description'] = '连接配置数据位于哪里?';
|
||||
$lng['serversettings']['bindreload_command']['title'] = '连接-重新读取命令';
|
||||
$lng['serversettings']['bindreload_command']['description'] = '连接的重置文本叫作什么';
|
||||
$lng['serversettings']['binddefaultzone']['title'] = '连接-默认区域';
|
||||
$lng['serversettings']['binddefaultzone']['description'] = '所有域的默认区域叫作什么?';
|
||||
$lng['serversettings']['vmail_uid']['title'] = '邮件UID';
|
||||
$lng['serversettings']['vmail_uid']['description'] = '邮件应该有哪些UID';
|
||||
$lng['serversettings']['vmail_gid']['title'] = '邮件Gid';
|
||||
$lng['serversettings']['vmail_gid']['description'] = '邮件应该有哪些Gid?';
|
||||
$lng['serversettings']['vmail_homedir']['title'] = '邮件地址目录';
|
||||
$lng['serversettings']['vmail_homedir']['description'] = '邮件应该位于哪里?';
|
||||
$lng['serversettings']['adminmail']['title'] = '发信人地址';
|
||||
$lng['serversettings']['adminmail']['description'] = '来自调查对象的邮件发信人地址是什么?';
|
||||
$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin地址';
|
||||
$lng['serversettings']['phpmyadmin_url']['description'] = 'phpMyAdmin位于哪里?';
|
||||
$lng['serversettings']['webmail_url']['title'] = '网络邮件的URL';
|
||||
$lng['serversettings']['webmail_url']['description'] = '网络邮件放在哪里?';
|
||||
$lng['serversettings']['webftp_url']['title'] = '网络FTP的URL';
|
||||
$lng['serversettings']['webftp_url']['description'] = '网络FTP放在哪里?';
|
||||
$lng['serversettings']['language']['description'] = '您的标准语言是什么语?';
|
||||
$lng['serversettings']['maxloginattempts']['title'] = '最多登陆次数';
|
||||
$lng['serversettings']['maxloginattempts']['description'] = '最多登陆次数直到帐户失效';
|
||||
$lng['serversettings']['deactivatetime']['title'] = '帐户失效时间';
|
||||
$lng['serversettings']['deactivatetime']['description'] = '帐户失效时间(以秒计算)';
|
||||
$lng['serversettings']['pathedit']['title'] = '路径输入方法';
|
||||
$lng['serversettings']['pathedit']['description'] = '路径是通过下拉菜单选择,还是自行输入?';
|
||||
|
||||
/**
|
||||
* ADDED BETWEEN 1.2.12 and 1.2.13
|
||||
*/
|
||||
|
||||
$lng['admin']['cronlastrun'] = '定时执行程序的最后一次执行';
|
||||
$lng['serversettings']['paging']['title'] = '每页进入次数';
|
||||
$lng['serversettings']['paging']['description'] = '一页上应该显示多少次 进入?(0 =无效分页)';
|
||||
$lng['error']['ipstillhasdomains'] = '你想要删除的IP/ 端口连接仍然占有分 配给他的域,在删除此IP/端口连接之前,请把这些域分配给其他IP/端口连接.';
|
||||
$lng['error']['cantdeletedefaultip'] = '你不能删除默认的分销商IP/端口连 接, 请在删除这个IP/端口连接前为分销商另设置默认IP/端口连接.';
|
||||
$lng['error']['cantdeletesystemip'] = '你不能删除系统IP, 你可以为系统IP 另生成一个新的IP/端口连接, 或者改变系统IP.';
|
||||
$lng['error']['myipaddress'] = '\'IP\'';
|
||||
$lng['error']['myport'] = '\'端口\'';
|
||||
$lng['error']['myipdefault'] = '你需要选择一个IP/端口连接并设为默认值.';
|
||||
$lng['error']['myipnotdouble'] = '这一IP/端口连接已存在.';
|
||||
$lng['question']['admin_ip_reallydelete'] = '你真的决定删除IP地址 %s?';
|
||||
$lng['admin']['ipsandports']['ipsandports'] = '多个IP和端口';
|
||||
$lng['admin']['ipsandports']['add'] = '添加IP/端口';
|
||||
$lng['admin']['ipsandports']['edit'] = '编辑IP/端口';
|
||||
$lng['admin']['ipsandports']['ipandport'] = 'IP/端口';
|
||||
$lng['admin']['ipsandports']['ip'] = 'IP';
|
||||
$lng['admin']['ipsandports']['port'] = '端口';
|
||||
|
||||
// ADDED IN 1.2.13-rc3
|
||||
|
||||
$lng['error']['cantchangesystemip'] = '你不能改变最近用过的系统IP,要么生成一个新的IP/端口组合, 要么改变系统IP.';
|
||||
$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '你确定你想要这个域的文件源生成于客户的客户根目录之外?';
|
||||
|
||||
// ADDED IN 1.2.14-rc1
|
||||
|
||||
$lng['admin']['memorylimitdisabled'] = '关闭';
|
||||
$lng['error']['loginnameissystemaccount'] = '你不能生成与系统帐号相似的帐户. 请另输入一个帐户名';
|
||||
$lng['domain']['openbasedirpath'] = '公开基址目录路径';
|
||||
$lng['domain']['docroot'] = '来自上一信息组的路径';
|
||||
$lng['domain']['homedir'] = '家目录';
|
||||
$lng['admin']['valuemandatory'] = '此值为强制性的';
|
||||
$lng['admin']['valuemandatorycompany'] = '"姓"与"名"或者"公司名"为必填项';
|
||||
$lng['menue']['main']['username'] = '以: 登录 ';
|
||||
$lng['panel']['urloverridespath'] = 'URL (覆盖路径)';
|
||||
$lng['panel']['pathorurl'] = '路径或URL';
|
||||
$lng['error']['sessiontimeoutiswrong'] = '只容许数字的"对话超时".';
|
||||
$lng['error']['maxloginattemptsiswrong'] = '只容许数字的"登录尝试最大值".';
|
||||
$lng['error']['deactivatetimiswrong'] = '只容许数字的"停用时间".';
|
||||
$lng['error']['accountprefixiswrong'] = '"客户前缀"错误.';
|
||||
$lng['error']['mysqlprefixiswrong'] = '"SQL前缀"错误.';
|
||||
$lng['error']['ftpprefixiswrong'] = '"FTP前缀"错误.';
|
||||
$lng['error']['ipiswrong'] = '"IP地址"错误. 只容许有效的IP地址.';
|
||||
$lng['error']['vmailuidiswrong'] = '"Mails-uid"错误. 只容许数字的UID.';
|
||||
$lng['error']['vmailgidiswrong'] = '"Mails-gid"错误. 只容许数字的GID.';
|
||||
$lng['error']['adminmailiswrong'] = '"寄件人地址"错误. 只容许有效的Email地址.';
|
||||
$lng['error']['pagingiswrong'] = '"每页记录"值错误. 只容许数字符号.';
|
||||
$lng['error']['phpmyadminiswrong'] = 'phpmyadmin-链接不是一个有效链接.';
|
||||
$lng['error']['webmailiswrong'] = 'WebMail-链接不是一个有效链接.';
|
||||
$lng['error']['webftpiswrong'] = 'WebFTP-链接不是一个有效链接.';
|
||||
$lng['domains']['hasaliasdomains'] = '有别名域';
|
||||
$lng['serversettings']['defaultip']['title'] = '默认IP/端口';
|
||||
$lng['serversettings']['defaultip']['description'] = '默认的IP/端口组合是什么?';
|
||||
$lng['domains']['statstics'] = '使用统计';
|
||||
$lng['panel']['ascending'] = '向上的';
|
||||
$lng['panel']['decending'] = '向下的';
|
||||
$lng['panel']['search'] = '搜寻';
|
||||
$lng['panel']['used'] = '已用';
|
||||
|
||||
// ADDED IN 1.2.14-rc3
|
||||
|
||||
$lng['panel']['translator'] = '翻译者';
|
||||
|
||||
// ADDED IN 1.2.14-rc4
|
||||
|
||||
$lng['error']['stringformaterror'] = '信息组"%s"值不是期望格式';
|
||||
|
||||
// ADDED in 1.2.15-svn1
|
||||
|
||||
$lng['admin']['serversoftware'] = '服务器软件';
|
||||
$lng['admin']['phpversion'] = 'php版本';
|
||||
$lng['admin']['phpmemorylimit'] = 'php内存限制';
|
||||
$lng['admin']['mysqlserverversion'] = 'mysql服务器版本';
|
||||
$lng['admin']['mysqlclientversion'] = 'mysql客户端版本';
|
||||
$lng['admin']['webserverinterface'] = '网页服务器接口';
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implementation of the Application Packaging Standard from SwSoft/Parallels
|
||||
* http://apsstandard.com
|
||||
*
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Cron
|
||||
* @version $Id: cron_apsinstaller.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @todo
|
||||
*/
|
||||
|
||||
$needrootdb = true;
|
||||
require (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
$Aps = new ApsInstaller($settings, $db, $db_root);
|
||||
$Aps->InstallHandler();
|
||||
require (dirname(__FILE__) . '/../lib/cron_shutdown.php');
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implementation of the Application Packaging Standard from SwSoft/Parallels
|
||||
* http://apsstandard.com
|
||||
*
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Cron
|
||||
* @version $Id: cron_apsinstaller.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @todo
|
||||
*/
|
||||
|
||||
$needrootdb = true;
|
||||
require (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
$Aps = new ApsInstaller($settings, $db, $db_root);
|
||||
$Aps->InstallHandler();
|
||||
require (dirname(__FILE__) . '/../lib/cron_shutdown.php');
|
||||
|
||||
?>
|
||||
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implementation of the Application Packaging Standard from SwSoft/Parallels
|
||||
* http://apsstandard.com
|
||||
*
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Cron
|
||||
* @version $Id: cron_apsupdater.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @todo
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
require (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
$Aps = new ApsUpdater($db);
|
||||
$Aps->UpdateHandler();
|
||||
require (dirname(__FILE__) . '/../lib/cron_shutdown.php');
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implementation of the Application Packaging Standard from SwSoft/Parallels
|
||||
* http://apsstandard.com
|
||||
*
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package Cron
|
||||
* @version $Id: cron_apsupdater.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @todo
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
require (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
$Aps = new ApsUpdater($db);
|
||||
$Aps->UpdateHandler();
|
||||
require (dirname(__FILE__) . '/../lib/cron_shutdown.php');
|
||||
|
||||
?>
|
||||
@@ -1,229 +1,229 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Remo Fritzsche
|
||||
* @author Manuel Aller
|
||||
* @author Michael Schlechtinger
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_autoresponder.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @todo skip mail parsing after x bytes for large mails
|
||||
* implement start and end date for autoresponder mails
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
require (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
$mail = new PHPMailer();
|
||||
|
||||
//dont do anything when module is disabled
|
||||
|
||||
if((int)$settings['autoresponder']['autoresponder_active'] == 0)
|
||||
{
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
return;
|
||||
}
|
||||
|
||||
//only send autoresponder to mails which were delivered since last run
|
||||
|
||||
if((int)$settings['autoresponder']['last_autoresponder_run'] == 0)
|
||||
{
|
||||
//mails from last 5 minutes, otherwise all mails will be parsed -> mailbomb prevention
|
||||
|
||||
$cycle = 300;
|
||||
}
|
||||
else
|
||||
{
|
||||
$cycle = time() - (int)$settings['autoresponder']['last_autoresponder_run'];
|
||||
|
||||
//prevent mailbombs when cycle is bigger than two days
|
||||
|
||||
if($cycle > (2 * 60 * 60 * 24))$cycle = (60 * 60 * 24);
|
||||
}
|
||||
|
||||
$db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value` = '" . (int)time() . "' WHERE `settinggroup` = 'autoresponder' AND `varname` = 'last_autoresponder_run'");
|
||||
|
||||
/*
|
||||
//can be used for later usage if autoresponders should be only active in a defined period
|
||||
|
||||
//This query has to disable every autoresponder entry which ended in the past
|
||||
$db->query("UPDATE `autoresponder` SET `enabled` = 0 WHERE `to` < CURDATE()");
|
||||
|
||||
//This query has to activate every autoresponder entry which starts today
|
||||
$db->query("UPDATE `autoresponder` SET `enabled` = 1 WHERE `from` = CURDATE()");
|
||||
*/
|
||||
//getting all mailboxes where autoresponders are active and configured
|
||||
|
||||
$result = $db->query("SELECT * FROM `" . TABLE_MAIL_AUTORESPONDER . "` INNER JOIN `" . TABLE_MAIL_USERS . "` ON `" . TABLE_MAIL_AUTORESPONDER . "`.`email` = `" . TABLE_MAIL_USERS . "`.`email` WHERE `enabled` = 1");
|
||||
|
||||
if($db->num_rows($result) > 0)
|
||||
{
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
$path = $row['homedir'] . $row['maildir'] . "new/";
|
||||
$files = scandir($path);
|
||||
foreach($files as $entry)
|
||||
{
|
||||
if($entry == '.'
|
||||
|| $entry == '..')continue;
|
||||
|
||||
if(time() - filemtime($path . $entry) - $cycle <= 0)
|
||||
{
|
||||
$content = file($path . $entry);
|
||||
|
||||
//error reading mail contents
|
||||
|
||||
if(count($content) == 0)
|
||||
{
|
||||
$cronlog->logAction(LOG_ERROR, LOG_WARNING, "Unable to read mail from maildir: " . $entry);
|
||||
continue;
|
||||
}
|
||||
|
||||
$match = array();
|
||||
$from = '';
|
||||
$to = '';
|
||||
$sender = '';
|
||||
$spam = false;
|
||||
foreach($content as $line)
|
||||
{
|
||||
// header ends on first empty line, skip rest of mail
|
||||
|
||||
if(strlen(rtrim($line)) == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
//fetching from field
|
||||
|
||||
if(!strlen($from)
|
||||
&& preg_match("/^From:(.+)<(.*)>$/", $line, $match))
|
||||
{
|
||||
$from = $match[2];
|
||||
}
|
||||
elseif(!strlen($from)
|
||||
&& preg_match("/^From:\s+(.*@.*)$/", $line, $match))
|
||||
{
|
||||
$from = $match[1];
|
||||
}
|
||||
|
||||
//fetching to field
|
||||
|
||||
if(!strlen($to)
|
||||
&& preg_match("/^To:(.+)<(.*)>$/", $line, $match))
|
||||
{
|
||||
$to = $match[2];
|
||||
}
|
||||
elseif(!strlen($to)
|
||||
&& preg_match("/To:\s+(.*@.*)$/", $line, $match))
|
||||
{
|
||||
$to = $match[1];
|
||||
}
|
||||
|
||||
//fetching sender field
|
||||
|
||||
if(!strlen($to)
|
||||
&& preg_match("/^Sender:(.+)<(.*)>$/", $line, $match))
|
||||
{
|
||||
$sender = $match[2];
|
||||
}
|
||||
elseif(!strlen($to)
|
||||
&& preg_match("/Sender:\s+(.*@.*)$/", $line, $match))
|
||||
{
|
||||
$sender = $match[1];
|
||||
}
|
||||
|
||||
//check for amavis/spamassassin spam headers
|
||||
|
||||
if(preg_match("/^X-Spam-Status: (Yes|No)(.*)$/", $line, $match))
|
||||
{
|
||||
if($match[1] == 'Yes')$spam = true;
|
||||
}
|
||||
|
||||
//check for precedence header
|
||||
if(preg_match("/^Precedence: (bulk|list|junk)(.*)$/", $line, $match))
|
||||
{
|
||||
// use the spam flag to skip reply
|
||||
$spam = true;
|
||||
}
|
||||
}
|
||||
|
||||
//skip mail when marked as spam
|
||||
|
||||
if($spam == true)continue;
|
||||
|
||||
//error while parsing mail
|
||||
|
||||
if($to == ''
|
||||
|| $from == '')
|
||||
{
|
||||
$cronlog->logAction(LOG_ERROR, LOG_WARNING, "No valid headers found in mail to parse: " . $entry);
|
||||
continue;
|
||||
}
|
||||
|
||||
//important! prevent mailbombs when mail comes from a maildaemon/mailrobot
|
||||
//robot/daemon mails must go to Sender: field in envelope header
|
||||
//refers to "Das Postfix-Buch" / RFC 2822
|
||||
|
||||
if($sender != '')$from = $sender;
|
||||
|
||||
//make message valid to email format
|
||||
|
||||
$message = str_replace("\r\n", "\n", $row['message']);
|
||||
|
||||
//check if mail is already an answer
|
||||
|
||||
$fullcontent = implode("", $content);
|
||||
|
||||
if(strstr($fullcontent, $message))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
//send mail with mailer class
|
||||
|
||||
$mail->From = $to;
|
||||
$mail->FromName = $to;
|
||||
$mail->Subject = $row['subject'];
|
||||
$mail->Body = html_entity_decode($message);
|
||||
$mail->AddAddress($from, $from);
|
||||
$mail->AddCustomHeader('Precedence: bulk');
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
if($mail->ErrorInfo != '')
|
||||
{
|
||||
$mailerr_msg = $mail->ErrorInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
$mailerr_msg = $from;
|
||||
}
|
||||
|
||||
$cronlog->logAction(LOG_ERROR, LOG_WARNING, "Error sending autoresponder mail: " . $mailerr_msg);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Remo Fritzsche
|
||||
* @author Manuel Aller
|
||||
* @author Michael Schlechtinger
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_autoresponder.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @todo skip mail parsing after x bytes for large mails
|
||||
* implement start and end date for autoresponder mails
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
require (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
$mail = new PHPMailer();
|
||||
|
||||
//dont do anything when module is disabled
|
||||
|
||||
if((int)$settings['autoresponder']['autoresponder_active'] == 0)
|
||||
{
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
return;
|
||||
}
|
||||
|
||||
//only send autoresponder to mails which were delivered since last run
|
||||
|
||||
if((int)$settings['autoresponder']['last_autoresponder_run'] == 0)
|
||||
{
|
||||
//mails from last 5 minutes, otherwise all mails will be parsed -> mailbomb prevention
|
||||
|
||||
$cycle = 300;
|
||||
}
|
||||
else
|
||||
{
|
||||
$cycle = time() - (int)$settings['autoresponder']['last_autoresponder_run'];
|
||||
|
||||
//prevent mailbombs when cycle is bigger than two days
|
||||
|
||||
if($cycle > (2 * 60 * 60 * 24))$cycle = (60 * 60 * 24);
|
||||
}
|
||||
|
||||
$db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value` = '" . (int)time() . "' WHERE `settinggroup` = 'autoresponder' AND `varname` = 'last_autoresponder_run'");
|
||||
|
||||
/*
|
||||
//can be used for later usage if autoresponders should be only active in a defined period
|
||||
|
||||
//This query has to disable every autoresponder entry which ended in the past
|
||||
$db->query("UPDATE `autoresponder` SET `enabled` = 0 WHERE `to` < CURDATE()");
|
||||
|
||||
//This query has to activate every autoresponder entry which starts today
|
||||
$db->query("UPDATE `autoresponder` SET `enabled` = 1 WHERE `from` = CURDATE()");
|
||||
*/
|
||||
//getting all mailboxes where autoresponders are active and configured
|
||||
|
||||
$result = $db->query("SELECT * FROM `" . TABLE_MAIL_AUTORESPONDER . "` INNER JOIN `" . TABLE_MAIL_USERS . "` ON `" . TABLE_MAIL_AUTORESPONDER . "`.`email` = `" . TABLE_MAIL_USERS . "`.`email` WHERE `enabled` = 1");
|
||||
|
||||
if($db->num_rows($result) > 0)
|
||||
{
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
$path = $row['homedir'] . $row['maildir'] . "new/";
|
||||
$files = scandir($path);
|
||||
foreach($files as $entry)
|
||||
{
|
||||
if($entry == '.'
|
||||
|| $entry == '..')continue;
|
||||
|
||||
if(time() - filemtime($path . $entry) - $cycle <= 0)
|
||||
{
|
||||
$content = file($path . $entry);
|
||||
|
||||
//error reading mail contents
|
||||
|
||||
if(count($content) == 0)
|
||||
{
|
||||
$cronlog->logAction(LOG_ERROR, LOG_WARNING, "Unable to read mail from maildir: " . $entry);
|
||||
continue;
|
||||
}
|
||||
|
||||
$match = array();
|
||||
$from = '';
|
||||
$to = '';
|
||||
$sender = '';
|
||||
$spam = false;
|
||||
foreach($content as $line)
|
||||
{
|
||||
// header ends on first empty line, skip rest of mail
|
||||
|
||||
if(strlen(rtrim($line)) == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
//fetching from field
|
||||
|
||||
if(!strlen($from)
|
||||
&& preg_match("/^From:(.+)<(.*)>$/", $line, $match))
|
||||
{
|
||||
$from = $match[2];
|
||||
}
|
||||
elseif(!strlen($from)
|
||||
&& preg_match("/^From:\s+(.*@.*)$/", $line, $match))
|
||||
{
|
||||
$from = $match[1];
|
||||
}
|
||||
|
||||
//fetching to field
|
||||
|
||||
if(!strlen($to)
|
||||
&& preg_match("/^To:(.+)<(.*)>$/", $line, $match))
|
||||
{
|
||||
$to = $match[2];
|
||||
}
|
||||
elseif(!strlen($to)
|
||||
&& preg_match("/To:\s+(.*@.*)$/", $line, $match))
|
||||
{
|
||||
$to = $match[1];
|
||||
}
|
||||
|
||||
//fetching sender field
|
||||
|
||||
if(!strlen($to)
|
||||
&& preg_match("/^Sender:(.+)<(.*)>$/", $line, $match))
|
||||
{
|
||||
$sender = $match[2];
|
||||
}
|
||||
elseif(!strlen($to)
|
||||
&& preg_match("/Sender:\s+(.*@.*)$/", $line, $match))
|
||||
{
|
||||
$sender = $match[1];
|
||||
}
|
||||
|
||||
//check for amavis/spamassassin spam headers
|
||||
|
||||
if(preg_match("/^X-Spam-Status: (Yes|No)(.*)$/", $line, $match))
|
||||
{
|
||||
if($match[1] == 'Yes')$spam = true;
|
||||
}
|
||||
|
||||
//check for precedence header
|
||||
if(preg_match("/^Precedence: (bulk|list|junk)(.*)$/", $line, $match))
|
||||
{
|
||||
// use the spam flag to skip reply
|
||||
$spam = true;
|
||||
}
|
||||
}
|
||||
|
||||
//skip mail when marked as spam
|
||||
|
||||
if($spam == true)continue;
|
||||
|
||||
//error while parsing mail
|
||||
|
||||
if($to == ''
|
||||
|| $from == '')
|
||||
{
|
||||
$cronlog->logAction(LOG_ERROR, LOG_WARNING, "No valid headers found in mail to parse: " . $entry);
|
||||
continue;
|
||||
}
|
||||
|
||||
//important! prevent mailbombs when mail comes from a maildaemon/mailrobot
|
||||
//robot/daemon mails must go to Sender: field in envelope header
|
||||
//refers to "Das Postfix-Buch" / RFC 2822
|
||||
|
||||
if($sender != '')$from = $sender;
|
||||
|
||||
//make message valid to email format
|
||||
|
||||
$message = str_replace("\r\n", "\n", $row['message']);
|
||||
|
||||
//check if mail is already an answer
|
||||
|
||||
$fullcontent = implode("", $content);
|
||||
|
||||
if(strstr($fullcontent, $message))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
//send mail with mailer class
|
||||
|
||||
$mail->From = $to;
|
||||
$mail->FromName = $to;
|
||||
$mail->Subject = $row['subject'];
|
||||
$mail->Body = html_entity_decode($message);
|
||||
$mail->AddAddress($from, $from);
|
||||
$mail->AddCustomHeader('Precedence: bulk');
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
if($mail->ErrorInfo != '')
|
||||
{
|
||||
$mailerr_msg = $mail->ErrorInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
$mailerr_msg = $from;
|
||||
}
|
||||
|
||||
$cronlog->logAction(LOG_ERROR, LOG_WARNING, "Error sending autoresponder mail: " . $mailerr_msg);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,81 +1,81 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_legacy.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = true;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check if table exists, otherwise create it
|
||||
*/
|
||||
|
||||
$tables = getTables($db);
|
||||
|
||||
if(!isset($tables[TABLE_PANEL_CRONSCRIPT])
|
||||
|| !is_array($tables[TABLE_PANEL_CRONSCRIPT]))
|
||||
{
|
||||
$db->query('CREATE TABLE `' . TABLE_PANEL_CRONSCRIPT . '` ( `id` int(11) unsigned NOT NULL auto_increment, `file` varchar(255) NOT NULL default \'\', PRIMARY KEY (`id`) ) TYPE=MyISAM ; ');
|
||||
}
|
||||
|
||||
/**
|
||||
* Backend Wrapper
|
||||
*/
|
||||
|
||||
$query = 'SELECT * FROM `' . TABLE_PANEL_CRONSCRIPT . '` ';
|
||||
$cronFileIncludeResult = $db->query($query);
|
||||
|
||||
while($cronFileIncludeRow = $db->fetch_array($cronFileIncludeResult))
|
||||
{
|
||||
$cronFileIncludeFullPath = makeSecurePath($pathtophpfiles . '/scripts/' . $cronFileIncludeRow['file']);
|
||||
|
||||
if(fileowner($cronFileIncludeFullPath) == fileowner($pathtophpfiles . '/scripts/' . $filename)
|
||||
&& filegroup($cronFileIncludeFullPath) == filegroup($pathtophpfiles . '/scripts/' . $filename))
|
||||
{
|
||||
fwrite($debugHandler, 'Processing ...' . $cronFileIncludeFullPath . "\n");
|
||||
include_once $cronFileIncludeFullPath;
|
||||
fwrite($debugHandler, 'Processing done!' . "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, 'WARNING! uid and/or gid of "' . $cronFileIncludeFullPath . '" and "' . $pathtophpfiles . '/scripts/' . $filename . '" don\'t match! Execution aborted!' . "\n");
|
||||
$keepLockFile = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_legacy.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = true;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check if table exists, otherwise create it
|
||||
*/
|
||||
|
||||
$tables = getTables($db);
|
||||
|
||||
if(!isset($tables[TABLE_PANEL_CRONSCRIPT])
|
||||
|| !is_array($tables[TABLE_PANEL_CRONSCRIPT]))
|
||||
{
|
||||
$db->query('CREATE TABLE `' . TABLE_PANEL_CRONSCRIPT . '` ( `id` int(11) unsigned NOT NULL auto_increment, `file` varchar(255) NOT NULL default \'\', PRIMARY KEY (`id`) ) TYPE=MyISAM ; ');
|
||||
}
|
||||
|
||||
/**
|
||||
* Backend Wrapper
|
||||
*/
|
||||
|
||||
$query = 'SELECT * FROM `' . TABLE_PANEL_CRONSCRIPT . '` ';
|
||||
$cronFileIncludeResult = $db->query($query);
|
||||
|
||||
while($cronFileIncludeRow = $db->fetch_array($cronFileIncludeResult))
|
||||
{
|
||||
$cronFileIncludeFullPath = makeSecurePath($pathtophpfiles . '/scripts/' . $cronFileIncludeRow['file']);
|
||||
|
||||
if(fileowner($cronFileIncludeFullPath) == fileowner($pathtophpfiles . '/scripts/' . $filename)
|
||||
&& filegroup($cronFileIncludeFullPath) == filegroup($pathtophpfiles . '/scripts/' . $filename))
|
||||
{
|
||||
fwrite($debugHandler, 'Processing ...' . $cronFileIncludeFullPath . "\n");
|
||||
include_once $cronFileIncludeFullPath;
|
||||
fwrite($debugHandler, 'Processing done!' . "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, 'WARNING! uid and/or gid of "' . $cronFileIncludeFullPath . '" and "' . $pathtophpfiles . '/scripts/' . $filename . '" don\'t match! Execution aborted!' . "\n");
|
||||
$keepLockFile = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
@@ -1,182 +1,182 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mk@syscp-help.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_lighttp.htaccess.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* LOOK INTO EVERY CUSTOMER DIR TO SEE IF THERE ARE ANY .HTACCESS FILE TO "TRANSLATE"
|
||||
*/
|
||||
|
||||
if($settings['system']['webserver'] == 'lighttpd')
|
||||
{
|
||||
fwrite($debugHandler, ' cron_lighttp.htaccess: Searching for .htaccess files to translate' . "\n");
|
||||
$lpath = makeCorrectDir(strrchr($settings['system']['apacheconf_vhost'], '/'));
|
||||
$htaccessfh = @fopen($lpath . 'syscp-htaccess.conf', 'w');
|
||||
|
||||
if($htaccessfh !== false)
|
||||
{
|
||||
read_directory($settings['system']['documentroot_prefix'], 25, $htaccessfh);
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, ' ERROR: Cannot open file ' . $lpath . 'syscp-htaccess.conf' . "\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, ' cron_lighttp.htaccess: You don\'t use Lighttpd, you do not have to run this cronscript!' . "\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
/**
|
||||
* FUNCTIONS
|
||||
*/
|
||||
|
||||
function read_directory($dir1 = null, $min_depth = 25, $htaccessfh = null)
|
||||
{
|
||||
global $htaccessfh;
|
||||
|
||||
if(!is_string($dir1))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$depth = explode("/", $dir1);
|
||||
$current_depth = sizeof($depth);
|
||||
|
||||
if($current_depth < $min_depth)
|
||||
{
|
||||
$min_depth = $current_depth;
|
||||
}
|
||||
|
||||
$dir = $dir1;
|
||||
$dh = opendir($dir);
|
||||
|
||||
while($file = readdir($dh))
|
||||
{
|
||||
if(($file != ".")
|
||||
&& ($file != ".."))
|
||||
{
|
||||
$file = $dir . "/" . $file;
|
||||
for ($i = 0;$i <= ($current_depth - $min_depth);$i++)
|
||||
|
||||
// $file is sub-directory
|
||||
|
||||
if($ddh = @opendir($file))
|
||||
{
|
||||
read_directory($file);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strtolower($file) == '.htaccess')
|
||||
{
|
||||
parseHtaccess($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closedir($dh);
|
||||
return true;
|
||||
}
|
||||
|
||||
function parseHtaccess($file = null)
|
||||
{
|
||||
global $debugHandler, $htaccessfh;
|
||||
$htacc = @file_get_contents($file);
|
||||
|
||||
if($htacc != "")
|
||||
{
|
||||
$htlines = array();
|
||||
$htlines = explode("\n", $htacc);
|
||||
$userhasrewrites = false;
|
||||
$userrewrites = array();
|
||||
$rule = array();
|
||||
foreach($htlines as $htl)
|
||||
{
|
||||
if(preg_match('/^RewriteEngine\ on$/si', $htl) !== null)
|
||||
{
|
||||
$userhasrewrites = true;
|
||||
}
|
||||
elseif(preg_match('/^RewriteRule\ +\^(.*)\$\(.*)$/si', $htl, $rule) !== null)
|
||||
{
|
||||
$regex = isset($rule[0]) ? $rule[0] : '';
|
||||
$relativeuri = isset($rule[1]) ? $rule[1] : '';
|
||||
|
||||
if($regex != ''
|
||||
&& $relativeuri != '')
|
||||
{
|
||||
$userrewrites[]['regex'] = $regex;
|
||||
$userrewrites[]['relativeuri'] = $relativeuri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($userhasrewrites)
|
||||
{
|
||||
fwrite($htaccessfh, '$PHYSICAL["path"] == "' . dirname($file) . '" {' . "\n");
|
||||
fwrite($htaccessfh, ' url.rewrite-once = (' . "\n");
|
||||
$count = 1;
|
||||
$max = count($userrewrites);
|
||||
foreach($userrewrites as $usrrw)
|
||||
{
|
||||
fwrite($htaccessfh, ' "^' . $usrrw['regex'] . '$" => "' . $usrrw['relativeuri'] . '"');
|
||||
|
||||
if($count < $max)
|
||||
{
|
||||
fwrite($htaccessfh, ',' . "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($htaccessfh, "\n");
|
||||
}
|
||||
|
||||
$count++;
|
||||
}
|
||||
|
||||
fwrite($htaccessfh, ' )' . "\n");
|
||||
fwrite($htaccessfh, '}' . "\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, ' WARNING: file ' . $file . ' seems to be empty or there was an error' . "\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mk@syscp-help.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_lighttp.htaccess.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* LOOK INTO EVERY CUSTOMER DIR TO SEE IF THERE ARE ANY .HTACCESS FILE TO "TRANSLATE"
|
||||
*/
|
||||
|
||||
if($settings['system']['webserver'] == 'lighttpd')
|
||||
{
|
||||
fwrite($debugHandler, ' cron_lighttp.htaccess: Searching for .htaccess files to translate' . "\n");
|
||||
$lpath = makeCorrectDir(strrchr($settings['system']['apacheconf_vhost'], '/'));
|
||||
$htaccessfh = @fopen($lpath . 'syscp-htaccess.conf', 'w');
|
||||
|
||||
if($htaccessfh !== false)
|
||||
{
|
||||
read_directory($settings['system']['documentroot_prefix'], 25, $htaccessfh);
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, ' ERROR: Cannot open file ' . $lpath . 'syscp-htaccess.conf' . "\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, ' cron_lighttp.htaccess: You don\'t use Lighttpd, you do not have to run this cronscript!' . "\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
/**
|
||||
* FUNCTIONS
|
||||
*/
|
||||
|
||||
function read_directory($dir1 = null, $min_depth = 25, $htaccessfh = null)
|
||||
{
|
||||
global $htaccessfh;
|
||||
|
||||
if(!is_string($dir1))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$depth = explode("/", $dir1);
|
||||
$current_depth = sizeof($depth);
|
||||
|
||||
if($current_depth < $min_depth)
|
||||
{
|
||||
$min_depth = $current_depth;
|
||||
}
|
||||
|
||||
$dir = $dir1;
|
||||
$dh = opendir($dir);
|
||||
|
||||
while($file = readdir($dh))
|
||||
{
|
||||
if(($file != ".")
|
||||
&& ($file != ".."))
|
||||
{
|
||||
$file = $dir . "/" . $file;
|
||||
for ($i = 0;$i <= ($current_depth - $min_depth);$i++)
|
||||
|
||||
// $file is sub-directory
|
||||
|
||||
if($ddh = @opendir($file))
|
||||
{
|
||||
read_directory($file);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(strtolower($file) == '.htaccess')
|
||||
{
|
||||
parseHtaccess($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closedir($dh);
|
||||
return true;
|
||||
}
|
||||
|
||||
function parseHtaccess($file = null)
|
||||
{
|
||||
global $debugHandler, $htaccessfh;
|
||||
$htacc = @file_get_contents($file);
|
||||
|
||||
if($htacc != "")
|
||||
{
|
||||
$htlines = array();
|
||||
$htlines = explode("\n", $htacc);
|
||||
$userhasrewrites = false;
|
||||
$userrewrites = array();
|
||||
$rule = array();
|
||||
foreach($htlines as $htl)
|
||||
{
|
||||
if(preg_match('/^RewriteEngine\ on$/si', $htl) !== null)
|
||||
{
|
||||
$userhasrewrites = true;
|
||||
}
|
||||
elseif(preg_match('/^RewriteRule\ +\^(.*)\$\(.*)$/si', $htl, $rule) !== null)
|
||||
{
|
||||
$regex = isset($rule[0]) ? $rule[0] : '';
|
||||
$relativeuri = isset($rule[1]) ? $rule[1] : '';
|
||||
|
||||
if($regex != ''
|
||||
&& $relativeuri != '')
|
||||
{
|
||||
$userrewrites[]['regex'] = $regex;
|
||||
$userrewrites[]['relativeuri'] = $relativeuri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($userhasrewrites)
|
||||
{
|
||||
fwrite($htaccessfh, '$PHYSICAL["path"] == "' . dirname($file) . '" {' . "\n");
|
||||
fwrite($htaccessfh, ' url.rewrite-once = (' . "\n");
|
||||
$count = 1;
|
||||
$max = count($userrewrites);
|
||||
foreach($userrewrites as $usrrw)
|
||||
{
|
||||
fwrite($htaccessfh, ' "^' . $usrrw['regex'] . '$" => "' . $usrrw['relativeuri'] . '"');
|
||||
|
||||
if($count < $max)
|
||||
{
|
||||
fwrite($htaccessfh, ',' . "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($htaccessfh, "\n");
|
||||
}
|
||||
|
||||
$count++;
|
||||
}
|
||||
|
||||
fwrite($htaccessfh, ' )' . "\n");
|
||||
fwrite($htaccessfh, '}' . "\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, ' WARNING: file ' . $file . ' seems to be empty or there was an error' . "\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,337 +1,337 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_tasks.inc.dns.10.bind.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/*
|
||||
* This script creates the php.ini's used by mod_suPHP+php-cgi
|
||||
*/
|
||||
|
||||
if(@php_sapi_name() != 'cli'
|
||||
&& @php_sapi_name() != 'cgi'
|
||||
&& @php_sapi_name() != 'cgi-fcgi')
|
||||
{
|
||||
die('This script only works in the shell.');
|
||||
}
|
||||
|
||||
class bind
|
||||
{
|
||||
public $db = false;
|
||||
public $logger = false;
|
||||
public $debugHandler = false;
|
||||
public $settings = array();
|
||||
public $nameservers = array();
|
||||
public $mxservers = array();
|
||||
|
||||
public function __construct($db, $logger, $debugHandler, $settings)
|
||||
{
|
||||
$this->db = $db;
|
||||
$this->logger = $logger;
|
||||
$this->debugHandler = $debugHandler;
|
||||
$this->settings = $settings;
|
||||
|
||||
if($this->settings['system']['nameservers'] != '')
|
||||
{
|
||||
$nameservers = explode(',', $this->settings['system']['nameservers']);
|
||||
foreach($nameservers as $nameserver)
|
||||
{
|
||||
$nameserver_ip = gethostbyname(trim($nameserver));
|
||||
|
||||
if(substr($nameserver, -1, 1) != '.')
|
||||
{
|
||||
$nameserver.= '.';
|
||||
}
|
||||
|
||||
$this->nameservers[] = array(
|
||||
'hostname' => trim($nameserver),
|
||||
'ip' => trim($nameserver_ip)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if($this->settings['system']['mxservers'] != '')
|
||||
{
|
||||
$mxservers = explode(',', $this->settings['system']['mxservers']);
|
||||
foreach($mxservers as $mxserver)
|
||||
{
|
||||
if(substr($mxserver, -1, 1) != '.')
|
||||
{
|
||||
$mxserver.= '.';
|
||||
}
|
||||
|
||||
$this->mxservers[] = $mxserver;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function writeConfigs()
|
||||
{
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 started - Rebuilding syscp_bind.conf' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Task4 started - Rebuilding syscp_bind.conf');
|
||||
|
||||
if(!file_exists(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/')))
|
||||
{
|
||||
$this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/')));
|
||||
safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/')));
|
||||
}
|
||||
|
||||
$known_filenames = array();
|
||||
|
||||
$bindconf_file = '# ' . $this->settings['system']['bindconf_directory'] . 'syscp_bind.conf' . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n";
|
||||
$result_domains = $this->db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`iswildcarddomain`, `d`.`customerid`, `d`.`zonefile`, `d`.`bindserial`, `d`.`dkim`, `d`.`dkim_id`, `d`.`dkim_pubkey`, `ip`.`ip`, `c`.`loginname`, `c`.`guid` FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) LEFT JOIN `" . TABLE_PANEL_IPSANDPORTS . "` AS `ip` ON(`d`.`ipandport`=`ip`.`id`) WHERE `d`.`isbinddomain` = '1' ORDER BY `d`.`domain` ASC");
|
||||
|
||||
while($domain = $this->db->fetch_array($result_domains))
|
||||
{
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - Writing ' . $domain['id'] . '::' . $domain['domain'] . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Writing ' . $domain['id'] . '::' . $domain['domain']);
|
||||
|
||||
if($domain['zonefile'] == '')
|
||||
{
|
||||
$zonefile = $this->generateZone($domain);
|
||||
$domain['zonefile'] = 'domains/' . $domain['domain'] . '.zone';
|
||||
$zonefile_name = makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']);
|
||||
$known_filenames[] = basename($zonefile_name);
|
||||
$zonefile_handler = fopen($zonefile_name, 'w');
|
||||
fwrite($zonefile_handler, $zonefile);
|
||||
fclose($zonefile_handler);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - `' . $zonefile_name . '` zone written' . "\n");
|
||||
}
|
||||
|
||||
$bindconf_file.= '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n";
|
||||
$bindconf_file.= 'zone "' . $domain['domain'] . '" in {' . "\n";
|
||||
$bindconf_file.= ' type master;' . "\n";
|
||||
$bindconf_file.= ' file "' . makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']) . '";' . "\n";
|
||||
$bindconf_file.= ' allow-query { any; };' . "\n";
|
||||
|
||||
if(count($this->nameservers) > 0)
|
||||
{
|
||||
$bindconf_file.= ' allow-transfer {' . "\n";
|
||||
for ($i = 0;$i < count($this->nameservers);$i++)
|
||||
{
|
||||
$bindconf_file.= ' ' . $this->nameservers[$i]['ip'] . ';' . "\n";
|
||||
}
|
||||
|
||||
$bindconf_file.= ' };' . "\n";
|
||||
}
|
||||
|
||||
$bindconf_file.= '};' . "\n";
|
||||
$bindconf_file.= "\n";
|
||||
}
|
||||
|
||||
$bindconf_file_handler = fopen(makeCorrectFile($this->settings['system']['bindconf_directory'] . '/syscp_bind.conf'), 'w');
|
||||
fwrite($bindconf_file_handler, $bindconf_file);
|
||||
fclose($bindconf_file_handler);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - syscp_bind.conf written' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'syscp_bind.conf written');
|
||||
safe_exec($this->settings['system']['bindreload_command']);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - Bind9 reloaded' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Bind9 reloaded');
|
||||
$domains_dir = makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/');
|
||||
|
||||
if(file_exists($domains_dir)
|
||||
&& is_dir($domains_dir))
|
||||
{
|
||||
$domain_file_dirhandle = opendir($domains_dir);
|
||||
|
||||
while(false !== ($domain_filename = readdir($domain_file_dirhandle)))
|
||||
{
|
||||
if($domain_filename != '.'
|
||||
&& $domain_filename != '..'
|
||||
&& !in_array($domain_filename, $known_filenames)
|
||||
&& file_exists(makeCorrectFile($domains_dir . '/' . $domain_filename)))
|
||||
{
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - unlinking ' . $domain_filename . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_WARNING, 'Deleting ' . $domain_filename);
|
||||
unlink(makeCorrectFile($domains_dir . '/' . $domain_filename));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function generateZone($domain)
|
||||
{
|
||||
if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
|
||||
{
|
||||
$ip_a_record = 'A ' . $domain['ip'];
|
||||
}
|
||||
elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$ip_a_record = 'AAAA ' . $domain['ip'];
|
||||
}
|
||||
else
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
$date = date('Ymd');
|
||||
$bindserial = (preg_match('/^' . $date . '/', $domain['bindserial']) ? $domain['bindserial'] + 1 : $date . '00');
|
||||
$this->db->query('UPDATE `' . TABLE_PANEL_DOMAINS . '` SET `bindserial`=\'' . $bindserial . '\' WHERE `id`=\'' . $domain['id'] . '\'');
|
||||
$zonefile = '$TTL 1W' . "\n";
|
||||
|
||||
if(count($this->nameservers) == 0)
|
||||
{
|
||||
$zonefile.= '@ IN SOA ns ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$zonefile.= '@ IN SOA ' . $this->nameservers[0]['hostname'] . ' ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n";
|
||||
}
|
||||
|
||||
$zonefile.= ' ' . $bindserial . ' ; serial' . "\n" . ' 8H ; refresh' . "\n" . ' 2H ; retry' . "\n" . ' 1W ; expiry' . "\n" . ' 11h) ; minimum' . "\n";
|
||||
|
||||
if(count($this->nameservers) == 0)
|
||||
{
|
||||
$zonefile.= '@ IN NS ns' . "\n" . 'ns IN ' . $ip_a_record . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($this->nameservers as $nameserver)
|
||||
{
|
||||
$zonefile.= '@ IN NS ' . trim($nameserver['hostname']) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
if(count($this->mxservers) == 0)
|
||||
{
|
||||
$zonefile.= '@ IN MX 10 mail' . "\n" . 'mail IN ' . $ip_a_record . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($this->mxservers as $mxserver)
|
||||
{
|
||||
$zonefile.= '@ IN MX ' . trim($mxserver) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$zonefile.= '@ IN TXT "v=spf1 a mx -all"' . "\n";
|
||||
|
||||
if($this->settings['dkim']['use_dkim'] == '1'
|
||||
&& $domain['dkim'] == '1'
|
||||
&& $domain['dkim_pubkey'] != '')
|
||||
{
|
||||
$zonefile.= 'dkim_' . $domain['dkim_id'] . '._domainkey IN TXT "v=DKIM1; k=rsa; p=' . trim(preg_replace('/-----BEGIN PUBLIC KEY-----(.+)-----END PUBLIC KEY-----/s', '$1', str_replace("\n", '', $domain['dkim_pubkey']))) . '"' . "\n";
|
||||
}
|
||||
|
||||
$nssubdomains = $this->db->query('SELECT `domain` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `isbinddomain`=\'1\' AND `domain` LIKE \'%.' . $domain['domain'] . '\'');
|
||||
|
||||
while($nssubdomain = $this->db->fetch_array($nssubdomains))
|
||||
{
|
||||
if(preg_match('/^[^\.]+\.' . preg_quote($domain['domain'], '/') . '/', $nssubdomain['domain']))
|
||||
{
|
||||
$nssubdomain = str_replace('.' . $domain['domain'], '', $nssubdomain['domain']);
|
||||
|
||||
if(count($this->nameservers) == 0)
|
||||
{
|
||||
$zonefile.= $nssubdomain . ' IN NS ns.' . $nssubdomain . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($this->nameservers as $nameserver)
|
||||
{
|
||||
$zonefile.= $nssubdomain . ' IN NS ' . trim($nameserver['hostname']) . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$zonefile.= '@ IN ' . $ip_a_record . "\n";
|
||||
$zonefile.= 'www IN ' . $ip_a_record . "\n";
|
||||
|
||||
if($domain['iswildcarddomain'] == '1')
|
||||
{
|
||||
$zonefile.= '* IN ' . $ip_a_record . "\n";
|
||||
}
|
||||
|
||||
$subdomains = $this->db->query('SELECT `d`.`domain`, `ip`.`ip` AS `ip` FROM `' . TABLE_PANEL_DOMAINS . '` `d`, `' . TABLE_PANEL_IPSANDPORTS . '` `ip` WHERE `parentdomainid`=\'' . $domain['id'] . '\' AND `d`.`ipandport`=`ip`.`id`');
|
||||
|
||||
while($subdomain = $this->db->fetch_array($subdomains))
|
||||
{
|
||||
$zonefile.= str_replace('.' . $domain['domain'], '', $subdomain['domain']) . ' IN A ' . $subdomain['ip'] . "\n";
|
||||
}
|
||||
|
||||
return $zonefile;
|
||||
}
|
||||
|
||||
public function writeDKIMconfigs()
|
||||
{
|
||||
if($this->settings['dkim']['use_dkim'] == '1')
|
||||
{
|
||||
if(!file_exists(makeCorrectDir($this->settings['dkim']['dkim_prefix'])))
|
||||
{
|
||||
$this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix'])));
|
||||
safe_exec('mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix'])));
|
||||
}
|
||||
|
||||
$dkimdomains = '';
|
||||
$dkimkeys = '';
|
||||
$result_domains = $this->db->query("SELECT `id`, `domain`, `dkim`, `dkim_id`, `dkim_pubkey`, `dkim_privkey` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `dkim` = '1' ORDER BY `id` ASC");
|
||||
|
||||
while($domain = $this->db->fetch_array($result_domains))
|
||||
{
|
||||
$privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private');
|
||||
$pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public');
|
||||
|
||||
if($domain['dkim_privkey'] == ''
|
||||
|| $domain['dkim_pubkey'] == '')
|
||||
{
|
||||
$max_dkim_id = $this->db->query_first("SELECT MAX(`dkim_id`) as `max_dkim_id` FROM `" . TABLE_PANEL_DOMAINS . "`");
|
||||
$domain['dkim_id'] = (int)$max_dkim_id['max_dkim_id'] + 1;
|
||||
$privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private');
|
||||
safe_exec('openssl genrsa -out ' . escapeshellarg($privkey_filename) . ' 1024');
|
||||
$domain['dkim_privkey'] = file_get_contents($privkey_filename);
|
||||
safe_exec("chmod 0640 " . escapeshellarg($privkey_filename));
|
||||
$pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public');
|
||||
safe_exec('openssl rsa -in ' . escapeshellarg($privkey_filename) . ' -pubout -outform pem -out ' . escapeshellarg($pubkey_filename));
|
||||
$domain['dkim_pubkey'] = file_get_contents($pubkey_filename);
|
||||
safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename));
|
||||
$this->db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `dkim_id` = '" . $domain['dkim_id'] . "', `dkim_privkey` = '" . $domain['dkim_privkey'] . "', `dkim_pubkey` = '" . $domain['dkim_pubkey'] . "' WHERE `id` = '" . $domain['id'] . "'");
|
||||
}
|
||||
|
||||
if(!file_exists($privkey_filename)
|
||||
&& $domain['dkim_privkey'] != '')
|
||||
{
|
||||
$privkey_file_handler = fopen($privkey_filename, "w");
|
||||
fwrite($privkey_file_handler, $domain['dkim_privkey']);
|
||||
fclose($privkey_file_handler);
|
||||
safe_exec("chmod 0640 " . escapeshellarg($privkey_filename));
|
||||
}
|
||||
|
||||
if(!file_exists($pubkey_filename)
|
||||
&& $domain['dkim_pubkey'] != '')
|
||||
{
|
||||
$pubkey_file_handler = fopen($pubkey_filename, "w");
|
||||
fwrite($pubkey_file_handler, $domain['dkim_pubkey']);
|
||||
fclose($pubkey_file_handler);
|
||||
safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename));
|
||||
}
|
||||
|
||||
$dkimdomains.= $domain['domain'] . "\n";
|
||||
$dkimkeys.= "*@" . $domain['domain'] . ":" . $domain['domain'] . ":" . $privkey_filename . "\n";
|
||||
}
|
||||
|
||||
$dkimdomains_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_domains']);
|
||||
$dkimdomains_file_handler = fopen($dkimdomains_filename, "w");
|
||||
fwrite($dkimdomains_file_handler, $dkimdomains);
|
||||
fclose($dkimdomains_file_handler);
|
||||
$dkimkeys_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_dkimkeys']);
|
||||
$dkimkeys_file_handler = fopen($dkimkeys_filename, "w");
|
||||
fwrite($dkimkeys_file_handler, $dkimkeys);
|
||||
fclose($dkimkeys_file_handler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_tasks.inc.dns.10.bind.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/*
|
||||
* This script creates the php.ini's used by mod_suPHP+php-cgi
|
||||
*/
|
||||
|
||||
if(@php_sapi_name() != 'cli'
|
||||
&& @php_sapi_name() != 'cgi'
|
||||
&& @php_sapi_name() != 'cgi-fcgi')
|
||||
{
|
||||
die('This script only works in the shell.');
|
||||
}
|
||||
|
||||
class bind
|
||||
{
|
||||
public $db = false;
|
||||
public $logger = false;
|
||||
public $debugHandler = false;
|
||||
public $settings = array();
|
||||
public $nameservers = array();
|
||||
public $mxservers = array();
|
||||
|
||||
public function __construct($db, $logger, $debugHandler, $settings)
|
||||
{
|
||||
$this->db = $db;
|
||||
$this->logger = $logger;
|
||||
$this->debugHandler = $debugHandler;
|
||||
$this->settings = $settings;
|
||||
|
||||
if($this->settings['system']['nameservers'] != '')
|
||||
{
|
||||
$nameservers = explode(',', $this->settings['system']['nameservers']);
|
||||
foreach($nameservers as $nameserver)
|
||||
{
|
||||
$nameserver_ip = gethostbyname(trim($nameserver));
|
||||
|
||||
if(substr($nameserver, -1, 1) != '.')
|
||||
{
|
||||
$nameserver.= '.';
|
||||
}
|
||||
|
||||
$this->nameservers[] = array(
|
||||
'hostname' => trim($nameserver),
|
||||
'ip' => trim($nameserver_ip)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if($this->settings['system']['mxservers'] != '')
|
||||
{
|
||||
$mxservers = explode(',', $this->settings['system']['mxservers']);
|
||||
foreach($mxservers as $mxserver)
|
||||
{
|
||||
if(substr($mxserver, -1, 1) != '.')
|
||||
{
|
||||
$mxserver.= '.';
|
||||
}
|
||||
|
||||
$this->mxservers[] = $mxserver;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function writeConfigs()
|
||||
{
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 started - Rebuilding syscp_bind.conf' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Task4 started - Rebuilding syscp_bind.conf');
|
||||
|
||||
if(!file_exists(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/')))
|
||||
{
|
||||
$this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/')));
|
||||
safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/')));
|
||||
}
|
||||
|
||||
$known_filenames = array();
|
||||
|
||||
$bindconf_file = '# ' . $this->settings['system']['bindconf_directory'] . 'syscp_bind.conf' . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n";
|
||||
$result_domains = $this->db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`iswildcarddomain`, `d`.`customerid`, `d`.`zonefile`, `d`.`bindserial`, `d`.`dkim`, `d`.`dkim_id`, `d`.`dkim_pubkey`, `ip`.`ip`, `c`.`loginname`, `c`.`guid` FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) LEFT JOIN `" . TABLE_PANEL_IPSANDPORTS . "` AS `ip` ON(`d`.`ipandport`=`ip`.`id`) WHERE `d`.`isbinddomain` = '1' ORDER BY `d`.`domain` ASC");
|
||||
|
||||
while($domain = $this->db->fetch_array($result_domains))
|
||||
{
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - Writing ' . $domain['id'] . '::' . $domain['domain'] . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Writing ' . $domain['id'] . '::' . $domain['domain']);
|
||||
|
||||
if($domain['zonefile'] == '')
|
||||
{
|
||||
$zonefile = $this->generateZone($domain);
|
||||
$domain['zonefile'] = 'domains/' . $domain['domain'] . '.zone';
|
||||
$zonefile_name = makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']);
|
||||
$known_filenames[] = basename($zonefile_name);
|
||||
$zonefile_handler = fopen($zonefile_name, 'w');
|
||||
fwrite($zonefile_handler, $zonefile);
|
||||
fclose($zonefile_handler);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - `' . $zonefile_name . '` zone written' . "\n");
|
||||
}
|
||||
|
||||
$bindconf_file.= '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n";
|
||||
$bindconf_file.= 'zone "' . $domain['domain'] . '" in {' . "\n";
|
||||
$bindconf_file.= ' type master;' . "\n";
|
||||
$bindconf_file.= ' file "' . makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']) . '";' . "\n";
|
||||
$bindconf_file.= ' allow-query { any; };' . "\n";
|
||||
|
||||
if(count($this->nameservers) > 0)
|
||||
{
|
||||
$bindconf_file.= ' allow-transfer {' . "\n";
|
||||
for ($i = 0;$i < count($this->nameservers);$i++)
|
||||
{
|
||||
$bindconf_file.= ' ' . $this->nameservers[$i]['ip'] . ';' . "\n";
|
||||
}
|
||||
|
||||
$bindconf_file.= ' };' . "\n";
|
||||
}
|
||||
|
||||
$bindconf_file.= '};' . "\n";
|
||||
$bindconf_file.= "\n";
|
||||
}
|
||||
|
||||
$bindconf_file_handler = fopen(makeCorrectFile($this->settings['system']['bindconf_directory'] . '/syscp_bind.conf'), 'w');
|
||||
fwrite($bindconf_file_handler, $bindconf_file);
|
||||
fclose($bindconf_file_handler);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - syscp_bind.conf written' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'syscp_bind.conf written');
|
||||
safe_exec($this->settings['system']['bindreload_command']);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - Bind9 reloaded' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Bind9 reloaded');
|
||||
$domains_dir = makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/');
|
||||
|
||||
if(file_exists($domains_dir)
|
||||
&& is_dir($domains_dir))
|
||||
{
|
||||
$domain_file_dirhandle = opendir($domains_dir);
|
||||
|
||||
while(false !== ($domain_filename = readdir($domain_file_dirhandle)))
|
||||
{
|
||||
if($domain_filename != '.'
|
||||
&& $domain_filename != '..'
|
||||
&& !in_array($domain_filename, $known_filenames)
|
||||
&& file_exists(makeCorrectFile($domains_dir . '/' . $domain_filename)))
|
||||
{
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - unlinking ' . $domain_filename . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_WARNING, 'Deleting ' . $domain_filename);
|
||||
unlink(makeCorrectFile($domains_dir . '/' . $domain_filename));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function generateZone($domain)
|
||||
{
|
||||
if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
|
||||
{
|
||||
$ip_a_record = 'A ' . $domain['ip'];
|
||||
}
|
||||
elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
$ip_a_record = 'AAAA ' . $domain['ip'];
|
||||
}
|
||||
else
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
$date = date('Ymd');
|
||||
$bindserial = (preg_match('/^' . $date . '/', $domain['bindserial']) ? $domain['bindserial'] + 1 : $date . '00');
|
||||
$this->db->query('UPDATE `' . TABLE_PANEL_DOMAINS . '` SET `bindserial`=\'' . $bindserial . '\' WHERE `id`=\'' . $domain['id'] . '\'');
|
||||
$zonefile = '$TTL 1W' . "\n";
|
||||
|
||||
if(count($this->nameservers) == 0)
|
||||
{
|
||||
$zonefile.= '@ IN SOA ns ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$zonefile.= '@ IN SOA ' . $this->nameservers[0]['hostname'] . ' ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n";
|
||||
}
|
||||
|
||||
$zonefile.= ' ' . $bindserial . ' ; serial' . "\n" . ' 8H ; refresh' . "\n" . ' 2H ; retry' . "\n" . ' 1W ; expiry' . "\n" . ' 11h) ; minimum' . "\n";
|
||||
|
||||
if(count($this->nameservers) == 0)
|
||||
{
|
||||
$zonefile.= '@ IN NS ns' . "\n" . 'ns IN ' . $ip_a_record . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($this->nameservers as $nameserver)
|
||||
{
|
||||
$zonefile.= '@ IN NS ' . trim($nameserver['hostname']) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
if(count($this->mxservers) == 0)
|
||||
{
|
||||
$zonefile.= '@ IN MX 10 mail' . "\n" . 'mail IN ' . $ip_a_record . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($this->mxservers as $mxserver)
|
||||
{
|
||||
$zonefile.= '@ IN MX ' . trim($mxserver) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$zonefile.= '@ IN TXT "v=spf1 a mx -all"' . "\n";
|
||||
|
||||
if($this->settings['dkim']['use_dkim'] == '1'
|
||||
&& $domain['dkim'] == '1'
|
||||
&& $domain['dkim_pubkey'] != '')
|
||||
{
|
||||
$zonefile.= 'dkim_' . $domain['dkim_id'] . '._domainkey IN TXT "v=DKIM1; k=rsa; p=' . trim(preg_replace('/-----BEGIN PUBLIC KEY-----(.+)-----END PUBLIC KEY-----/s', '$1', str_replace("\n", '', $domain['dkim_pubkey']))) . '"' . "\n";
|
||||
}
|
||||
|
||||
$nssubdomains = $this->db->query('SELECT `domain` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `isbinddomain`=\'1\' AND `domain` LIKE \'%.' . $domain['domain'] . '\'');
|
||||
|
||||
while($nssubdomain = $this->db->fetch_array($nssubdomains))
|
||||
{
|
||||
if(preg_match('/^[^\.]+\.' . preg_quote($domain['domain'], '/') . '/', $nssubdomain['domain']))
|
||||
{
|
||||
$nssubdomain = str_replace('.' . $domain['domain'], '', $nssubdomain['domain']);
|
||||
|
||||
if(count($this->nameservers) == 0)
|
||||
{
|
||||
$zonefile.= $nssubdomain . ' IN NS ns.' . $nssubdomain . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($this->nameservers as $nameserver)
|
||||
{
|
||||
$zonefile.= $nssubdomain . ' IN NS ' . trim($nameserver['hostname']) . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$zonefile.= '@ IN ' . $ip_a_record . "\n";
|
||||
$zonefile.= 'www IN ' . $ip_a_record . "\n";
|
||||
|
||||
if($domain['iswildcarddomain'] == '1')
|
||||
{
|
||||
$zonefile.= '* IN ' . $ip_a_record . "\n";
|
||||
}
|
||||
|
||||
$subdomains = $this->db->query('SELECT `d`.`domain`, `ip`.`ip` AS `ip` FROM `' . TABLE_PANEL_DOMAINS . '` `d`, `' . TABLE_PANEL_IPSANDPORTS . '` `ip` WHERE `parentdomainid`=\'' . $domain['id'] . '\' AND `d`.`ipandport`=`ip`.`id`');
|
||||
|
||||
while($subdomain = $this->db->fetch_array($subdomains))
|
||||
{
|
||||
$zonefile.= str_replace('.' . $domain['domain'], '', $subdomain['domain']) . ' IN A ' . $subdomain['ip'] . "\n";
|
||||
}
|
||||
|
||||
return $zonefile;
|
||||
}
|
||||
|
||||
public function writeDKIMconfigs()
|
||||
{
|
||||
if($this->settings['dkim']['use_dkim'] == '1')
|
||||
{
|
||||
if(!file_exists(makeCorrectDir($this->settings['dkim']['dkim_prefix'])))
|
||||
{
|
||||
$this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix'])));
|
||||
safe_exec('mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix'])));
|
||||
}
|
||||
|
||||
$dkimdomains = '';
|
||||
$dkimkeys = '';
|
||||
$result_domains = $this->db->query("SELECT `id`, `domain`, `dkim`, `dkim_id`, `dkim_pubkey`, `dkim_privkey` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `dkim` = '1' ORDER BY `id` ASC");
|
||||
|
||||
while($domain = $this->db->fetch_array($result_domains))
|
||||
{
|
||||
$privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private');
|
||||
$pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public');
|
||||
|
||||
if($domain['dkim_privkey'] == ''
|
||||
|| $domain['dkim_pubkey'] == '')
|
||||
{
|
||||
$max_dkim_id = $this->db->query_first("SELECT MAX(`dkim_id`) as `max_dkim_id` FROM `" . TABLE_PANEL_DOMAINS . "`");
|
||||
$domain['dkim_id'] = (int)$max_dkim_id['max_dkim_id'] + 1;
|
||||
$privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private');
|
||||
safe_exec('openssl genrsa -out ' . escapeshellarg($privkey_filename) . ' 1024');
|
||||
$domain['dkim_privkey'] = file_get_contents($privkey_filename);
|
||||
safe_exec("chmod 0640 " . escapeshellarg($privkey_filename));
|
||||
$pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public');
|
||||
safe_exec('openssl rsa -in ' . escapeshellarg($privkey_filename) . ' -pubout -outform pem -out ' . escapeshellarg($pubkey_filename));
|
||||
$domain['dkim_pubkey'] = file_get_contents($pubkey_filename);
|
||||
safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename));
|
||||
$this->db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `dkim_id` = '" . $domain['dkim_id'] . "', `dkim_privkey` = '" . $domain['dkim_privkey'] . "', `dkim_pubkey` = '" . $domain['dkim_pubkey'] . "' WHERE `id` = '" . $domain['id'] . "'");
|
||||
}
|
||||
|
||||
if(!file_exists($privkey_filename)
|
||||
&& $domain['dkim_privkey'] != '')
|
||||
{
|
||||
$privkey_file_handler = fopen($privkey_filename, "w");
|
||||
fwrite($privkey_file_handler, $domain['dkim_privkey']);
|
||||
fclose($privkey_file_handler);
|
||||
safe_exec("chmod 0640 " . escapeshellarg($privkey_filename));
|
||||
}
|
||||
|
||||
if(!file_exists($pubkey_filename)
|
||||
&& $domain['dkim_pubkey'] != '')
|
||||
{
|
||||
$pubkey_file_handler = fopen($pubkey_filename, "w");
|
||||
fwrite($pubkey_file_handler, $domain['dkim_pubkey']);
|
||||
fclose($pubkey_file_handler);
|
||||
safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename));
|
||||
}
|
||||
|
||||
$dkimdomains.= $domain['domain'] . "\n";
|
||||
$dkimkeys.= "*@" . $domain['domain'] . ":" . $domain['domain'] . ":" . $privkey_filename . "\n";
|
||||
}
|
||||
|
||||
$dkimdomains_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_domains']);
|
||||
$dkimdomains_file_handler = fopen($dkimdomains_filename, "w");
|
||||
fwrite($dkimdomains_file_handler, $dkimdomains);
|
||||
fclose($dkimdomains_file_handler);
|
||||
$dkimkeys_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_dkimkeys']);
|
||||
$dkimkeys_file_handler = fopen($dkimkeys_filename, "w");
|
||||
fwrite($dkimkeys_file_handler, $dkimkeys);
|
||||
fclose($dkimkeys_file_handler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,264 +1,264 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
* @author Luca Longinotti <chtekk@syscp.org>
|
||||
* @author Michael Kaufmann <mk@syscp-help.org>
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_tasks.inc.http.15.apache_fcgid.php 2714 2009-04-17 10:02:03Z flo $
|
||||
*/
|
||||
|
||||
if(@php_sapi_name() != 'cli'
|
||||
&& @php_sapi_name() != 'cgi'
|
||||
&& @php_sapi_name() != 'cgi-fcgi')
|
||||
{
|
||||
die('This script only works in the shell.');
|
||||
}
|
||||
|
||||
class apache_fcgid extends apache
|
||||
{
|
||||
private $php_configs_cache = array();
|
||||
private $admin_cache = array();
|
||||
|
||||
/*
|
||||
* We put together the needed php options in the virtualhost entries
|
||||
*/
|
||||
|
||||
protected function composePhpOptions($domain)
|
||||
{
|
||||
$php_options_text = '';
|
||||
|
||||
if($domain['phpenabled'] == '1')
|
||||
{
|
||||
// This vHost has PHP enabled and we are using mod_fcgid
|
||||
//create basic variables for config
|
||||
|
||||
$configdir = makeCorrectDir($this->settings['system']['mod_fcgid_configdir'] . '/' . $domain['loginname'] . '/' . $domain['domain'] . '/');
|
||||
$starter_filename = makeCorrectFile($configdir . '/php-fcgi-starter');
|
||||
$phpini_filename = makeCorrectFile($configdir . '/php.ini');
|
||||
$tmpdir = makeCorrectDir($this->settings['system']['mod_fcgid_tmpdir'] . '/' . $domain['loginname'] . '/');
|
||||
|
||||
// create config dir if necessary
|
||||
|
||||
if(!is_dir($configdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($configdir));
|
||||
safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($configdir));
|
||||
}
|
||||
|
||||
// create tmp dir if necessary
|
||||
|
||||
if(!is_dir($tmpdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($tmpdir));
|
||||
safe_exec('chown -R ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($tmpdir));
|
||||
safe_exec('chmod 0750 ' . escapeshellarg($tmpdir));
|
||||
}
|
||||
|
||||
// Load php config
|
||||
|
||||
$phpconfig = $this->getPhpConfig((int)$domain['phpsettingid']);
|
||||
|
||||
if((int)$this->settings['system']['mod_fcgid_wrapper'] == 0)
|
||||
{
|
||||
$php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n";
|
||||
$php_options_text.= ' ScriptAlias /php/ ' . $configdir . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n";
|
||||
$php_options_text.= ' <Directory "' . $domain['documentroot'] . '">' . "\n";
|
||||
$file_extensions = explode(' ', $phpconfig['file_extensions']);
|
||||
$php_options_text.= ' AddHandler fcgid-script .' . implode(' .', $file_extensions) . "\n";
|
||||
foreach($file_extensions as $file_extension)
|
||||
{
|
||||
$php_options_text.= ' FCGIWrapper ' . $starter_filename . ' .' . $file_extension . "\n";
|
||||
}
|
||||
|
||||
$php_options_text.= ' Options +ExecCGI' . "\n";
|
||||
$php_options_text.= ' Order allow,deny' . "\n";
|
||||
$php_options_text.= ' allow from all' . "\n";
|
||||
$php_options_text.= ' </Directory>' . "\n";
|
||||
}
|
||||
|
||||
// create starter
|
||||
|
||||
$starter_file = "#!/bin/sh\n\n";
|
||||
$starter_file.= "#\n";
|
||||
$starter_file.= "# starter created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n";
|
||||
$starter_file.= "# Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n";
|
||||
$starter_file.= "#\n\n";
|
||||
$starter_file.= "PHPRC=" . escapeshellarg($configdir) . "\n";
|
||||
$starter_file.= "export PHPRC\n";
|
||||
|
||||
// set number of processes for one domain
|
||||
|
||||
if((int)$domain['mod_fcgid_starter'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_CHILDREN=" . (int)$domain['mod_fcgid_starter'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
if((int)$phpconfig['mod_fcgid_starter'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_CHILDREN=" . (int)$phpconfig['mod_fcgid_starter'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_CHILDREN=" . (int)$this->settings['system']['mod_fcgid_starter'] . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$starter_file.= "export PHP_FCGI_CHILDREN\n";
|
||||
|
||||
// set number of maximum requests for one domain
|
||||
|
||||
if((int)$domain['mod_fcgid_maxrequests'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$domain['mod_fcgid_maxrequests'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
if((int)$phpconfig['mod_fcgid_maxrequests'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$phpconfig['mod_fcgid_maxrequests'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$this->settings['system']['mod_fcgid_maxrequests'] . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$starter_file.= "export PHP_FCGI_MAX_REQUESTS\n";
|
||||
|
||||
// Set Binary
|
||||
|
||||
$starter_file.= "exec " . $phpconfig['binary'] . " -c " . escapeshellarg($configdir) . "\n";
|
||||
|
||||
//remove +i attibute, so starter can be overwritten
|
||||
|
||||
if(file_exists($starter_filename))
|
||||
{
|
||||
safe_exec('chattr -i ' . escapeshellarg($starter_filename));
|
||||
}
|
||||
|
||||
$starter_file_handler = fopen($starter_filename, 'w');
|
||||
fwrite($starter_file_handler, $starter_file);
|
||||
fclose($starter_file_handler);
|
||||
safe_exec('chmod 750 ' . escapeshellarg($starter_filename));
|
||||
safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($starter_filename));
|
||||
safe_exec('chattr +i ' . escapeshellarg($starter_filename));
|
||||
|
||||
// define the php.ini
|
||||
|
||||
$openbasedir = '';
|
||||
$openbasedirc = ';';
|
||||
|
||||
if($domain['openbasedir'] == '1')
|
||||
{
|
||||
$openbasedirc = '';
|
||||
if($domain['openbasedir_path'] == '0')
|
||||
{
|
||||
$openbasedir = $domain['documentroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir = $domain['customerroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
|
||||
}
|
||||
|
||||
$openbasedir = explode(':', $openbasedir);
|
||||
foreach($openbasedir as $number => $path)
|
||||
{
|
||||
$openbasedir[$number] = makeCorrectDir($path);
|
||||
}
|
||||
|
||||
$openbasedir = implode(':', $openbasedir);
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir = 'none';
|
||||
$openbasedirc = ';';
|
||||
}
|
||||
|
||||
$admin = $this->getAdminData($domain['adminid']);
|
||||
$php_ini_variables = array(
|
||||
'SAFE_MODE' => ($domain['safemode'] == '0' ? 'Off' : 'On'),
|
||||
'PEAR_DIR' => $this->settings['system']['mod_fcgid_peardir'],
|
||||
'OPEN_BASEDIR' => $openbasedir,
|
||||
'OPEN_BASEDIR_C' => $openbasedirc,
|
||||
'OPEN_BASEDIR_GLOBAL' => $this->settings['system']['phpappendopenbasedir'],
|
||||
'TMP_DIR' => $tmpdir,
|
||||
'CUSTOMER_EMAIL' => $domain['email'],
|
||||
'ADMIN_EMAIL' => $admin['email'],
|
||||
'DOMAIN' => $domain['domain'],
|
||||
'CUSTOMER' => $domain['loginname'],
|
||||
'ADMIN' => $admin['loginname']
|
||||
);
|
||||
|
||||
//insert a small header for the file
|
||||
|
||||
$phpini_file = ";\n";
|
||||
$phpini_file.= "; php.ini created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n";
|
||||
$phpini_file.= "; Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n";
|
||||
$phpini_file.= ";\n\n";
|
||||
$phpini_file.= replace_variables($phpconfig['phpsettings'], $php_ini_variables);
|
||||
$phpini_file = str_replace('"none"', 'none', $phpini_file);
|
||||
$phpini_file = preg_replace('/\"+/', '"', $phpini_file);
|
||||
$phpini_file_handler = fopen($phpini_filename, 'w');
|
||||
fwrite($phpini_file_handler, $phpini_file);
|
||||
fclose($phpini_file_handler);
|
||||
safe_exec('chown root:0 ' . escapeshellarg($phpini_filename));
|
||||
safe_exec('chmod 0644 ' . escapeshellarg($phpini_filename));
|
||||
}
|
||||
else
|
||||
{
|
||||
$php_options_text.= ' # PHP is disabled for this vHost' . "\n";
|
||||
}
|
||||
|
||||
return $php_options_text;
|
||||
}
|
||||
|
||||
private function getPhpConfig($php_config_id)
|
||||
{
|
||||
$php_config_id = intval($php_config_id);
|
||||
|
||||
// If domain has no config, we will use the default one.
|
||||
|
||||
if($php_config_id == 0)
|
||||
{
|
||||
$php_config_id = 1;
|
||||
}
|
||||
|
||||
if(!isset($this->php_configs_cache[$php_config_id]))
|
||||
{
|
||||
$this->php_configs_cache[$php_config_id] = $this->db->query_first("SELECT * FROM `" . TABLE_PANEL_PHPCONFIGS . "` WHERE `id` = " . (int)$php_config_id);
|
||||
}
|
||||
|
||||
return $this->php_configs_cache[$php_config_id];
|
||||
}
|
||||
|
||||
private function getAdminData($adminid)
|
||||
{
|
||||
$adminid = intval($adminid);
|
||||
|
||||
if(!isset($this->admin_cache[$adminid]))
|
||||
{
|
||||
$this->admin_cache[$adminid] = $this->db->query_first("SELECT `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid` = " . (int)$adminid);
|
||||
}
|
||||
|
||||
return $this->admin_cache[$adminid];
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
* @author Luca Longinotti <chtekk@syscp.org>
|
||||
* @author Michael Kaufmann <mk@syscp-help.org>
|
||||
* @author Sven Skrabal <info@nexpa.de>
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_tasks.inc.http.15.apache_fcgid.php 2714 2009-04-17 10:02:03Z flo $
|
||||
*/
|
||||
|
||||
if(@php_sapi_name() != 'cli'
|
||||
&& @php_sapi_name() != 'cgi'
|
||||
&& @php_sapi_name() != 'cgi-fcgi')
|
||||
{
|
||||
die('This script only works in the shell.');
|
||||
}
|
||||
|
||||
class apache_fcgid extends apache
|
||||
{
|
||||
private $php_configs_cache = array();
|
||||
private $admin_cache = array();
|
||||
|
||||
/*
|
||||
* We put together the needed php options in the virtualhost entries
|
||||
*/
|
||||
|
||||
protected function composePhpOptions($domain)
|
||||
{
|
||||
$php_options_text = '';
|
||||
|
||||
if($domain['phpenabled'] == '1')
|
||||
{
|
||||
// This vHost has PHP enabled and we are using mod_fcgid
|
||||
//create basic variables for config
|
||||
|
||||
$configdir = makeCorrectDir($this->settings['system']['mod_fcgid_configdir'] . '/' . $domain['loginname'] . '/' . $domain['domain'] . '/');
|
||||
$starter_filename = makeCorrectFile($configdir . '/php-fcgi-starter');
|
||||
$phpini_filename = makeCorrectFile($configdir . '/php.ini');
|
||||
$tmpdir = makeCorrectDir($this->settings['system']['mod_fcgid_tmpdir'] . '/' . $domain['loginname'] . '/');
|
||||
|
||||
// create config dir if necessary
|
||||
|
||||
if(!is_dir($configdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($configdir));
|
||||
safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($configdir));
|
||||
}
|
||||
|
||||
// create tmp dir if necessary
|
||||
|
||||
if(!is_dir($tmpdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($tmpdir));
|
||||
safe_exec('chown -R ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($tmpdir));
|
||||
safe_exec('chmod 0750 ' . escapeshellarg($tmpdir));
|
||||
}
|
||||
|
||||
// Load php config
|
||||
|
||||
$phpconfig = $this->getPhpConfig((int)$domain['phpsettingid']);
|
||||
|
||||
if((int)$this->settings['system']['mod_fcgid_wrapper'] == 0)
|
||||
{
|
||||
$php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n";
|
||||
$php_options_text.= ' ScriptAlias /php/ ' . $configdir . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n";
|
||||
$php_options_text.= ' <Directory "' . $domain['documentroot'] . '">' . "\n";
|
||||
$file_extensions = explode(' ', $phpconfig['file_extensions']);
|
||||
$php_options_text.= ' AddHandler fcgid-script .' . implode(' .', $file_extensions) . "\n";
|
||||
foreach($file_extensions as $file_extension)
|
||||
{
|
||||
$php_options_text.= ' FCGIWrapper ' . $starter_filename . ' .' . $file_extension . "\n";
|
||||
}
|
||||
|
||||
$php_options_text.= ' Options +ExecCGI' . "\n";
|
||||
$php_options_text.= ' Order allow,deny' . "\n";
|
||||
$php_options_text.= ' allow from all' . "\n";
|
||||
$php_options_text.= ' </Directory>' . "\n";
|
||||
}
|
||||
|
||||
// create starter
|
||||
|
||||
$starter_file = "#!/bin/sh\n\n";
|
||||
$starter_file.= "#\n";
|
||||
$starter_file.= "# starter created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n";
|
||||
$starter_file.= "# Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n";
|
||||
$starter_file.= "#\n\n";
|
||||
$starter_file.= "PHPRC=" . escapeshellarg($configdir) . "\n";
|
||||
$starter_file.= "export PHPRC\n";
|
||||
|
||||
// set number of processes for one domain
|
||||
|
||||
if((int)$domain['mod_fcgid_starter'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_CHILDREN=" . (int)$domain['mod_fcgid_starter'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
if((int)$phpconfig['mod_fcgid_starter'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_CHILDREN=" . (int)$phpconfig['mod_fcgid_starter'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_CHILDREN=" . (int)$this->settings['system']['mod_fcgid_starter'] . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$starter_file.= "export PHP_FCGI_CHILDREN\n";
|
||||
|
||||
// set number of maximum requests for one domain
|
||||
|
||||
if((int)$domain['mod_fcgid_maxrequests'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$domain['mod_fcgid_maxrequests'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
if((int)$phpconfig['mod_fcgid_maxrequests'] != - 1)
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$phpconfig['mod_fcgid_maxrequests'] . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$this->settings['system']['mod_fcgid_maxrequests'] . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$starter_file.= "export PHP_FCGI_MAX_REQUESTS\n";
|
||||
|
||||
// Set Binary
|
||||
|
||||
$starter_file.= "exec " . $phpconfig['binary'] . " -c " . escapeshellarg($configdir) . "\n";
|
||||
|
||||
//remove +i attibute, so starter can be overwritten
|
||||
|
||||
if(file_exists($starter_filename))
|
||||
{
|
||||
safe_exec('chattr -i ' . escapeshellarg($starter_filename));
|
||||
}
|
||||
|
||||
$starter_file_handler = fopen($starter_filename, 'w');
|
||||
fwrite($starter_file_handler, $starter_file);
|
||||
fclose($starter_file_handler);
|
||||
safe_exec('chmod 750 ' . escapeshellarg($starter_filename));
|
||||
safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($starter_filename));
|
||||
safe_exec('chattr +i ' . escapeshellarg($starter_filename));
|
||||
|
||||
// define the php.ini
|
||||
|
||||
$openbasedir = '';
|
||||
$openbasedirc = ';';
|
||||
|
||||
if($domain['openbasedir'] == '1')
|
||||
{
|
||||
$openbasedirc = '';
|
||||
if($domain['openbasedir_path'] == '0')
|
||||
{
|
||||
$openbasedir = $domain['documentroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir = $domain['customerroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir'];
|
||||
}
|
||||
|
||||
$openbasedir = explode(':', $openbasedir);
|
||||
foreach($openbasedir as $number => $path)
|
||||
{
|
||||
$openbasedir[$number] = makeCorrectDir($path);
|
||||
}
|
||||
|
||||
$openbasedir = implode(':', $openbasedir);
|
||||
}
|
||||
else
|
||||
{
|
||||
$openbasedir = 'none';
|
||||
$openbasedirc = ';';
|
||||
}
|
||||
|
||||
$admin = $this->getAdminData($domain['adminid']);
|
||||
$php_ini_variables = array(
|
||||
'SAFE_MODE' => ($domain['safemode'] == '0' ? 'Off' : 'On'),
|
||||
'PEAR_DIR' => $this->settings['system']['mod_fcgid_peardir'],
|
||||
'OPEN_BASEDIR' => $openbasedir,
|
||||
'OPEN_BASEDIR_C' => $openbasedirc,
|
||||
'OPEN_BASEDIR_GLOBAL' => $this->settings['system']['phpappendopenbasedir'],
|
||||
'TMP_DIR' => $tmpdir,
|
||||
'CUSTOMER_EMAIL' => $domain['email'],
|
||||
'ADMIN_EMAIL' => $admin['email'],
|
||||
'DOMAIN' => $domain['domain'],
|
||||
'CUSTOMER' => $domain['loginname'],
|
||||
'ADMIN' => $admin['loginname']
|
||||
);
|
||||
|
||||
//insert a small header for the file
|
||||
|
||||
$phpini_file = ";\n";
|
||||
$phpini_file.= "; php.ini created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n";
|
||||
$phpini_file.= "; Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n";
|
||||
$phpini_file.= ";\n\n";
|
||||
$phpini_file.= replace_variables($phpconfig['phpsettings'], $php_ini_variables);
|
||||
$phpini_file = str_replace('"none"', 'none', $phpini_file);
|
||||
$phpini_file = preg_replace('/\"+/', '"', $phpini_file);
|
||||
$phpini_file_handler = fopen($phpini_filename, 'w');
|
||||
fwrite($phpini_file_handler, $phpini_file);
|
||||
fclose($phpini_file_handler);
|
||||
safe_exec('chown root:0 ' . escapeshellarg($phpini_filename));
|
||||
safe_exec('chmod 0644 ' . escapeshellarg($phpini_filename));
|
||||
}
|
||||
else
|
||||
{
|
||||
$php_options_text.= ' # PHP is disabled for this vHost' . "\n";
|
||||
}
|
||||
|
||||
return $php_options_text;
|
||||
}
|
||||
|
||||
private function getPhpConfig($php_config_id)
|
||||
{
|
||||
$php_config_id = intval($php_config_id);
|
||||
|
||||
// If domain has no config, we will use the default one.
|
||||
|
||||
if($php_config_id == 0)
|
||||
{
|
||||
$php_config_id = 1;
|
||||
}
|
||||
|
||||
if(!isset($this->php_configs_cache[$php_config_id]))
|
||||
{
|
||||
$this->php_configs_cache[$php_config_id] = $this->db->query_first("SELECT * FROM `" . TABLE_PANEL_PHPCONFIGS . "` WHERE `id` = " . (int)$php_config_id);
|
||||
}
|
||||
|
||||
return $this->php_configs_cache[$php_config_id];
|
||||
}
|
||||
|
||||
private function getAdminData($adminid)
|
||||
{
|
||||
$adminid = intval($adminid);
|
||||
|
||||
if(!isset($this->admin_cache[$adminid]))
|
||||
{
|
||||
$this->admin_cache[$adminid] = $this->db->query_first("SELECT `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid` = " . (int)$adminid);
|
||||
}
|
||||
|
||||
return $this->admin_cache[$adminid];
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,211 +1,211 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_tasks.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, ' cron_tasks: Searching for tasks to do' . "\n");
|
||||
$cronlog->logAction(CRON_ACTION, LOG_INFO, "Searching for tasks to do");
|
||||
$result_tasks = $db->query("SELECT `id`, `type`, `data` FROM `" . TABLE_PANEL_TASKS . "` ORDER BY `id` ASC");
|
||||
$resultIDs = array();
|
||||
|
||||
while($row = $db->fetch_array($result_tasks))
|
||||
{
|
||||
$resultIDs[] = $row['id'];
|
||||
|
||||
if($row['data'] != '')
|
||||
{
|
||||
$row['data'] = unserialize($row['data']);
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=1 MEANS TO REBUILD APACHE VHOSTS.CONF
|
||||
*/
|
||||
|
||||
if($row['type'] == '1')
|
||||
{
|
||||
if(!isset($webserver))
|
||||
{
|
||||
if($settings['system']['webserver'] == "apache2")
|
||||
{
|
||||
if($settings['system']['mod_fcgid'] == 1)
|
||||
{
|
||||
$webserver = new apache_fcgid($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
else
|
||||
{
|
||||
$webserver = new apache($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
}
|
||||
elseif($settings['system']['webserver'] == "lighttpd")
|
||||
{
|
||||
if($settings['system']['mod_fcgid'] == 1)
|
||||
{
|
||||
$webserver = new lighttpd_fcgid($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
else
|
||||
{
|
||||
$webserver = new lighttpd($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($webserver))
|
||||
{
|
||||
$webserver->createIpPort();
|
||||
$webserver->createVirtualHosts();
|
||||
$webserver->createFileDirOptions();
|
||||
$webserver->writeConfigs();
|
||||
$webserver->reload();
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Please check you Webserver settings\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=2 MEANS TO CREATE A NEW HOME AND CHOWN
|
||||
*/
|
||||
elseif ($row['type'] == '2')
|
||||
{
|
||||
fwrite($debugHandler, ' cron_tasks: Task2 started - create new home' . "\n");
|
||||
$cronlog->logAction(CRON_ACTION, LOG_INFO, 'Task2 started - create new home');
|
||||
|
||||
if(is_array($row['data']))
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer'));
|
||||
safe_exec('mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer'));
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
safe_exec('mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
|
||||
//check if admin of customer has added template for new customer directories
|
||||
|
||||
$result = $db->query("SELECT `t`.`value`, `c`.`email` AS `customer_email`, `a`.`email` AS `admin_email`, `c`.`loginname` AS `customer_login`, `a`.`loginname` AS `admin_login` FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c` INNER JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `c`.`adminid` = `a`.`adminid` INNER JOIN `" . TABLE_PANEL_TEMPLATES . "` AS `t` ON `a`.`adminid` = `t`.`adminid` WHERE `varname` = 'index_html' AND `c`.`loginname` = '" . $db->escape($row['data']['loginname']) . "'");
|
||||
|
||||
if($db->num_rows($result) > 0)
|
||||
{
|
||||
$template = $db->fetch_array($result);
|
||||
$replace_arr = array(
|
||||
'SERVERNAME' => $settings['system']['hostname'],
|
||||
'CUSTOMER' => $template['customer_login'],
|
||||
'ADMIN' => $template['admin_login'],
|
||||
'CUSTOMER_EMAIL' => $template['customer_email'],
|
||||
'ADMIN_EMAIL' => $template['admin_email']
|
||||
);
|
||||
$htmlcontent = replace_variables($template['value'], $replace_arr);
|
||||
$indexhtmlpath = $settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/index.' . $settings['system']['index_file_extension'];
|
||||
$index_html_handler = fopen($indexhtmlpath, 'w');
|
||||
fwrite($index_html_handler, $htmlcontent);
|
||||
fclose($index_html_handler);
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Creating \'index.' . $settings['system']['index_file_extension'] . '\' for Customer \'' . $template['customer_login'] . '\' based on template in directory ' . escapeshellarg($indexhtmlpath));
|
||||
}
|
||||
else
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/'));
|
||||
safe_exec('cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/'));
|
||||
}
|
||||
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname']));
|
||||
safe_exec('chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname']));
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
safe_exec('chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=3 MEANS TO DO NOTHING
|
||||
*/
|
||||
elseif ($row['type'] == '3')
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=4 MEANS THAT SOMETHING IN THE BIND CONFIG HAS CHANGED. REBUILD syscp_bind.conf
|
||||
*/
|
||||
elseif ($row['type'] == '4')
|
||||
{
|
||||
if(!isset($nameserver))
|
||||
{
|
||||
$nameserver = new bind($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
|
||||
if($settings['dkim']['use_dkim'] == '1')
|
||||
{
|
||||
$nameserver->writeDKIMconfigs();
|
||||
}
|
||||
|
||||
$nameserver->writeConfigs();
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=5 MEANS THAT A NEW FTP-ACCOUNT HAS BEEN CREATED, CREATE THE DIRECTORY
|
||||
*/
|
||||
elseif ($row['type'] == '5')
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_INFO, 'Creating new FTP-home');
|
||||
$result_directories = $db->query('SELECT `f`.`homedir`, `f`.`uid`, `f`.`gid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_FTP_USERS . '` `f` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) ');
|
||||
|
||||
while($directory = $db->fetch_array($result_directories))
|
||||
{
|
||||
mkDirWithCorrectOwnership($directory['customerroot'], $directory['homedir'], $directory['uid'], $directory['gid']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($db->num_rows($result_tasks) != 0)
|
||||
{
|
||||
$where = array();
|
||||
foreach($resultIDs as $id)
|
||||
{
|
||||
$where[] = '`id`=\'' . (int)$id . '\'';
|
||||
}
|
||||
|
||||
$where = implode($where, ' OR ');
|
||||
$db->query('DELETE FROM `' . TABLE_PANEL_TASKS . '` WHERE ' . $where);
|
||||
unset($resultIDs);
|
||||
unset($where);
|
||||
}
|
||||
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_tasks_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_tasks.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, ' cron_tasks: Searching for tasks to do' . "\n");
|
||||
$cronlog->logAction(CRON_ACTION, LOG_INFO, "Searching for tasks to do");
|
||||
$result_tasks = $db->query("SELECT `id`, `type`, `data` FROM `" . TABLE_PANEL_TASKS . "` ORDER BY `id` ASC");
|
||||
$resultIDs = array();
|
||||
|
||||
while($row = $db->fetch_array($result_tasks))
|
||||
{
|
||||
$resultIDs[] = $row['id'];
|
||||
|
||||
if($row['data'] != '')
|
||||
{
|
||||
$row['data'] = unserialize($row['data']);
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=1 MEANS TO REBUILD APACHE VHOSTS.CONF
|
||||
*/
|
||||
|
||||
if($row['type'] == '1')
|
||||
{
|
||||
if(!isset($webserver))
|
||||
{
|
||||
if($settings['system']['webserver'] == "apache2")
|
||||
{
|
||||
if($settings['system']['mod_fcgid'] == 1)
|
||||
{
|
||||
$webserver = new apache_fcgid($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
else
|
||||
{
|
||||
$webserver = new apache($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
}
|
||||
elseif($settings['system']['webserver'] == "lighttpd")
|
||||
{
|
||||
if($settings['system']['mod_fcgid'] == 1)
|
||||
{
|
||||
$webserver = new lighttpd_fcgid($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
else
|
||||
{
|
||||
$webserver = new lighttpd($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($webserver))
|
||||
{
|
||||
$webserver->createIpPort();
|
||||
$webserver->createVirtualHosts();
|
||||
$webserver->createFileDirOptions();
|
||||
$webserver->writeConfigs();
|
||||
$webserver->reload();
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Please check you Webserver settings\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=2 MEANS TO CREATE A NEW HOME AND CHOWN
|
||||
*/
|
||||
elseif ($row['type'] == '2')
|
||||
{
|
||||
fwrite($debugHandler, ' cron_tasks: Task2 started - create new home' . "\n");
|
||||
$cronlog->logAction(CRON_ACTION, LOG_INFO, 'Task2 started - create new home');
|
||||
|
||||
if(is_array($row['data']))
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer'));
|
||||
safe_exec('mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer'));
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
safe_exec('mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
|
||||
//check if admin of customer has added template for new customer directories
|
||||
|
||||
$result = $db->query("SELECT `t`.`value`, `c`.`email` AS `customer_email`, `a`.`email` AS `admin_email`, `c`.`loginname` AS `customer_login`, `a`.`loginname` AS `admin_login` FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c` INNER JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `c`.`adminid` = `a`.`adminid` INNER JOIN `" . TABLE_PANEL_TEMPLATES . "` AS `t` ON `a`.`adminid` = `t`.`adminid` WHERE `varname` = 'index_html' AND `c`.`loginname` = '" . $db->escape($row['data']['loginname']) . "'");
|
||||
|
||||
if($db->num_rows($result) > 0)
|
||||
{
|
||||
$template = $db->fetch_array($result);
|
||||
$replace_arr = array(
|
||||
'SERVERNAME' => $settings['system']['hostname'],
|
||||
'CUSTOMER' => $template['customer_login'],
|
||||
'ADMIN' => $template['admin_login'],
|
||||
'CUSTOMER_EMAIL' => $template['customer_email'],
|
||||
'ADMIN_EMAIL' => $template['admin_email']
|
||||
);
|
||||
$htmlcontent = replace_variables($template['value'], $replace_arr);
|
||||
$indexhtmlpath = $settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/index.' . $settings['system']['index_file_extension'];
|
||||
$index_html_handler = fopen($indexhtmlpath, 'w');
|
||||
fwrite($index_html_handler, $htmlcontent);
|
||||
fclose($index_html_handler);
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Creating \'index.' . $settings['system']['index_file_extension'] . '\' for Customer \'' . $template['customer_login'] . '\' based on template in directory ' . escapeshellarg($indexhtmlpath));
|
||||
}
|
||||
else
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/'));
|
||||
safe_exec('cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/'));
|
||||
}
|
||||
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname']));
|
||||
safe_exec('chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname']));
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
safe_exec('chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=3 MEANS TO DO NOTHING
|
||||
*/
|
||||
elseif ($row['type'] == '3')
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=4 MEANS THAT SOMETHING IN THE BIND CONFIG HAS CHANGED. REBUILD syscp_bind.conf
|
||||
*/
|
||||
elseif ($row['type'] == '4')
|
||||
{
|
||||
if(!isset($nameserver))
|
||||
{
|
||||
$nameserver = new bind($db, $cronlog, $debugHandler, $settings);
|
||||
}
|
||||
|
||||
if($settings['dkim']['use_dkim'] == '1')
|
||||
{
|
||||
$nameserver->writeDKIMconfigs();
|
||||
}
|
||||
|
||||
$nameserver->writeConfigs();
|
||||
}
|
||||
|
||||
/**
|
||||
* TYPE=5 MEANS THAT A NEW FTP-ACCOUNT HAS BEEN CREATED, CREATE THE DIRECTORY
|
||||
*/
|
||||
elseif ($row['type'] == '5')
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_INFO, 'Creating new FTP-home');
|
||||
$result_directories = $db->query('SELECT `f`.`homedir`, `f`.`uid`, `f`.`gid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_FTP_USERS . '` `f` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) ');
|
||||
|
||||
while($directory = $db->fetch_array($result_directories))
|
||||
{
|
||||
mkDirWithCorrectOwnership($directory['customerroot'], $directory['homedir'], $directory['uid'], $directory['gid']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($db->num_rows($result_tasks) != 0)
|
||||
{
|
||||
$where = array();
|
||||
foreach($resultIDs as $id)
|
||||
{
|
||||
$where[] = '`id`=\'' . (int)$id . '\'';
|
||||
}
|
||||
|
||||
$where = implode($where, ' OR ');
|
||||
$db->query('DELETE FROM `' . TABLE_PANEL_TASKS . '` WHERE ' . $where);
|
||||
unset($resultIDs);
|
||||
unset($where);
|
||||
}
|
||||
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_tasks_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,80 +1,80 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Support-Tickets - Cronfile
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @package Panel
|
||||
* @version CVS: $Id: cron_ticketarchive.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @link http://www.nutime.de/
|
||||
* @since File available since Release 1.2.18
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* ARCHIVING CLOSED TICKETS
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Ticket-archiving run started...' . "\n");
|
||||
$result_tickets = $db->query("SELECT `id`, `lastchange`, `subject` FROM `" . TABLE_PANEL_TICKETS . "`
|
||||
WHERE `status` = '3' AND `answerto` = '0';");
|
||||
$archiving_count = 0;
|
||||
|
||||
while($row_ticket = $db->fetch_array($result_tickets))
|
||||
{
|
||||
$lastchange = $row_ticket['lastchange'];
|
||||
$now = time();
|
||||
$days = (int)(($now - $lastchange) / 86400);
|
||||
|
||||
if($days >= $settings['ticket']['archiving_days'])
|
||||
{
|
||||
fwrite($debugHandler, 'archiving ticket "' . $row_ticket['subject'] . '" (ID #' . $row_ticket['id'] . ')' . "\n");
|
||||
$mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row_ticket['id']);
|
||||
$mainticket->Set('lastchange', $now, true, true);
|
||||
$mainticket->Set('lastreplier', '1', true, true);
|
||||
$mainticket->Set('status', '3', true, true);
|
||||
$mainticket->Update();
|
||||
$mainticket->Archive();
|
||||
$archiving_count++;
|
||||
}
|
||||
}
|
||||
|
||||
fwrite($debugHandler, 'Archived ' . $archiving_count . ' tickets' . "\n");
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_archive_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Support-Tickets - Cronfile
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @package Panel
|
||||
* @version CVS: $Id: cron_ticketarchive.php 2724 2009-06-07 14:18:02Z flo $
|
||||
* @link http://www.nutime.de/
|
||||
* @since File available since Release 1.2.18
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* ARCHIVING CLOSED TICKETS
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Ticket-archiving run started...' . "\n");
|
||||
$result_tickets = $db->query("SELECT `id`, `lastchange`, `subject` FROM `" . TABLE_PANEL_TICKETS . "`
|
||||
WHERE `status` = '3' AND `answerto` = '0';");
|
||||
$archiving_count = 0;
|
||||
|
||||
while($row_ticket = $db->fetch_array($result_tickets))
|
||||
{
|
||||
$lastchange = $row_ticket['lastchange'];
|
||||
$now = time();
|
||||
$days = (int)(($now - $lastchange) / 86400);
|
||||
|
||||
if($days >= $settings['ticket']['archiving_days'])
|
||||
{
|
||||
fwrite($debugHandler, 'archiving ticket "' . $row_ticket['subject'] . '" (ID #' . $row_ticket['id'] . ')' . "\n");
|
||||
$mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row_ticket['id']);
|
||||
$mainticket->Set('lastchange', $now, true, true);
|
||||
$mainticket->Set('lastreplier', '1', true, true);
|
||||
$mainticket->Set('status', '3', true, true);
|
||||
$mainticket->Update();
|
||||
$mainticket->Archive();
|
||||
$archiving_count++;
|
||||
}
|
||||
}
|
||||
|
||||
fwrite($debugHandler, 'Archived ' . $archiving_count . ' tickets' . "\n");
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_archive_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
@@ -1,231 +1,231 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_traffic.inc.functions.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Function which make webalizer statistics and returns used traffic since last run
|
||||
*
|
||||
* @param string Name of logfile
|
||||
* @param string Place where stats should be build
|
||||
* @param string Caption for webalizer output
|
||||
* @return int Used traffic
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
*/
|
||||
|
||||
function callWebalizerGetTraffic($logfile, $outputdir, $caption, $usersdomainlist)
|
||||
{
|
||||
global $settings;
|
||||
$returnval = 0;
|
||||
|
||||
if(file_exists($settings['system']['logfiles_directory'] . $logfile . '-access.log'))
|
||||
{
|
||||
$domainargs = '';
|
||||
foreach($usersdomainlist as $domainid => $domain)
|
||||
{
|
||||
$domainargs.= ' -r ' . escapeshellarg($domain);
|
||||
}
|
||||
|
||||
$outputdir = makeCorrectDir($outputdir);
|
||||
|
||||
if(!file_exists($outputdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($outputdir));
|
||||
}
|
||||
|
||||
if(file_exists($outputdir . 'webalizer.hist.1'))
|
||||
{
|
||||
unlink($outputdir . 'webalizer.hist.1');
|
||||
}
|
||||
|
||||
if(file_exists($outputdir . 'webalizer.hist')
|
||||
&& !file_exists($outputdir . 'webalizer.hist.1'))
|
||||
{
|
||||
safe_exec('cp ' . escapeshellarg($outputdir . 'webalizer.hist') . ' ' . escapeshellarg($outputdir . 'webalizer.hist.1'));
|
||||
}
|
||||
|
||||
$verbosity = '';
|
||||
|
||||
if($settings['system']['webalizer_quiet'] == '1')
|
||||
{
|
||||
$verbosity = '-q';
|
||||
}
|
||||
elseif($settings['system']['webalizer_quiet'] == '2')
|
||||
{
|
||||
$verbosity = '-Q';
|
||||
}
|
||||
|
||||
safe_exec('webalizer ' . $verbosity . ' -p -o ' . escapeshellarg($outputdir) . ' -n ' . escapeshellarg($caption) . $domainargs . ' ' . escapeshellarg($settings['system']['logfiles_directory'] . $logfile . '-access.log'));
|
||||
|
||||
/**
|
||||
* Format of webalizer.hist-files:
|
||||
* Month: $webalizer_hist_row['0']
|
||||
* Year: $webalizer_hist_row['1']
|
||||
* KB: $webalizer_hist_row['5']
|
||||
*/
|
||||
|
||||
$httptraffic = array();
|
||||
$webalizer_hist = @file_get_contents($outputdir . 'webalizer.hist');
|
||||
$webalizer_hist_rows = explode("\n", $webalizer_hist);
|
||||
foreach($webalizer_hist_rows as $webalizer_hist_row)
|
||||
{
|
||||
if($webalizer_hist_row != '')
|
||||
{
|
||||
$webalizer_hist_row = explode(' ', $webalizer_hist_row);
|
||||
|
||||
if(isset($webalizer_hist_row['0'])
|
||||
&& isset($webalizer_hist_row['1'])
|
||||
&& isset($webalizer_hist_row['5']))
|
||||
{
|
||||
$month = intval($webalizer_hist_row['0']);
|
||||
$year = intval($webalizer_hist_row['1']);
|
||||
$traffic = floatval($webalizer_hist_row['5']);
|
||||
|
||||
if(!isset($httptraffic[$year]))
|
||||
{
|
||||
$httptraffic[$year] = array();
|
||||
}
|
||||
|
||||
$httptraffic[$year][$month] = $traffic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reset($httptraffic);
|
||||
$httptrafficlast = array();
|
||||
$webalizer_lasthist = @file_get_contents($outputdir . 'webalizer.hist.1');
|
||||
$webalizer_lasthist_rows = explode("\n", $webalizer_lasthist);
|
||||
foreach($webalizer_lasthist_rows as $webalizer_lasthist_row)
|
||||
{
|
||||
if($webalizer_lasthist_row != '')
|
||||
{
|
||||
$webalizer_lasthist_row = explode(' ', $webalizer_lasthist_row);
|
||||
|
||||
if(isset($webalizer_lasthist_row['0'])
|
||||
&& isset($webalizer_lasthist_row['1'])
|
||||
&& isset($webalizer_lasthist_row['5']))
|
||||
{
|
||||
$month = intval($webalizer_lasthist_row['0']);
|
||||
$year = intval($webalizer_lasthist_row['1']);
|
||||
$traffic = floatval($webalizer_lasthist_row['5']);
|
||||
|
||||
if(!isset($httptrafficlast[$year]))
|
||||
{
|
||||
$httptrafficlast[$year] = array();
|
||||
}
|
||||
|
||||
$httptrafficlast[$year][$month] = $traffic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reset($httptrafficlast);
|
||||
foreach($httptraffic as $year => $months)
|
||||
{
|
||||
foreach($months as $month => $traffic)
|
||||
{
|
||||
if(!isset($httptrafficlast[$year][$month]))
|
||||
{
|
||||
$returnval+= $traffic;
|
||||
}
|
||||
elseif($httptrafficlast[$year][$month] < $httptraffic[$year][$month])
|
||||
{
|
||||
$returnval+= ($httptraffic[$year][$month] - $httptrafficlast[$year][$month]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return floatval($returnval);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function saves the logfile written by mod_log_sql
|
||||
* into a logfile webalizer can parse
|
||||
*
|
||||
* @param string $domain The "speciallogfile" - domain(s)
|
||||
* @param string $loginname The loginname of the customer
|
||||
* @return bool
|
||||
*
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
*/
|
||||
|
||||
function safeSQLLogfile($domains, $loginname)
|
||||
{
|
||||
global $db, $settings;
|
||||
$sql = "SELECT * FROM access_log ";
|
||||
$where = "WHERE virtual_host = ";
|
||||
|
||||
if(!is_array($domains))
|
||||
{
|
||||
// If it isn't an array, it's a speciallogfile-domain
|
||||
|
||||
$logname = $settings['system']['logfiles_directory'] . $loginname . '-' . $domains . '-access.log';
|
||||
$where.= "'$domains' OR virtual_host = 'www.$domains'";
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we have an array, these are all domains aggregated into a single logfile
|
||||
|
||||
if(count($domains) == 0)
|
||||
{
|
||||
// If the $omains-array is empty, this customer has only speciallogfile-
|
||||
// domains, so just return, all logfiles are already written to disk
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
$logname = $settings['system']['logfiles_directory'] . $loginname . '-access.log';
|
||||
|
||||
// Build the "WHERE" - part of the sql-query
|
||||
|
||||
foreach($domains as $domain)
|
||||
{
|
||||
// A domain may be reached with or without the "www" in front.
|
||||
|
||||
$where.= "'$domain' OR virtual_host = 'www.$domain' OR virtual_host = ";
|
||||
}
|
||||
|
||||
$where = substr($where, 0, -19);
|
||||
}
|
||||
|
||||
// We want clean, ordered logfiles
|
||||
|
||||
$sql.= $where . " ORDER BY time_stamp;";
|
||||
$logs = $db->query($sql);
|
||||
|
||||
// Don't overwrite the logfile - append the new stuff
|
||||
|
||||
file_put_contents($logname, "", FILE_APPEND);
|
||||
|
||||
while($logline = $db->fetch_array($logs))
|
||||
{
|
||||
// Create a "CustomLog" - line
|
||||
|
||||
$writelog = $logline['remote_host'] . " " . $logline['virtual_host'] . " " . $logline['remote_user'] . " ";
|
||||
$writelog.= date("[d/M/Y:H:i:s O]", $logline['time_stamp']);
|
||||
$writelog.= " \"" . $logline['request_method'] . " " . $logline['request_uri'] . " " . $logline['request_protocol'] . "\" ";
|
||||
$writelog.= $logline['status'];
|
||||
$writelog.= " " . $logline['bytes_sent'] . " \"" . $logline['referer'] . "\" \"" . $logline['agent'] . "\"\n";
|
||||
file_put_contents($logname, $writelog, FILE_APPEND);
|
||||
}
|
||||
|
||||
// Remove the just written stuff
|
||||
|
||||
$db->query("DELETE FROM access_log " . $where);
|
||||
return true;
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_traffic.inc.functions.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Function which make webalizer statistics and returns used traffic since last run
|
||||
*
|
||||
* @param string Name of logfile
|
||||
* @param string Place where stats should be build
|
||||
* @param string Caption for webalizer output
|
||||
* @return int Used traffic
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
*/
|
||||
|
||||
function callWebalizerGetTraffic($logfile, $outputdir, $caption, $usersdomainlist)
|
||||
{
|
||||
global $settings;
|
||||
$returnval = 0;
|
||||
|
||||
if(file_exists($settings['system']['logfiles_directory'] . $logfile . '-access.log'))
|
||||
{
|
||||
$domainargs = '';
|
||||
foreach($usersdomainlist as $domainid => $domain)
|
||||
{
|
||||
$domainargs.= ' -r ' . escapeshellarg($domain);
|
||||
}
|
||||
|
||||
$outputdir = makeCorrectDir($outputdir);
|
||||
|
||||
if(!file_exists($outputdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($outputdir));
|
||||
}
|
||||
|
||||
if(file_exists($outputdir . 'webalizer.hist.1'))
|
||||
{
|
||||
unlink($outputdir . 'webalizer.hist.1');
|
||||
}
|
||||
|
||||
if(file_exists($outputdir . 'webalizer.hist')
|
||||
&& !file_exists($outputdir . 'webalizer.hist.1'))
|
||||
{
|
||||
safe_exec('cp ' . escapeshellarg($outputdir . 'webalizer.hist') . ' ' . escapeshellarg($outputdir . 'webalizer.hist.1'));
|
||||
}
|
||||
|
||||
$verbosity = '';
|
||||
|
||||
if($settings['system']['webalizer_quiet'] == '1')
|
||||
{
|
||||
$verbosity = '-q';
|
||||
}
|
||||
elseif($settings['system']['webalizer_quiet'] == '2')
|
||||
{
|
||||
$verbosity = '-Q';
|
||||
}
|
||||
|
||||
safe_exec('webalizer ' . $verbosity . ' -p -o ' . escapeshellarg($outputdir) . ' -n ' . escapeshellarg($caption) . $domainargs . ' ' . escapeshellarg($settings['system']['logfiles_directory'] . $logfile . '-access.log'));
|
||||
|
||||
/**
|
||||
* Format of webalizer.hist-files:
|
||||
* Month: $webalizer_hist_row['0']
|
||||
* Year: $webalizer_hist_row['1']
|
||||
* KB: $webalizer_hist_row['5']
|
||||
*/
|
||||
|
||||
$httptraffic = array();
|
||||
$webalizer_hist = @file_get_contents($outputdir . 'webalizer.hist');
|
||||
$webalizer_hist_rows = explode("\n", $webalizer_hist);
|
||||
foreach($webalizer_hist_rows as $webalizer_hist_row)
|
||||
{
|
||||
if($webalizer_hist_row != '')
|
||||
{
|
||||
$webalizer_hist_row = explode(' ', $webalizer_hist_row);
|
||||
|
||||
if(isset($webalizer_hist_row['0'])
|
||||
&& isset($webalizer_hist_row['1'])
|
||||
&& isset($webalizer_hist_row['5']))
|
||||
{
|
||||
$month = intval($webalizer_hist_row['0']);
|
||||
$year = intval($webalizer_hist_row['1']);
|
||||
$traffic = floatval($webalizer_hist_row['5']);
|
||||
|
||||
if(!isset($httptraffic[$year]))
|
||||
{
|
||||
$httptraffic[$year] = array();
|
||||
}
|
||||
|
||||
$httptraffic[$year][$month] = $traffic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reset($httptraffic);
|
||||
$httptrafficlast = array();
|
||||
$webalizer_lasthist = @file_get_contents($outputdir . 'webalizer.hist.1');
|
||||
$webalizer_lasthist_rows = explode("\n", $webalizer_lasthist);
|
||||
foreach($webalizer_lasthist_rows as $webalizer_lasthist_row)
|
||||
{
|
||||
if($webalizer_lasthist_row != '')
|
||||
{
|
||||
$webalizer_lasthist_row = explode(' ', $webalizer_lasthist_row);
|
||||
|
||||
if(isset($webalizer_lasthist_row['0'])
|
||||
&& isset($webalizer_lasthist_row['1'])
|
||||
&& isset($webalizer_lasthist_row['5']))
|
||||
{
|
||||
$month = intval($webalizer_lasthist_row['0']);
|
||||
$year = intval($webalizer_lasthist_row['1']);
|
||||
$traffic = floatval($webalizer_lasthist_row['5']);
|
||||
|
||||
if(!isset($httptrafficlast[$year]))
|
||||
{
|
||||
$httptrafficlast[$year] = array();
|
||||
}
|
||||
|
||||
$httptrafficlast[$year][$month] = $traffic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reset($httptrafficlast);
|
||||
foreach($httptraffic as $year => $months)
|
||||
{
|
||||
foreach($months as $month => $traffic)
|
||||
{
|
||||
if(!isset($httptrafficlast[$year][$month]))
|
||||
{
|
||||
$returnval+= $traffic;
|
||||
}
|
||||
elseif($httptrafficlast[$year][$month] < $httptraffic[$year][$month])
|
||||
{
|
||||
$returnval+= ($httptraffic[$year][$month] - $httptrafficlast[$year][$month]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return floatval($returnval);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function saves the logfile written by mod_log_sql
|
||||
* into a logfile webalizer can parse
|
||||
*
|
||||
* @param string $domain The "speciallogfile" - domain(s)
|
||||
* @param string $loginname The loginname of the customer
|
||||
* @return bool
|
||||
*
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
*/
|
||||
|
||||
function safeSQLLogfile($domains, $loginname)
|
||||
{
|
||||
global $db, $settings;
|
||||
$sql = "SELECT * FROM access_log ";
|
||||
$where = "WHERE virtual_host = ";
|
||||
|
||||
if(!is_array($domains))
|
||||
{
|
||||
// If it isn't an array, it's a speciallogfile-domain
|
||||
|
||||
$logname = $settings['system']['logfiles_directory'] . $loginname . '-' . $domains . '-access.log';
|
||||
$where.= "'$domains' OR virtual_host = 'www.$domains'";
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we have an array, these are all domains aggregated into a single logfile
|
||||
|
||||
if(count($domains) == 0)
|
||||
{
|
||||
// If the $omains-array is empty, this customer has only speciallogfile-
|
||||
// domains, so just return, all logfiles are already written to disk
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
$logname = $settings['system']['logfiles_directory'] . $loginname . '-access.log';
|
||||
|
||||
// Build the "WHERE" - part of the sql-query
|
||||
|
||||
foreach($domains as $domain)
|
||||
{
|
||||
// A domain may be reached with or without the "www" in front.
|
||||
|
||||
$where.= "'$domain' OR virtual_host = 'www.$domain' OR virtual_host = ";
|
||||
}
|
||||
|
||||
$where = substr($where, 0, -19);
|
||||
}
|
||||
|
||||
// We want clean, ordered logfiles
|
||||
|
||||
$sql.= $where . " ORDER BY time_stamp;";
|
||||
$logs = $db->query($sql);
|
||||
|
||||
// Don't overwrite the logfile - append the new stuff
|
||||
|
||||
file_put_contents($logname, "", FILE_APPEND);
|
||||
|
||||
while($logline = $db->fetch_array($logs))
|
||||
{
|
||||
// Create a "CustomLog" - line
|
||||
|
||||
$writelog = $logline['remote_host'] . " " . $logline['virtual_host'] . " " . $logline['remote_user'] . " ";
|
||||
$writelog.= date("[d/M/Y:H:i:s O]", $logline['time_stamp']);
|
||||
$writelog.= " \"" . $logline['request_method'] . " " . $logline['request_uri'] . " " . $logline['request_protocol'] . "\" ";
|
||||
$writelog.= $logline['status'];
|
||||
$writelog.= " " . $logline['bytes_sent'] . " \"" . $logline['referer'] . "\" \"" . $logline['agent'] . "\"\n";
|
||||
file_put_contents($logname, $writelog, FILE_APPEND);
|
||||
}
|
||||
|
||||
// Remove the just written stuff
|
||||
|
||||
$db->query("DELETE FROM access_log " . $where);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,400 +1,400 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_traffic.php 2739 2009-11-06 14:46:30Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = true;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* TRAFFIC AND DISKUSAGE MESSURE
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Traffic run started...' . "\n");
|
||||
$admin_traffic = array();
|
||||
$domainlist = array();
|
||||
$speciallogfile_domainlist = array();
|
||||
$result_domainlist = $db->query("SELECT `id`, `domain`, `customerid`, `parentdomainid`, `speciallogfile` FROM `" . TABLE_PANEL_DOMAINS . "` ;");
|
||||
|
||||
while($row_domainlist = $db->fetch_array($result_domainlist))
|
||||
{
|
||||
if(!isset($domainlist[$row_domainlist['customerid']]))
|
||||
{
|
||||
$domainlist[$row_domainlist['customerid']] = array();
|
||||
}
|
||||
|
||||
$domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain'];
|
||||
|
||||
if($row_domainlist['parentdomainid'] == '0'
|
||||
&& $row_domainlist['speciallogfile'] == '1')
|
||||
{
|
||||
if(!isset($speciallogfile_domainlist[$row_domainlist['customerid']]))
|
||||
{
|
||||
$speciallogfile_domainlist[$row_domainlist['customerid']] = array();
|
||||
}
|
||||
|
||||
$speciallogfile_domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain'];
|
||||
}
|
||||
}
|
||||
|
||||
$mysqlusage_all = array();
|
||||
$databases = $db->query("SELECT * FROM " . TABLE_PANEL_DATABASES . " ORDER BY `dbserver`");
|
||||
$db_root = new db($sql_root[0]['host'], $sql_root[0]['user'], $sql_root[0]['password'], '');
|
||||
unset($db_root->password);
|
||||
$last_dbserver = 0;
|
||||
|
||||
$databases_list = array();
|
||||
$databases_list_result = $db_root->query("show databases");
|
||||
while($databases_list_row = $db->fetch_array($databases_list_result))
|
||||
{
|
||||
$databases_list[] = strtolower($databases_list_row['Database']);
|
||||
}
|
||||
|
||||
while($row_database = $db->fetch_array($databases))
|
||||
{
|
||||
if($last_dbserver != $row_database['dbserver'])
|
||||
{
|
||||
$db_root->close();
|
||||
$db_root = new db($sql_root[$row_database['dbserver']]['host'], $sql_root[$row_database['dbserver']]['user'], $sql_root[$row_database['dbserver']]['password'], '');
|
||||
unset($db_root->password);
|
||||
$last_dbserver = $row_database['dbserver'];
|
||||
|
||||
$database_list = array();
|
||||
$databases_list_result = $db_root->query("show databases");
|
||||
while($databases_list_row = $db->fetch_array($databases_list_result))
|
||||
{
|
||||
$databases_list[] = strtolower($databases_list_row['Database']);
|
||||
}
|
||||
}
|
||||
|
||||
if(in_array(strtolower($row_database['databasename']), $databases_list))
|
||||
{
|
||||
$mysql_usage_result = $db_root->query("SHOW TABLE STATUS FROM `" . $db_root->escape($row_database['databasename']) . "`");
|
||||
|
||||
while($mysql_usage_row = $db_root->fetch_array($mysql_usage_result))
|
||||
{
|
||||
if(!isset($mysqlusage_all[$row_database['customerid']]))
|
||||
{
|
||||
$mysqlusage_all[$row_database['customerid']] = 0;
|
||||
}
|
||||
$mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['Data_length'] + $mysql_usage_row['Index_length']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Seems like the database " . $row_database['databasename'] . " had been removed manually.\n";
|
||||
}
|
||||
}
|
||||
|
||||
$db_root->close();
|
||||
|
||||
|
||||
$result = $db->query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
/**
|
||||
* HTTP-Traffic
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'http traffic for ' . $row['loginname'] . ' started...' . "\n");
|
||||
$httptraffic = 0;
|
||||
|
||||
if(isset($domainlist[$row['customerid']])
|
||||
&& is_array($domainlist[$row['customerid']])
|
||||
&& count($domainlist[$row['customerid']]) != 0)
|
||||
{
|
||||
// Examining which caption to use for default webalizer stats...
|
||||
|
||||
if($row['standardsubdomain'] != '0')
|
||||
{
|
||||
// ... of course we'd prefer to use the standardsubdomain ...
|
||||
|
||||
$caption = $domainlist[$row['customerid']][$row['standardsubdomain']];
|
||||
}
|
||||
else
|
||||
{
|
||||
// ... but if there is no standardsubdomain, we have to use the loginname ...
|
||||
|
||||
$caption = $row['loginname'];
|
||||
|
||||
// ... which results in non-usable links to files in the stats, so lets have a look if we find a domain which is not speciallogfiledomain
|
||||
|
||||
foreach($domainlist[$row['customerid']] as $domainid => $domain)
|
||||
{
|
||||
if(!isset($speciallogfile_domainlist[$row['customerid']])
|
||||
|| !isset($speciallogfile_domainlist[$row['customerid']][$domainid]))
|
||||
{
|
||||
$caption = $domain;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$httptraffic = 0;
|
||||
reset($domainlist[$row['customerid']]);
|
||||
|
||||
if(isset($speciallogfile_domainlist[$row['customerid']])
|
||||
&& is_array($speciallogfile_domainlist[$row['customerid']])
|
||||
&& count($speciallogfile_domainlist[$row['customerid']]) != 0)
|
||||
{
|
||||
reset($speciallogfile_domainlist[$row['customerid']]);
|
||||
foreach($speciallogfile_domainlist[$row['customerid']] as $domainid => $domain)
|
||||
{
|
||||
if($settings['system']['mod_log_sql'] == 1)
|
||||
{
|
||||
safeSQLLogfile($domain, $row['loginname']);
|
||||
|
||||
// Remove this domain from the domainlist - it's already analysed
|
||||
// and doesn't need to be selected twice
|
||||
|
||||
unset($domainlist[$row['customerid']][$domainid]);
|
||||
}
|
||||
|
||||
$httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'] . '-' . $domain, $row['documentroot'] . '/webalizer/' . $domain . '/', $domain, $domainlist[$row['customerid']]));
|
||||
}
|
||||
}
|
||||
|
||||
reset($domainlist[$row['customerid']]);
|
||||
|
||||
if($settings['system']['mod_log_sql'] == 1)
|
||||
{
|
||||
safeSQLLogfile($domainlist[$row['customerid']], $row['loginname']);
|
||||
}
|
||||
|
||||
$httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'], $row['documentroot'] . '/webalizer/', $caption, $domainlist[$row['customerid']]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Webalizer might run for some time, so we'd better check if our database is still present
|
||||
*/
|
||||
|
||||
if(empty($db->link_id)
|
||||
|| $db->link_id === false)
|
||||
{
|
||||
fwrite($debugHandler, 'Database-connection seems to be down, trying to reconnect' . "\n");
|
||||
|
||||
// just in case
|
||||
|
||||
$db->close();
|
||||
require_once ($pathtophpfiles . '/lib/userdata.inc.php');
|
||||
$db = new db($sql['host'], $sql['user'], $sql['password'], $sql['db']);
|
||||
|
||||
if($db->link_id == 0)
|
||||
{
|
||||
fclose($debugHandler);
|
||||
unlink($lockfile);
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, 'Database-connection crashed during traffic-cronjob, could not reconnect!');
|
||||
die('SysCP can\'t connect to mysqlserver. Exiting...');
|
||||
}
|
||||
|
||||
fwrite($debugHandler, 'Database-connection re-established' . "\n");
|
||||
unset($sql);
|
||||
unset($db->password);
|
||||
$cronlog->logAction(CRON_ACTION, LOG_WARNING, 'Database-connection crashed during traffic-cronjob, reconnected!');
|
||||
}
|
||||
|
||||
/**
|
||||
* FTP-Traffic
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'ftp traffic for ' . $row['loginname'] . ' started...' . "\n");
|
||||
$ftptraffic = $db->query_first("SELECT SUM(`up_bytes`) AS `up_bytes_sum`, SUM(`down_bytes`) AS `down_bytes_sum` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$row['customerid'] . "'");
|
||||
|
||||
if(!is_array($ftptraffic))
|
||||
{
|
||||
$ftptraffic = array(
|
||||
'up_bytes_sum' => 0,
|
||||
'down_bytes_sum' => 0
|
||||
);
|
||||
}
|
||||
|
||||
$db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_bytes`='0', `down_bytes`='0' WHERE `customerid`='" . (int)$row['customerid'] . "'");
|
||||
|
||||
/**
|
||||
* Mail-Traffic
|
||||
*/
|
||||
|
||||
$mailtraffic = 0;
|
||||
|
||||
/**
|
||||
* Total Traffic
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'total traffic for ' . $row['loginname'] . ' started' . "\n");
|
||||
$current_traffic = array();
|
||||
$current_traffic['http'] = floatval($httptraffic);
|
||||
$current_traffic['ftp_up'] = floatval(($ftptraffic['up_bytes_sum'] / 1024));
|
||||
$current_traffic['ftp_down'] = floatval(($ftptraffic['down_bytes_sum'] / 1024));
|
||||
$current_traffic['mail'] = floatval($mailtraffic);
|
||||
$current_traffic['all'] = $current_traffic['http'] + $current_traffic['ftp_up'] + $current_traffic['ftp_down'] + $current_traffic['mail'];
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC . "` (`customerid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_traffic['http'] . "', '" . (float)$current_traffic['ftp_up'] . "', '" . (float)$current_traffic['ftp_down'] . "', '" . (float)$current_traffic['mail'] . "')");
|
||||
$sum_month_traffic = $db->query_first("SELECT SUM(`http`) AS `http`, SUM(`ftp_up`) AS `ftp_up`, SUM(`ftp_down`) AS `ftp_down`, SUM(`mail`) AS `mail` FROM `" . TABLE_PANEL_TRAFFIC . "` WHERE `year`='" . date('Y') . "' AND `month`='" . date('m') . "' AND `customerid`='" . (int)$row['customerid'] . "'");
|
||||
$sum_month_traffic['all'] = $sum_month_traffic['http'] + $sum_month_traffic['ftp_up'] + $sum_month_traffic['ftp_down'] + $sum_month_traffic['mail'];
|
||||
|
||||
if(!isset($admin_traffic[$row['adminid']])
|
||||
|| !is_array($admin_traffic[$row['adminid']]))
|
||||
{
|
||||
$admin_traffic[$row['adminid']]['http'] = 0;
|
||||
$admin_traffic[$row['adminid']]['ftp_up'] = 0;
|
||||
$admin_traffic[$row['adminid']]['ftp_down'] = 0;
|
||||
$admin_traffic[$row['adminid']]['mail'] = 0;
|
||||
$admin_traffic[$row['adminid']]['all'] = 0;
|
||||
$admin_traffic[$row['adminid']]['sum_month'] = 0;
|
||||
}
|
||||
|
||||
$admin_traffic[$row['adminid']]['http']+= $current_traffic['http'];
|
||||
$admin_traffic[$row['adminid']]['ftp_up']+= $current_traffic['ftp_up'];
|
||||
$admin_traffic[$row['adminid']]['ftp_down']+= $current_traffic['ftp_down'];
|
||||
$admin_traffic[$row['adminid']]['mail']+= $current_traffic['mail'];
|
||||
$admin_traffic[$row['adminid']]['all']+= $current_traffic['all'];
|
||||
$admin_traffic[$row['adminid']]['sum_month']+= $sum_month_traffic['all'];
|
||||
|
||||
/**
|
||||
* WebSpace-Usage
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'calculating webspace usage for ' . $row['loginname'] . "\n");
|
||||
$webspaceusage = 0;
|
||||
|
||||
if(file_exists($row['documentroot']) && is_dir($row['documentroot']))
|
||||
{
|
||||
$back = safe_exec('du -s ' . escapeshellarg($row['documentroot']) . '');
|
||||
foreach($back as $backrow)
|
||||
{
|
||||
$webspaceusage = explode(' ', $backrow);
|
||||
}
|
||||
|
||||
$webspaceusage = floatval($webspaceusage['0']);
|
||||
unset($back);
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, 'documentroot ' . $row['documentroot'] . ' does not exist' . "\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* MailSpace-Usage
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'calculating mailspace usage for ' . $row['loginname'] . "\n");
|
||||
$emailusage = 0;
|
||||
|
||||
$maildir = makeCorrectDir($settings['system']['vmail_homedir'] . $row['loginname']);
|
||||
if(file_exists($maildir) && is_dir($maildir))
|
||||
{
|
||||
$back = safe_exec('du -s ' . escapeshellarg($maildir) . '');
|
||||
foreach($back as $backrow)
|
||||
{
|
||||
$emailusage = explode(' ', $backrow);
|
||||
}
|
||||
|
||||
$emailusage = floatval($emailusage['0']);
|
||||
unset($back);
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, 'maildir ' . $maildir . ' does not exist' . "\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* MySQLSpace-Usage
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'calculating mysqlspace usage for ' . $row['loginname'] . "\n");
|
||||
$mysqlusage = 0;
|
||||
|
||||
if(isset($mysqlusage_all[$row['customerid']]))
|
||||
{
|
||||
$mysqlusage = floatval($mysqlusage_all[$row['customerid']] / 1024);
|
||||
}
|
||||
|
||||
$current_diskspace = array();
|
||||
$current_diskspace['webspace'] = floatval($webspaceusage);
|
||||
$current_diskspace['mail'] = floatval($emailusage);
|
||||
$current_diskspace['mysql'] = floatval($mysqlusage);
|
||||
$current_diskspace['all'] = $current_diskspace['webspace'] + $current_diskspace['mail'] + $current_diskspace['mysql'];
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE . "` (`customerid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_diskspace['webspace'] . "', '" . (float)$current_diskspace['mail'] . "', '" . (float)$current_diskspace['mysql'] . "')");
|
||||
|
||||
if(!isset($admin_diskspace[$row['adminid']])
|
||||
|| !is_array($admin_diskspace[$row['adminid']]))
|
||||
{
|
||||
$admin_diskspace[$row['adminid']] = array();
|
||||
$admin_diskspace[$row['adminid']]['webspace'] = 0;
|
||||
$admin_diskspace[$row['adminid']]['mail'] = 0;
|
||||
$admin_diskspace[$row['adminid']]['mysql'] = 0;
|
||||
$admin_diskspace[$row['adminid']]['all'] = 0;
|
||||
}
|
||||
|
||||
$admin_diskspace[$row['adminid']]['webspace']+= $current_diskspace['webspace'];
|
||||
$admin_diskspace[$row['adminid']]['mail']+= $current_diskspace['mail'];
|
||||
$admin_diskspace[$row['adminid']]['mysql']+= $current_diskspace['mysql'];
|
||||
$admin_diskspace[$row['adminid']]['all']+= $current_diskspace['all'];
|
||||
|
||||
/**
|
||||
* Total Usage
|
||||
*/
|
||||
|
||||
$diskusage = floatval($webspaceusage + $emailusage + $mysqlusage);
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `diskspace_used`='" . (float)$current_diskspace['all'] . "', `traffic_used`='" . (float)$sum_month_traffic['all'] . "' WHERE `customerid`='" . (int)$row['customerid'] . "'");
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin Usage
|
||||
*/
|
||||
|
||||
$result = $db->query("SELECT `adminid` FROM `" . TABLE_PANEL_ADMINS . "` ORDER BY `adminid` ASC");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(isset($admin_traffic[$row['adminid']]))
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_traffic[$row['adminid']]['http'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_up'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_down'] . "', '" . (float)$admin_traffic[$row['adminid']]['mail'] . "')");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `traffic_used`='" . (float)$admin_traffic[$row['adminid']]['sum_month'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'");
|
||||
}
|
||||
|
||||
if(isset($admin_diskspace[$row['adminid']]))
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_diskspace[$row['adminid']]['webspace'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mail'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mysql'] . "')");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `diskspace_used`='" . (float)$admin_diskspace[$row['adminid']]['all'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'");
|
||||
}
|
||||
}
|
||||
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @author Martin Burchert <eremit@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_traffic.php 2739 2009-11-06 14:46:30Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = true;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* TRAFFIC AND DISKUSAGE MESSURE
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Traffic run started...' . "\n");
|
||||
$admin_traffic = array();
|
||||
$domainlist = array();
|
||||
$speciallogfile_domainlist = array();
|
||||
$result_domainlist = $db->query("SELECT `id`, `domain`, `customerid`, `parentdomainid`, `speciallogfile` FROM `" . TABLE_PANEL_DOMAINS . "` ;");
|
||||
|
||||
while($row_domainlist = $db->fetch_array($result_domainlist))
|
||||
{
|
||||
if(!isset($domainlist[$row_domainlist['customerid']]))
|
||||
{
|
||||
$domainlist[$row_domainlist['customerid']] = array();
|
||||
}
|
||||
|
||||
$domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain'];
|
||||
|
||||
if($row_domainlist['parentdomainid'] == '0'
|
||||
&& $row_domainlist['speciallogfile'] == '1')
|
||||
{
|
||||
if(!isset($speciallogfile_domainlist[$row_domainlist['customerid']]))
|
||||
{
|
||||
$speciallogfile_domainlist[$row_domainlist['customerid']] = array();
|
||||
}
|
||||
|
||||
$speciallogfile_domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain'];
|
||||
}
|
||||
}
|
||||
|
||||
$mysqlusage_all = array();
|
||||
$databases = $db->query("SELECT * FROM " . TABLE_PANEL_DATABASES . " ORDER BY `dbserver`");
|
||||
$db_root = new db($sql_root[0]['host'], $sql_root[0]['user'], $sql_root[0]['password'], '');
|
||||
unset($db_root->password);
|
||||
$last_dbserver = 0;
|
||||
|
||||
$databases_list = array();
|
||||
$databases_list_result = $db_root->query("show databases");
|
||||
while($databases_list_row = $db->fetch_array($databases_list_result))
|
||||
{
|
||||
$databases_list[] = strtolower($databases_list_row['Database']);
|
||||
}
|
||||
|
||||
while($row_database = $db->fetch_array($databases))
|
||||
{
|
||||
if($last_dbserver != $row_database['dbserver'])
|
||||
{
|
||||
$db_root->close();
|
||||
$db_root = new db($sql_root[$row_database['dbserver']]['host'], $sql_root[$row_database['dbserver']]['user'], $sql_root[$row_database['dbserver']]['password'], '');
|
||||
unset($db_root->password);
|
||||
$last_dbserver = $row_database['dbserver'];
|
||||
|
||||
$database_list = array();
|
||||
$databases_list_result = $db_root->query("show databases");
|
||||
while($databases_list_row = $db->fetch_array($databases_list_result))
|
||||
{
|
||||
$databases_list[] = strtolower($databases_list_row['Database']);
|
||||
}
|
||||
}
|
||||
|
||||
if(in_array(strtolower($row_database['databasename']), $databases_list))
|
||||
{
|
||||
$mysql_usage_result = $db_root->query("SHOW TABLE STATUS FROM `" . $db_root->escape($row_database['databasename']) . "`");
|
||||
|
||||
while($mysql_usage_row = $db_root->fetch_array($mysql_usage_result))
|
||||
{
|
||||
if(!isset($mysqlusage_all[$row_database['customerid']]))
|
||||
{
|
||||
$mysqlusage_all[$row_database['customerid']] = 0;
|
||||
}
|
||||
$mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['Data_length'] + $mysql_usage_row['Index_length']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Seems like the database " . $row_database['databasename'] . " had been removed manually.\n";
|
||||
}
|
||||
}
|
||||
|
||||
$db_root->close();
|
||||
|
||||
|
||||
$result = $db->query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
/**
|
||||
* HTTP-Traffic
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'http traffic for ' . $row['loginname'] . ' started...' . "\n");
|
||||
$httptraffic = 0;
|
||||
|
||||
if(isset($domainlist[$row['customerid']])
|
||||
&& is_array($domainlist[$row['customerid']])
|
||||
&& count($domainlist[$row['customerid']]) != 0)
|
||||
{
|
||||
// Examining which caption to use for default webalizer stats...
|
||||
|
||||
if($row['standardsubdomain'] != '0')
|
||||
{
|
||||
// ... of course we'd prefer to use the standardsubdomain ...
|
||||
|
||||
$caption = $domainlist[$row['customerid']][$row['standardsubdomain']];
|
||||
}
|
||||
else
|
||||
{
|
||||
// ... but if there is no standardsubdomain, we have to use the loginname ...
|
||||
|
||||
$caption = $row['loginname'];
|
||||
|
||||
// ... which results in non-usable links to files in the stats, so lets have a look if we find a domain which is not speciallogfiledomain
|
||||
|
||||
foreach($domainlist[$row['customerid']] as $domainid => $domain)
|
||||
{
|
||||
if(!isset($speciallogfile_domainlist[$row['customerid']])
|
||||
|| !isset($speciallogfile_domainlist[$row['customerid']][$domainid]))
|
||||
{
|
||||
$caption = $domain;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$httptraffic = 0;
|
||||
reset($domainlist[$row['customerid']]);
|
||||
|
||||
if(isset($speciallogfile_domainlist[$row['customerid']])
|
||||
&& is_array($speciallogfile_domainlist[$row['customerid']])
|
||||
&& count($speciallogfile_domainlist[$row['customerid']]) != 0)
|
||||
{
|
||||
reset($speciallogfile_domainlist[$row['customerid']]);
|
||||
foreach($speciallogfile_domainlist[$row['customerid']] as $domainid => $domain)
|
||||
{
|
||||
if($settings['system']['mod_log_sql'] == 1)
|
||||
{
|
||||
safeSQLLogfile($domain, $row['loginname']);
|
||||
|
||||
// Remove this domain from the domainlist - it's already analysed
|
||||
// and doesn't need to be selected twice
|
||||
|
||||
unset($domainlist[$row['customerid']][$domainid]);
|
||||
}
|
||||
|
||||
$httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'] . '-' . $domain, $row['documentroot'] . '/webalizer/' . $domain . '/', $domain, $domainlist[$row['customerid']]));
|
||||
}
|
||||
}
|
||||
|
||||
reset($domainlist[$row['customerid']]);
|
||||
|
||||
if($settings['system']['mod_log_sql'] == 1)
|
||||
{
|
||||
safeSQLLogfile($domainlist[$row['customerid']], $row['loginname']);
|
||||
}
|
||||
|
||||
$httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'], $row['documentroot'] . '/webalizer/', $caption, $domainlist[$row['customerid']]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Webalizer might run for some time, so we'd better check if our database is still present
|
||||
*/
|
||||
|
||||
if(empty($db->link_id)
|
||||
|| $db->link_id === false)
|
||||
{
|
||||
fwrite($debugHandler, 'Database-connection seems to be down, trying to reconnect' . "\n");
|
||||
|
||||
// just in case
|
||||
|
||||
$db->close();
|
||||
require_once ($pathtophpfiles . '/lib/userdata.inc.php');
|
||||
$db = new db($sql['host'], $sql['user'], $sql['password'], $sql['db']);
|
||||
|
||||
if($db->link_id == 0)
|
||||
{
|
||||
fclose($debugHandler);
|
||||
unlink($lockfile);
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, 'Database-connection crashed during traffic-cronjob, could not reconnect!');
|
||||
die('SysCP can\'t connect to mysqlserver. Exiting...');
|
||||
}
|
||||
|
||||
fwrite($debugHandler, 'Database-connection re-established' . "\n");
|
||||
unset($sql);
|
||||
unset($db->password);
|
||||
$cronlog->logAction(CRON_ACTION, LOG_WARNING, 'Database-connection crashed during traffic-cronjob, reconnected!');
|
||||
}
|
||||
|
||||
/**
|
||||
* FTP-Traffic
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'ftp traffic for ' . $row['loginname'] . ' started...' . "\n");
|
||||
$ftptraffic = $db->query_first("SELECT SUM(`up_bytes`) AS `up_bytes_sum`, SUM(`down_bytes`) AS `down_bytes_sum` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$row['customerid'] . "'");
|
||||
|
||||
if(!is_array($ftptraffic))
|
||||
{
|
||||
$ftptraffic = array(
|
||||
'up_bytes_sum' => 0,
|
||||
'down_bytes_sum' => 0
|
||||
);
|
||||
}
|
||||
|
||||
$db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_bytes`='0', `down_bytes`='0' WHERE `customerid`='" . (int)$row['customerid'] . "'");
|
||||
|
||||
/**
|
||||
* Mail-Traffic
|
||||
*/
|
||||
|
||||
$mailtraffic = 0;
|
||||
|
||||
/**
|
||||
* Total Traffic
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'total traffic for ' . $row['loginname'] . ' started' . "\n");
|
||||
$current_traffic = array();
|
||||
$current_traffic['http'] = floatval($httptraffic);
|
||||
$current_traffic['ftp_up'] = floatval(($ftptraffic['up_bytes_sum'] / 1024));
|
||||
$current_traffic['ftp_down'] = floatval(($ftptraffic['down_bytes_sum'] / 1024));
|
||||
$current_traffic['mail'] = floatval($mailtraffic);
|
||||
$current_traffic['all'] = $current_traffic['http'] + $current_traffic['ftp_up'] + $current_traffic['ftp_down'] + $current_traffic['mail'];
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC . "` (`customerid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_traffic['http'] . "', '" . (float)$current_traffic['ftp_up'] . "', '" . (float)$current_traffic['ftp_down'] . "', '" . (float)$current_traffic['mail'] . "')");
|
||||
$sum_month_traffic = $db->query_first("SELECT SUM(`http`) AS `http`, SUM(`ftp_up`) AS `ftp_up`, SUM(`ftp_down`) AS `ftp_down`, SUM(`mail`) AS `mail` FROM `" . TABLE_PANEL_TRAFFIC . "` WHERE `year`='" . date('Y') . "' AND `month`='" . date('m') . "' AND `customerid`='" . (int)$row['customerid'] . "'");
|
||||
$sum_month_traffic['all'] = $sum_month_traffic['http'] + $sum_month_traffic['ftp_up'] + $sum_month_traffic['ftp_down'] + $sum_month_traffic['mail'];
|
||||
|
||||
if(!isset($admin_traffic[$row['adminid']])
|
||||
|| !is_array($admin_traffic[$row['adminid']]))
|
||||
{
|
||||
$admin_traffic[$row['adminid']]['http'] = 0;
|
||||
$admin_traffic[$row['adminid']]['ftp_up'] = 0;
|
||||
$admin_traffic[$row['adminid']]['ftp_down'] = 0;
|
||||
$admin_traffic[$row['adminid']]['mail'] = 0;
|
||||
$admin_traffic[$row['adminid']]['all'] = 0;
|
||||
$admin_traffic[$row['adminid']]['sum_month'] = 0;
|
||||
}
|
||||
|
||||
$admin_traffic[$row['adminid']]['http']+= $current_traffic['http'];
|
||||
$admin_traffic[$row['adminid']]['ftp_up']+= $current_traffic['ftp_up'];
|
||||
$admin_traffic[$row['adminid']]['ftp_down']+= $current_traffic['ftp_down'];
|
||||
$admin_traffic[$row['adminid']]['mail']+= $current_traffic['mail'];
|
||||
$admin_traffic[$row['adminid']]['all']+= $current_traffic['all'];
|
||||
$admin_traffic[$row['adminid']]['sum_month']+= $sum_month_traffic['all'];
|
||||
|
||||
/**
|
||||
* WebSpace-Usage
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'calculating webspace usage for ' . $row['loginname'] . "\n");
|
||||
$webspaceusage = 0;
|
||||
|
||||
if(file_exists($row['documentroot']) && is_dir($row['documentroot']))
|
||||
{
|
||||
$back = safe_exec('du -s ' . escapeshellarg($row['documentroot']) . '');
|
||||
foreach($back as $backrow)
|
||||
{
|
||||
$webspaceusage = explode(' ', $backrow);
|
||||
}
|
||||
|
||||
$webspaceusage = floatval($webspaceusage['0']);
|
||||
unset($back);
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, 'documentroot ' . $row['documentroot'] . ' does not exist' . "\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* MailSpace-Usage
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'calculating mailspace usage for ' . $row['loginname'] . "\n");
|
||||
$emailusage = 0;
|
||||
|
||||
$maildir = makeCorrectDir($settings['system']['vmail_homedir'] . $row['loginname']);
|
||||
if(file_exists($maildir) && is_dir($maildir))
|
||||
{
|
||||
$back = safe_exec('du -s ' . escapeshellarg($maildir) . '');
|
||||
foreach($back as $backrow)
|
||||
{
|
||||
$emailusage = explode(' ', $backrow);
|
||||
}
|
||||
|
||||
$emailusage = floatval($emailusage['0']);
|
||||
unset($back);
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($debugHandler, 'maildir ' . $maildir . ' does not exist' . "\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* MySQLSpace-Usage
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'calculating mysqlspace usage for ' . $row['loginname'] . "\n");
|
||||
$mysqlusage = 0;
|
||||
|
||||
if(isset($mysqlusage_all[$row['customerid']]))
|
||||
{
|
||||
$mysqlusage = floatval($mysqlusage_all[$row['customerid']] / 1024);
|
||||
}
|
||||
|
||||
$current_diskspace = array();
|
||||
$current_diskspace['webspace'] = floatval($webspaceusage);
|
||||
$current_diskspace['mail'] = floatval($emailusage);
|
||||
$current_diskspace['mysql'] = floatval($mysqlusage);
|
||||
$current_diskspace['all'] = $current_diskspace['webspace'] + $current_diskspace['mail'] + $current_diskspace['mysql'];
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE . "` (`customerid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_diskspace['webspace'] . "', '" . (float)$current_diskspace['mail'] . "', '" . (float)$current_diskspace['mysql'] . "')");
|
||||
|
||||
if(!isset($admin_diskspace[$row['adminid']])
|
||||
|| !is_array($admin_diskspace[$row['adminid']]))
|
||||
{
|
||||
$admin_diskspace[$row['adminid']] = array();
|
||||
$admin_diskspace[$row['adminid']]['webspace'] = 0;
|
||||
$admin_diskspace[$row['adminid']]['mail'] = 0;
|
||||
$admin_diskspace[$row['adminid']]['mysql'] = 0;
|
||||
$admin_diskspace[$row['adminid']]['all'] = 0;
|
||||
}
|
||||
|
||||
$admin_diskspace[$row['adminid']]['webspace']+= $current_diskspace['webspace'];
|
||||
$admin_diskspace[$row['adminid']]['mail']+= $current_diskspace['mail'];
|
||||
$admin_diskspace[$row['adminid']]['mysql']+= $current_diskspace['mysql'];
|
||||
$admin_diskspace[$row['adminid']]['all']+= $current_diskspace['all'];
|
||||
|
||||
/**
|
||||
* Total Usage
|
||||
*/
|
||||
|
||||
$diskusage = floatval($webspaceusage + $emailusage + $mysqlusage);
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `diskspace_used`='" . (float)$current_diskspace['all'] . "', `traffic_used`='" . (float)$sum_month_traffic['all'] . "' WHERE `customerid`='" . (int)$row['customerid'] . "'");
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin Usage
|
||||
*/
|
||||
|
||||
$result = $db->query("SELECT `adminid` FROM `" . TABLE_PANEL_ADMINS . "` ORDER BY `adminid` ASC");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(isset($admin_traffic[$row['adminid']]))
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_traffic[$row['adminid']]['http'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_up'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_down'] . "', '" . (float)$admin_traffic[$row['adminid']]['mail'] . "')");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `traffic_used`='" . (float)$admin_traffic[$row['adminid']]['sum_month'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'");
|
||||
}
|
||||
|
||||
if(isset($admin_diskspace[$row['adminid']]))
|
||||
{
|
||||
$db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_diskspace[$row['adminid']]['webspace'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mail'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mysql'] . "')");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `diskspace_used`='" . (float)$admin_diskspace[$row['adminid']]['all'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'");
|
||||
}
|
||||
}
|
||||
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,240 +1,240 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_traffic_report.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Trafficreport run started...' . "\n");
|
||||
$yesterday = time() - (60 * 60 * 24);
|
||||
|
||||
/**
|
||||
* Initialize the mailingsystem
|
||||
*/
|
||||
|
||||
require (dirname(__FILE__) . '/../lib/class.phpmailer.php');
|
||||
$mail = new PHPMailer();
|
||||
$mail->From = $settings['panel']['adminmail'];
|
||||
|
||||
// Warn the customers at 90% traffic-usage
|
||||
|
||||
$result = $db->query("SELECT `c`.`customerid`, `c`.`adminid`, `c`.`name`, `c`.`firstname`, `c`.`traffic`,
|
||||
`c`.`email`, `c`.`def_language`, `a`.`name` AS `adminname`, `a`.`email` AS `adminmail`,
|
||||
(SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`)
|
||||
FROM `" . TABLE_PANEL_TRAFFIC . "` `t`
|
||||
WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "'
|
||||
AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used`
|
||||
FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c`
|
||||
LEFT JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `a`.`adminid` = `c`.`adminid`
|
||||
WHERE `c`.`reportsent` = '0'");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(isset($row['traffic'])
|
||||
&& $row['traffic'] > 0
|
||||
&& $row['traffic_used'] != NULL
|
||||
&& (($row['traffic_used'] * 100) / $row['traffic']) >= 90)
|
||||
{
|
||||
$replace_arr = array(
|
||||
'NAME' => $row['name'],
|
||||
'TRAFFIC' => $row['traffic'],
|
||||
'TRAFFICUSED' => $row['traffic_used']
|
||||
);
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $row['def_language'] . "'");
|
||||
|
||||
if($lngfile !== NULL)
|
||||
{
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'");
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
|
||||
include_once makeCorrectFile($pathtophpfiles . '/' . $langfile);
|
||||
|
||||
// Get mail templates from database; the ones from 'admin' are fetched for fallback
|
||||
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_subject'");
|
||||
$mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr));
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_mailbody'");
|
||||
$mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr));
|
||||
$mail->From = $row['adminmail'];
|
||||
$mail->FromName = $row['adminname'];
|
||||
$mail->Subject = $mail_subject;
|
||||
$mail->Body = $mail_body;
|
||||
$mail->AddAddress($row['email'], $row['firstname'] . ' ' . $row['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo);
|
||||
standard_error('errorsendingmail', $row["email"]);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
$db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent`=\'1\'
|
||||
WHERE `customerid`=\'' . (int)$row['customerid'] . '\'');
|
||||
}
|
||||
}
|
||||
|
||||
// Warn the admins at 90% traffic-usage
|
||||
|
||||
$result = $db->query("SELECT `a`.*,
|
||||
(SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`)
|
||||
FROM `" . TABLE_PANEL_TRAFFIC_ADMINS . "` `t`
|
||||
WHERE `t`.`adminid` = `a`.`adminid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "'
|
||||
AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total`
|
||||
FROM `" . TABLE_PANEL_ADMINS . "` `a` WHERE `a`.`reportsent` = '0'");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(isset($row['traffic'])
|
||||
&& $row['traffic'] > 0
|
||||
&& (($row['traffic_used_total'] * 100) / $row['traffic']) >= 90)
|
||||
{
|
||||
$replace_arr = array(
|
||||
'NAME' => $row['name'],
|
||||
'TRAFFIC' => $row['traffic'],
|
||||
'TRAFFICUSED' => $row['traffic_used_total']
|
||||
);
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $row['def_language'] . "'");
|
||||
|
||||
if($lngfile !== NULL)
|
||||
{
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'");
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
|
||||
include_once makeCorrectFile($pathtophpfiles . '/' . $langfile);
|
||||
|
||||
// Get mail templates from database; the ones from 'admin' are fetched for fallback
|
||||
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_subject'");
|
||||
$mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr));
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_mailbody'");
|
||||
$mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr));
|
||||
$mail->From = $row['email'];
|
||||
$mail->FromName = $row['firstname'] . " " . $row['name'];
|
||||
$mail->Subject = $mail_subject;
|
||||
$mail->Body = $mail_body;
|
||||
$mail->AddAddress($row['email'], $row['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo);
|
||||
standard_error('errorsendingmail', $row["email"]);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `reportsent`='1'
|
||||
WHERE `customerid`='" . (int)$row['adminid'] . "'");
|
||||
}
|
||||
|
||||
// Another month, let's build our report
|
||||
|
||||
if(date('d') == '01')
|
||||
{
|
||||
$mail_subject = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name'];
|
||||
$mail_body = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name'] . "\n";
|
||||
$mail_body.= '---------------------------------------------' . "\n";
|
||||
$mail_body.= 'Loginname Traffic used (Percent) | Traffic available' . "\n";
|
||||
$customers = $db->query("SELECT `c`.*,
|
||||
(SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`)
|
||||
FROM `" . TABLE_PANEL_TRAFFIC . "` `t`
|
||||
WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "'
|
||||
AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total`
|
||||
FROM `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `c`.`adminid` = '" . $row['adminid'] . "'");
|
||||
|
||||
while($customer = $db->fetch_array($customers))
|
||||
{
|
||||
$mail_body.= sprintf('%-15s', $customer['loginname']) . ' ' . sprintf('%-12d', $customer['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($customer['traffic_used_total'] * 100) / $customer['traffic'])) . ') ' . $customer['traffic'] . "\n";
|
||||
}
|
||||
|
||||
$mail_body.= '---------------------------------------------' . "\n";
|
||||
$mail_body.= sprintf('%-15s', $row['loginname']) . ' ' . sprintf('%-12d', $row['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($row['traffic_used_total'] * 100) / $row['traffic'])) . ') ' . $row['traffic'] . "\n";
|
||||
$mail->From = $row['email'];
|
||||
$mail->FromName = $row['name'];
|
||||
$mail->Subject = $mail_subject;
|
||||
$mail->Body = $mail_body;
|
||||
$mail->AddAddress($row['email'], $row['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo);
|
||||
standard_error('errorsendingmail', $row["email"]);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
}
|
||||
}
|
||||
|
||||
// Another month, reset the reportstatus
|
||||
|
||||
if(date('d') == '01')
|
||||
{
|
||||
$db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent` = \'0\';');
|
||||
$db->query('UPDATE `' . TABLE_PANEL_ADMINS . '` SET `reportsent` = \'0\';');
|
||||
}
|
||||
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP()
|
||||
WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_report_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Aders <eleras@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: cron_traffic_report.php 2692 2009-03-27 18:04:47Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Trafficreport run started...' . "\n");
|
||||
$yesterday = time() - (60 * 60 * 24);
|
||||
|
||||
/**
|
||||
* Initialize the mailingsystem
|
||||
*/
|
||||
|
||||
require (dirname(__FILE__) . '/../lib/class.phpmailer.php');
|
||||
$mail = new PHPMailer();
|
||||
$mail->From = $settings['panel']['adminmail'];
|
||||
|
||||
// Warn the customers at 90% traffic-usage
|
||||
|
||||
$result = $db->query("SELECT `c`.`customerid`, `c`.`adminid`, `c`.`name`, `c`.`firstname`, `c`.`traffic`,
|
||||
`c`.`email`, `c`.`def_language`, `a`.`name` AS `adminname`, `a`.`email` AS `adminmail`,
|
||||
(SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`)
|
||||
FROM `" . TABLE_PANEL_TRAFFIC . "` `t`
|
||||
WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "'
|
||||
AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used`
|
||||
FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c`
|
||||
LEFT JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `a`.`adminid` = `c`.`adminid`
|
||||
WHERE `c`.`reportsent` = '0'");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(isset($row['traffic'])
|
||||
&& $row['traffic'] > 0
|
||||
&& $row['traffic_used'] != NULL
|
||||
&& (($row['traffic_used'] * 100) / $row['traffic']) >= 90)
|
||||
{
|
||||
$replace_arr = array(
|
||||
'NAME' => $row['name'],
|
||||
'TRAFFIC' => $row['traffic'],
|
||||
'TRAFFICUSED' => $row['traffic_used']
|
||||
);
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $row['def_language'] . "'");
|
||||
|
||||
if($lngfile !== NULL)
|
||||
{
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'");
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
|
||||
include_once makeCorrectFile($pathtophpfiles . '/' . $langfile);
|
||||
|
||||
// Get mail templates from database; the ones from 'admin' are fetched for fallback
|
||||
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_subject'");
|
||||
$mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr));
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_mailbody'");
|
||||
$mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr));
|
||||
$mail->From = $row['adminmail'];
|
||||
$mail->FromName = $row['adminname'];
|
||||
$mail->Subject = $mail_subject;
|
||||
$mail->Body = $mail_body;
|
||||
$mail->AddAddress($row['email'], $row['firstname'] . ' ' . $row['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo);
|
||||
standard_error('errorsendingmail', $row["email"]);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
$db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent`=\'1\'
|
||||
WHERE `customerid`=\'' . (int)$row['customerid'] . '\'');
|
||||
}
|
||||
}
|
||||
|
||||
// Warn the admins at 90% traffic-usage
|
||||
|
||||
$result = $db->query("SELECT `a`.*,
|
||||
(SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`)
|
||||
FROM `" . TABLE_PANEL_TRAFFIC_ADMINS . "` `t`
|
||||
WHERE `t`.`adminid` = `a`.`adminid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "'
|
||||
AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total`
|
||||
FROM `" . TABLE_PANEL_ADMINS . "` `a` WHERE `a`.`reportsent` = '0'");
|
||||
|
||||
while($row = $db->fetch_array($result))
|
||||
{
|
||||
if(isset($row['traffic'])
|
||||
&& $row['traffic'] > 0
|
||||
&& (($row['traffic_used_total'] * 100) / $row['traffic']) >= 90)
|
||||
{
|
||||
$replace_arr = array(
|
||||
'NAME' => $row['name'],
|
||||
'TRAFFIC' => $row['traffic'],
|
||||
'TRAFFICUSED' => $row['traffic_used_total']
|
||||
);
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $row['def_language'] . "'");
|
||||
|
||||
if($lngfile !== NULL)
|
||||
{
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "`
|
||||
WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'");
|
||||
$langfile = $lngfile['file'];
|
||||
}
|
||||
|
||||
include_once makeCorrectFile($pathtophpfiles . '/' . $langfile);
|
||||
|
||||
// Get mail templates from database; the ones from 'admin' are fetched for fallback
|
||||
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_subject'");
|
||||
$mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr));
|
||||
$result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "`
|
||||
WHERE `adminid`='" . (int)$row['adminid'] . "'
|
||||
AND `language`='" . $db->escape($row['def_language']) . "'
|
||||
AND `templategroup`='mails'
|
||||
AND `varname`='trafficninetypercent_mailbody'");
|
||||
$mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr));
|
||||
$mail->From = $row['email'];
|
||||
$mail->FromName = $row['firstname'] . " " . $row['name'];
|
||||
$mail->Subject = $mail_subject;
|
||||
$mail->Body = $mail_body;
|
||||
$mail->AddAddress($row['email'], $row['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo);
|
||||
standard_error('errorsendingmail', $row["email"]);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
$db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `reportsent`='1'
|
||||
WHERE `customerid`='" . (int)$row['adminid'] . "'");
|
||||
}
|
||||
|
||||
// Another month, let's build our report
|
||||
|
||||
if(date('d') == '01')
|
||||
{
|
||||
$mail_subject = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name'];
|
||||
$mail_body = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name'] . "\n";
|
||||
$mail_body.= '---------------------------------------------' . "\n";
|
||||
$mail_body.= 'Loginname Traffic used (Percent) | Traffic available' . "\n";
|
||||
$customers = $db->query("SELECT `c`.*,
|
||||
(SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`)
|
||||
FROM `" . TABLE_PANEL_TRAFFIC . "` `t`
|
||||
WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "'
|
||||
AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total`
|
||||
FROM `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `c`.`adminid` = '" . $row['adminid'] . "'");
|
||||
|
||||
while($customer = $db->fetch_array($customers))
|
||||
{
|
||||
$mail_body.= sprintf('%-15s', $customer['loginname']) . ' ' . sprintf('%-12d', $customer['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($customer['traffic_used_total'] * 100) / $customer['traffic'])) . ') ' . $customer['traffic'] . "\n";
|
||||
}
|
||||
|
||||
$mail_body.= '---------------------------------------------' . "\n";
|
||||
$mail_body.= sprintf('%-15s', $row['loginname']) . ' ' . sprintf('%-12d', $row['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($row['traffic_used_total'] * 100) / $row['traffic'])) . ') ' . $row['traffic'] . "\n";
|
||||
$mail->From = $row['email'];
|
||||
$mail->FromName = $row['name'];
|
||||
$mail->Subject = $mail_subject;
|
||||
$mail->Body = $mail_body;
|
||||
$mail->AddAddress($row['email'], $row['name']);
|
||||
|
||||
if(!$mail->Send())
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo);
|
||||
standard_error('errorsendingmail', $row["email"]);
|
||||
}
|
||||
|
||||
$mail->ClearAddresses();
|
||||
}
|
||||
}
|
||||
|
||||
// Another month, reset the reportstatus
|
||||
|
||||
if(date('d') == '01')
|
||||
{
|
||||
$db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent` = \'0\';');
|
||||
$db->query('UPDATE `' . TABLE_PANEL_ADMINS . '` SET `reportsent` = \'0\';');
|
||||
}
|
||||
|
||||
$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP()
|
||||
WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_report_run\' ');
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,66 +1,66 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Support-Tickets - Reset used tickets - Cronfile
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @package Panel
|
||||
* @version CVS: $Id: cron_used_tickets_reset.php 2244 2008-10-06 11:01:18Z EleRas $
|
||||
* @link http://www.nutime.de/
|
||||
* @since File available since Release 1.2.20
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* RESET USED TICKETS COUNTER
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Used tickets reset run started...' . "\n");
|
||||
$now = time();
|
||||
$cycle = $settings['ticket']['reset_cycle'];
|
||||
|
||||
if($cycle == '0'
|
||||
|| ($cycle == '1' && (date("j", $now) == '1' || date("j", $now) == '7' || date("j", $now) == '14' || date("j", $now) == '21'))
|
||||
|| ($cycle == '2' && date("j", $now) == '1')
|
||||
|| ($cycle == '3' && date("dm", $now) == '0101'))
|
||||
{
|
||||
fwrite($debugHandler, 'Resetting customers used ticket counter' . "\n");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `tickets_used` = '0'");
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Support-Tickets - Reset used tickets - Cronfile
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version. This program is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @package Panel
|
||||
* @version CVS: $Id: cron_used_tickets_reset.php 2244 2008-10-06 11:01:18Z EleRas $
|
||||
* @link http://www.nutime.de/
|
||||
* @since File available since Release 1.2.20
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile! (Note: This "header" also establishes a mysql-root-
|
||||
* connection, if you don't need it, see for the header in cron_tasks.php)
|
||||
*/
|
||||
|
||||
$needrootdb = false;
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
/**
|
||||
* RESET USED TICKETS COUNTER
|
||||
*/
|
||||
|
||||
fwrite($debugHandler, 'Used tickets reset run started...' . "\n");
|
||||
$now = time();
|
||||
$cycle = $settings['ticket']['reset_cycle'];
|
||||
|
||||
if($cycle == '0'
|
||||
|| ($cycle == '1' && (date("j", $now) == '1' || date("j", $now) == '7' || date("j", $now) == '14' || date("j", $now) == '21'))
|
||||
|| ($cycle == '2' && date("j", $now) == '1')
|
||||
|| ($cycle == '3' && date("dm", $now) == '0101'))
|
||||
{
|
||||
fwrite($debugHandler, 'Resetting customers used ticket counter' . "\n");
|
||||
$db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `tickets_used` = '0'");
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
@@ -1,140 +1,140 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: install_configs.php 2698 2009-04-13 20:25:59Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
require ($pathtophpfiles . '/lib/configfiles_index.inc.php');
|
||||
require ($pathtophpfiles . '/lib/userdata.inc.php');
|
||||
|
||||
$replace_arr = Array(
|
||||
'<SQL_UNPRIVILEGED_USER>' => $sql['user'],
|
||||
'<SQL_UNPRIVILEGED_PASSWORD>' => $sql['password'],
|
||||
'<SQL_DB>' => $sql['db'],
|
||||
'<SQL_HOST>' => $sql['host'],
|
||||
'<SERVERNAME>' => $settings['system']['hostname'],
|
||||
'<SERVERIP>' => $settings['system']['ipaddress'],
|
||||
'<NAMESERVERS>' => $settings['system']['nameservers'],
|
||||
'<VIRTUAL_MAILBOX_BASE>' => $settings['system']['vmail_homedir'],
|
||||
'<VIRTUAL_UID_MAPS>' => $settings['system']['vmail_uid'],
|
||||
'<VIRTUAL_GID_MAPS>' => $settings['system']['vmail_gid'],
|
||||
'<AWSTATS_PATH>' => $settings['system']['awstats_path'],
|
||||
'<SSLPROTOCOLS>' => ($settings['system']['use_ssl'] == '1') ? 'imaps pop3s' : ''
|
||||
);
|
||||
|
||||
$cli_params = $_SERVER['argv'];
|
||||
unset($cli_params[0]);
|
||||
|
||||
if(isset($cli_params[1]) && $cli_params[1] != '' && isset($configfiles[$cli_params[1]]))
|
||||
{
|
||||
$distribution = $cli_params[1];
|
||||
unset($cli_params[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'No valid distribution specified!' . "\n";
|
||||
}
|
||||
|
||||
foreach($cli_params as $cli_param)
|
||||
{
|
||||
list($service, $daemon) = explode('=', $cli_param);
|
||||
echo $service . ' ' . $daemon;
|
||||
if(isset($configfiles[$distribution]['services'][$service]) && isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon]))
|
||||
{
|
||||
foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon] as $action => $value)
|
||||
{
|
||||
if(substr($action, 0, 8) == 'commands')
|
||||
{
|
||||
if(is_array($value))
|
||||
{
|
||||
echo '=== COMMANDS BEGIN ===' . "\n";
|
||||
foreach($value as $command)
|
||||
{
|
||||
echo '-- running ' . $command . "\n";
|
||||
if(in_array('reallydoit', $cli_params))
|
||||
{
|
||||
passthru($command);
|
||||
}
|
||||
}
|
||||
echo '==== COMMANDS END ====' . "\n";
|
||||
}
|
||||
}
|
||||
elseif(substr($action, 0, 5) == 'files')
|
||||
{
|
||||
if(is_array($value))
|
||||
{
|
||||
echo '=== FILES BEGIN ===' . "\n";
|
||||
while(list($filename, $realname) = each($value))
|
||||
{
|
||||
$file_content = file_get_contents('./templates/misc/configfiles/' . $distribution . '/' . $daemon . '/' . $filename);
|
||||
$file_content = strtr($file_content, $replace_arr);
|
||||
echo '-- filename: ' . $realname . "\n";
|
||||
echo '-- filecontent:' . "\n" . '---' . "\n";
|
||||
echo $file_content;
|
||||
echo '---' . "\n";
|
||||
if(in_array('reallydoit', $cli_params))
|
||||
{
|
||||
if(file_exists($realname))
|
||||
{
|
||||
exec('mv ' . escapeshellarg($realname) . ' ' . escapeshellarg($realname) . '.orig');
|
||||
}
|
||||
file_put_contents($realname, $file_content);
|
||||
}
|
||||
}
|
||||
echo '==== FILES END ====' . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'])
|
||||
&& is_array($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart']))
|
||||
{
|
||||
echo '=== RESTART BEGIN ===' . "\n";
|
||||
foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'] as $command)
|
||||
{
|
||||
echo '-- running ' . $command . "\n";
|
||||
if(in_array('reallydoit', $cli_params))
|
||||
{
|
||||
passthru($command);
|
||||
}
|
||||
}
|
||||
echo '==== RESTART END ====' . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the SysCP project.
|
||||
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
||||
*
|
||||
* For the full copyright and license information, please view the COPYING
|
||||
* file that was distributed with this source code. You can also view the
|
||||
* COPYING file online at http://files.syscp.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright (c) the authors
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
* @license GPLv2 http://files.syscp.org/misc/COPYING.txt
|
||||
* @package System
|
||||
* @version $Id: install_configs.php 2698 2009-04-13 20:25:59Z flo $
|
||||
*/
|
||||
|
||||
/**
|
||||
* STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT.
|
||||
* When using this "header" you have to change $lockFilename for your needs.
|
||||
* Don't forget to also copy the footer which closes database connections
|
||||
* and the lockfile!
|
||||
*/
|
||||
|
||||
include (dirname(__FILE__) . '/../lib/cron_init.php');
|
||||
|
||||
/**
|
||||
* END REDUNDANT CODE (CRONSCRIPT "HEADER")
|
||||
*/
|
||||
|
||||
require ($pathtophpfiles . '/lib/configfiles_index.inc.php');
|
||||
require ($pathtophpfiles . '/lib/userdata.inc.php');
|
||||
|
||||
$replace_arr = Array(
|
||||
'<SQL_UNPRIVILEGED_USER>' => $sql['user'],
|
||||
'<SQL_UNPRIVILEGED_PASSWORD>' => $sql['password'],
|
||||
'<SQL_DB>' => $sql['db'],
|
||||
'<SQL_HOST>' => $sql['host'],
|
||||
'<SERVERNAME>' => $settings['system']['hostname'],
|
||||
'<SERVERIP>' => $settings['system']['ipaddress'],
|
||||
'<NAMESERVERS>' => $settings['system']['nameservers'],
|
||||
'<VIRTUAL_MAILBOX_BASE>' => $settings['system']['vmail_homedir'],
|
||||
'<VIRTUAL_UID_MAPS>' => $settings['system']['vmail_uid'],
|
||||
'<VIRTUAL_GID_MAPS>' => $settings['system']['vmail_gid'],
|
||||
'<AWSTATS_PATH>' => $settings['system']['awstats_path'],
|
||||
'<SSLPROTOCOLS>' => ($settings['system']['use_ssl'] == '1') ? 'imaps pop3s' : ''
|
||||
);
|
||||
|
||||
$cli_params = $_SERVER['argv'];
|
||||
unset($cli_params[0]);
|
||||
|
||||
if(isset($cli_params[1]) && $cli_params[1] != '' && isset($configfiles[$cli_params[1]]))
|
||||
{
|
||||
$distribution = $cli_params[1];
|
||||
unset($cli_params[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'No valid distribution specified!' . "\n";
|
||||
}
|
||||
|
||||
foreach($cli_params as $cli_param)
|
||||
{
|
||||
list($service, $daemon) = explode('=', $cli_param);
|
||||
echo $service . ' ' . $daemon;
|
||||
if(isset($configfiles[$distribution]['services'][$service]) && isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon]))
|
||||
{
|
||||
foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon] as $action => $value)
|
||||
{
|
||||
if(substr($action, 0, 8) == 'commands')
|
||||
{
|
||||
if(is_array($value))
|
||||
{
|
||||
echo '=== COMMANDS BEGIN ===' . "\n";
|
||||
foreach($value as $command)
|
||||
{
|
||||
echo '-- running ' . $command . "\n";
|
||||
if(in_array('reallydoit', $cli_params))
|
||||
{
|
||||
passthru($command);
|
||||
}
|
||||
}
|
||||
echo '==== COMMANDS END ====' . "\n";
|
||||
}
|
||||
}
|
||||
elseif(substr($action, 0, 5) == 'files')
|
||||
{
|
||||
if(is_array($value))
|
||||
{
|
||||
echo '=== FILES BEGIN ===' . "\n";
|
||||
while(list($filename, $realname) = each($value))
|
||||
{
|
||||
$file_content = file_get_contents('./templates/misc/configfiles/' . $distribution . '/' . $daemon . '/' . $filename);
|
||||
$file_content = strtr($file_content, $replace_arr);
|
||||
echo '-- filename: ' . $realname . "\n";
|
||||
echo '-- filecontent:' . "\n" . '---' . "\n";
|
||||
echo $file_content;
|
||||
echo '---' . "\n";
|
||||
if(in_array('reallydoit', $cli_params))
|
||||
{
|
||||
if(file_exists($realname))
|
||||
{
|
||||
exec('mv ' . escapeshellarg($realname) . ' ' . escapeshellarg($realname) . '.orig');
|
||||
}
|
||||
file_put_contents($realname, $file_content);
|
||||
}
|
||||
}
|
||||
echo '==== FILES END ====' . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'])
|
||||
&& is_array($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart']))
|
||||
{
|
||||
echo '=== RESTART BEGIN ===' . "\n";
|
||||
foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'] as $command)
|
||||
{
|
||||
echo '-- running ' . $command . "\n";
|
||||
if(in_array('reallydoit', $cli_params))
|
||||
{
|
||||
passthru($command);
|
||||
}
|
||||
}
|
||||
echo '==== RESTART END ====' . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* STARTING CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
include ($pathtophpfiles . '/lib/cron_shutdown.php');
|
||||
|
||||
/**
|
||||
* END CRONSCRIPT FOOTER
|
||||
*/
|
||||
|
||||
?>
|
||||
@@ -1,35 +1,35 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="3"><b><img src="images/title.gif" alt="" /> {$lng['admin']['admins']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="<if $settings['ticket']['enabled'] == 1 >7<else>6</if>">{$searchcode}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['login']['username']}<br />{$arrowcode['loginname']}</td>
|
||||
<td class="field_display">{$lng['customer']['name']}<br />{$arrowcode['name']}</td>
|
||||
<td class="field_display">{$lng['admin']['customers']}<br />{$lng['admin']['domains']}</td>
|
||||
<td class="field_display">{$lng['customer']['diskspace']}<br />{$lng['customer']['traffic']}</td>
|
||||
<td class="field_display">{$lng['customer']['mysqls']}<br />{$lng['customer']['ftps']}</td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_display">{$lng['customer']['tickets']}</td></if>
|
||||
<td class="field_display">{$lng['customer']['emails']}<br />{$lng['customer']['subdomains']}</td>
|
||||
<td class="field_display">{$lng['customer']['accounts']}<br />{$lng['customer']['forwarders']}</td>
|
||||
<td class="field_display">{$lng['admin']['deactivated']}<br />{$arrowcode['deactivated']}</td>
|
||||
<td class="field_display_search">{$sortcode}</td>
|
||||
</tr>
|
||||
$admins
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="10" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="<if $settings['ticket']['enabled'] == 1 >10<else>9</if>"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['admin_add']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="3"><b><img src="images/title.gif" alt="" /> {$lng['admin']['admins']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="<if $settings['ticket']['enabled'] == 1 >7<else>6</if>">{$searchcode}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['login']['username']}<br />{$arrowcode['loginname']}</td>
|
||||
<td class="field_display">{$lng['customer']['name']}<br />{$arrowcode['name']}</td>
|
||||
<td class="field_display">{$lng['admin']['customers']}<br />{$lng['admin']['domains']}</td>
|
||||
<td class="field_display">{$lng['customer']['diskspace']}<br />{$lng['customer']['traffic']}</td>
|
||||
<td class="field_display">{$lng['customer']['mysqls']}<br />{$lng['customer']['ftps']}</td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_display">{$lng['customer']['tickets']}</td></if>
|
||||
<td class="field_display">{$lng['customer']['emails']}<br />{$lng['customer']['subdomains']}</td>
|
||||
<td class="field_display">{$lng['customer']['accounts']}<br />{$lng['customer']['forwarders']}</td>
|
||||
<td class="field_display">{$lng['admin']['deactivated']}<br />{$arrowcode['deactivated']}</td>
|
||||
<td class="field_display_search">{$sortcode}</td>
|
||||
</tr>
|
||||
$admins
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="10" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="<if $settings['ticket']['enabled'] == 1 >10<else>9</if>"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['admin_add']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,141 +1,141 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['admin_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="loginname" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="admin_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['serversettings']['ipaddress']['title']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ipaddress">$ipaddress</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['change_serversettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$change_serversettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="customers" value="0" maxlength="9" /> {$customers_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$customers_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="domains" value="0" maxlength="9" /> {$domains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$domains_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['caneditphpsettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditphpsettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="0" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="0" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="0" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="0" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="0" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="0" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="0" maxlength="9" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="0" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="0" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="0" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
<if $settings['aps']['aps_active'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['canmanagepackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$can_manage_aps_packages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="0" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['admin_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="loginname" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="admin_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['serversettings']['ipaddress']['title']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ipaddress">$ipaddress</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['change_serversettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$change_serversettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="customers" value="0" maxlength="9" /> {$customers_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$customers_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="domains" value="0" maxlength="9" /> {$domains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$domains_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['caneditphpsettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditphpsettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="0" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="0" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="0" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="0" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="0" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="0" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="0" maxlength="9" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="0" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="0" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="0" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
<if $settings['aps']['aps_active'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['canmanagepackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$can_manage_aps_packages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="0" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,12 +1,12 @@
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left<if $highlight_row>_red</if>"><if $row['adminid'] != $userinfo['userid']><a href="$filename?s=$s&page=$page&action=su&id={$row['adminid']}" target="_blank">{$row['loginname']}</a></if><if $row['adminid'] == $userinfo['userid']>{$row['loginname']}</if></td>
|
||||
<td class="field_name">{$row['name']}</td>
|
||||
<td class="field_name"><b><font color="green">{$row['customers_used']}</font></b>/<b><font color="#FD6204">{$row['customers']}</font></b><br /><b><font color="green">{$row['domains_used']}</font></b>/<b><font color="#FD6204">{$row['domains']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['diskspace_used']}</font></b>/<b><font color="#FD6204">{$row['diskspace']}</font></b> (MB)<br /><b><font color="green">{$row['traffic_used']}</font></b>/<b><font color="#FD6204">{$row['traffic']}</font></b> (GB)</td>
|
||||
<td class="field_name"><b><font color="green">{$row['mysqls_used']}</font></b>/<b><font color="#FD6204">{$row['mysqls']}</font></b><br /><b><font color="green">{$row['ftps_used']}</font></b>/<b><font color="#FD6204">{$row['ftps']}</font></b></td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_name"><b><font color="green">{$row['tickets_used']}</font></b>/<b><font color="#FD6204">{$row['tickets']}</font></b></td></if>
|
||||
<td class="field_name"><b><font color="green">{$row['emails_used']}</font></b>/<b><font color="#FD6204">{$row['emails']}</font></b><br /><b><font color="green">{$row['subdomains_used']}</font></b>/<b><font color="#FD6204">{$row['subdomains']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['email_accounts_used']}</font></b>/<b><font color="#FD6204">{$row['email_accounts']}</font></b><br /><b><font color="green">{$row['email_forwarders_used']}</font></b>/<b><font color="#FD6204">{$row['email_forwarders']}</font></b></td>
|
||||
<td class="field_name" style=" text-align: center; "><if $row['deactivated'] == '1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['adminid']}">{$lng['panel']['edit']}</a><br /><a href="$filename?s=$s&page=$page&action=delete&id={$row['adminid']}">{$lng['panel']['delete']}</a></td>
|
||||
</tr>
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left<if $highlight_row>_red</if>"><if $row['adminid'] != $userinfo['userid']><a href="$filename?s=$s&page=$page&action=su&id={$row['adminid']}" target="_blank">{$row['loginname']}</a></if><if $row['adminid'] == $userinfo['userid']>{$row['loginname']}</if></td>
|
||||
<td class="field_name">{$row['name']}</td>
|
||||
<td class="field_name"><b><font color="green">{$row['customers_used']}</font></b>/<b><font color="#FD6204">{$row['customers']}</font></b><br /><b><font color="green">{$row['domains_used']}</font></b>/<b><font color="#FD6204">{$row['domains']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['diskspace_used']}</font></b>/<b><font color="#FD6204">{$row['diskspace']}</font></b> (MB)<br /><b><font color="green">{$row['traffic_used']}</font></b>/<b><font color="#FD6204">{$row['traffic']}</font></b> (GB)</td>
|
||||
<td class="field_name"><b><font color="green">{$row['mysqls_used']}</font></b>/<b><font color="#FD6204">{$row['mysqls']}</font></b><br /><b><font color="green">{$row['ftps_used']}</font></b>/<b><font color="#FD6204">{$row['ftps']}</font></b></td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_name"><b><font color="green">{$row['tickets_used']}</font></b>/<b><font color="#FD6204">{$row['tickets']}</font></b></td></if>
|
||||
<td class="field_name"><b><font color="green">{$row['emails_used']}</font></b>/<b><font color="#FD6204">{$row['emails']}</font></b><br /><b><font color="green">{$row['subdomains_used']}</font></b>/<b><font color="#FD6204">{$row['subdomains']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['email_accounts_used']}</font></b>/<b><font color="#FD6204">{$row['email_accounts']}</font></b><br /><b><font color="green">{$row['email_forwarders_used']}</font></b>/<b><font color="#FD6204">{$row['email_forwarders']}</font></b></td>
|
||||
<td class="field_name" style=" text-align: center; "><if $row['deactivated'] == '1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['adminid']}">{$lng['panel']['edit']}</a><br /><a href="$filename?s=$s&page=$page&action=delete&id={$row['adminid']}">{$lng['panel']['delete']}</a></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,169 +1,169 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<if $override_billing_data_edit === true><input type="hidden" name="override_billing_data_edit" value="1" /></if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['admin_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['loginname']}</td>
|
||||
</tr>
|
||||
<if $result['adminid'] == $userinfo['userid']>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['error']['youcanteditallfieldsofyourself']}</td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['deactivated_user']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$deactivated</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="admin_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="{$result['name']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="{$result['email']}" /></td>
|
||||
</tr>
|
||||
<if $result['adminid'] == $userinfo['userid']>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['error']['youcanteditallfieldsofyourself']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $result['adminid'] != $userinfo['userid']>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['serversettings']['ipaddress']['title']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ipaddress">$ipaddress</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['change_serversettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$change_serversettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="customers" value="{$result['customers']}" maxlength="9" /> {$customers_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$customers_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="domains" value="{$result['domains']}" maxlength="9" /> {$domains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$domains_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['caneditphpsettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditphpsettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="{$result['diskspace']}" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="{$result['traffic']}" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="{$result['subdomains']}" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="{$result['emails']}" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="{$result['email_accounts']}" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="{$result['email_forwarders']}" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="{$result['email_quota']}" maxlength="3" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="{$result['ftps']}" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="{$result['tickets']}" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="{$result['mysqls']}" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $settings['aps']['aps_active'] == '1' && ($result['adminid'] != $userinfo['userid'])>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['canmanagepackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$can_manage_aps_packages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="{$result['aps_packages']}" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="main_field_name">*: {$lng['admin']['valuemandatory']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">**: {$lng['admin']['valuemandatorycompany']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<if $override_billing_data_edit === true><input type="hidden" name="override_billing_data_edit" value="1" /></if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['admin_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['loginname']}</td>
|
||||
</tr>
|
||||
<if $result['adminid'] == $userinfo['userid']>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['error']['youcanteditallfieldsofyourself']}</td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['deactivated_user']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$deactivated</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="admin_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="{$result['name']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="{$result['email']}" /></td>
|
||||
</tr>
|
||||
<if $result['adminid'] == $userinfo['userid']>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['error']['youcanteditallfieldsofyourself']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $result['adminid'] != $userinfo['userid']>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['serversettings']['ipaddress']['title']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ipaddress">$ipaddress</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['change_serversettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$change_serversettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="customers" value="{$result['customers']}" maxlength="9" /> {$customers_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customers_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$customers_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="domains" value="{$result['domains']}" maxlength="9" /> {$domains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domains_see_all']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$domains_see_all</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['caneditphpsettings']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditphpsettings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="{$result['diskspace']}" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="{$result['traffic']}" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="{$result['subdomains']}" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="{$result['emails']}" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="{$result['email_accounts']}" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="{$result['email_forwarders']}" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="{$result['email_quota']}" maxlength="3" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="{$result['ftps']}" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="{$result['tickets']}" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="{$result['mysqls']}" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $settings['aps']['aps_active'] == '1' && ($result['adminid'] != $userinfo['userid'])>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['canmanagepackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$can_manage_aps_packages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="{$result['aps_packages']}" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="main_field_name">*: {$lng['admin']['valuemandatory']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">**: {$lng['admin']['valuemandatorycompany']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,23 +1,23 @@
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable" style="border: solid 1px #B7B7B7;">
|
||||
<tr>
|
||||
<td width="30" valign="top" style="padding: 15px; background-color: #EBECF5;"><img src="images/info.png" alt="" /></td>
|
||||
<td>
|
||||
$Message
|
||||
<form name="continue" action="$filename" method="post">
|
||||
<input type="submit" name="answer" value="{$lng['panel']['yes']}" />
|
||||
<input type="hidden" name="save" value="1"/>
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="action" value="$action"/>
|
||||
$Ids
|
||||
</form>
|
||||
<br/>
|
||||
<form name="back" action="$filename" method="post">
|
||||
<input type="submit" name="submit" value="{$lng['panel']['no']}" />
|
||||
<input type="hidden" name="action" value="$action"/>
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
</form>
|
||||
<br/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable" style="border: solid 1px #B7B7B7;">
|
||||
<tr>
|
||||
<td width="30" valign="top" style="padding: 15px; background-color: #EBECF5;"><img src="images/info.png" alt="" /></td>
|
||||
<td>
|
||||
$Message
|
||||
<form name="continue" action="$filename" method="post">
|
||||
<input type="submit" name="answer" value="{$lng['panel']['yes']}" />
|
||||
<input type="hidden" name="save" value="1"/>
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="action" value="$action"/>
|
||||
$Ids
|
||||
</form>
|
||||
<br/>
|
||||
<form name="back" action="$filename" method="post">
|
||||
<input type="submit" name="submit" value="{$lng['panel']['no']}" />
|
||||
<input type="hidden" name="action" value="$action"/>
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
</form>
|
||||
<br/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$footer
|
||||
$footer
|
||||
|
||||
@@ -1 +1 @@
|
||||
$header
|
||||
$header
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable" style="border: solid 1px #B7B7B7;">
|
||||
<tr>
|
||||
<td width="30" valign="top" style="padding: 15px; background-color: #EBECF5;"><img src="images/info.png" alt="" /></td>
|
||||
<td>$Message</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable" style="border: solid 1px #B7B7B7;">
|
||||
<tr>
|
||||
<td width="30" valign="top" style="padding: 15px; background-color: #EBECF5;"><img src="images/info.png" alt="" /></td>
|
||||
<td>$Message</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
|
||||
@@ -1,51 +1,51 @@
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['aps']['specialoptions']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top" width="15%"><strong>{$lng['aps']['statistics']}</strong></td>
|
||||
<td class="field_name">$Statistics</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="3"><b><img src="images/title.gif" alt="" /> {$lng['aps']['manageinstances']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['aps']['packagenameandstatus']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['stopinstall']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['uninstall']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_install']}</strong></td>
|
||||
</tr>
|
||||
$InstancesInstall
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_task_active']}</strong></td>
|
||||
</tr>
|
||||
$InstancesTaskActive
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_success']}</strong></td>
|
||||
</tr>
|
||||
$InstancesSuccess
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_error']}</strong></td>
|
||||
</tr>
|
||||
$InstancesError
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_uninstall']}</strong></td>
|
||||
</tr>
|
||||
$InstancesUninstall
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="3"><input class="bottom" type="reset" value="{$lng['panel']['reset']}"/> <input class="bottom" type="submit" name="save" value="{$lng['panel']['save']}"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['aps']['specialoptions']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top" width="15%"><strong>{$lng['aps']['statistics']}</strong></td>
|
||||
<td class="field_name">$Statistics</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="3"><b><img src="images/title.gif" alt="" /> {$lng['aps']['manageinstances']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['aps']['packagenameandstatus']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['stopinstall']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['uninstall']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_install']}</strong></td>
|
||||
</tr>
|
||||
$InstancesInstall
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_task_active']}</strong></td>
|
||||
</tr>
|
||||
$InstancesTaskActive
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_success']}</strong></td>
|
||||
</tr>
|
||||
$InstancesSuccess
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_error']}</strong></td>
|
||||
</tr>
|
||||
$InstancesError
|
||||
<tr>
|
||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_uninstall']}</strong></td>
|
||||
</tr>
|
||||
$InstancesUninstall
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="3"><input class="bottom" type="reset" value="{$lng['panel']['reset']}"/> <input class="bottom" type="submit" name="save" value="{$lng['panel']['save']}"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<td class="field_name" style="text-align:center;"></td>
|
||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
||||
<tr>
|
||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<td class="field_name" style="text-align:center;"></td>
|
||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
||||
</tr>
|
||||
@@ -1,5 +1,5 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<td class="field_name" style="text-align:center;">$Stop</td>
|
||||
<td class="field_name" style="text-align:center;"></td>
|
||||
<tr>
|
||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<td class="field_name" style="text-align:center;">$Stop</td>
|
||||
<td class="field_name" style="text-align:center;"></td>
|
||||
</tr>
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="3"><strong>{$Row['Name']} {$Row['Version']} (Release {$Row['Release']})</strong></td>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="3"><strong>{$Row['Name']} {$Row['Version']} (Release {$Row['Release']})</strong></td>
|
||||
</tr>
|
||||
@@ -1,5 +1,5 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<td class="field_name" style="text-align:center;"></td>
|
||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
||||
<tr>
|
||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<td class="field_name" style="text-align:center;"></td>
|
||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
||||
</tr>
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<tr>
|
||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
</tr>
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
<tr>
|
||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
||||
</tr>
|
||||
@@ -1,76 +1,76 @@
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['aps']['specialoptions']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top" width="15%"><strong>{$lng['admin']['phpsettings']['actions']}</strong></td>
|
||||
<td class="field_name">
|
||||
<form method="post" action="$filename" style="float:left;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="downloadallpackages" value="{$lng['aps']['downloadallpackages']}" />
|
||||
</form>
|
||||
<form method="post" action="$filename" style="float:left; padding-left: 2em;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="updateallpackages" value="{$lng['aps']['updateallpackages']}" />
|
||||
</form>
|
||||
<br/>
|
||||
<br/>
|
||||
<form method="post" action="$filename" style="float:left;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="enablenewest" value="{$lng['aps']['enablenewest']}" />
|
||||
</form>
|
||||
<form method="post" action="$filename" style="float:left; padding-left: 2em;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="removeunused" value="{$lng['aps']['removeunused']}" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top"><strong>{$lng['aps']['statistics']}</strong></td>
|
||||
<td class="field_name">$Statistics</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="6"><b><img src="images/title.gif" alt="" /> {$lng['aps']['managepackages']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" width="30%">{$lng['aps']['packagenameandversion']}</td>
|
||||
<td class="field_display">{$lng['ticket']['status']}</td>
|
||||
<td class="field_display">{$lng['aps']['installations']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['lock']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['unlock']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['remove']}</td>
|
||||
</tr>
|
||||
$Packages
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="3">{$lng['aps']['allpackages']}</td>
|
||||
<td class="field_display" width="7%" style="text-align:center;"><input type="radio" name="all" value="lock"/></td>
|
||||
<td class="field_display" width="7%" style="text-align:center;"><input type="radio" name="all" value="unlock"/></td>
|
||||
<td class="field_display" width="7%" style="text-align:center;"><input type="radio" name="all" value="remove"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="6"><input class="bottom" type="reset" value="{$lng['panel']['reset']}"/> <input class="bottom" type="submit" name="save" value="{$lng['panel']['save']}"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['aps']['specialoptions']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top" width="15%"><strong>{$lng['admin']['phpsettings']['actions']}</strong></td>
|
||||
<td class="field_name">
|
||||
<form method="post" action="$filename" style="float:left;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="downloadallpackages" value="{$lng['aps']['downloadallpackages']}" />
|
||||
</form>
|
||||
<form method="post" action="$filename" style="float:left; padding-left: 2em;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="updateallpackages" value="{$lng['aps']['updateallpackages']}" />
|
||||
</form>
|
||||
<br/>
|
||||
<br/>
|
||||
<form method="post" action="$filename" style="float:left;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="enablenewest" value="{$lng['aps']['enablenewest']}" />
|
||||
</form>
|
||||
<form method="post" action="$filename" style="float:left; padding-left: 2em;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="removeunused" value="{$lng['aps']['removeunused']}" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top"><strong>{$lng['aps']['statistics']}</strong></td>
|
||||
<td class="field_name">$Statistics</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="6"><b><img src="images/title.gif" alt="" /> {$lng['aps']['managepackages']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" width="30%">{$lng['aps']['packagenameandversion']}</td>
|
||||
<td class="field_display">{$lng['ticket']['status']}</td>
|
||||
<td class="field_display">{$lng['aps']['installations']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['lock']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['unlock']}</td>
|
||||
<td class="field_display" width="7%">{$lng['aps']['remove']}</td>
|
||||
</tr>
|
||||
$Packages
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="3">{$lng['aps']['allpackages']}</td>
|
||||
<td class="field_display" width="7%" style="text-align:center;"><input type="radio" name="all" value="lock"/></td>
|
||||
<td class="field_display" width="7%" style="text-align:center;"><input type="radio" name="all" value="unlock"/></td>
|
||||
<td class="field_display" width="7%" style="text-align:center;"><input type="radio" name="all" value="remove"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="6"><input class="bottom" type="reset" value="{$lng['panel']['reset']}"/> <input class="bottom" type="submit" name="save" value="{$lng['panel']['save']}"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$Row2['Version']} (Release {$Row2['Release']})</td>
|
||||
<td class="field_name"><if $Row2['Status'] == PACKAGE_LOCKED>{$lng['aps']['package_locked']}</if><if $Row2['Status'] == PACKAGE_ENABLED>{$lng['aps']['package_enabled']}</if></td>
|
||||
<td class="field_name">{$Installations}</td>
|
||||
<td class="field_name" style="text-align:center;">$Lock</td>
|
||||
<td class="field_name" style="text-align:center;">$Unlock</td>
|
||||
<td class="field_name" style="text-align:center;"><if $Installations == 0>$Remove</if></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$Row2['Version']} (Release {$Row2['Release']})</td>
|
||||
<td class="field_name"><if $Row2['Status'] == PACKAGE_LOCKED>{$lng['aps']['package_locked']}</if><if $Row2['Status'] == PACKAGE_ENABLED>{$lng['aps']['package_enabled']}</if></td>
|
||||
<td class="field_name">{$Installations}</td>
|
||||
<td class="field_name" style="text-align:center;">$Lock</td>
|
||||
<td class="field_name" style="text-align:center;">$Unlock</td>
|
||||
<td class="field_name" style="text-align:center;"><if $Installations == 0>$Remove</if></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['aps']['specialoptions']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top" width="15%"><strong>{$lng['admin']['phpsettings']['actions']}</strong></td>
|
||||
<td class="field_name">
|
||||
<form method="post" action="$filename" style="float:left;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="downloadallpackages" value="{$lng['aps']['downloadallpackages']}" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['aps']['specialoptions']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top" width="15%"><strong>{$lng['admin']['phpsettings']['actions']}</strong></td>
|
||||
<td class="field_name">
|
||||
<form method="post" action="$filename" style="float:left;">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<input type="submit" name="downloadallpackages" value="{$lng['aps']['downloadallpackages']}" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<br/>
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td class="title" colspan="6"><strong>{$Row['Name']}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title" colspan="6"><strong>{$Row['Name']}</strong></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<form method="post" action="$filename" enctype="multipart/form-data">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['aps']['upload']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" nowrap="nowrap">{$lng['aps']['upload_description']} <a href="http://www.apsstandard.org/" target="_blank">http://www.apsstandard.org/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_display" nowrap="nowrap"><br/>$Output</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm"><input class="bottom" type="submit" value="{$lng['aps']['upload']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<form method="post" action="$filename" enctype="multipart/form-data">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['aps']['upload']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" nowrap="nowrap">{$lng['aps']['upload_description']} <a href="http://www.apsstandard.org/" target="_blank">http://www.apsstandard.org/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_display" nowrap="nowrap"><br/>$Output</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm"><input class="bottom" type="submit" value="{$lng['aps']['upload']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
@@ -1,10 +1,10 @@
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_40">
|
||||
<tr>
|
||||
<td class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['configfiles']['serverconfiguration']}</b> [<a href="$filename?page=configfiles&s=$s">{$lng['admin']['configfiles']['wizard']}</a>]</td>
|
||||
</tr>
|
||||
$distributions
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_40">
|
||||
<tr>
|
||||
<td class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['configfiles']['serverconfiguration']}</b> [<a href="$filename?page=configfiles&s=$s">{$lng['admin']['configfiles']['wizard']}</a>]</td>
|
||||
</tr>
|
||||
$distributions
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,2 +1,2 @@
|
||||
» <a href="$filename?page=$page&distribution=$distribution_name&service=$service_name&daemon=$daemon_name&s=$s">{$daemon_details['label']}</a>
|
||||
» <a href="$filename?page=$page&distribution=$distribution_name&service=$service_name&daemon=$daemon_name&s=$s">{$daemon_details['label']}</a>
|
||||
<br />
|
||||
@@ -1,12 +1,12 @@
|
||||
<tr>
|
||||
<td class="field_display_border_left">
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center">
|
||||
<tr>
|
||||
<td class="maintitle">» {$distribution_details['label']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">$services</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<tr>
|
||||
<td class="field_display_border_left">
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center">
|
||||
<tr>
|
||||
<td class="maintitle">» {$distribution_details['label']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">$services</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1,3 +1,3 @@
|
||||
» {$service_details['label']}
|
||||
<br />
|
||||
» {$service_details['label']}
|
||||
<br />
|
||||
$daemons
|
||||
@@ -1,15 +1,15 @@
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle"><b><img src="images/title.gif" alt="" /> {$configfiles[$distribution]['label']} » {$configfiles[$distribution]['services'][$service]['label']} » {$configfiles[$distribution]['services'][$service]['daemons'][$daemon]['label']}</b> [<a href="$filename?s=$s&page=$page&distribution=$distribution&service=$service">{$lng['panel']['back']}</a>]</td>
|
||||
</tr>
|
||||
{$configpage}
|
||||
<if $restart != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['configfiles']['restart']}<br /><br /><textarea class="textarea_border" rows="3" cols="70" readonly="readonly">$restart</textarea></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle"><b><img src="images/title.gif" alt="" /> {$configfiles[$distribution]['label']} » {$configfiles[$distribution]['services'][$service]['label']} » {$configfiles[$distribution]['services'][$service]['daemons'][$daemon]['label']}</b> [<a href="$filename?s=$s&page=$page&distribution=$distribution&service=$service">{$lng['panel']['back']}</a>]</td>
|
||||
</tr>
|
||||
{$configpage}
|
||||
<if $restart != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['configfiles']['restart']}<br /><br /><textarea class="textarea_border" rows="3" cols="70" readonly="readonly">$restart</textarea></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['configfiles']['commands']}<br /><br /><textarea class="textarea_border" rows="6" cols="70" readonly="readonly">$commands</textarea></td>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['configfiles']['commands']}<br /><br /><textarea class="textarea_border" rows="6" cols="70" readonly="readonly">$commands</textarea></td>
|
||||
</tr>
|
||||
@@ -1 +1 @@
|
||||
<p><b>$realname:</b><br /><textarea class="textarea_border" rows="<if $numbrows <= 8 >{$numbrows}</if><if 8 < $numbrows >8</if>" cols="70" readonly="readonly">$file_content</textarea></p>
|
||||
<p><b>$realname:</b><br /><textarea class="textarea_border" rows="<if $numbrows <= 8 >{$numbrows}</if><if 8 < $numbrows >8</if>" cols="70" readonly="readonly">$file_content</textarea></p>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['configfiles']['files']}<br />{$files}</td>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['configfiles']['files']}<br />{$files}</td>
|
||||
</tr>
|
||||
@@ -1,28 +1,28 @@
|
||||
$header
|
||||
<form method="get" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_40">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['configfiles']['serverconfiguration']}</b> [<a href="$filename?page=overview&s=$s">{$lng['admin']['configfiles']['overview']}</a>]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name"><b>{$lng['admin']['configfiles']['distribution']}:</b></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $distribution != ''><input type="hidden" name="distribution" value="$distribution"/><a href="$filename?s=$s&page=$page">{$configfiles[$distribution]['label']}</a><else><select name="distribution" onchange="javascript: window.location.href='$filename?s=$s&page=$page&distribution=' + this.options[ this.selectedIndex ].value;"><option value="choose">{$lng['admin']['configfiles']['choosedistribution']}</option>{$distributions_select}</select></if></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name"><b>{$lng['admin']['configfiles']['service']}:</b></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $service != ''><input type="hidden" name="service" value="$service"/><a href="$filename?s=$s&page=$page&distribution=$distribution">{$configfiles[$distribution]['services'][$service]['label']}</a><else><select name="service" onchange="javascript: window.location.href='$filename?s=$s&page=$page&distribution=$distribution&service=' + this.options[ this.selectedIndex ].value;"><option value="choose">{$lng['admin']['configfiles']['chooseservice']}</option>{$services_select}</select></if></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name"><b>{$lng['admin']['configfiles']['daemon']}:</b></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="daemon" onchange="javascript: window.location.href='$filename?s=$s&page=$page&distribution=$distribution&service=$service&daemon=' + this.options[ this.selectedIndex ].value;"><option value="choose">{$lng['admin']['configfiles']['choosedaemon']}</option>{$daemons_select}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input class="bottom" type="submit" value="{$lng['panel']['next']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="get" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_40">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['configfiles']['serverconfiguration']}</b> [<a href="$filename?page=overview&s=$s">{$lng['admin']['configfiles']['overview']}</a>]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name"><b>{$lng['admin']['configfiles']['distribution']}:</b></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $distribution != ''><input type="hidden" name="distribution" value="$distribution"/><a href="$filename?s=$s&page=$page">{$configfiles[$distribution]['label']}</a><else><select name="distribution" onchange="javascript: window.location.href='$filename?s=$s&page=$page&distribution=' + this.options[ this.selectedIndex ].value;"><option value="choose">{$lng['admin']['configfiles']['choosedistribution']}</option>{$distributions_select}</select></if></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name"><b>{$lng['admin']['configfiles']['service']}:</b></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $service != ''><input type="hidden" name="service" value="$service"/><a href="$filename?s=$s&page=$page&distribution=$distribution">{$configfiles[$distribution]['services'][$service]['label']}</a><else><select name="service" onchange="javascript: window.location.href='$filename?s=$s&page=$page&distribution=$distribution&service=' + this.options[ this.selectedIndex ].value;"><option value="choose">{$lng['admin']['configfiles']['chooseservice']}</option>{$services_select}</select></if></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name"><b>{$lng['admin']['configfiles']['daemon']}:</b></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="daemon" onchange="javascript: window.location.href='$filename?s=$s&page=$page&distribution=$distribution&service=$service&daemon=' + this.options[ this.selectedIndex ].value;"><option value="choose">{$lng['admin']['configfiles']['choosedaemon']}</option>{$daemons_select}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input class="bottom" type="submit" value="{$lng['panel']['next']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,43 +1,43 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="3" ><b><img src="images/title.gif" alt="" /> {$lng['admin']['customers']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="<if $settings['ticket']['enabled'] == 1 >8<else>7</if>">{$searchcode}</td>
|
||||
</tr>
|
||||
<if ($userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1') && 15 < $userinfo['customers_used']>
|
||||
<tr>
|
||||
<td colspan="11" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['customer_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['login']['username']}<br />{$arrowcode['c.loginname']}</td>
|
||||
<td class="field_display">{$lng['admin']['admin']}<br />{$arrowcode['a.loginname']}</td>
|
||||
<td class="field_display">{$lng['customer']['name']} {$arrowcode['c.name']}<br />{$lng['customer']['firstname']} {$arrowcode['c.firstname']}</td>
|
||||
<td class="field_display">{$lng['customer']['domains']}</td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_display">{$lng['customer']['tickets']}</td></if>
|
||||
<td class="field_display">{$lng['customer']['diskspace']}<br />{$lng['customer']['traffic']}</td>
|
||||
<td class="field_display">{$lng['customer']['mysqls']}<br />{$lng['customer']['ftps']}</td>
|
||||
<td class="field_display">{$lng['customer']['emails']}<br />{$lng['customer']['subdomains']}</td>
|
||||
<td class="field_display">{$lng['customer']['accounts']}<br />{$lng['customer']['forwarders']}</td>
|
||||
<td class="field_display">{$lng['admin']['deactivated']}<br />{$lng['invoice']['active']}</td>
|
||||
<td class="field_display_search">{$sortcode}</td>
|
||||
</tr>
|
||||
$customers
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="11" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1'>
|
||||
<tr>
|
||||
<td colspan="<if $settings['ticket']['enabled'] == 1 >11<else>10</if>" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['customer_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="3" ><b><img src="images/title.gif" alt="" /> {$lng['admin']['customers']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="<if $settings['ticket']['enabled'] == 1 >8<else>7</if>">{$searchcode}</td>
|
||||
</tr>
|
||||
<if ($userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1') && 15 < $userinfo['customers_used']>
|
||||
<tr>
|
||||
<td colspan="11" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['customer_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['login']['username']}<br />{$arrowcode['c.loginname']}</td>
|
||||
<td class="field_display">{$lng['admin']['admin']}<br />{$arrowcode['a.loginname']}</td>
|
||||
<td class="field_display">{$lng['customer']['name']} {$arrowcode['c.name']}<br />{$lng['customer']['firstname']} {$arrowcode['c.firstname']}</td>
|
||||
<td class="field_display">{$lng['customer']['domains']}</td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_display">{$lng['customer']['tickets']}</td></if>
|
||||
<td class="field_display">{$lng['customer']['diskspace']}<br />{$lng['customer']['traffic']}</td>
|
||||
<td class="field_display">{$lng['customer']['mysqls']}<br />{$lng['customer']['ftps']}</td>
|
||||
<td class="field_display">{$lng['customer']['emails']}<br />{$lng['customer']['subdomains']}</td>
|
||||
<td class="field_display">{$lng['customer']['accounts']}<br />{$lng['customer']['forwarders']}</td>
|
||||
<td class="field_display">{$lng['admin']['deactivated']}<br />{$lng['invoice']['active']}</td>
|
||||
<td class="field_display_search">{$sortcode}</td>
|
||||
</tr>
|
||||
$customers
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="11" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $userinfo['customers_used'] < $userinfo['customers'] || $userinfo['customers'] == '-1'>
|
||||
<tr>
|
||||
<td colspan="<if $settings['ticket']['enabled'] == 1 >11<else>10</if>" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['customer_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,175 +1,175 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['customer_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="loginname" value="" maxlength="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['stdsubdomain_add']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$createstdsubdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="customer_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['sendpassword']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$sendpassword</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['firstname']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="firstname" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['company']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="company" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['street']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="street" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['zipcode']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zipcode" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['city']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="city" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['phone']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="phone" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['fax']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="fax" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['customernumber']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="customernumber" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="" maxlength="9" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_imap']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_imap</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_pop3']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_pop3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpenabled']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$phpenabled</td>
|
||||
</tr>
|
||||
<if $settings['aps']['aps_active'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="0" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="main_field_name">*: {$lng['admin']['valuemandatory']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">**: {$lng['admin']['valuemandatorycompany']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['customer_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="loginname" value="" maxlength="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['stdsubdomain_add']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$createstdsubdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="customer_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['sendpassword']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$sendpassword</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['firstname']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="firstname" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['company']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="company" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['street']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="street" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['zipcode']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zipcode" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['city']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="city" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['phone']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="phone" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['fax']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="fax" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['customernumber']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="customernumber" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="" maxlength="9" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_imap']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_imap</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_pop3']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_pop3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpenabled']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$phpenabled</td>
|
||||
</tr>
|
||||
<if $settings['aps']['aps_active'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="0" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="main_field_name">*: {$lng['admin']['valuemandatory']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">**: {$lng['admin']['valuemandatorycompany']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left"><a href="$filename?s=$s&page=$page&action=su&id={$row['customerid']}" target="_blank">{$row['loginname']}</a></td>
|
||||
<td class="field_name">{$row['adminname']}</td>
|
||||
<td class="field_name"><if $row['name'] != '' && $row['firstname'] != ''>{$row['name']}<br />{$row['firstname']}</if><if ($row['name'] == '' || $row['firstname'] == '') && $row['company'] != ''>{$row['company']}</if></td>
|
||||
<td class="field_name"><if $row['domains'] != 0><a href="admin_domains.php?s=$s&page=domains&searchfield=c.loginname&searchtext={$row['loginname']}">{$row['domains']}</a><else>{$row['domains']}</if></td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_name"><span<if $row['tickets'] < $row['tickets_used'] && $row['tickets'] != 'UL'> style="color:red"</if><if $row['tickets_used'] < $row['tickets'] || $row['tickets'] == 'UL'> style="color:green"</if>><b>{$row['tickets_used']}</b>/<b><font color="#FD6204">{$row['tickets']}</font></b></span></td></if>
|
||||
<td class="field_name">
|
||||
<span<if $row['diskspace'] < $row['diskspace_used'] && $row['diskspace'] != 'UL'> style="color:red"</if><if $row['diskspace_used'] < $row['diskspace'] || $row['diskspace'] == 'UL'> style="color:green"</if>><b>{$row['diskspace_used']}</b>/<b><font color="#FD6204">{$row['diskspace']}</font></b></span> (MB)
|
||||
<br />
|
||||
<span<if $row['traffic'] < $row['traffic_used'] && $row['traffic'] != 'UL'> style="color:red"</if><if $row['traffic_used'] < $row['traffic'] || $row['traffic'] == 'UL'> style="color:green"</if>><b>{$row['traffic_used']}</b>/<b><font color="#FD6204">{$row['traffic']}</font></b></span> (GB)
|
||||
</td>
|
||||
<td class="field_name"><b><font color="green">{$row['mysqls_used']}</font></b>/<b><font color="#FD6204">{$row['mysqls']}</font></b><br /><b><font color="green">{$row['ftps_used']}</font></b>/<b><font color="#FD6204">{$row['ftps']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['emails_used']}</font></b>/<b><font color="#FD6204">{$row['emails']}</font></b><br /><b><font color="green">{$row['subdomains_used']}</font></b>/<b><font color="#FD6204">{$row['subdomains']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['email_accounts_used']}</font></b>/<b><font color="#FD6204">{$row['email_accounts']}</font></b><br /><b><font color="green">{$row['email_forwarders_used']}</font></b>/<b><font color="#FD6204">{$row['email_forwarders']}</font></b></td>
|
||||
<td class="field_name" style=" text-align: center; "><if $row['deactivated'] == '1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if><br /><if $row['service_active'] == '1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['customerid']}">{$lng['panel']['edit']}</a> <if $enable_billing_data_edit === true><a href="$filename?s=$s&page=$page&action=delete&id={$row['customerid']}">{$lng['panel']['delete']}</a></if><if $settings['billing']['activate_billing']><br /><a href="$filename?s=$s&page=$page&action=pdf&id={$row['customerid']}" target="_blank">{$lng['customer']['create_contract']}</a></if></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><a href="$filename?s=$s&page=$page&action=su&id={$row['customerid']}" target="_blank">{$row['loginname']}</a></td>
|
||||
<td class="field_name">{$row['adminname']}</td>
|
||||
<td class="field_name"><if $row['name'] != '' && $row['firstname'] != ''>{$row['name']}<br />{$row['firstname']}</if><if ($row['name'] == '' || $row['firstname'] == '') && $row['company'] != ''>{$row['company']}</if></td>
|
||||
<td class="field_name"><if $row['domains'] != 0><a href="admin_domains.php?s=$s&page=domains&searchfield=c.loginname&searchtext={$row['loginname']}">{$row['domains']}</a><else>{$row['domains']}</if></td>
|
||||
<if $settings['ticket']['enabled'] == 1 ><td class="field_name"><span<if $row['tickets'] < $row['tickets_used'] && $row['tickets'] != 'UL'> style="color:red"</if><if $row['tickets_used'] < $row['tickets'] || $row['tickets'] == 'UL'> style="color:green"</if>><b>{$row['tickets_used']}</b>/<b><font color="#FD6204">{$row['tickets']}</font></b></span></td></if>
|
||||
<td class="field_name">
|
||||
<span<if $row['diskspace'] < $row['diskspace_used'] && $row['diskspace'] != 'UL'> style="color:red"</if><if $row['diskspace_used'] < $row['diskspace'] || $row['diskspace'] == 'UL'> style="color:green"</if>><b>{$row['diskspace_used']}</b>/<b><font color="#FD6204">{$row['diskspace']}</font></b></span> (MB)
|
||||
<br />
|
||||
<span<if $row['traffic'] < $row['traffic_used'] && $row['traffic'] != 'UL'> style="color:red"</if><if $row['traffic_used'] < $row['traffic'] || $row['traffic'] == 'UL'> style="color:green"</if>><b>{$row['traffic_used']}</b>/<b><font color="#FD6204">{$row['traffic']}</font></b></span> (GB)
|
||||
</td>
|
||||
<td class="field_name"><b><font color="green">{$row['mysqls_used']}</font></b>/<b><font color="#FD6204">{$row['mysqls']}</font></b><br /><b><font color="green">{$row['ftps_used']}</font></b>/<b><font color="#FD6204">{$row['ftps']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['emails_used']}</font></b>/<b><font color="#FD6204">{$row['emails']}</font></b><br /><b><font color="green">{$row['subdomains_used']}</font></b>/<b><font color="#FD6204">{$row['subdomains']}</font></b></td>
|
||||
<td class="field_name"><b><font color="green">{$row['email_accounts_used']}</font></b>/<b><font color="#FD6204">{$row['email_accounts']}</font></b><br /><b><font color="green">{$row['email_forwarders_used']}</font></b>/<b><font color="#FD6204">{$row['email_forwarders']}</font></b></td>
|
||||
<td class="field_name" style=" text-align: center; "><if $row['deactivated'] == '1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if><br /><if $row['service_active'] == '1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['customerid']}">{$lng['panel']['edit']}</a> <if $enable_billing_data_edit === true><a href="$filename?s=$s&page=$page&action=delete&id={$row['customerid']}">{$lng['panel']['delete']}</a></if><if $settings['billing']['activate_billing']><br /><a href="$filename?s=$s&page=$page&action=pdf&id={$row['customerid']}" target="_blank">{$lng['customer']['create_contract']}</a></if></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,181 +1,181 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<if $override_billing_data_edit === true><input type="hidden" name="override_billing_data_edit" value="1" /></if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['customer_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['loginname']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['documentroot']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['documentroot']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['stdsubdomain_add']}?<br />({$result['loginname']}.{$settings['system']['hostname']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$createstdsubdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['deactivated_user']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$deactivated</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="customer_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="{$result['name']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['firstname']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="firstname" value="{$result['firstname']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['company']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="company" value="{$result['company']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['street']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="street" value="{$result['street']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['zipcode']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zipcode" value="{$result['zipcode']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['city']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="city" value="{$result['city']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['phone']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="phone" value="{$result['phone']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['fax']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="fax" value="{$result['fax']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="{$result['email']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['customernumber']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="customernumber" value="{$result['customernumber']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="{$result['diskspace']}" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="{$result['traffic']}" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="{$result['subdomains']}" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="{$result['emails']}" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="{$result['email_accounts']}" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="{$result['email_forwarders']}" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}): *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="{$result['email_quota']}" maxlength="9" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_imap']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_imap</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_pop3']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_pop3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="{$result['ftps']}" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="{$result['tickets']}" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="{$result['mysqls']}" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpenabled']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$phpenabled</td>
|
||||
</tr>
|
||||
<if $settings['aps']['aps_active'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="{$result['aps_packages']}" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="main_field_name">*: {$lng['admin']['valuemandatory']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">**: {$lng['admin']['valuemandatorycompany']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<if $override_billing_data_edit === true><input type="hidden" name="override_billing_data_edit" value="1" /></if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['customer_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['accountdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['username']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['loginname']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['documentroot']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['documentroot']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['stdsubdomain_add']}?<br />({$result['loginname']}.{$settings['system']['hostname']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$createstdsubdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['deactivated_user']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$deactivated</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="customer_password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['contactdata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['name']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="{$result['name']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['firstname']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="firstname" value="{$result['firstname']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['company']}: **</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="company" value="{$result['company']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['street']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="street" value="{$result['street']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['zipcode']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zipcode" value="{$result['zipcode']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['city']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="city" value="{$result['city']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['phone']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="phone" value="{$result['phone']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['fax']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="fax" value="{$result['fax']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="email" value="{$result['email']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['customernumber']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="customernumber" value="{$result['customernumber']}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['servicedata']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['diskspace']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="diskspace" value="{$result['diskspace']}" maxlength="6" /> {$diskspace_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['traffic']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="traffic" value="{$result['traffic']}" maxlength="3" /> {$traffic_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['subdomains']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="subdomains" value="{$result['subdomains']}" maxlength="9" /> {$subdomains_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['emails']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="emails" value="{$result['emails']}" maxlength="9" /> {$emails_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['accounts']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_accounts" value="{$result['email_accounts']}" maxlength="9" /> {$email_accounts_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['forwarders']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_forwarders" value="{$result['email_forwarders']}" maxlength="9" /> {$email_forwarders_ul}</td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}): *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="email_quota" value="{$result['email_quota']}" maxlength="9" /> {$email_quota_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_imap']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_imap</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['email_pop3']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_pop3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['ftps']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="ftps" value="{$result['ftps']}" maxlength="9" /> {$ftps_ul}</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['tickets']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="tickets" value="{$result['tickets']}" maxlength="9" /> {$tickets_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['customer']['mysqls']}: *</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="mysqls" value="{$result['mysqls']}" maxlength="9" /> {$mysqls_ul}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpenabled']}?</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$phpenabled</td>
|
||||
</tr>
|
||||
<if $settings['aps']['aps_active'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="textul" name="number_of_aps_packages" value="{$result['aps_packages']}" maxlength="9" /> {$number_of_aps_packages_ul}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="main_field_name">*: {$lng['admin']['valuemandatory']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">**: {$lng['admin']['valuemandatorycompany']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,41 +1,41 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left"><b><img src="images/title.gif" alt="" /> {$lng['admin']['domains']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="4">{$searchcode}</td>
|
||||
</tr>
|
||||
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && 15 < $count && 0 < $countcustomers >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['domain_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['domains']['domainname']} {$arrowcode['d.domain']}</td>
|
||||
<td class="field_display">{$lng['admin']['ipsandports']['ip']} {$arrowcode['ip.ip']} : {$lng['admin']['ipsandports']['port']} {$arrowcode['ip.port']}</td>
|
||||
<td class="field_display">{$lng['admin']['customer']} {$arrowcode['c.loginname']}</td>
|
||||
<td class="field_display_search" colspan="2">{$sortcode}</td>
|
||||
</tr>
|
||||
$domains
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && $countcustomers !=0 >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['domain_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $countcustomers == 0 >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="admin_customers.php?s=$s&page=customers&action=add">{$lng['admin']['domain_nocustomeraddingavailable']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left"><b><img src="images/title.gif" alt="" /> {$lng['admin']['domains']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="4">{$searchcode}</td>
|
||||
</tr>
|
||||
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && 15 < $count && 0 < $countcustomers >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['domain_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['domains']['domainname']} {$arrowcode['d.domain']}</td>
|
||||
<td class="field_display">{$lng['admin']['ipsandports']['ip']} {$arrowcode['ip.ip']} : {$lng['admin']['ipsandports']['port']} {$arrowcode['ip.port']}</td>
|
||||
<td class="field_display">{$lng['admin']['customer']} {$arrowcode['c.loginname']}</td>
|
||||
<td class="field_display_search" colspan="2">{$sortcode}</td>
|
||||
</tr>
|
||||
$domains
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && $countcustomers !=0 >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['domain_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $countcustomers == 0 >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="admin_customers.php?s=$s&page=customers&action=add">{$lng['admin']['domain_nocustomeraddingavailable']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,186 +1,186 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['domain_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['domains']['domainsettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Domain:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="domain" value="" size="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customer']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="customerid">$customers</select></td>
|
||||
</tr>
|
||||
<if $userinfo['customers_see_all'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['admin']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="adminid">$admins</select></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['aliasdomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="alias">$domains</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domain_edit']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$add_date}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" name="registration_date" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['webserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DocumentRoot:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="documentroot" value="" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="ipandport">$ipsandports</select></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == '1'>
|
||||
<if $ssl_ipsandports != ''>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL Redirect:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl_redirect</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ssl_ipandport">$ssl_ipsandports</select></td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['panel']['nosslipsavailable']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['wwwserveralias']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$wwwserveralias</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Speciallogfile:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$speciallogfile</td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_noborder" rows="12" cols="60" name="specialsettings"></textarea></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['phpserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">OpenBasedir:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$openbasedir</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Safemode:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$safemode</td>
|
||||
</tr>
|
||||
<if (int)$settings['system']['mod_fcgid'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpsettings']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="phpsettingid">$phpconfigs</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_starter" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_maxrequests" value=""/></td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['nameserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Nameserver:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isbinddomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Zonefile:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zonefile" value="" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['mailserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['emaildomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isemaildomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['email_only']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['subdomainforemail']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="subcanemaildomain">$subcanemaildomain</select></td>
|
||||
</tr>
|
||||
<if $settings['dkim']['use_dkim'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DomainKeys:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$dkim</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['domain_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['domains']['domainsettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Domain:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="domain" value="" size="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customer']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="customerid">$customers</select></td>
|
||||
</tr>
|
||||
<if $userinfo['customers_see_all'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['admin']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="adminid">$admins</select></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['aliasdomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="alias">$domains</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domain_edit']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$add_date}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" name="registration_date" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['webserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DocumentRoot:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="documentroot" value="" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="ipandport">$ipsandports</select></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == '1'>
|
||||
<if $ssl_ipsandports != ''>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL Redirect:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl_redirect</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ssl_ipandport">$ssl_ipsandports</select></td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['panel']['nosslipsavailable']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['wwwserveralias']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$wwwserveralias</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Speciallogfile:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$speciallogfile</td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_noborder" rows="12" cols="60" name="specialsettings"></textarea></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['phpserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">OpenBasedir:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$openbasedir</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Safemode:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$safemode</td>
|
||||
</tr>
|
||||
<if (int)$settings['system']['mod_fcgid'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpsettings']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="phpsettingid">$phpconfigs</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_starter" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_maxrequests" value=""/></td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['nameserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Nameserver:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isbinddomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Zonefile:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zonefile" value="" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['mailserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['emaildomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isemaildomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['email_only']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['subdomainforemail']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="subcanemaildomain">$subcanemaildomain</select></td>
|
||||
</tr>
|
||||
<if $settings['dkim']['use_dkim'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DomainKeys:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$dkim</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,7 +1,7 @@
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left<if $highlight_row>_red</if>"><font size="-1">{$row['domain']}<if (isset($row['standardsubdomain']) && $row['standardsubdomain'] == $row['id'])> ({$lng['admin']['stdsubdomain']})</if></font></td>
|
||||
<td class="field_name"><font size="-1">{$row['ipandport']}</font></td>
|
||||
<td class="field_name"><font size="-1">{$row['customername']} (<a href="admin_customers.php?s=$s&page=customers&action=su&id={$row['customerid']}" target="_blank">{$row['loginname']}</a>)</font></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a></td>
|
||||
<td class="field_name"><if !(isset($row['domainaliasid']) && $row['domainaliasid'] != 0) && $enable_billing_data_edit === true><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a></if><if isset($row['domainaliasid']) && $row['domainaliasid'] != 0><a href="$filename?s=$s&page=$page&searchfield=d.aliasdomain&searchtext={$row['id']}">{$lng['domains']['hasaliasdomains']}</a></if><if $enable_billing_data_edit !== true>{$lng['panel']['service_still_active']}</if></td>
|
||||
</tr>
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left<if $highlight_row>_red</if>"><font size="-1">{$row['domain']}<if (isset($row['standardsubdomain']) && $row['standardsubdomain'] == $row['id'])> ({$lng['admin']['stdsubdomain']})</if></font></td>
|
||||
<td class="field_name"><font size="-1">{$row['ipandport']}</font></td>
|
||||
<td class="field_name"><font size="-1">{$row['customername']} (<a href="admin_customers.php?s=$s&page=customers&action=su&id={$row['customerid']}" target="_blank">{$row['loginname']}</a>)</font></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a></td>
|
||||
<td class="field_name"><if !(isset($row['domainaliasid']) && $row['domainaliasid'] != 0) && $enable_billing_data_edit === true><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a></if><if isset($row['domainaliasid']) && $row['domainaliasid'] != 0><a href="$filename?s=$s&page=$page&searchfield=d.aliasdomain&searchtext={$row['id']}">{$lng['domains']['hasaliasdomains']}</a></if><if $enable_billing_data_edit !== true>{$lng['panel']['service_still_active']}</if></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,194 +1,194 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<if $override_billing_data_edit === true><input type="hidden" name="override_billing_data_edit" value="1" /></if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['domain_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['domains']['domainsettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Domain:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['domain']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customer']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $settings['panel']['allow_domain_change_customer'] == '1'><select class="dropdown_noborder" name="customerid">$customers</select><else>{$result['customername']}</if></td>
|
||||
</tr>
|
||||
<if $userinfo['customers_see_all'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['admin']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $settings['panel']['allow_domain_change_admin'] == '1'><select class="dropdown_noborder" name="adminid">$admins</select><else>{$result['adminname']}</if></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $alias_check == '0'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['aliasdomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="alias">$domains</select></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['associated_with_domain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$subdomains} {$lng['customer']['subdomains']}, {$alias_check} {$lng['domains']['aliasdomains']}, {$emails} {$lng['customer']['emails']}, {$email_accounts} {$lng['customer']['accounts']}, {$email_forwarders} {$lng['customer']['forwarders']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domain_edit']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['add_date']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" name="registration_date" value="{$result['registration_date']}" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['webserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DocumentRoot:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="documentroot" value="{$result['documentroot']}" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ipandport">$ipsandports</select></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == 1>
|
||||
<if $ssl_ipsandports != ''>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL Redirect:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl_redirect</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ssl_ipandport">$ssl_ipsandports</select></td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['panel']['nosslipsavailable']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['wwwserveralias']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$wwwserveralias</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Speciallogfile:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>$speciallogfile</b></td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="specialsettings">{$result['specialsettings']}</textarea></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['phpserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">OpenBasedir:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$openbasedir</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Safemode:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$safemode</td>
|
||||
</tr>
|
||||
<if (int)$settings['system']['mod_fcgid'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpsettings']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="phpsettingid">$phpconfigs</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_starter" value="<if (int)$result['mod_fcgid_starter'] != - 1>{$result['mod_fcgid_starter']}</if>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_maxrequests" value="<if (int)$result['mod_fcgid_maxrequests'] != - 1>{$result['mod_fcgid_maxrequests']}</if>"/></td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['nameserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Nameserver:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isbinddomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Zonefile:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zonefile" value="{$result['zonefile']}" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['mailserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['emaildomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isemaildomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['email_only']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['subdomainforemail']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="subcanemaildomain">$subcanemaildomain</select></td>
|
||||
</tr>
|
||||
<if $settings['dkim']['use_dkim'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DomainKeys:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$dkim</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<if $override_billing_data_edit === true><input type="hidden" name="override_billing_data_edit" value="1" /></if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['domain_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['domains']['domainsettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Domain:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['domain']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['customer']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $settings['panel']['allow_domain_change_customer'] == '1'><select class="dropdown_noborder" name="customerid">$customers</select><else>{$result['customername']}</if></td>
|
||||
</tr>
|
||||
<if $userinfo['customers_see_all'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['admin']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><if $settings['panel']['allow_domain_change_admin'] == '1'><select class="dropdown_noborder" name="adminid">$admins</select><else>{$result['adminname']}</if></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $alias_check == '0'>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['aliasdomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="alias">$domains</select></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['associated_with_domain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$subdomains} {$lng['customer']['subdomains']}, {$alias_check} {$lng['domains']['aliasdomains']}, {$emails} {$lng['customer']['emails']}, {$email_accounts} {$lng['customer']['accounts']}, {$email_forwarders} {$lng['customer']['forwarders']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['domain_edit']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$caneditdomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$result['add_date']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" name="registration_date" value="{$result['registration_date']}" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['webserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DocumentRoot:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="documentroot" value="{$result['documentroot']}" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ipandport">$ipsandports</select></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == 1>
|
||||
<if $ssl_ipsandports != ''>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL Redirect:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$ssl_redirect</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">SSL IP/Port:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="ssl_ipandport">$ssl_ipsandports</select></td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="main_field_name" colspan="2">{$lng['panel']['nosslipsavailable']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['wwwserveralias']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$wwwserveralias</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Speciallogfile:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>$speciallogfile</b></td>
|
||||
</tr>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font></td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="specialsettings">{$result['specialsettings']}</textarea></td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1' || $userinfo['caneditphpsettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['phpserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">OpenBasedir:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$openbasedir</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Safemode:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$safemode</td>
|
||||
</tr>
|
||||
<if (int)$settings['system']['mod_fcgid'] == 1>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['phpsettings']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="phpsettingid">$phpconfigs</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_starter" value="<if (int)$result['mod_fcgid_starter'] != - 1>{$result['mod_fcgid_starter']}</if>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input size="60" name="mod_fcgid_maxrequests" value="<if (int)$result['mod_fcgid_maxrequests'] != - 1>{$result['mod_fcgid_maxrequests']}</if>"/></td>
|
||||
</tr>
|
||||
</if>
|
||||
</if>
|
||||
<if $userinfo['change_serversettings'] == '1'>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['nameserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Nameserver:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isbinddomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">Zonefile:<br />({$lng['panel']['emptyfordefault']})</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="zonefile" value="{$result['zonefile']}" size="60" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['mailserversettings']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['emaildomain']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$isemaildomain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['email_only']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$email_only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['subdomainforemail']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="subcanemaildomain">$subcanemaildomain</select></td>
|
||||
</tr>
|
||||
<if $settings['dkim']['use_dkim'] == '1'>
|
||||
<tr>
|
||||
<td class="main_field_name">DomainKeys:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$dkim</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,23 +1,23 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="none" rowspan="4"><img src="images/changelanguage.gif" alt="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['menue']['main']['changelanguage']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['menue']['main']['changelanguage']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="none" rowspan="4"><img src="images/changelanguage.gif" alt="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['menue']['main']['changelanguage']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="def_language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['menue']['main']['changelanguage']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,31 +1,31 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="none" rowspan="6"><img src="images/logininternal.gif" alt="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['menue']['main']['changepassword']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['changepassword']['old_password']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="old_password" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['changepassword']['new_password']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="new_password" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['changepassword']['new_password_confirm']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="new_password_confirm" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['menue']['main']['changepassword']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="none" rowspan="6"><img src="images/logininternal.gif" alt="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['menue']['main']['changepassword']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['changepassword']['old_password']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="old_password" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['changepassword']['new_password']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="new_password" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['changepassword']['new_password_confirm']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="password" name="new_password_confirm" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['menue']['main']['changepassword']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,154 +1,154 @@
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ressourcedetails']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['customers']}:</td>
|
||||
<td class="field_display">{$overview['number_customers']} ({$userinfo['customers']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['domains']}:</td>
|
||||
<td class="field_display">{$overview['number_domains']} ({$userinfo['domains']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['subdomains']}:</td>
|
||||
<td class="field_display">{$overview['subdomains_used']} ({$userinfo['subdomains_used']}/{$userinfo['subdomains']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['diskspace']}:</td>
|
||||
<td class="field_display">{$overview['diskspace_used']} ({$userinfo['diskspace_used']}/{$userinfo['diskspace']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['traffic']}:</td>
|
||||
<td class="field_display">{$overview['traffic_used']} ({$userinfo['traffic_used']}/{$userinfo['traffic']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['mysqls']}:</td>
|
||||
<td class="field_display">{$overview['mysqls_used']} ({$userinfo['mysqls_used']}/{$userinfo['mysqls']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['emails']}:</td>
|
||||
<td class="field_display">{$overview['emails_used']} ({$userinfo['emails_used']}/{$userinfo['emails']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['accounts']}:</td>
|
||||
<td class="field_display">{$overview['email_accounts_used']} ({$userinfo['email_accounts_used']}/{$userinfo['email_accounts']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['forwarders']}:</td>
|
||||
<td class="field_display">{$overview['email_forwarders_used']} ({$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['email_quota']}:</td>
|
||||
<td class="field_display">{$overview['email_quota_used']} ({$userinfo['email_quota_used']}/{$userinfo['email_quota']})</td>
|
||||
</tr>
|
||||
<if (int)$settings['aps']['aps_active'] == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="field_display">{$overview['aps_packages_used']} ({$userinfo['aps_packages_used']}/{$userinfo['aps_packages']})</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $settings['ticket']['enabled'] == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['ftps']}:</td>
|
||||
<td class="field_display">{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_nobordersmall">{$lng['customer']['tickets']}:</td>
|
||||
<td class="field_display_nobordersmall">{$overview['tickets_used']} ({$userinfo['tickets_used']}/{$userinfo['tickets']})</td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="field_name_nobordersmall">{$lng['customer']['ftps']}:</td>
|
||||
<td class="field_display_nobordersmall">{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if 0 < $awaitingtickets && $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="2"><b>{$awaitingtickets_text}</b></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['systemdetails']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['serversoftware']}:</td>
|
||||
<td class="field_display">{$_SERVER['SERVER_SOFTWARE']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['phpversion']}:</td>
|
||||
<td class="field_display">$phpversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['phpmemorylimit']}:</td>
|
||||
<td class="field_display">$phpmemorylimit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['mysqlserverversion']}:</td>
|
||||
<td class="field_display">$mysqlserverversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['mysqlclientversion']}:</td>
|
||||
<td class="field_display">$mysqlclientversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['webserverinterface']}:</td>
|
||||
<td class="field_display">$webserverinterface</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['sysload']}:</td>
|
||||
<td class="field_display">$load</td>
|
||||
</tr>
|
||||
<if $showkernel == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">Kernel:</td>
|
||||
<td class="field_display">$kernel</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $uptime != ''>
|
||||
<tr>
|
||||
<td class="field_name_nobordersmall">Uptime:</td>
|
||||
<td class="field_display_nobordersmall">$uptime</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['syscpdetails']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['cronlastrun']}:</td>
|
||||
<td class="field_display">$cronlastrun</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['trafficlastrun']}:</td>
|
||||
<td class="field_display">$trafficlastrun</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['archivelastrun']}:</td>
|
||||
<td class="field_display">$archivelastrun</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['installedversion']}:</td>
|
||||
<td class="field_display">{$version}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['latestversion']}:</td>
|
||||
<td class="field_display"><a href="$lookfornewversion_link">$lookfornewversion_lable</a></td>
|
||||
</tr>
|
||||
<if $lookfornewversion_addinfo != ''>
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="2">$lookfornewversion_addinfo</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['thankyou']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="2"><b>{$lng['admin']['contributors']}:</b><br />Florian Lippert, Tim Zielosko, Martin Burchert, Ron Brand, Michael Duergner, Wolfgang Ziegler, Patrick Brueckner, Florian Aders, Luca Longinotti, Manuel Bernhardt, Janky Jay, Thomas Peterhans, Benjamin Börngen-Schmidt, Philipp Haefelfinger, Michael Kaufmannk, Sven Skrabal</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ressourcedetails']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['customers']}:</td>
|
||||
<td class="field_display">{$overview['number_customers']} ({$userinfo['customers']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['domains']}:</td>
|
||||
<td class="field_display">{$overview['number_domains']} ({$userinfo['domains']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['subdomains']}:</td>
|
||||
<td class="field_display">{$overview['subdomains_used']} ({$userinfo['subdomains_used']}/{$userinfo['subdomains']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['diskspace']}:</td>
|
||||
<td class="field_display">{$overview['diskspace_used']} ({$userinfo['diskspace_used']}/{$userinfo['diskspace']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['traffic']}:</td>
|
||||
<td class="field_display">{$overview['traffic_used']} ({$userinfo['traffic_used']}/{$userinfo['traffic']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['mysqls']}:</td>
|
||||
<td class="field_display">{$overview['mysqls_used']} ({$userinfo['mysqls_used']}/{$userinfo['mysqls']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['emails']}:</td>
|
||||
<td class="field_display">{$overview['emails_used']} ({$userinfo['emails_used']}/{$userinfo['emails']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['accounts']}:</td>
|
||||
<td class="field_display">{$overview['email_accounts_used']} ({$userinfo['email_accounts_used']}/{$userinfo['email_accounts']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['forwarders']}:</td>
|
||||
<td class="field_display">{$overview['email_forwarders_used']} ({$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['email_quota']}:</td>
|
||||
<td class="field_display">{$overview['email_quota_used']} ({$userinfo['email_quota_used']}/{$userinfo['email_quota']})</td>
|
||||
</tr>
|
||||
<if (int)$settings['aps']['aps_active'] == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['aps']['numberofapspackages']}:</td>
|
||||
<td class="field_display">{$overview['aps_packages_used']} ({$userinfo['aps_packages_used']}/{$userinfo['aps_packages']})</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $settings['ticket']['enabled'] == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['customer']['ftps']}:</td>
|
||||
<td class="field_display">{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_nobordersmall">{$lng['customer']['tickets']}:</td>
|
||||
<td class="field_display_nobordersmall">{$overview['tickets_used']} ({$userinfo['tickets_used']}/{$userinfo['tickets']})</td>
|
||||
</tr>
|
||||
<else>
|
||||
<tr>
|
||||
<td class="field_name_nobordersmall">{$lng['customer']['ftps']}:</td>
|
||||
<td class="field_display_nobordersmall">{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if 0 < $awaitingtickets && $settings['ticket']['enabled'] == 1 >
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="2"><b>{$awaitingtickets_text}</b></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['systemdetails']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['serversoftware']}:</td>
|
||||
<td class="field_display">{$_SERVER['SERVER_SOFTWARE']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['phpversion']}:</td>
|
||||
<td class="field_display">$phpversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['phpmemorylimit']}:</td>
|
||||
<td class="field_display">$phpmemorylimit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['mysqlserverversion']}:</td>
|
||||
<td class="field_display">$mysqlserverversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['mysqlclientversion']}:</td>
|
||||
<td class="field_display">$mysqlclientversion</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['webserverinterface']}:</td>
|
||||
<td class="field_display">$webserverinterface</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['sysload']}:</td>
|
||||
<td class="field_display">$load</td>
|
||||
</tr>
|
||||
<if $showkernel == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">Kernel:</td>
|
||||
<td class="field_display">$kernel</td>
|
||||
</tr>
|
||||
</if>
|
||||
<if $uptime != ''>
|
||||
<tr>
|
||||
<td class="field_name_nobordersmall">Uptime:</td>
|
||||
<td class="field_display_nobordersmall">$uptime</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['syscpdetails']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['cronlastrun']}:</td>
|
||||
<td class="field_display">$cronlastrun</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['trafficlastrun']}:</td>
|
||||
<td class="field_display">$trafficlastrun</td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == 1>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['archivelastrun']}:</td>
|
||||
<td class="field_display">$archivelastrun</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['installedversion']}:</td>
|
||||
<td class="field_display">{$version}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left">{$lng['admin']['latestversion']}:</td>
|
||||
<td class="field_display"><a href="$lookfornewversion_link">$lookfornewversion_lable</a></td>
|
||||
</tr>
|
||||
<if $lookfornewversion_addinfo != ''>
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="2">$lookfornewversion_addinfo</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['thankyou']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="2"><b>{$lng['admin']['contributors']}:</b><br />Florian Lippert, Tim Zielosko, Martin Burchert, Ron Brand, Michael Duergner, Wolfgang Ziegler, Patrick Brueckner, Florian Aders, Luca Longinotti, Manuel Bernhardt, Janky Jay, Thomas Peterhans, Benjamin Börngen-Schmidt, Philipp Haefelfinger, Michael Kaufmannk, Sven Skrabal</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="5"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['ipsandports']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="5">{$searchcode}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['ipsandports']['ip']} {$arrowcode['ip']} : {$lng['admin']['ipsandports']['port']} {$arrowcode['port']}</td>
|
||||
<td class="field_display">Listen</td>
|
||||
<td class="field_display">NameVirtualHost</td>
|
||||
<td class="field_display">vHost-Container</td>
|
||||
<td class="field_display">Specialsettings</td>
|
||||
<td class="field_display">ServerName</td>
|
||||
<td class="field_display">SSL</td>
|
||||
<td class="field_display_search" colspan="2">{$sortcode}</td>
|
||||
</tr>
|
||||
$ipsandports
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="9" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="9"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['ipsandports']['add']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="5"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['ipsandports']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="5">{$searchcode}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['ipsandports']['ip']} {$arrowcode['ip']} : {$lng['admin']['ipsandports']['port']} {$arrowcode['port']}</td>
|
||||
<td class="field_display">Listen</td>
|
||||
<td class="field_display">NameVirtualHost</td>
|
||||
<td class="field_display">vHost-Container</td>
|
||||
<td class="field_display">Specialsettings</td>
|
||||
<td class="field_display">ServerName</td>
|
||||
<td class="field_display">SSL</td>
|
||||
<td class="field_display_search" colspan="2">{$sortcode}</td>
|
||||
</tr>
|
||||
$ipsandports
|
||||
<if $pagingcode != ''>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="9" style=" text-align: center; ">{$pagingcode}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="9"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['ipsandports']['add']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,109 +1,109 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['ipandport']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ip']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ip" value="" size="39" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['port']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="port" value="" size="5" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdefaultconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_listen_statement']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$listen_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$namevirtualhost_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="specialsettings"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer_servername_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ipsandports']['default_vhostconf_domain']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="default_vhostconf_domain"></textarea></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == 1>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverssldomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['enable_ssl']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$enable_ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_cert_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_cert_file" value="" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_key_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_key_file" value="" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_ca_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_ca_file" value="" size="32" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['ipandport']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ip']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ip" value="" size="39" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['port']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="port" value="" size="5" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdefaultconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_listen_statement']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$listen_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$namevirtualhost_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="specialsettings"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer_servername_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ipsandports']['default_vhostconf_domain']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="default_vhostconf_domain"></textarea></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == 1>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverssldomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['enable_ssl']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$enable_ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_cert_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_cert_file" value="" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_key_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_key_file" value="" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_ca_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_ca_file" value="" size="32" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,110 +1,110 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['ipandport']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ip']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ip" value="{$result['ip']}" size="39" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['port']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="port" value="{$result['port']}" size="5" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdefaultconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_listen_statement']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$listen_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$namevirtualhost_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="specialsettings">{$result['specialsettings']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer_servername_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ipsandports']['default_vhostconf_domain']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="default_vhostconf_domain">{$result['default_vhostconf_domain']}</textarea></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == 1>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverssldomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['enable_ssl']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$enable_ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_cert_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_cert_file" value="{$result['ssl_cert_file']}" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_key_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_key_file" value="{$result['ssl_key_file']}" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_ca_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_ca_file" value="{$result['ssl_ca_file']}" size="32" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['ipandport']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ip']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ip" value="{$result['ip']}" size="39" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['port']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="port" value="{$result['port']}" size="5" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdefaultconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_listen_statement']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$listen_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$namevirtualhost_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ownvhostsettings']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="specialsettings">{$result['specialsettings']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}:
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$vhostcontainer_servername_statement</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverdomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['ipsandports']['default_vhostconf_domain']}:<br /><font size="1">{$lng['serversettings']['default_vhostconf']['description']}</font>
|
||||
<if $settings['system']['webserver'] == 'lighttpd'><div style="color:red">{$lng['panel']['not_supported']}lighttpd</div></if>
|
||||
</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="default_vhostconf_domain">{$result['default_vhostconf_domain']}</textarea></td>
|
||||
</tr>
|
||||
<if $settings['system']['use_ssl'] == 1>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['ipsandports']['webserverssldomainconfig']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['enable_ssl']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">$enable_ssl</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_cert_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_cert_file" value="{$result['ssl_cert_file']}" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_key_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_key_file" value="{$result['ssl_key_file']}" size="32" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['ipsandports']['ssl_ca_file']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="ssl_ca_file" value="{$result['ssl_ca_file']}" size="32" /></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left"><font size="-1">{$row['ip']}:{$row['port']}</font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['listen_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['namevirtualhost_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['vhostcontainer']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['specialsettings']!=''>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['vhostcontainer_servername_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['ssl']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a></td>
|
||||
</tr>
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left"><font size="-1">{$row['ip']}:{$row['port']}</font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['listen_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['namevirtualhost_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['vhostcontainer']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['specialsettings']!=''>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['vhostcontainer_servername_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><font size="-1"><if $row['ssl']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></font></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['menue']['logger']['logger']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="2">{$searchcode}</td>
|
||||
</tr>
|
||||
<if 15 < $log_count >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="4"><a href="$filename?page=log&action=truncate&s=$s">{$lng['logger']['truncate']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" width="120">{$lng['logger']['date']} {$arrowcode['date']}</td>
|
||||
<td class="field_display">{$lng['logger']['type']} {$arrowcode['type']}</td>
|
||||
<td class="field_display">{$lng['logger']['user']} {$arrowcode['user']}</td>
|
||||
<td class="field_display_search">{$sortcode}</td>
|
||||
</tr>
|
||||
$log
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="4"><a href="$filename?page=log&action=truncate&s=$s">{$lng['logger']['truncate']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['menue']['logger']['logger']}</b></td>
|
||||
<td class="maintitle_search_right" colspan="2">{$searchcode}</td>
|
||||
</tr>
|
||||
<if 15 < $log_count >
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="4"><a href="$filename?page=log&action=truncate&s=$s">{$lng['logger']['truncate']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" width="120">{$lng['logger']['date']} {$arrowcode['date']}</td>
|
||||
<td class="field_display">{$lng['logger']['type']} {$arrowcode['type']}</td>
|
||||
<td class="field_display">{$lng['logger']['user']} {$arrowcode['user']}</td>
|
||||
<td class="field_display_search">{$sortcode}</td>
|
||||
</tr>
|
||||
$log
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="4"><a href="$filename?page=log&action=truncate&s=$s">{$lng['logger']['truncate']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,3 +1,3 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="4"><strong>{$row['action']}</strong></td>
|
||||
<tr>
|
||||
<td class="field_name_border_left" colspan="4"><strong>{$row['action']}</strong></td>
|
||||
</tr>
|
||||
@@ -1,6 +1,6 @@
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left">{$row['date']}</td>
|
||||
<td class="field_name">{$row['type']}</td>
|
||||
<td class="field_name">{$row['user']}</td>
|
||||
<td class="field_name">{$row['text']}</td>
|
||||
</tr>
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left">{$row['date']}</td>
|
||||
<td class="field_name">{$row['type']}</td>
|
||||
<td class="field_name">{$row['user']}</td>
|
||||
<td class="field_name">{$row['text']}</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="action" value="$action"/>
|
||||
<if 0 < $success >
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"> <b>{$successmessage}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
</if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['message']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['receipient']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="receipient">$receipients</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['subject']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="subject" value="{$lng['admin']['nosubject']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['text']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_noborder" rows="12" cols="80" name="message"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send"/><input class="bottom" type="submit" value="{$lng['panel']['send']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="action" value="$action"/>
|
||||
<if 0 < $success >
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"> <b>{$successmessage}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
</if>
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['message']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['receipient']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select name="receipient">$receipients</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['subject']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="subject" value="{$lng['admin']['nosubject']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['text']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_noborder" rows="12" cols="80" name="message"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send"/><input class="bottom" type="submit" value="{$lng['panel']['send']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="4"><b><img src="images/title.gif" alt="" /> {$lng['menue']['phpsettings']['maintitle']}</b></td>
|
||||
<td class="maintitle_search_right"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['phpsettings']['description']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['activedomains']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['binary']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['file_extensions']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['actions']}</td>
|
||||
</tr>
|
||||
$tablecontent
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="$filename?s=$s&page=$page&action=add">{$lng['admin']['phpsettings']['addnew']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle_search_left" colspan="4"><b><img src="images/title.gif" alt="" /> {$lng['menue']['phpsettings']['maintitle']}</b></td>
|
||||
<td class="maintitle_search_right"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['phpsettings']['description']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['activedomains']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['binary']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['file_extensions']}</td>
|
||||
<td class="field_display">{$lng['admin']['phpsettings']['actions']}</td>
|
||||
</tr>
|
||||
$tablecontent
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="5"><a href="$filename?s=$s&page=$page&action=add">{$lng['admin']['phpsettings']['addnew']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,93 +1,93 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="action" value="add"/>
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['phpsettings']['addsettings']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['description']}</td>
|
||||
<td class="main_field_display"><input name="description" maxlength="50" size="60" type="text" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['binary']}</td>
|
||||
<td class="main_field_display"><input name="binary" maxlength="255" size="60" type="text" value="/usr/bin/php-cgi"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['file_extensions']}<br /><font size="1">{$lng['admin']['phpsettings']['file_extensions_note']}</font></td>
|
||||
<td class="main_field_display"><input name="file_extensions" maxlength="255" size="60" type="text" value="php"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_starter" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_maxrequests" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['phpsettings']['phpinisettings']}</td>
|
||||
<td class="main_field_display" valign="top"><textarea name="phpsettings" cols="80" rows="20">{$result['phpsettings']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="2"><input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['phpconfig']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SAFE_MODE}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['safe_mode']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PEAR_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['pear_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_C}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_c']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_GLOBAL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_global']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TMP_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['tmp_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{DOMAIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['domain']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="action" value="add"/>
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['phpsettings']['addsettings']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['description']}</td>
|
||||
<td class="main_field_display"><input name="description" maxlength="50" size="60" type="text" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['binary']}</td>
|
||||
<td class="main_field_display"><input name="binary" maxlength="255" size="60" type="text" value="/usr/bin/php-cgi"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['file_extensions']}<br /><font size="1">{$lng['admin']['phpsettings']['file_extensions_note']}</font></td>
|
||||
<td class="main_field_display"><input name="file_extensions" maxlength="255" size="60" type="text" value="php"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_starter" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_maxrequests" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['phpsettings']['phpinisettings']}</td>
|
||||
<td class="main_field_display" valign="top"><textarea name="phpsettings" cols="80" rows="20">{$result['phpsettings']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="2"><input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['phpconfig']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SAFE_MODE}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['safe_mode']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PEAR_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['pear_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_C}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_c']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_GLOBAL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_global']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TMP_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['tmp_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{DOMAIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['domain']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,94 +1,94 @@
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="action" value="edit"/>
|
||||
<input type="hidden" name="id" value="$id"/>
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['phpsettings']['editsettings']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['description']}</td>
|
||||
<td class="main_field_display"><input name="description" maxlength="40" size="60" type="text" value="{$result['description']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['binary']}</td>
|
||||
<td class="main_field_display"><input name="binary" maxlength="255" size="60" type="text" value="{$result['binary']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['file_extensions']}<br /><font size="1">{$lng['admin']['phpsettings']['file_extensions_note']}</font></td>
|
||||
<td class="main_field_display"><input name="file_extensions" maxlength="255" size="60" type="text" value="{$result['file_extensions']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_starter" value="<if (int)$result['mod_fcgid_starter'] != - 1>{$result['mod_fcgid_starter']}</if>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_maxrequests" value="<if (int)$result['mod_fcgid_maxrequests'] != - 1>{$result['mod_fcgid_maxrequests']}</if>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['phpsettings']['phpinisettings']}</td>
|
||||
<td class="main_field_display" valign="top"><textarea name="phpsettings" cols="80" rows="20">{$result['phpsettings']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="2"><input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['phpconfig']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SAFE_MODE}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['safe_mode']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PEAR_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['pear_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_C}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_c']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_GLOBAL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_global']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TMP_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['tmp_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{DOMAIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['domain']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form action="$filename" method="post">
|
||||
<input type="hidden" name="s" value="$s"/>
|
||||
<input type="hidden" name="page" value="$page"/>
|
||||
<input type="hidden" name="action" value="edit"/>
|
||||
<input type="hidden" name="id" value="$id"/>
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['phpsettings']['editsettings']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['description']}</td>
|
||||
<td class="main_field_display"><input name="description" maxlength="40" size="60" type="text" value="{$result['description']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['binary']}</td>
|
||||
<td class="main_field_display"><input name="binary" maxlength="255" size="60" type="text" value="{$result['binary']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" width="200">{$lng['admin']['phpsettings']['file_extensions']}<br /><font size="1">{$lng['admin']['phpsettings']['file_extensions_note']}</font></td>
|
||||
<td class="main_field_display"><input name="file_extensions" maxlength="255" size="60" type="text" value="{$result['file_extensions']}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_starter']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_starter" value="<if (int)$result['mod_fcgid_starter'] != - 1>{$result['mod_fcgid_starter']}</if>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['mod_fcgid_maxrequests']['title']}</td>
|
||||
<td class="main_field_display"><input size="60" name="mod_fcgid_maxrequests" value="<if (int)$result['mod_fcgid_maxrequests'] != - 1>{$result['mod_fcgid_maxrequests']}</if>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top">{$lng['admin']['phpsettings']['phpinisettings']}</td>
|
||||
<td class="main_field_display" valign="top"><textarea name="phpsettings" cols="80" rows="20">{$result['phpsettings']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" colspan="2"><input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['phpconfig']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SAFE_MODE}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['safe_mode']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PEAR_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['pear_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_C}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_c']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{OPEN_BASEDIR_GLOBAL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['open_basedir_global']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TMP_DIR}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['tmp_dir']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{DOMAIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['domain']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['customer']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i></td>
|
||||
<td class="field_name">{$lng['admin']['phpconfig']['admin']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,10 +1,10 @@
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top">{$row['description']}</td>
|
||||
<td class="field_name" valign="top">{$domains}</td>
|
||||
<td class="field_name" valign="top">{$row['binary']}</td>
|
||||
<td class="field_name" valign="top">{$row['file_extensions']}</td>
|
||||
<td class="field_name" valign="top">
|
||||
<a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a><br/>
|
||||
<if $row['id'] != 1><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a><br/></if>
|
||||
</td>
|
||||
<tr>
|
||||
<td class="field_name_border_left" valign="top">{$row['description']}</td>
|
||||
<td class="field_name" valign="top">{$domains}</td>
|
||||
<td class="field_name" valign="top">{$row['binary']}</td>
|
||||
<td class="field_name" valign="top">{$row['file_extensions']}</td>
|
||||
<td class="field_name" valign="top">
|
||||
<a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a><br/>
|
||||
<if $row['id'] != 1><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a><br/></if>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1,21 +1,21 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['serversettings']}</b></td>
|
||||
</tr>
|
||||
$fields
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="send" value="send" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['serversettings']}</b></td>
|
||||
</tr>
|
||||
$fields
|
||||
<tr>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,8 +1,8 @@
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$groupdetails['title']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="maintitle_apply_left">
|
||||
<b><img src="images/title.gif" alt="" /> {$groupdetails['title']}</b>
|
||||
</td>
|
||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['updatecounters']}: {$lng['admin']['customers']}</b>
|
||||
</td>
|
||||
</tr>
|
||||
{$customers}
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['updatecounters']}: {$lng['admin']['admins']}</b>
|
||||
</td>
|
||||
</tr>
|
||||
{$admins}
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['updatecounters']}: {$lng['admin']['customers']}</b>
|
||||
</td>
|
||||
</tr>
|
||||
{$customers}
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2">
|
||||
<b><img src="images/title.gif" alt="" /> {$lng['admin']['updatecounters']}: {$lng['admin']['admins']}</b>
|
||||
</td>
|
||||
</tr>
|
||||
{$admins}
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
|
||||
@@ -1,61 +1,61 @@
|
||||
<tr>
|
||||
<td class="main_field_name" style="width: 40%;">
|
||||
<b><if $admin['adminid'] != $userinfo['userid']><a href="admin_admins.php?s=$s&page=admins&action=su&id={$admin['adminid']}" target="_blank">{$admin['loginname']}</a></if><if $admin['adminid'] == $userinfo['userid']>{$admin['loginname']}</if>:</b>
|
||||
</td>
|
||||
<td class="main_field_name">
|
||||
<table border="0" style="text-align: left;">
|
||||
<tr>
|
||||
<td>{$lng['admin']['customers']}:</td>
|
||||
<td><span <if $admin['customers_used'] == $admin['customers_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['customers_used']} -> {$admin['customers_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['domains']}:</td>
|
||||
<td><span <if $admin['domains_used'] == $admin['domains_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['domains_used']} -> {$admin['domains_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['subdomains']}:</td>
|
||||
<td><span <if $admin['subdomains_used'] == $admin['subdomains_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['subdomains_used']} -> {$admin['subdomains_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['diskspace']}:</td>
|
||||
<td><span <if $admin['diskspace_used'] == $admin['diskspace_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['diskspace_used']} -> {$admin['diskspace_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['traffic']}:</td>
|
||||
<td><span <if $admin['traffic_used'] == $admin['traffic_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['traffic_used']} -> {$admin['traffic_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['mysqls']}:</td>
|
||||
<td><span <if $admin['mysqls_used'] == $admin['mysqls_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['mysqls_used']} -> {$admin['mysqls_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['emails']}:</td>
|
||||
<td><span <if $admin['emails_used'] == $admin['emails_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['emails_used']} -> {$admin['emails_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['accounts']}:</td>
|
||||
<td><span <if $admin['email_accounts_used'] == $admin['email_accounts_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_accounts_used']} -> {$admin['email_accounts_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['forwarders']}:</td>
|
||||
<td><span <if $admin['email_forwarders_used'] == $admin['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_forwarders_used']} -> {$admin['email_forwarders_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td>{$lng['customer']['email_quota']}:</td>
|
||||
<td><span <if $admin['email_quota_used'] == $admin['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_quota_used']} -> {$admin['email_quota_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td>{$lng['customer']['ftps']}:</td>
|
||||
<td><span <if $admin['ftps_used'] == $admin['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['ftps_used']} -> {$admin['ftps_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == '1'>
|
||||
<tr>
|
||||
<td>{$lng['customer']['tickets']}:</td>
|
||||
<td><span <if $admin['tickets_used'] == $admin['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['tickets_used']} -> {$admin['tickets_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" style="width: 40%;">
|
||||
<b><if $admin['adminid'] != $userinfo['userid']><a href="admin_admins.php?s=$s&page=admins&action=su&id={$admin['adminid']}" target="_blank">{$admin['loginname']}</a></if><if $admin['adminid'] == $userinfo['userid']>{$admin['loginname']}</if>:</b>
|
||||
</td>
|
||||
<td class="main_field_name">
|
||||
<table border="0" style="text-align: left;">
|
||||
<tr>
|
||||
<td>{$lng['admin']['customers']}:</td>
|
||||
<td><span <if $admin['customers_used'] == $admin['customers_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['customers_used']} -> {$admin['customers_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['domains']}:</td>
|
||||
<td><span <if $admin['domains_used'] == $admin['domains_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['domains_used']} -> {$admin['domains_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['subdomains']}:</td>
|
||||
<td><span <if $admin['subdomains_used'] == $admin['subdomains_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['subdomains_used']} -> {$admin['subdomains_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['diskspace']}:</td>
|
||||
<td><span <if $admin['diskspace_used'] == $admin['diskspace_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['diskspace_used']} -> {$admin['diskspace_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['traffic']}:</td>
|
||||
<td><span <if $admin['traffic_used'] == $admin['traffic_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['traffic_used']} -> {$admin['traffic_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['mysqls']}:</td>
|
||||
<td><span <if $admin['mysqls_used'] == $admin['mysqls_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['mysqls_used']} -> {$admin['mysqls_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['emails']}:</td>
|
||||
<td><span <if $admin['emails_used'] == $admin['emails_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['emails_used']} -> {$admin['emails_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['accounts']}:</td>
|
||||
<td><span <if $admin['email_accounts_used'] == $admin['email_accounts_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_accounts_used']} -> {$admin['email_accounts_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['forwarders']}:</td>
|
||||
<td><span <if $admin['email_forwarders_used'] == $admin['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_forwarders_used']} -> {$admin['email_forwarders_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td>{$lng['customer']['email_quota']}:</td>
|
||||
<td><span <if $admin['email_quota_used'] == $admin['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['email_quota_used']} -> {$admin['email_quota_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td>{$lng['customer']['ftps']}:</td>
|
||||
<td><span <if $admin['ftps_used'] == $admin['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['ftps_used']} -> {$admin['ftps_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == '1'>
|
||||
<tr>
|
||||
<td>{$lng['customer']['tickets']}:</td>
|
||||
<td><span <if $admin['tickets_used'] == $admin['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$admin['tickets_used']} -> {$admin['tickets_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
<tr>
|
||||
<td class="main_field_name" style="width: 40%;">
|
||||
<b><if $customer['name'] != '' && $customer['firstname'] != ''>{$customer['name']}, {$customer['firstname']}</if><if $customer['name'] != '' && $customer['firstname'] != '' && $customer['company'] != ''> | </if><if $customer['company'] != ''>{$customer['company']}</if> (<a href="admin_customers.php?s=$s&page=customers&action=su&id={$customer['customerid']}" target="_blank">{$customer['loginname']}</a>):</b>
|
||||
</td>
|
||||
<td class="main_field_name">
|
||||
<table border="0" style="text-align: left;">
|
||||
<tr>
|
||||
<td>{$lng['customer']['subdomains']}:</td>
|
||||
<td><span <if $customer['tickets_used'] == $customer['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['tickets_used']} -> {$customer['tickets_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['mysqls']}:</td>
|
||||
<td><span <if $customer['mysqls_used'] == $customer['mysqls_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['mysqls_used']} -> {$customer['mysqls_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['emails']}:</td>
|
||||
<td><span <if $customer['emails_used'] == $customer['emails_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['emails_used']} -> {$customer['emails_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['accounts']}:</td>
|
||||
<td><span <if $customer['email_accounts_used'] == $customer['email_accounts_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_accounts_used']} -> {$customer['email_accounts_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['forwarders']}:</td>
|
||||
<td><span <if $customer['email_forwarders_used'] == $customer['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_forwarders_used']} -> {$customer['email_forwarders_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td>{$lng['customer']['email_quota']}:</td>
|
||||
<td><span <if $customer['email_quota_used'] == $customer['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_quota_used']} -> {$customer['email_quota_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td>{$lng['customer']['ftps']}:</td>
|
||||
<td><span <if $customer['ftps_used'] == $customer['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['ftps_used']} -> {$customer['ftps_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == '1'>
|
||||
<tr>
|
||||
<td>{$lng['customer']['tickets']}:</td>
|
||||
<td><span <if $customer['tickets_used'] == $customer['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['tickets_used']} -> {$customer['tickets_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" style="width: 40%;">
|
||||
<b><if $customer['name'] != '' && $customer['firstname'] != ''>{$customer['name']}, {$customer['firstname']}</if><if $customer['name'] != '' && $customer['firstname'] != '' && $customer['company'] != ''> | </if><if $customer['company'] != ''>{$customer['company']}</if> (<a href="admin_customers.php?s=$s&page=customers&action=su&id={$customer['customerid']}" target="_blank">{$customer['loginname']}</a>):</b>
|
||||
</td>
|
||||
<td class="main_field_name">
|
||||
<table border="0" style="text-align: left;">
|
||||
<tr>
|
||||
<td>{$lng['customer']['subdomains']}:</td>
|
||||
<td><span <if $customer['tickets_used'] == $customer['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['tickets_used']} -> {$customer['tickets_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['mysqls']}:</td>
|
||||
<td><span <if $customer['mysqls_used'] == $customer['mysqls_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['mysqls_used']} -> {$customer['mysqls_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['emails']}:</td>
|
||||
<td><span <if $customer['emails_used'] == $customer['emails_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['emails_used']} -> {$customer['emails_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['accounts']}:</td>
|
||||
<td><span <if $customer['email_accounts_used'] == $customer['email_accounts_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_accounts_used']} -> {$customer['email_accounts_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lng['customer']['forwarders']}:</td>
|
||||
<td><span <if $customer['email_forwarders_used'] == $customer['email_forwarders_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_forwarders_used']} -> {$customer['email_forwarders_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['system']['mail_quota_enabled'] == 1>
|
||||
<tr>
|
||||
<td>{$lng['customer']['email_quota']}:</td>
|
||||
<td><span <if $customer['email_quota_used'] == $customer['email_quota_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['email_quota_used']} -> {$customer['email_quota_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td>{$lng['customer']['ftps']}:</td>
|
||||
<td><span <if $customer['ftps_used'] == $customer['ftps_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['ftps_used']} -> {$customer['ftps_used_new']}</b></span></td>
|
||||
</tr>
|
||||
<if $settings['ticket']['enabled'] == '1'>
|
||||
<tr>
|
||||
<td>{$lng['customer']['tickets']}:</td>
|
||||
<td><span <if $customer['tickets_used'] == $customer['tickets_used_new']>style="color:green"<else>style="color:red"</if>><b>{$customer['tickets_used']} -> {$customer['tickets_used_new']}</b></span></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,55 +1,55 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="template">$free_templates</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['filecontent']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="filecontent" rows="20" cols="75"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="filesend" value="filesend" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['index_html']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SERVERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SERVERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER_EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN_EMAIL']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="template">$free_templates</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['filecontent']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="filecontent" rows="20" cols="75"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="filesend" value="filesend" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['index_html']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SERVERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SERVERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER_EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN_EMAIL']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,56 +1,56 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$lng['admin']['templates'][$row['varname']]}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['filecontent']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="filecontent" rows="20" cols="75">{$row['value']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="filesend" value="filesend" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['index_html']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SERVERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SERVERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER_EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN_EMAIL']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="id" value="$id" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap">{$lng['admin']['templates'][$row['varname']]}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['filecontent']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="filecontent" rows="20" cols="75">{$row['value']}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="filesend" value="filesend" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['index_html']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SERVERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SERVERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{CUSTOMER_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['CUSTOMER_EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{ADMIN_EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['ADMIN_EMAIL']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,37 +1,37 @@
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td colspan="4" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['templates']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['login']['language']}</td>
|
||||
<td class="field_display">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="field_display" colspan="2"> </td>
|
||||
</tr>
|
||||
$templates
|
||||
<if $add>
|
||||
<tr>
|
||||
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['templates']['template_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
<br/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td colspan="3" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['filetemplates']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="field_display"> </td>
|
||||
<td class="field_display"> </td>
|
||||
</tr>
|
||||
$filetemplates
|
||||
<if $filetemplateadd>
|
||||
<tr>
|
||||
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s&files=files">{$lng['admin']['templates']['template_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td colspan="4" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['templates']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['login']['language']}</td>
|
||||
<td class="field_display">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="field_display" colspan="2"> </td>
|
||||
</tr>
|
||||
$templates
|
||||
<if $add>
|
||||
<tr>
|
||||
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['templates']['template_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
<br/>
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td colspan="3" class="maintitle"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['filetemplates']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="field_display"> </td>
|
||||
<td class="field_display"> </td>
|
||||
</tr>
|
||||
$filetemplates
|
||||
<if $filetemplateadd>
|
||||
<tr>
|
||||
<td colspan="4" class="field_display_border_left"><a href="$filename?page=$page&action=add&s=$s&files=files">{$lng['admin']['templates']['template_add']}</a></td>
|
||||
</tr>
|
||||
</if>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,21 +1,21 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_40">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="prepare" value="prepare" /><input class="bottom" type="submit" value="{$lng['panel']['next']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_40">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}:</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="language">$language_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="prepare" value="prepare" /><input class="bottom" type="submit" value="{$lng['panel']['next']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,105 +1,105 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>$language</b><input type="hidden" name="language" value="$language" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="template">$template_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" nowrap="nowrap">{$lng['admin']['templates']['subject']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="subject" value="" maxlength="255" size="75" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['mailbody']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="mailbody" rows="20" cols="75"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['createcustomer']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{USERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['USERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['PASSWORD']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<if $settings['panel']['sendalternativemail'] == 1>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success_alternative']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL_PASSWORD']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['trafficninetypercent']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFIC}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFIC']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFICUSED}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFICUSED']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['ticket']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SUBJECT}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SUBJECT']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_add']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>$language</b><input type="hidden" name="language" value="$language" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><select class="dropdown_noborder" name="template">$template_options</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" nowrap="nowrap">{$lng['admin']['templates']['subject']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="subject" value="" maxlength="255" size="75" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['mailbody']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="mailbody" rows="20" cols="75"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['createcustomer']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{USERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['USERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['PASSWORD']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<if $settings['panel']['sendalternativemail'] == 1>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success_alternative']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL_PASSWORD']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['trafficninetypercent']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFIC}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFIC']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFICUSED}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFICUSED']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['ticket']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SUBJECT}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SUBJECT']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,107 +1,107 @@
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="subjectid" value="$subjectid" />
|
||||
<input type="hidden" name="mailbodyid" value="$mailbodyid" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>{$result['language']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>$template</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" nowrap="nowrap">{$lng['admin']['templates']['subject']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="subject" value="$subject" maxlength="255" size="75" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['mailbody']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="mailbody" rows="20" cols="75">$mailbody</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['createcustomer']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{USERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['USERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['PASSWORD']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<if $settings['panel']['sendalternativemail'] == 1>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success_alternative']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL_PASSWORD']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['trafficninetypercent']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFIC}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFIC']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFICUSED}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFICUSED']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['ticket']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SUBJECT}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SUBJECT']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$header
|
||||
<form method="post" action="$filename">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
<input type="hidden" name="action" value="$action" />
|
||||
<input type="hidden" name="subjectid" value="$subjectid" />
|
||||
<input type="hidden" name="mailbodyid" value="$mailbodyid" />
|
||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_edit']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['login']['language']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>{$result['language']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name">{$lng['admin']['templates']['action']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><b>$template</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" nowrap="nowrap">{$lng['admin']['templates']['subject']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="subject" value="$subject" maxlength="255" size="75" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_name" valign="top" nowrap="nowrap">{$lng['admin']['templates']['mailbody']}</td>
|
||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" name="mailbody" rows="20" cols="75">$mailbody</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||
<tr>
|
||||
<td class="maintitle" colspan="2"><b> <img src="images/title.gif" alt="" /> {$lng['admin']['templates']['template_replace_vars']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['createcustomer']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{USERNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['USERNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['PASSWORD']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<if $settings['panel']['sendalternativemail'] == 1>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['pop_success_alternative']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{EMAIL}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{PASSWORD}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['EMAIL_PASSWORD']}</td>
|
||||
</tr>
|
||||
</if>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['trafficninetypercent']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFIC}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFIC']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{TRAFFICUSED}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['TRAFFICUSED']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_display_border_left" colspan="2"><b>{$lng['admin']['templates']['ticket']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{SUBJECT}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['SUBJECT']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{FIRSTNAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['FIRSTNAME']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="field_name_border_left"><i>{NAME}</i>:</td>
|
||||
<td class="field_name">{$lng['admin']['templates']['NAME']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
$footer
|
||||
@@ -1,5 +1,5 @@
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left">{$lng['admin']['templates'][$row['varname']]}</td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a></td>
|
||||
</tr>
|
||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||
<td class="field_name_border_left">{$lng['admin']['templates'][$row['varname']]}</td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a></td>
|
||||
<td class="field_name"><a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a></td>
|
||||
</tr>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user