'; global $adb; global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $xtpl=new XTemplate ('modules/Settings/BackupServerConfig.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $sql="select * from systems where server_type = 'backup'"; $result = $adb->query($sql); $server = $adb->query_result($result,0,'server'); $server_username = $adb->query_result($result,0,'server_username'); $server_password = $adb->query_result($result,0,'server_password'); $xtpl->assign("RETURN_MODULE","Settings"); $xtpl->assign("RETURN_ACTION","index"); if (isset($server)) $xtpl->assign("FTPSERVER",$server); if (isset($server_username)) $xtpl->assign("FTPUSER",$server_username); if (isset($server_password)) $xtpl->assign("FTPPASSWORD",$server_password); $xtpl->parse("main"); $xtpl->out("main"); ?>