summaryrefslogtreecommitdiff
path: root/pages/setup.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/setup.ecpp')
-rw-r--r--pages/setup.ecpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/pages/setup.ecpp b/pages/setup.ecpp
index debd97c..548846f 100644
--- a/pages/setup.ecpp
+++ b/pages/setup.ecpp
@@ -23,6 +23,7 @@ using namespace std;
string showInfoBox;
string useStreamdev;
string streamdevport;
+ string streamdevtype;
int authchanged = 0;
</%args>
<%session scope="global">
@@ -61,6 +62,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
}
LiveSetup().SetUseStreamdev(!useStreamdev.empty());
LiveSetup().SetStreamdevPort(streamdevport.empty() ? 3000 : lexical_cast<int>(streamdevport));
+ LiveSetup().SetStreamdevType(streamdevtype.empty() ? "PES" : streamdevtype);
LiveSetup().SaveSetup();
message = tr("Setup saved.");
}
@@ -83,6 +85,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
showInfoBox = LiveSetup().GetShowInfoBox() ? "1" : "";
useStreamdev = LiveSetup().GetUseStreamdev() ? "1" : "";
streamdevport = lexical_cast<std::string, int>(LiveSetup().GetStreamdevPort());
+ streamdevtype = LiveSetup().GetStreamdevType();
</%cpp>
<& pageelems.doc_type &>
@@ -182,9 +185,19 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
<div id="streamdevsection" style="display: none">
<table border="0" cellpadding="0" cellspacing="0" class="dependent">
<tr>
- <td class="label"><div class="withmargin"><$ tr("streamdev server port") $>:</div></td>
+ <td class="label"><div class="withmargin"><$ tr("Streamdev server port") $>:</div></td>
<td><input type="text" name="streamdevport" id="streamdevport" value="<$ streamdevport $>" /></td>
</tr>
+ <tr>
+ <td class="label"><div class="withmargin"><$ tr("Streamdev stream type") $>:</div></td>
+ <td class="rightcol"><select name="streamdevtype" size="1" id="streamdevtype">
+ <option value="TS" <%cpp> SELECTIF(streamdevtype == "TS") </%cpp>>TS</option>
+ <option value="PES" <%cpp> SELECTIF(streamdevtype == "PES") </%cpp>>PES</option>
+ <option value="PS" <%cpp> SELECTIF(streamdevtype == "PS") </%cpp>>PS</option>
+ <option value="ES" <%cpp> SELECTIF(streamdevtype == "ES") </%cpp>>ES</option>
+ <option value="Extern" <%cpp> SELECTIF(streamdevtype == "Extern") </%cpp>>Extern</option>
+ </select></td>
+ </tr>
</table>
</div>
</td>