本文整理汇总了PHP中clladp::ldap_close方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::ldap_close方法的具体用法?PHP clladp::ldap_close怎么用?PHP clladp::ldap_close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clladp
的用法示例。
在下文中一共展示了clladp::ldap_close方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ORGANISATIONS_LIST
function ORGANISATIONS_LIST(){
$ldap=new clladp();
$page=CurrentPageName();
$hash=$ldap->hash_get_ou(true);
$users=new usersMenus();
$sock=new sockets();
$AllowInternetUsersCreateOrg=$sock->GET_INFO("AllowInternetUsersCreateOrg");
if(!is_array($hash)){return null;}
ksort($hash);
if(!$ldap->BuildOrganizationBranch()){
$error="<div style='float:left'>".Paragraphe("danger64.png","{GENERIC_LDAP_ERROR}",$ldap->ldap_last_error)."</div>";
}
$page=CurrentPageName();
if(isset($_GET["ajaxmenu"])){$header="
<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='{add_new_organisation_text}'>
<input type='hidden' name='ajaxmenu' id='ajaxmenu' value='yes'>";
}
$html="
$header
<div style='width:700px;height:550px'>$error";
if(isset($_GET["ajaxmenu"])){$ajax=true;}
$html=$html."<div style='float:left'>".butadm()."</div>";
while (list ($num, $ligne) = each ($hash) ){
$md=md5($ligne);
$uri="javascript:Loadjs('domains.manage.org.index.php?js=yes&ou=$ligne');";
if($ajax){
$uri="javascript:Loadjs('$page?LoadOrgPopup=$ligne');";
}
$img=$ldap->get_organization_picture($ligne,64);
$html=$html . "<div style='float:left'>" . Paragraphe($img,"{manage} $ligne","
<strong>$ligne:<br></strong>{manage_organisations_text}",$uri,null,220,100) . "</div>
";
}
if($AllowInternetUsersCreateOrg==1){
$sql="SELECT * FROM register_orgs WHERE sended=0 ORDER BY ou";
$q=new mysql();
$results=$q->QUERY_SQL($sql,"artica_backup");
if(!$q->ok){echo "<H2>$q->mysql_error</H2>";}
while($ligne=mysql_fetch_array($results,MYSQL_ASSOC)){
$uri="javascript:Loadjs('domains.organizations.parameters.php?ou-sql-js={$ligne["zmd5"]}')";
$name=$ligne["ou"];
$time=$ligne["register_date"];
$html=$html . "<div style='float:left'>" . Paragraphe("img/org-warning-64.png","$name","
<strong>$time:<br></strong>{waiting}",$uri,null,220,100) . "</div>
";
}
}
if($users->POSTFIX_INSTALLED){
$sendmail="<div style='float:left'>".Buildicon64('DEF_ICO_SENDTOALL',220,100)."</div>";
}
if(isset($_GET["ajaxmenu"])){
$html=$html."
<div style='float:left'>" .butadm()."</div>";
}
if($users->AsArticaAdministrator){
$parameters="<div style='float:left'>".Paragraphe("parameters2-64.png","{organizations_parameters}","
{organizations_parameters_text}","javascript:Loadjs('domains.organizations.parameters.php')",null,220,100)."</div>";
}
$ldap->ldap_close();
return "$parameters".$html."$sendmail</div>";
}
示例2: ORGANISTATION_FROM_USER
function ORGANISTATION_FROM_USER()
{
$ldap = new clladp();
$hash = $ldap->Hash_Get_ou_from_users($_SESSION["uid"], 1);
$ldap->ldap_close();
if (!is_array($hash)) {
return null;
}
return Paragraphe('folder-org-64.jpg', "{manage} «{$hash[0]}»", "<strong>{$hash[0]}:<br></strong>{manage_organisations_text}", 'domains.manage.org.index.php?ou=' . $hash[0]) . "\t\n\t<script>\n\tOrgfillpageButton();\n\t</script>";
}
示例3: TreeAddNewOrganisation
function TreeAddNewOrganisation()
{
$usr = new usersMenus();
$tpl = new templates();
if ($usr->AsArticaAdministrator == false) {
echo $tpl->_ENGINE_parse_body('{no_privileges}');
exit;
}
$ou = $_GET["TreeAddNewOrganisation"];
if ($ou == "_Global") {
echo "Reserved!";
exit;
}
$ldap = new clladp();
$ldap->AddOrganization($ou);
if ($ldap->ldap_last_error != null) {
if ($ldap->ldap_last_error_num != 68) {
echo "\n****************************************\nAdding Organization \"{$ou}\"\n********************\n";
echo $ldap->ldap_last_error;
exit;
}
}
$ldap->ldap_close();
REMOVE_CACHED("domains.index.php");
$sock = new sockets();
$sock->getFrameWork("status.php?force-front-end=yes");
}
示例4: daemons_status
function daemons_status()
{
$users = new usersMenus();
$artica = new artica_general();
$tpl = new templates();
$soc = new sockets();
$ONLY_SAMBA = false;
if (!$users->SQUID_INSTALLED) {
if (!$users->POSTFIX_INSTALLED) {
if ($users->SAMBA_INSTALLED) {
$ONLY_SAMBA = true;
}
}
}
if ($users->collectd_installed) {
if ($artica->EnableCollectdDaemon == 1) {
$collectd = Paragraphe("64-charts.png", "{collectd_statistics}", "{collectd_statistics_text}", "javascript:YahooWin(790,'collectd.index.php?PopUp=yes')", "services_status_text", 300, 76);
}
}
$interface = new networking();
if (is_array($interface->array_TCP)) {
while (list($num, $val) = each($interface->array_TCP)) {
if ($val == null) {
continue;
}
$i++;
$iptext = $iptext . "<div style='font-size:11px'><strong>{nic}:{$num}:<a href='#' OnClick=\"javascript:Loadjs('system.nic.config.php?js=yes')\">{$val}</a></strong></div>";
if ($i > 2) {
break;
}
}
}
if ($users->POSTFIX_INSTALLED) {
$monthly_stats = Paragraphe("statistics-network-64.png", "{monthly_statistics}", "{monthly_statistics_text}", "javascript:Loadjs('smtp.daily.statistics.php')", "{monthly_statistics_text}", 300, 76, 1);
}
$services = "\n\t{$interfaces_text}\n\t{$collectd}\n\t{$curlinit}\n\t";
$sock = new sockets();
$ini = new Bs_IniHandler();
$ini->loadFile("/etc/artica-postfix/smtpnotif.conf");
if ($sock->GET_INFO("DisableWarnNotif") != 1) {
if (trim($ini->_params["SMTP"]["enabled"] == null)) {
$js = "javascript:Loadjs('artica.settings.php?ajax-notif=yes')";
$services = Paragraphe('danger64.png', "{smtp_notification_not_saved}", "{smtp_notification_not_saved_text}", "{$js}", "{smtp_notification_not_saved}", 300, 80);
}
}
if ($sock->GET_INFO("WizardBackupSeen") != 1) {
$js = "javascript:Loadjs('wizard.backup-all.php')";
$nobackup = Paragraphe('danger64.png', "{BACKUP_WARNING_NOT_CONFIGURED}", "{BACKUP_WARNING_NOT_CONFIGURED_TEXT}", "{$js}", "{BACKUP_WARNING_NOT_CONFIGURED_TEXT}", 300, 80);
}
$datas = trim($sock->getfile('aptcheck'));
if (preg_match('#nb:([0-9]+)\\s+#is', $datas, $re)) {
$services = Paragraphe('i64.png', "{upgrade_your_system}", "{$re[1]} {packages_to_upgrade}", "javascript:Loadjs('artica.repositories.php?show=update')", null, 300, 76);
}
$ldap = new clladp();
$hash = $ldap->hash_get_ou();
$ldap->ldap_close();
if (count($hash) < 1) {
$no_orgs = Paragraphe('org-warning-64.png', "{no_organization}", "{no_organization_text_jgrowl}", "javascript:TreeAddNewOrganisation()", null, 300, 76);
}
if ($users->POSTFIX_INSTALLED) {
if (!$users->POSTFIX_LDAP_COMPLIANCE) {
$services = "\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<td valign='top' width=1%><img src='img/rouage_off.png'></td>\n\t\t\t\t\t<td valign='top'><a href='#' OnClick=\"javascript:YahooWin(600,'index.remoteinstall.php','Install');\">\n\t\t\t\t\t<H5>{error_postfix_ldap_compliance}</H5><p class=caption>{error_postfix_ldap_compliance_text}\n\t\t\t\t\t</A>\n\t\t\t\t\t</p></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>";
$services = RoundedLightYellow($services);
} else {
$ok = true;
$main = new main_cf();
if (!$main->CheckMyNetwork()) {
$services = "\n\t\t\t\t<div id='servinfos'>\n\t\t\t\t\t" . Paragraphe('pluswarning64.png', '{postfix_mynet_not_conf}', '{postfix_mynet_not_conf_text}', "javascript:Loadjs('postfix.network.php?ajax=yes');", "{postfix_mynet_not_conf}", 300, 73) . "\n\t\t\t\t</div>";
}
}
}
if ($users->BadMysqlPassword == 1) {
$services = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=1%><img src='img/superuser-64-bad.png'></td>\n\t<td valign='top'><H5>{error_mysql_user}</H5><p class=caption>{error_mysql_user_text}</p></td>\n\t</tr>\n\t</table>";
$services = RoundedLightGrey($services, "artica.settings.php", 1);
}
if ($ONLY_SAMBA) {
$computers = Paragraphe("64-win-nic-browse.png", '{browse_computers}', '{browse_computers_text}', "javascript:Loadjs('computer-browse.php');", "{browse_computers_text}", 300, 76, 1);
$samba = Paragraphe("explorer-64.png", '{explorer}', '{SHARE_FOLDER_TEXT}', "javascript:Loadjs('tree.php');", "{SHARE_FOLDER_TEXT}", 300, 76, 1);
}
if (!is_file("/etc/artica-postfix/KASPER_MAIL_APP")) {
if ($users->ZABBIX_INSTALLED) {
$EnableZabbixServer = $sock->GET_INFO("EnableZabbixServer");
if ($EnableZabbixServer == null) {
$EnableZabbixServer = 1;
}
if ($EnableZabbixServer == 1) {
$zabbix = Paragraphe("zabbix_med.gif", '{APP_ZABIX_SERVER}', '{APP_ZABIX_SERVER_TEXT}', "javascript:Loadjs('zabbix.php')", "{APP_ZABIX_SERVER_TEXT}", 300, 76, 1);
}
}
}
if ($sock->GET_INFO("DisableFrontEndArticaEvents") != 1) {
$q = new mysql();
$sql = "SELECT COUNT(ID) as tcount FROM events";
$events_sql = @mysql_fetch_array($q->QUERY_SQL($sql, "artica_events"));
if ($events_sql["tcount"] > 0) {
$events_paragraphe = Paragraphe("events-64.png", '{artica_events}', "{artica_events_text}", "javascript:Loadjs('artica.events.php')", "{$events_sql["tcount"]} {events}", 300, 76, 1);
}
}
$kernel_mismatch = kernel_mismatch();
$newversion = null;
//.........这里部分代码省略.........
示例5: ORGANISATIONS_LIST
function ORGANISATIONS_LIST()
{
$ldap = new clladp();
$page = CurrentPageName();
$hash = $ldap->hash_get_ou(true);
$users = new usersMenus();
if (!is_array($hash)) {
return null;
}
ksort($hash);
if (!$ldap->BuildOrganizationBranch()) {
$error = "<div style='float:left'>" . Paragraphe("danger64.png", "{GENERIC_LDAP_ERROR}", $ldap->ldap_last_error) . "</div>";
}
$page = CurrentPageName();
if (isset($_GET["ajaxmenu"])) {
$header = "\n\t<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='{add_new_organisation_text}'>\n\t<input type='hidden' name='ajaxmenu' id='ajaxmenu' value='yes'>";
}
$html = "\n\t{$header}\n\t<div style='width:700px;height:300px'>{$error}";
if (isset($_GET["ajaxmenu"])) {
$ajax = true;
}
$html = $html . "<div style='float:left'>" . butadm() . "</div>";
while (list($num, $ligne) = each($hash)) {
$md = md5($ligne);
$uri = "javascript:Loadjs('domains.manage.org.index.php?js=yes&ou={$ligne}');";
if ($ajax) {
$uri = "javascript:Loadjs('{$page}?LoadOrgPopup={$ligne}');";
}
$img = $ldap->get_organization_picture($ligne, 64);
$html = $html . "<div style='float:left'>" . Paragraphe($img, "{manage} {$ligne}", "\n\t\t<strong>{$ligne}:<br></strong>{manage_organisations_text}", $uri, null, 220, 100) . "</div>\n\t\t";
}
if ($users->POSTFIX_INSTALLED) {
$sendmail = "<div style='float:left'>" . Buildicon64('DEF_ICO_SENDTOALL', 220, 100) . "</div>";
}
if (isset($_GET["ajaxmenu"])) {
$html = $html . "\n\t\t<div style='float:left'>" . butadm() . "</div>";
}
$ldap->ldap_close();
return $html . "{$sendmail}</div>";
}
示例6: popup
function popup()
{
$users = new usersMenus();
$userClasse = new usersMenus();
$page = CurrentPageName();
$tpl = new templates();
$sock = new sockets();
$ERROR_NO_PRIVS = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
$t = time();
$ldap = new clladp();
if ($ldap->IsKerbAuth()) {
popup_activedirectory();
return;
}
if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
return;
}
$ZarafaField = "{display: ' ', name : 'Zarafa', width :31, sortable : false, align: 'center'},";
$online_help = $tpl->_ENGINE_parse_body("{online_help}");
$EnableWebProxyStatsAppliance = $sock->GET_INFO("EnableWebProxyStatsAppliance");
if (!is_numeric($EnableWebProxyStatsAppliance)) {
$EnableWebProxyStatsAppliance = 0;
}
if ($EnableWebProxyStatsAppliance == 1) {
$userClasse->WEBSTATS_APPLIANCE = true;
}
if ($userClasse->WEBSTATS_APPLIANCE) {
$userClasse->SQUID_INSTALLED = true;
}
if ($users->ZARAFA_INSTALLED) {
$ZarafaEnableServer = $sock->GET_INFO("ZarafaEnableServer");
if (!is_numeric($ZarafaEnableServer)) {
$ZarafaEnableServer = 1;
}
if ($ZarafaEnableServer == 1) {
if ($users->AsMailBoxAdministrator) {
$ZarafaField = "{display: '<span style=font-size:20px>Zarafa</span>', name : 'Zarafa', width :98, sortable : false, align: 'center'},";
$ZarafaUri = "&zarafaF=1";
$help = "{name: '{$online_help}', bclass: 'Help', onpress : Zhelp{$t}},";
}
}
}
$EnableManageUsersTroughActiveDirectory = $sock->GET_INFO("EnableManageUsersTroughActiveDirectory");
if (!is_numeric($EnableManageUsersTroughActiveDirectory)) {
$EnableManageUsersTroughActiveDirectory = 0;
}
$users = new usersMenus();
if ($EnableManageUsersTroughActiveDirectory == 1) {
$ldap = new ldapAD();
$usersnumber = $ldap->COUNT_DE_USERS();
} else {
$ldap = new clladp();
$usersnumber = $ldap->COUNT_DE_USERS();
$ldap->ldap_close();
}
$Totalusers = $tpl->_ENGINE_parse_body("{my_organizations}::<i>{this_server_store}: <strong>{$usersnumber}</strong> {users}</i>");
$organizations_parameters = $tpl->_ENGINE_parse_body("{organizations_parameters}");
$add_new_organisation = $tpl->_ENGINE_parse_body("{add_new_organisation}");
$organizations = $tpl->_ENGINE_parse_body("{organizations}");
$users = $tpl->_ENGINE_parse_body("{users}");
$groupsF = $tpl->_ENGINE_parse_body("{groupsF}");
$domains = $tpl->_ENGINE_parse_body("{domains}");
$actions = $tpl->_ENGINE_parse_body("{actions}");
$add_new_organisation_text = $tpl->javascript_parse_text("{add_new_organisation_text}");
$update = $tpl->_ENGINE_parse_body("{update2}");
if ($users->AsArticaAdministrator) {
$parametersBT = "{name: '<strong style=font-size:18px>{$organizations_parameters}</strong>', bclass: 'Reconf', onpress : organizations_parameters},";
}
if (butadm() != null) {
$jsadd = "TreeAddNewOrganisation{$t}";
} else {
$jsadd = "nothingtodo";
}
$bb = "<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='" . $tpl->javascript_parse_text("{add_new_organisation_text}") . "'>";
if (isset($_GET["ajaxmenu"])) {
$bc = "&ajaxmenu=yes";
}
$bt_add_new = "{name: '<strong style=font-size:18px>{$add_new_organisation}</strong>', bclass: 'add', onpress : {$jsadd}},";
$ldap = new clladp();
if ($ldap->IsKerbAuth()) {
$bt_add_new = null;
$Totalusers = $tpl->_ENGINE_parse_body("{my_organizations}");
} else {
$TEXT_TO_CSV = $tpl->_ENGINE_parse_body("{TEXT_TO_CSV}");
$CsvToLdap = "{name: '<strong style=font-size:18px>{$TEXT_TO_CSV}</strong>', bclass: 'Copy', onpress : TEXT_TO_CSV},";
}
if (!$users->AsArticaAdministrator) {
if (!$users->AsPostfixAdministrator) {
$bt_add_new = null;
$parametersBT = null;
$CsvToLdap = null;
$Totalusers = $tpl->_ENGINE_parse_body("{my_organizations}");
}
}
$buttons = "\n\tbuttons : [\n\t{$bt_add_new}{$parametersBT}{$CsvToLdap}\n\t\t],";
$html = "\n\t{$bb}\n\t<input type='hidden' name='MAIN_PAGE_ORGANIZATION_LIST' id='MAIN_PAGE_ORGANIZATION_LIST' value='{$t}'>\n\t<table class='table-{$t}' style='display: none' id='table-{$t}' style='width:100%;margin:-10px'></table>\n<script>\nOUIDMEM='';\n\$(document).ready(function(){\n\$('#table-{$t}').flexigrid({\n\turl: '{$page}?ShowOrganizations=yes&t={$t}{$ZarafaUri}{$bc}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t\n\t\t{display: '<span style=font-size:20px>{$organizations}</span>', name : 'ou', width :237, sortable : false, align: 'left'},\n\t\t{$ZarafaField}\n\t\t{display: '<span style=font-size:20px>{$users}</span>', name : 'users', width :153, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px> </span>', name : 'nonex1', width : 50, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>{$groupsF}</span>', name : 'groups', width : 153, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px> </span>', name : 'nonex2', width : 50, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>{$domains}</span>', name : 'domains', width : 153, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px> </span>', name : 'nonex3', width : 50, sortable : false, align: 'center'},\t\t\n\t\t{display: '<span style=font-size:20px> </span>', name : 'nonex4', width : 50, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px> </span>', name : 'nonex5', width : 50, sortable : false, align: 'center'},\n\t\t\n\t\t{display: ' ', name : 'none1', width : 31, sortable : false, align: 'left'},\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$organizations}', name : 'ou'},\n\t\t],\n\tsortname: 'ou',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span style=font-size:30px>{$Totalusers}</span>',\n\tuseRp: false,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 550,\n\tsingleSelect: true\n\t\n\t}); \n});\n\nfunction Zhelp{$t}(){\n\ts_PopUpFull('http://www.mail-appliance.org/index.php?cID=202','1024','900');\n}\n\nfunction ActiveDirectorySquid{$t}(){\n\tLoadjs('squid.adker.php',true);\n}\n\nfunction TEXT_TO_CSV(){\n\tLoadjs('csvToLdap.php',true);\n}\n\n\tvar x_TreeAddNewOrganisation{$t}= function (obj) {\n\t\tvar response=obj.responseText;\n\t\tif(response){alert(response);}\n\t\t\$('#table-{$t}').flexReload();\n\t}\n\t\n\tfunction TreeAddNewOrganisation{$t}(){\n\t\tvar texte='{$add_new_organisation_text}'\n\t\tvar org=prompt(texte,'');\n\t\tif(org){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('TreeAddNewOrganisation',org);\n\t\t\tXHR.sendAndLoad('domains.php', 'GET',x_TreeAddNewOrganisation{$t});\n\t\t\t}\n\t}\n\n\t\tfunction organizations_parameters(){\n\t\t\tLoadjs('domains.organizations.parameters.php');\n\t\t\t\n\t\t}\n\t\t\n\t\tfunction ActiveDirectoryUpdate{$t}(){\n\t\t\tLoadjs('domains.activedirectory.update.php?flexigrid=table-{$t}');\n\t\t}\n\t\t\n\t\tfunction nothingtodo(){\n\t\t\talert('{$ERROR_NO_PRIVS}');\n\t\t}\n\n</script>\n";
$tpl = new templates();
$html = $tpl->_ENGINE_parse_body($html);
SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
echo $html;
//.........这里部分代码省略.........
示例7: TreeAddNewOrganisation
function TreeAddNewOrganisation()
{
$usr = new usersMenus();
$tpl = new templates();
if ($usr->AsArticaAdministrator == false) {
echo $tpl->_ENGINE_parse_body('{no_privileges}');
exit;
}
$ou = $_GET["TreeAddNewOrganisation"];
if ($ou == "_Global") {
echo "Reserved!";
exit;
}
$ldap = new clladp();
$ldap->AddOrganization($ou);
if ($ldap->ldap_last_error != null) {
if ($ldap->ldap_last_error_num != 68) {
echo $ldap->ldap_last_error;
exit;
}
}
$ldap->ldap_close();
REMOVE_CACHED("domains.index.php");
}
示例8: daemons_status
function daemons_status(){
if(!isset($GLOBALS["CLASS_USERS_MENUS"])){$users=new usersMenus();$GLOBALS["CLASS_USERS_MENUS"]=$users;}else{$users=$GLOBALS["CLASS_USERS_MENUS"];}
$artica=new artica_general();
$tpl=new templates();
$sock=new sockets();
$ONLY_SAMBA=false;
if($GLOBALS["VERBOSE"]){echo "daemons_status:: -> Stating...\n";}
$EnableArticaSMTPStatistics=$sock->GET_INFO("EnableArticaSMTPStatistics");
if(!is_numeric($EnableArticaSMTPStatistics)){$EnableArticaSMTPStatistics=1;}
$nobackup=null;
if(!$users->SQUID_INSTALLED){
if(!$users->POSTFIX_INSTALLED){
if($users->SAMBA_INSTALLED){
$ONLY_SAMBA=true;
}
}
}
if($users->collectd_installed){
if($artica->EnableCollectdDaemon==1){
$collectd=Paragraphe("64-charts.png","{collectd_statistics}","{collectd_statistics_text}","javascript:YahooWin(790,'collectd.index.php?PopUp=yes')","services_status_text",300,76);
}
}
$interface=new networking();
$i=0;
if(is_array($interface->array_TCP)){
while (list ($num, $val) = each ($interface->array_TCP) ){
if($val==null){continue;}
$i++;
$iptext=$iptext."<div style='font-size:11px'><strong>{nic}:$num:<a href='#' OnClick=\"javascript:Loadjs('system.nic.config.php?js=yes')\">$val</a></strong></div>";
if($i>2){break;}
}
}
if($EnableArticaSMTPStatistics==1){
if(!$users->KASPERSKY_WEB_APPLIANCE){
if($users->POSTFIX_INSTALLED){
$monthly_stats=Paragraphe("statistics-network-64.png","{monthly_statistics}","{monthly_statistics_text}","javascript:Loadjs('smtp.daily.statistics.php')","{monthly_statistics_text}",300,76,1);
}
}}
$services="
$collectd
";
$ini=new Bs_IniHandler();
$ini->loadFile("/etc/artica-postfix/smtpnotif.conf");
$ArticaMetaEnabled=$sock->GET_INFO($ArticaMetaEnabled);
$RootPasswordChanged=$sock->GET_INFO("RootPasswordChanged");
if($RootPasswordChanged<>1){
$RootPasswordChangedTXT=Paragraphe('warning64.png',
"{root_password_not_changed}",
"{root_password_not_changed_text}",
"javascript:Loadjs('system.root.pwd.php')",
"{root_password_not_changed_text}",300,80);
}
if($ArticaMetaEnabled<>1){
if($sock->GET_INFO("DisableWarnNotif")<>1){
if(trim($ini->_params["SMTP"]["enabled"]==null)){
$js="javascript:Loadjs('artica.settings.php?ajax-notif=yes')";
$services=Paragraphe('danger64.png',
"{smtp_notification_not_saved}",
"{smtp_notification_not_saved_text}",
"$js",
"{smtp_notification_not_saved}",300,80);
}}}
if(!$users->KASPERSKY_WEB_APPLIANCE){
if($ArticaMetaEnabled<>1){
if($sock->GET_INFO("WizardBackupSeen")<>1){
$js="javascript:Loadjs('wizard.backup-all.php')";
$nobackup=Paragraphe('danger64.png',"{BACKUP_WARNING_NOT_CONFIGURED}","{BACKUP_WARNING_NOT_CONFIGURED_TEXT}","$js","{BACKUP_WARNING_NOT_CONFIGURED_TEXT}",300,80);
}}}
$datas=trim(@file_get_contents("/etc/artica-postfix/apt.upgrade.cache"));
if(preg_match('#nb:([0-9]+)\s+#is',$datas,$re)){
$check_apt=Paragraphe('i64.png',"{upgrade_your_system}","{$re[1]} {packages_to_upgrade}","javascript:Loadjs('artica.repositories.php?show=update')",null,300,76);
}
$ldap=new clladp();
$hash=$ldap->hash_get_ou();
$ldap->ldap_close();
if(count($hash)<1){
//.........这里部分代码省略.........