function lffolder_3_auth() { global $SAMSConf; global $USERConf; $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; if ($USERConf->ToWebInterfaceAccess("UC") == 1) { $item = array("classname" => "samsauth", "icon" => "auth.gif", "target" => "tray", "url" => "tray.php?show=exe&filename=authtray.php&function=authtray", "text" => "{$lframe_sams_Authorisation}"); treeFolder($item); if (GetAuthParameter("adld", "enabled") > 0) { $item = array("classname" => "samsauth", "target" => "tray", "url" => "tray.php?show=exe&function=authadldtray&filename=authadldtray.php", "text" => "Active Directory"); treeFolderItem($item); } if (GetAuthParameter("ntlm", "enabled") > 0) { $item = array("classname" => "samsauth", "target" => "tray", "url" => "tray.php?show=exe&function=authntlmtray&filename=authntlmtray.php", "text" => "NTLM"); treeFolderItem($item); } if (GetAuthParameter("ldap", "enabled") > 0) { $item = array("classname" => "samsauth", "target" => "tray", "url" => "tray.php?show=exe&function=authldaptray&filename=authldaptray.php", "text" => "LDAP"); treeFolderItem($item); } if (GetAuthParameter("ncsa", "enabled") > 0) { $item = array("classname" => "samsauth", "target" => "tray", "url" => "tray.php?show=exe&function=authncsatray&filename=authncsatray.php", "text" => "NCSA"); treeFolderItem($item); } treeFolderClose(); } }
function lframe_sams() { global $SAMSConf; $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; $item = array("classname" => "sams", "icon" => "proxy.gif", "target" => "basefrm", "url" => "main.php", "text" => "SAMS"); treeFolder($item); ExecuteFunctions("./src", "lffolder_", "1"); treeFolderClose(); return 0; }
function lffolder_2_squid() { global $SAMSConf; global $USERConf; $DB = new SAMSDB(); $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; if ($USERConf->ToWebInterfaceAccess("C") == 1) { $item = array("classname" => "squid", "icon" => "pobject.gif", "target" => "tray", "url" => "tray.php?show=exe&filename=squidtray.php&function=squidtray", "text" => "SQUID"); treeFolder($item); $DB->samsdb_query_value("SELECT * FROM proxy"); while ($row = $DB->samsdb_fetch_array()) { $item = array("classname" => "squid", "target" => "tray", "url" => "tray.php?show=exe&function=proxytray&filename=proxytray.php&id={$row['s_proxy_id']}", "text" => "{$row['s_description']}"); treeFolderItem($item); } treeFolderClose(); } }
function lffolder_4_z2_url() { global $SAMSConf; global $USERConf; $DB = new SAMSDB(); $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; if ($USERConf->ToWebInterfaceAccess("CL") == 1) { $item = array("classname" => "url", "icon" => "stop.gif", "target" => "basefrm", "url" => "main.php?show=exe&filename=redirlisttray.php&function=addurllistform&type=regex", "text" => "{$lframe_sams_FolderContextDenied_1}"); treeFolder($item); $num_rows = $DB->samsdb_query_value("SELECT * FROM redirect WHERE s_type='regex' "); while ($row = $DB->samsdb_fetch_array()) { $item = array("classname" => "url", "target" => "tray", "url" => "tray.php?show=exe&filename=redirlisttray.php&function=redirlisttray&id={$row['s_redirect_id']}", "text" => "{$row['s_name']}"); treeFolderItem($item); } treeFolderClose(); } }
function lffolder_5_z20_delaypool() { global $SAMSConf; global $USERConf; $DB = new SAMSDB(); $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; if ($USERConf->ToWebInterfaceAccess("C") == 1) { $item = array("classname" => "delaypool", "icon" => "delaypool.png", "target" => "basefrm", "url" => "main.php?show=exe&filename=pooltray.php&function=addpoolform", "text" => "{$lframe_sams_DelayPools}"); treeFolder($item); $num_rows = $DB->samsdb_query_value("SELECT * FROM delaypool"); while ($row = $DB->samsdb_fetch_array()) { $item = array("classname" => "delaypool", "target" => "tray", "url" => "tray.php?show=exe&filename=pooltray.php&function=pooltray&id={$row['s_pool_id']}", "text" => "{$row['s_name']}"); treeFolderItem($item); } treeFolderClose(); } }
function lffolder_5_z0_trange() { global $SAMSConf; global $USERConf; $DB = new SAMSDB(); $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; if ($USERConf->ToWebInterfaceAccess("C") == 1) { $item = array("classname" => "timerange", "icon" => "clock.gif", "target" => "basefrm", "url" => "main.php?show=exe&filename=trangetray.php&function=addtrangeform", "text" => "{$lffolder_5_z0_trange_lfforder_5_z0_trange_1}"); treeFolder($item); $num_rows = $DB->samsdb_query_value("SELECT * FROM timerange"); while ($row = $DB->samsdb_fetch_array()) { $item = array("classname" => "timerange", "target" => "tray", "url" => "tray.php?show=exe&filename=trangetray.php&function=trangetray&id={$row['s_trange_id']}", "text" => "{$row['s_name']}"); treeFolderItem($item); } treeFolderClose(); } }
function lffolder_5_z1_shablon() { global $SAMSConf; global $USERConf; $DB = new SAMSDB(); $lang = "./lang/lang.{$SAMSConf->LANG}"; require $lang; if ($USERConf->ToWebInterfaceAccess("C") == 1) { $item = array("classname" => "shablon", "icon" => "paddressbook.gif", "target" => "basefrm", "url" => "main.php?show=exe&function=newshablonform&filename=shablonnew.php", "text" => "{$lframe_sams_UserShablonFolder_1}"); treeFolder($item); $DB->samsdb_query("SELECT * FROM shablon ORDER BY s_name"); while ($row = $DB->samsdb_fetch_array()) { $item = array("classname" => "shablon", "target" => "tray", "url" => "tray.php?show=exe&function=shablontray&filename=shablontray.php&id={$row['s_shablon_id']}", "text" => "{$row['s_name']}"); treeFolderItem($item); } treeFolderClose(); } }