本文整理汇总了PHP中clladp::Hash_domains_table方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::Hash_domains_table方法的具体用法?PHP clladp::Hash_domains_table怎么用?PHP clladp::Hash_domains_table使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clladp
的用法示例。
在下文中一共展示了clladp::Hash_domains_table方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add_list
function add_list()
{
if ($_SESSION["uid"] == -100) {
if (isset($_GET["ou"])) {
$ou = base64_decode($_GET["ou"]);
}
} else {
$user = new user($_SESSION["uid"]);
$ou = $user->ou;
}
$users = new usersMenus();
$ldap = new clladp();
$domains = $ldap->Hash_domains_table($ou);
$sock = new sockets();
$ApacheGroupWarePort = $sock->GET_INFO("ApacheGroupWarePort");
$pp = "<p style='font-size:14px;color:black'>{add_mailman_text}</p>";
$mailman = new mailman_control($ou, $_GET["add-list"]);
if (preg_match("#(.+?)@(.+)#", $_GET["add-list"], $re)) {
$domain = $re[2];
$listename = $re[1];
$button_name = "{apply}";
$pp = null;
$filed_list = "<strong style='font-size:14px'>{$listename}</strong><input type='hidden' id='listname' value='{$listename}'>";
$urlLink = "<strong style='font-size:14px'>\n\t\t<li><a href='http://{$mailman->webservername}:{$ApacheGroupWarePort}' target=_new>{view_list_mailman}</a></li>\n\t\t<li><a href='http://{$mailman->webservername}:{$ApacheGroupWarePort}/mailman/admin/{$listename}' target=_new>{adminweb_mailman}</a></li>";
if ($users->POWER_DNS_INSTALLED) {
$add_pnds = "<hr>" . button("{add_mailman_pdns}", "MailManPDNS('{$_GET["add-list"]}')");
}
} else {
$button_name = "{add}";
$filed_list = Field_text('listname', null, "width:180px;font-size:14px;padding:3px");
}
while (list($num, $val) = each($domains)) {
$domainsZ[$num] = $num;
}
$dom2 = Field_array_Hash($domainsZ, 'wwwdomain', $domain, null, null, 0, "font-size:14px;padding:3px");
if ($domain == null) {
$dom = Field_array_Hash($domainsZ, 'domain', $domain, null, null, 0, "font-size:14px;padding:3px");
} else {
$dom = "<input type='hidden' id='domain' value='{$domain}'><strong style='font-size:14px'>{$domain}</span>";
}
if ($mailman->admin_email == null) {
$mailman->admin_email = $user->mail;
}
if ($mailman->admin_password == null) {
$mailman->admin_password = $user->password;
}
if (preg_match("#^(.+?)\\.#", $mailman->webservername, $re)) {
$mailman->webservername = $re[1];
}
$html = "\n\t{$pp}\n\t<div id='mailmandiv'></div>\n\t<table>\n\t<tr>\n\t\t<td class=legend nowrap width=1%>{listname}:</td>\n\t\t<td width=1% align='right'>{$filed_list}</td>\n\t\t<td width=1% style='font-size:14px'><strong>@</strong></td>\n\t\t<td width=99%>{$dom}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap width=1%>{www_server_name}:</td>\n\t\t<td align='left' width=1%>" . Field_text('webservername', $mailman->webservername, "width:180px;font-size:14px;padding:3px") . "</td>\n\t\t<td width=1% style='font-size:14px'><strong>.</strong></td>\n\t\t<td>{$dom2}</td>\n\t</tr>\t\n\t\n\t\n\t<tr>\n\t\t<td class=legend nowrap width=1%>{admin_mail}:</td>\n\t\t<td align='left' width=1% colspan=3>" . Field_text('admin_email', $mailman->admin_email, "width:180px;font-size:14px;padding:3px") . "</td>\n\t\t\n\t\t\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap>{password}:</td>\n\t\t<td width=1% colspan=3>" . Field_password('admin_password', $mailman->admin_password, "width:180px;font-size:14px;padding:3px") . "</td>\n\t\t\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=4 align='right'><hr>\n\t\t" . button("{$button_name} »", "SaveMailManList()") . "\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=4 align='right'>{$urlLink}</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=4 align='right'>{$add_pnds}</td>\n\t</tr>\t\n\t\n\t\n\t</table>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "mailman.lists.php");
}
示例2: sql_domain
function sql_domain($ou)
{
$ldap = new clladp();
$domains = $ldap->Hash_domains_table($ou);
if (!is_array($domains)) {
return null;
}
while (list($domain, $nothing) = each($domains)) {
$array_domain[] = "OR delivery_domain='{$domain}'";
$GLOBALS["mydomains"][] = $domain;
}
$sql_domain = implode(" ", $array_domain);
if (substr($sql_domain, 0, 2) == "OR") {
$sql_domain = substr($sql_domain, 2, strlen($sql_domain));
}
$sql_domain = "(" . trim($sql_domain) . ")";
$GLOBALS["SQL_DOMAINS"] = $sql_domain;
}
示例3: popup
function popup()
{
$page = CurrentPageName();
$tpl = new templates();
$t = time();
$ldap = new clladp();
$main = new maincf_multi($_GET["hostname"]);
$myorigin = $main->GET("myorigin");
$domains = $ldap->Hash_domains_table($_GET["ou"]);
while (list($key, $line) = each($tr)) {
$domainz[$key] = $key;
}
if ($myorigin == null) {
$myorigin = '$mydomain';
}
if ($myorigin != '$mydomain') {
$domainz[$myorigin] = $myorigin;
}
$domainz['$myhostname'] = '$myhostname';
$domainz['$mydomain'] = '$mydomain';
$html = "\n<div id='{$t}'>\n<div class=explain style='font-size:13px'>{myorigin_text}</div>\n<table style='width:99%' class=form>\n<tr>\n\t<td class=legend style='font-size:16px'>myorigin:</td>\n\t<td>" . Field_array_Hash($domainz, "domainz-{$t}", $myorigin, "style:font-size:16px") . "</td>\n</tr>\n<tr>\n\t<td class=legend style='font-size:16px'>{or}:</td>\n\t<td>" . Field_text("free-{$t}", null, "font-size:16px;width:210px") . "</td>\n</tr>\n<tr>\n\t<td colspan=2 align='right'><hr>" . button("{apply}", "SaveMyOrginin{$t}()", 16) . "</td>\n</tr>\n</table>\n</div>\n<script>\n\tvar xSaveMyOrginin{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert('\"'+results+'\"'+results.length);}\n\t\tYahooWinSHide();\n\t\tRefreshTab('main_multi_config_postfix{$_GET["t"]}')\n\t\t}\n\t\t\n\t\n\t\tfunction SaveMyOrginin{$t}(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('myorigin',document.getElementById('domainz-{$t}').value);\n\t\t\tXHR.appendData('myorigin2',document.getElementById('free-{$t}').value);\n\t\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\t\tAnimateDiv('{$t}');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',xSaveMyOrginin{$t});\t\n\t\t\t\n\t\t}\n\n</script>\n";
echo $tpl->_ENGINE_parse_body($html);
}
示例4: section_messaging
function section_messaging()
{
$ou = $_SESSION["ou"];
$ldap = new clladp();
$tpl = new templates();
$domains = $ldap->Hash_domains_table($ou);
while (list($num, $ligne) = each($domains)) {
$doms[] = "(LENGTH(delivery_user)>0 AND delivery_domain='{$num}')";
}
$sql = "SELECT * FROM smtp_logs WHERE 1 AND " . implode(" OR ", $doms) . " ORDER BY time_stamp DESC LIMIT 0,200";
$q = new mysql();
$results = $q->QUERY_SQL($sql, "artica_events");
if (!$q->ok) {
echo "<H2> Failed: {$sql}</H2><H2>{$q->mysql_error}</H2>";
return;
}
$count = 0;
while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) {
$count = $count + 1;
$tr = $tr . format_line($ligne);
}
$html = "\n\t<table style='width:100%'>\n\t{$tr}\n\t</table>";
echo $tpl->_ENGINE_parse_body($html);
}
示例5: __sql_domain
function __sql_domain($ou)
{
$ldap = new clladp();
$domains = $ldap->Hash_domains_table($ou);
if (!is_array($domains)) {
return null;
}
while (list($domain, $nothing) = each($domains)) {
$array_domain[] = "OR delivery_domain='{$domain}'";
$array_domain_sender[] = "OR sender_domain='{$domain}'";
}
$sql_domain = implode(" ", $array_domain);
$sql_domain_sent = implode(" ", $array_domain_sender);
if (substr($sql_domain, 0, 2) == "OR") {
$sql_domain = substr($sql_domain, 2, strlen($sql_domain));
}
if (substr($sql_domain_sent, 0, 2) == "OR") {
$sql_domain_sent = substr($sql_domain_sent, 2, strlen($sql_domain_sent));
}
$sql_domain = "(" . trim($sql_domain) . ")";
$sql_domain_sent = "(" . trim($sql_domain_sent) . ")";
$sql = "SELECT * FROM smtp_logs WHERE 1 AND {$sql_domain} OR {$sql_domain_sent} ORDER BY time_stamp DESC LIMIT 0,100";
return $sql;
}
示例6: import_users
function import_users($id)
{
$unix = new unix();
$pidfile = "/etc/artica-postfix/" . basename(__FILE__) . "." . __FUNCTION__ . ".pid";
$pid = trim(@file_get_contents($pidfile));
if ($unix->process_exists($pid)) {
echo "[" . getmypid() . "]:: Process {$pid} already running...\n";
die;
}
$pid = getmypid();
@file_put_contents($pidfile, $pid);
$emailing = new emailings($id);
if ($emailing->error) {
echo __FUNCTION__ . " class error: {$emailing->mysql_error}\n";
exit;
}
$sql = "SELECT * FROM {$emailing->tablename}";
$q = new mysql();
$results = $q->QUERY_SQL($sql, "artica_backup");
if (!$q->ok) {
echo __FUNCTION__ . " {$q->mysql_error}\n";
exit;
}
$max = mysql_num_rows($results);
$ldap = new clladp();
$domains = $ldap->Hash_domains_table($ou);
while (list($domain, $no) = each($domains)) {
$DOMAINS_ARRAY[$domain] = true;
}
if ($emailing->array_options["export_domain"] == null) {
update_export_status($id, 110, "No default domain set");
return;
}
if ($emailing->array_options["gpid"] == null) {
update_export_status($id, 110, "No default group set");
return;
}
$gpid = $emailing->array_options["gpid"];
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$count = $count + 1;
$tw = $tw + 1;
$firstname = $ligne["firstname"];
$lastname = $ligne["lastname"];
$email = $ligne["email"];
$phone = $ligne["phone"];
$city = $ligne["city"];
$cp = $ligne["cp"];
$postaladdress = $ligne["postaladdress"];
if (!preg_match("#(.+?)@#", $email, $re)) {
continue;
}
$uid = $re[1];
$new_email = "{$uid}@{$emailing->array_options["export_domain"]}";
$ct = new user($uid);
if (!$ct->DoesNotExists) {
$GLOBALS["SUCCESS_CONTACTS"] = $GLOBALS["SUCCESS_CONTACTS"] + 1;
echo "{$emailing->ou}/{$uid}::{$new_email} {$firstname} {$lastname} already exists [SUCCESS]\n";
}
$ct->mail = $new_email;
$ct->postalCode = $cp;
$ct->postalAddress = $postaladdress;
$ct->town = $city;
$ct->telephoneNumber = $phone;
$ct->DisplayName = "{$firstname} {$lastname}";
$ct->sn = $lastname;
$ct->givenName = $firstname;
$ct->group_id = $gpid;
$ct->ou = $emailing->ou;
$ct->password = $emailing->array_options["export_default_password"];
if ($tw > 2) {
$purc = $count / $max;
$purc = $purc * 100;
$purc = round($purc, 0);
update_export_status($id, $purc);
$tw = 0;
}
if (!$ct->add_user()) {
writeevent("{$emailing->ou}/{$uid}::{$new_email} {$firstname} {$lastname} [FAILED]");
$GLOBALS["FAILED_CONTACTS"] = $GLOBALS["FAILED_CONTACTS"] + 1;
continue;
}
$GLOBALS["SUCCESS_CONTACTS"] = $GLOBALS["SUCCESS_CONTACTS"] + 1;
writeevent("{$emailing->ou}/{$uid}::{$new_email} {$firstname} {$lastname} [SUCCESS]");
if ($new_email != $email) {
$user = new user($uid);
$user->add_alias($email);
}
}
writeevent("Failed.:{$GLOBALS["FAILED_CONTACTS"]}", $id);
writeevent("Success:{$GLOBALS["SUCCESS_CONTACTS"]}", $id);
update_status($id, 100, 1, null);
}
示例7: popup
//.........这里部分代码省略.........
$ip = new networking();
$ips = $ip->ALL_IPS_GET_ARRAY();
$ips[null] = "{none}";
$dns_field = "<tr>\n\t\t\t\t<td class=legend nowrap>{dns_entry}:</td>\n\t\t\t\t<td>" . Field_array_Hash($ips, "ADD_DNS_ENTRY", null, "style:font-size:14px") . "</td>\n\t\t\t\t<td>" . help_icon("freeweb_add_dns_entry_explain") . "</td>\n\t\t\t</tr>";
} else {
$hostip = $pdns->GetIp($ligne["servername"]);
if ($hostip != null) {
$dns_field = "<tr>\n\t\t\t\t<td class=legend nowrap>{dns_entry}:</td>\n\t\t\t\t<td style='font-size:14px'>{$hostip}</td>\n\t\t\t\t<td> </td>\n\t\t\t</tr>";
} else {
$ip = new networking();
$ips = $ip->ALL_IPS_GET_ARRAY();
$ips[null] = "{none}";
$dns_field = "<tr>\n\t\t\t\t<td class=legend nowrap>{dns_entry}:</td>\n\t\t\t\t<td>" . Field_array_Hash($ips, "ADD_DNS_ENTRY", null, "style:font-size:14px") . "</td>\n\t\t\t\t<td>" . help_icon("freeweb_add_dns_entry_explain") . "</td>\n\t\t\t</tr>";
}
}
}
$domain = "<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td>" . Field_text("servername", $hostname, "font-size:15px;padding:3px;font-weight:bold;width:90px") . "</td>\n\t\t\t<td style='font-size:14px' align='center' width=1%> . </td>\n\t\t\t<td>" . Field_text("domainname", $domainname, "font-size:15px;padding:3px;width:220px;font-weight:bold") . "</td>\n\t\t\t<td>{$parcourir_domaines}</td>\n\t\t</tr>\n\t\t</table>";
if (!$users->AsSystemAdministrator) {
if ($ligne["domainname"] == null) {
$dd = explode(".", $ligne["servername"]);
$hostname = $dd[0];
unset($dd[0]);
$domainname = @implode(".", $dd);
} else {
$ff = explode(".", $ligne["servername"]);
if (count($ff) > 2) {
$hostname = str_replace(".{$ligne["domainname"]}", "", $ligne["servername"]);
} else {
$hostname = null;
}
$domainname = $ligne["domainname"];
}
$ldap = new clladp();
$domains = $ldap->Hash_domains_table($_SESSION["ou"]);
while (list($a, $b) = each($domains)) {
$c[$a] = $a;
}
$domain = "\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td>" . Field_text("servername", $hostname, "font-size:15px;padding:3px;font-weight:bold;width:90px") . "</td>\n\t\t\t<td style='font-size:14px' align='center' width=1%> . </td>\n\t\t\t<td>" . Field_array_Hash($c, "domainname", $domainname, "style:font-size:15px;padding:3px;font-weight:bold;width:220px;") . "</td>\n\t\t</tr>\n\t\t</table>";
}
$NewServer = 0;
$reconfigure = ParagrapheTEXT("48-settings-refresh.png", "{rebuild}", "{rebuild_apache_text}", "javascript:FreeWebsRebuildvHosts()");
if (trim($ligne["servername"] == null)) {
$reconfigure = ParagrapheTEXT_disabled("48-settings-refresh.png", "{rebuild}", "{rebuild_apache_text}");
$NewServer = 1;
}
if ($NewServer == 0) {
$domain = "<div style='font-size:16px'>{$ligne["servername"]}</div>\n\t\t\t<input type='hidden' value='{$ligne["servername"]}' id='servername'>\n\t\t\t<input type='hidden' value='{$ligne["domainname"]}' id='domainname'>";
}
if ($ligne["groupware"] != null) {
$apache = new vhosts();
$img = $apache->IMG_ARRAY_64[$ligne["groupware"]];
$rebuild_groupware = ParagrapheTEXT("setup-icon-48.png", "{software}", "{rebuild_apache_groupware_text}", "javascript:FreeWebsRebuildGroupware()");
$sql = "SELECT ID FROM drupal_queue_orders WHERE `ORDER`='REBUILD_GROUPWARE' AND `servername`='{$servername}'";
$ligneDrup = @mysql_fetch_array($q->QUERY_SQL($sql, 'artica_backup'));
if (!is_numeric($ligneDrup["ID"])) {
$ligneDrup["ID"] = 0;
}
if ($ligneDrup["ID"] > 0) {
$rebuild_groupware = ParagrapheTEXT_disabled("setup-icon-48.png", "{software}", "{rebuild_apache_groupware_text}");
}
if ($ligne["groupware"] == "ZARAFA") {
$remove_sql = true;
$OnlyWebSite = true;
}
if ($ligne["groupware"] == "Z-PUSH") {
$remove_sql = true;
示例8: database_migrate_popup
function database_migrate_popup(){
$tpl=new templates();
$users=new usersMenus();
if(!$users->AllowAddUsers){
echo "<H2>".$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}")."</H2>";exit;
}
$ID=$_GET["database-migrate"];
$ou=$_GET["ou"];
$ou=base64_decode($ou);
$emailing=new emailings($ID);
$ldap=new clladp();
$group=$ldap->hash_groups($ou,1);
$group[null]="{select}";
$field=Field_array_Hash($group,'emailing_gpid_migr',trim($emailing->array_options["gpid"]),null,null,0,"font-size:14px;padding:4px");
$page=CurrentPageName();
$confirm=$tpl->javascript_parse_text('{confirm}?');
$ldap=new clladp();
$domains=$ldap->Hash_domains_table($ou);
while (list ($domain, $no) = each ($domains) ){
$DOMAINS_ARRAY[$domain]=$domain;
}
$DOMAINS_ARRAY[null]="{select}";
$domains_field=Field_array_Hash($DOMAINS_ARRAY,'export_domain',$emailing->array_options["export_domain"],null,null,0,"font-size:14px;padding:4px");
$html="
<div id='database_migrate_popup_id'>
<table style='width:100%'>
<tr>
<td valign='top' width=1%><img src='img/user-migrate-90.png'></td>
<td valign='top'>
<div style='font-size:13px'>{migrate_user_text}</div>
<table style='width:100%'>
<tr>
<td class=legend style='font-size:14px'>{group}:</td>
<td>$field</td>
</tr>
<tr>
<td class=legend style='font-size:14px'>{domain}:</td>
<td>$domains_field</td>
</tr>
<tr>
<td class=legend style='font-size:14px'>{default_password}:</td>
<td>". Field_password("export_default_password",$emailing->array_options["export_default_password"],"font-size:14px;padding:4px;width:120px")."</td>
</tr>
<tr>
<td colspan=2 align='right'><hr>". button("{import}","MigrateUsersToLdapPerform()")."</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<script>
var x_MigrateUsersToLdapPerform= function (obj) {
var tempvalue=obj.responseText;
if(tempvalue.length>0){alert(tempvalue);}
YahooWin5Hide();
RefreshTab('emailing_campaigns');
}
function MigrateUsersToLdapPerform(){
if(confirm('$confirm')){
var XHR = new XHRConnection();
XHR.appendData('database-migrate-perform','$ID');
XHR.appendData('ou','{$_GET["ou"]}');
XHR.appendData('gpid',document.getElementById('emailing_gpid_migr').value);
XHR.appendData('export_domain',document.getElementById('export_domain').value);
XHR.appendData('export_default_password',document.getElementById('export_default_password').value);
if(document.getElementById('database_migrate_popup_id')){document.getElementById('database_migrate_popup_id').innerHTML='<center style=\"margin:20px;padding:20px\"><img src=\"img/wait_verybig.gif\"></center>';}
XHR.sendAndLoad('$page', 'GET',x_MigrateUsersToLdapPerform);
}
}
</script>
";
echo $tpl->_ENGINE_parse_body("$html");
}
示例9: DeleteInternetDomain
function DeleteInternetDomain()
{
$usr = new usersMenus();
if ($usr->AllowChangeDomains == false) {
echo $tpl->_ENGINE_parse_body('{no_privileges}');
exit;
}
$domain = $_GET["DeleteInternetDomain"];
$ou = $_GET["ou"];
$tpl = new templates();
$artica = new artica_general();
$ldap = new clladp();
if ($artica->RelayType == "single") {
$ldap->delete_VirtualDomainsMapsMTA($ou, $domain);
}
$HashDomains = $ldap->Hash_domains_table($ou);
$ldap = new clladp();
$h = $ldap->Ldap_search($ldap->suffix, "(associatedDomain={$domain})", array("dn"));
if ($h["count"] > 0) {
$res["associatedDomain"] = $domain;
if ($h["count"] == 1) {
$res["objectClass"] = "domainRelatedObject";
}
for ($i = 0; $i < $h["count"]; $i++) {
$ldap->Ldap_del_mod($h[$i]["dn"], $res);
}
}
writelogs("{$domain} type=" . $HashDomains[$domain], __FUNCTION__, __FILE__);
switch ($HashDomains[$domain]) {
case "associateddomain":
$ldap->delete_associated_domain($ou, $domain);
break;
case "dn":
if ($ldap->ExistsDN("cn={$domain},ou={$ou},{$ldap->suffix}")) {
writelogs("cn={$domain},ou={$ou},{$ldap->suffix} exists, delete it...", __FUNCTION__, __FILE__);
if (!$ldap->ldap_delete("cn={$domain},ou={$ou},{$ldap->suffix}")) {
writelogs("Error line :" . __LINE__ . " " . $ldap->ldap_last_error, __FUNCTION__, __FILE__);
}
}
break;
default:
return null;
break;
}
if ($ldap->ldap_last_error != null) {
echo $ldap->ldap_last_error;
} else {
echo html_entity_decode($tpl->_ENGINE_parse_body('{success}'));
exit;
}
}
示例10: popup
function popup(){
$sql="SELECT * FROM freeweb WHERE servername='{$_GET["servername"]}'";
$page=CurrentPageName();
$users=new usersMenus();
$tpl=new templates();
$q=new mysql();
$sock=new sockets();
$APACHE_PROXY_MODE=0;
$countloops=countloops();
$no_usersameftpuser=$tpl->javascript_parse_text("{no_usersameftpuser}");
$ligne=@mysql_fetch_array($q->QUERY_SQL($sql,'artica_backup'));
$error_field_max_length=$tpl->javascript_parse_text("{error_field_max_length}");
$error_please_fill_field=$tpl->javascript_parse_text("{error_please_fill_field}");
$acl_dstdomain=$tpl->javascript_parse_text("{acl_dstdomain}");
$mysql_database=$tpl->javascript_parse_text("{mysql_database}");
$username=$tpl->javascript_parse_text("{username}");
$password=$tpl->javascript_parse_text("{password}");
$vgservices=unserialize(base64_decode($sock->GET_INFO("vgservices")));
$checkboxes=1;
if($ligne["groupware"]=="cachemgr"){$checkboxes=0;}
$users=new usersMenus();
$PUREFTP_INSTALLED=1;
if(!$users->PUREFTP_INSTALLED){$PUREFTP_INSTALLED=0;}
$ServerPort=trim($ligne["ServerPort"]);
$UseDefaultPort=0;
if(!is_numeric($ServerPort)){$UseDefaultPort=1;}
if($ServerPort==null){$UseDefaultPort=1;}
if($ServerPort==0){$UseDefaultPort=1;}
if($users->APACHE_PROXY_MODE){$APACHE_PROXY_MODE=1;}
$parcourir_domaines="<input type='button' OnClick=\"javascript:Loadjs('browse.domains.php?field=domainname')\" value='{browse}...'>";
if($vgservices["freewebs"]<>null){
if(!is_numeric($ligne["lvm_size"])){$ligne["lvm_size"]=5000;}
if($ligne["lvm_vg"]==null){$ligne["lvm_vg"]=$vgservices["freewebs"];}
$sizelimit="
<tr>
<td class=legend>{size}:</td>
<td style='font-size:13px;'>". Field_text("vg_size",$ligne["lvm_size"],"font-size:13px;padding:3px;width:60px")." MB</td>
<td> </td>
</tr>";
}
if($ligne["domainname"]==null){
$dda=explode(".",$ligne["servername"]);
$hostname=$dda[0];
unset($dda[0]);
$domainname=@implode(".",$dda);
}else{
$hostname=str_replace(".{$ligne["domainname"]}","",$ligne["servername"]);
$domainname=$ligne["domainname"];
$parcourir_domaines=null;
}
if($hostname=="_default_"){$parcourir_domaines=null;}
$domain="<table style='width:100%'>
<tr>
<td>".Field_text("servername",$hostname,"font-size:13px;padding:3px")."</td>
<td style='font-size:14px' align='center' width=1%> . </td>
<td>".Field_text("domainname",$domainname,"font-size:13px;padding:3px;width:220px")."</td>
<td>$parcourir_domaines</td>
</tr>
</table>";
if(!$users->AsSystemAdministrator){
if($ligne["domainname"]==null){
$dd=explode(".",$ligne["servername"]);
$hostname=$dd[0];
unset($dd[0]);
$domainname=@implode(".",$dd);
}else{
$hostname=str_replace(".{$ligne["domainname"]}","",$ligne["servername"]);
$domainname=$ligne["domainname"];
}
$ldap=new clladp();
$domains=$ldap->Hash_domains_table($_SESSION["ou"]);
while (list ($a, $b) = each ($domains) ){$c[$a]=$a;}
$domain="
<table style='width:100%'>
<tr>
<td>".Field_text("servername",$hostname,"font-size:13px;padding:3px")."</td>
<td style='font-size:14px' align='center' width=1%> . </td>
<td>". Field_array_Hash($c,"domainname",$domainname,"style:font-size:13px;padding:3px;")."</td>
</tr>
</table>";
}
$NewServer=0;
if($ligne["servername"]==null){$NewServer=1;}
$html="
<table style='width:100%'>
<tr>
<td valign='top'><img src='img/website-64.png'></td>
<td valign='top'>
//.........这里部分代码省略.........