function USER_SAMBA($userid) { $page = CurrentPageName(); if ($_GET["smb-section"] == null) { $_GET["smb-section"] = "parameters"; } switch ($_GET["smb-section"]) { case "parameters": $insert = USER_SAMBA_FORM($userid); break; case "smb-infos": $insert = USER_SAMBA_INFOS($userid); break; default: $insert = USER_SAMBA_FORM($userid); break; } $error = USER_SAMBA_DISPLAY_STATUS($userid); $WHATHESEE = Paragraphe("user-folder-64.png", "{WHAT_USER_SEE}", "{WHAT_USER_SEE_SMB_TEXT}", "javascript:Loadjs('domains.edit.user.smbsee.php?uid={$userid}')"); $LOGON_SCRIPT = Paragraphe('script-64.png', '{LOGON_SCRIPT}', '{LOGON_SCRIPT_TEXT}', "javascript:Loadjs('domains.edit.user.login.script.php?uid={$userid}')"); $html = "<div id='samba_div'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td valign='top' style='vertical-align:top' style='vertical-align:top' width=200px>\n\t\t\t\t" . Paragraphe('64-Folder-privileges.png', '{SAMBA_GROUP_PRIVILEGES}', '{SAMBA_GROUP_PRIVILEGES_TEXT}', "javascript:Loadjs('{$page}?SAMBA_PRIVILEGES={$userid}')", '{SAMBA_GROUP_PRIVILEGES}', "") . "\n\t\t\t\t{$error}\n\t\t\t\t{$WHATHESEE}\n\t\t\t\t{$LOGON_SCRIPT}\n\t\t\t\t</td>\n\t\t\t<td valign='top' style='vertical-align:top' style='vertical-align:top' ><div style='font-size:18px;margin-bottom:10px'>{$userid} » {file_share}</div>\n\t\t\t<div id='USER_SAMBA_FORM'>\n\t\t\t\t\t{$insert}\n\t\t\t</div>\n\t</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t\n\t\t\n\t</div>"; $tpl = new templates(); return div_grey($tpl->_ENGINE_parse_body($html)); }
function USER_SAMBA($userid) { $page = CurrentPageName(); if ($_GET["smb-section"] == null) { $_GET["smb-section"] = "parameters"; } switch ($_GET["smb-section"]) { case "parameters": $insert = USER_SAMBA_FORM($userid); break; case "smb-infos": $insert = USER_SAMBA_INFOS($userid); break; default: $insert = USER_SAMBA_FORM($userid); break; } $error = USER_SAMBA_DISPLAY_STATUS($userid); $html = "<div id='samba_div'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td valign='top' width=200px>\n\t\t\t\t" . Paragraphe('64-Folder-privileges.png', '{SAMBA_GROUP_PRIVILEGES}', '{SAMBA_GROUP_PRIVILEGES_TEXT}', "javascript:Loadjs('{$page}?SAMBA_PRIVILEGES={$userid}')", '{SAMBA_GROUP_PRIVILEGES}', "") . "\n\t\t\t\t{$error}\n\t\t\t\t</td>\n\t\t\t<td valign='top' ><h5>{$userid}:{file_share}</H5>\n\t\t\t<div id='USER_SAMBA_FORM'>\n\t\t\t\t\t{$insert}\n\t\t\t</div>\n\t</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t\n\t\t\n\t</div>"; $tpl = new templates(); return div_grey($tpl->_ENGINE_parse_body($html)); }