40aac1d5f6
* Added a check to all 'Database->insert_or_update_*' methods to check if the passed-in reference UUID was found and return an empty string if not. Signed-off-by: Digimer <digimer@alteeve.ca>
572 lines
17 KiB
HTML
572 lines
17 KiB
HTML
<!-- start confirm-action -->
|
|
<table align="center">
|
|
<form name="confirm-update" action="" method="post">
|
|
<div id="confirm-update">
|
|
<tr>
|
|
<td class="menu_title" colspan="2">
|
|
#!variable!title!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details" colspan="2">
|
|
#!variable!message!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="button_cell" style="text-align: left;">
|
|
<a href="/cgi-bin/striker?striker=true" class="button">#!string!striker_0098!#</a>
|
|
</td>
|
|
<td class="button_cell" style="text-align: right;">
|
|
<input type="submit" name="confirm" id="confirm" class="button" value="#!string!striker_0082!#">
|
|
</td>
|
|
</tr>
|
|
<input type="hidden" name="striker" id="striker" value="#!data!cgi::striker::value!#">
|
|
<input type="hidden" name="task" id="task" value="#!data!cgi::task::value!#">
|
|
<input type="hidden" name="save" id="save" value="#!data!cgi::save::value!#">
|
|
</form>
|
|
</div>
|
|
</table>
|
|
<!-- end confirm-action -->
|
|
|
|
<!-- start confirm-new-peer -->
|
|
<table align="center">
|
|
<tr>
|
|
<td class="menu_title">
|
|
#!string!striker_0078!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!string!striker_0081!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table align="center" class="data_table">
|
|
<form name="confirm-new-peer" action="" method="post">
|
|
<div id="confirm-new-peer">
|
|
<tr>
|
|
<td class="top_padded_cell">
|
|
#!string!striker_0079!#:
|
|
</td>
|
|
<td class="top_padded_cell" class="fixed_width">
|
|
#!variable!access!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="padded_cell">
|
|
#!string!striker_0080!#:
|
|
</td>
|
|
<td class="padded_cell" class="fixed_width">
|
|
#!variable!ping!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="padded_cell">
|
|
#!string!striker_0072!#:
|
|
</td>
|
|
<td class="padded_cell" class="fixed_width">
|
|
#!variable!bidirectional!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="button_cell" style="text-align: left;">
|
|
<a href="/cgi-bin/striker?striker=true" class="button">#!string!striker_0098!#</a>
|
|
</td>
|
|
<td class="button_cell" style="text-align: right;">
|
|
<input type="submit" name="confirm" id="confirm" class="button" value="#!string!striker_0082!#">
|
|
</td>
|
|
</tr>
|
|
<input type="hidden" name="new_peer_access" id="new_peer_access" value="#!data!cgi::new_peer_access::value!#">
|
|
<input type="hidden" name="new_peer_password" id="new_peer_password" value="#!data!cgi::new_peer_password::value!#">
|
|
<input type="hidden" name="new_peer_bidirection" id="new_peer_bidirection" value="#!data!cgi::new_peer_bidirection::value!#">
|
|
<input type="hidden" name="new_peer_ping" id="new_peer_ping" value="#!data!cgi::new_peer_ping::value!#">
|
|
<input type="hidden" name="striker" id="striker" value="#!data!cgi::striker::value!#">
|
|
<input type="hidden" name="task" id="task" value="#!data!cgi::task::value!#">
|
|
<input type="hidden" name="save" id="save" value="#!data!cgi::save::value!#">
|
|
</form>
|
|
</div>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- end confirm-new-peer -->
|
|
|
|
<!-- start confirm-reconfig -->
|
|
<table align="center">
|
|
<form name="confirm-reconfig" action="" method="post">
|
|
<div id="confirm-reconfig">
|
|
<tr>
|
|
<td class="menu_title" colspan="2">
|
|
#!string!striker_0078!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details" colspan="2">
|
|
#!string!striker_0083!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="button_cell" style="text-align: left;">
|
|
<a href="/cgi-bin/striker?striker=true" class="button">#!string!striker_0098!#</a>
|
|
</td>
|
|
<td class="button_cell" style="text-align: right;">
|
|
<input type="submit" name="confirm" id="confirm" class="button" value="#!string!striker_0082!#">
|
|
</td>
|
|
</tr>
|
|
<input type="hidden" name="striker" id="striker" value="#!data!cgi::striker::value!#">
|
|
<input type="hidden" name="task" id="task" value="#!data!cgi::task::value!#">
|
|
<input type="hidden" name="save" id="save" value="#!data!cgi::save::value!#">
|
|
</form>
|
|
</div>
|
|
</table>
|
|
<!-- end confirm-reconfig -->
|
|
|
|
<!-- start reconfig-done -->
|
|
<table>
|
|
<tr>
|
|
<td class="menu_title">
|
|
#!string!striker_0084!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!string!striker_0085!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<a href="/cgi-bin/striker" class="button">#!string!striker_0053!#</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- end reconfig-done -->
|
|
|
|
<!-- start striker-login -->
|
|
<table class="login">
|
|
<form name="striker_login" action="" method="post">
|
|
<div id="striker_login">
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="username" id="username" value="#!variable!user!#" placeholder="#!string!striker_0050!#" />
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
<input type="password" name="password" id="password" value="#!variable!password!#" placeholder="#!string!striker_0051!#" />
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
<input type="submit" name="login" id="login" class="button" value="#!string!striker_0049!#">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" class="subtle_text" style="text-align: center;">
|
|
#!string!striker_0065!#
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
<input type="hidden" name="cgi_list" id="cgi_list" value="username,password,login">
|
|
</form>
|
|
</table>
|
|
<!-- end striker-login -->
|
|
|
|
<!-- start striker-offline -->
|
|
<table class="centered" width="90%">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<div id="striker-offline">
|
|
<tr>
|
|
<td>
|
|
<span name="#!variable!title_id!#" id="#!variable!title_id!#" class="config_header1">#!variable!title!#</span><br />
|
|
<span name="#!variable!message_id!#" id="#!variable!message_id!#" class="config_header3">#!variable!description!#</span>
|
|
<br />
|
|
<hr />
|
|
<a href="/cgi-bin/striker" class="button">#!string!striker_0053!#</a>
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<div id="running_jobs">
|
|
<script type="text/javascript" src="/skins/alteeve/jobs.js"></script>
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="status_waiting" id="status_waiting" value="#!string!js_0004!#">
|
|
<span name="jobs-title" id="jobs-title" class="config_header2">#!string!header_0011!#</span><br />
|
|
<span name="jobs-message" id="jobs-message" class="config_header3">#!string!striker_0096!#</span>
|
|
<br />
|
|
<hr />
|
|
#!variable!job_list!#
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
</table>
|
|
<!-- end striker-offline -->
|
|
|
|
<!-- start job-details -->
|
|
<div id="#!variable!div_id!#">
|
|
<br />
|
|
<table class="job_table" width="90%">
|
|
<tr>
|
|
<td width="48%" style="padding-left: 4px;">
|
|
<span class="column_header">#!string!striker_0099!#:</span> #!variable!title!#
|
|
</td>
|
|
<td width="4%" class="subtle_text" style="text-align: center; white-space: nowrap;">
|
|
<div id="#!variable!progress_percent!#"></div>
|
|
</td>
|
|
<td width="48%">
|
|
<div id="#!variable!progress_bar!#"></div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" style="padding-left: 4px;">
|
|
<span class="column_row_name">#!variable!description!#</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" style="padding: 6px;">
|
|
<div class="job_status" id="#!variable!status!#"></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<hr />
|
|
<br />
|
|
</div>
|
|
<!-- end job-details -->
|
|
|
|
<!-- start striker-setup -->
|
|
<table align="center" class="striker_welcome">
|
|
<tr>
|
|
<td colspan="2">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="title">
|
|
#!string!striker_0052!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" class="icon_button">
|
|
<a href="?striker=true&task=sync"><img src="#!data!skin::url!#/images/sync.png" class="top_icon" ></a>
|
|
</td>
|
|
<td class="menu_title">
|
|
<a href="?striker=true&task=sync">#!string!striker_0054!#</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!string!striker_0055!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" class="icon_button">
|
|
<a href="?striker=true&task=update"><img src="#!data!skin::url!#/images/update.png" class="top_icon" ></a>
|
|
</td>
|
|
<td class="menu_title">
|
|
<a href="?striker=true&task=update">#!string!striker_0056!#</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!string!striker_0057!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" class="icon_button">
|
|
<a href="?striker=true&task=reconfig"><img src="#!data!skin::url!#/images/striker_configure.png" class="top_icon" ></a>
|
|
</td>
|
|
<td class="menu_title">
|
|
<a href="?striker=true&task=reconfig">#!string!striker_0058!#</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!string!striker_0059!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" class="icon_button">
|
|
<a href="?striker=true&task=reboot"><img src="#!data!skin::url!#/images/#!variable!reboot_icon!#" class="top_icon" ></a>
|
|
</td>
|
|
<td class="menu_title">
|
|
<a href="?striker=true&task=reboot">#!string!striker_0091!#</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!variable!reboot_message!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" class="icon_button">
|
|
<a href="?striker=true&task=poweroff"><img src="#!data!skin::url!#/images/power_icon.png" class="top_icon" ></a>
|
|
</td>
|
|
<td class="menu_title">
|
|
<a href="?striker=true&task=poweroff">#!string!striker_0094!#</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
#!string!striker_0095!#
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- end striker-setup -->
|
|
|
|
<!-- start striker-sync -->
|
|
<table align="center">
|
|
<tr>
|
|
<td class="menu_title">
|
|
Add or remove Striker peers.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="menu_details">
|
|
Peer dashboards are Striker machines whose databases this Striker will use to record data. If this machine ever needs to be replaced, or goes offline for a period of time, it will automatically pull the data back from any peers that it is missing.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<table class="data_table" width="75%">
|
|
<form name="striker_peers" action="" method="post">
|
|
<tr>
|
|
<td class="column_header">
|
|
#!string!header_0007!#
|
|
</td>
|
|
<td colspan="3" class="column_header">
|
|
#!string!header_0008!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
#!variable!inbound_table!#
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="column_header">
|
|
#!string!header_0009!#
|
|
</td>
|
|
<td class="column_header" colspan="3">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
#!variable!peer_table!#
|
|
</tr>
|
|
<tr>
|
|
<td class="padded_cell">
|
|
<input type="text" id="new_peer_access" name="new_peer_access" placeholder="#!string!striker_0069!#" value="#!variable!new_peer_access!#" readonly onfocus="this.removeAttribute('readonly');" />
|
|
</td>
|
|
<td class="padded_cell">
|
|
<!-- To prevent browsers from offering to save the user/password, we'll set the password to a text field and use css to obfuscate echoing back what the user typed -->
|
|
<input type="text" id="new_peer_password" name="new_peer_password" placeholder="#!string!striker_0051!#" value="#!variable!new_peer_password!#" readonly onfocus="this.removeAttribute('readonly');" style="-webkit-text-security: disc;" />
|
|
</td>
|
|
<td class="padded_cell">
|
|
#!string!striker_0071!#: <input type="checkbox" id="new_peer_ping" name="new_peer_ping" checked />
|
|
</td>
|
|
<td class="padded_cell">
|
|
#!string!striker_0072!#: <input type="checkbox" id="new_peer_bidirection" name="new_peer_bidirection" checked />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="button_cell" colspan="4" align="center">
|
|
<input type="submit" id="save" name="save" class="button" value="#!string!striker_0067!#" />
|
|
</td>
|
|
</tr>
|
|
<input type="hidden" name="striker" value="true" />
|
|
<input type="hidden" name="task" value="sync" />
|
|
</form>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<table width="75%">
|
|
<tr>
|
|
<td class="subtle_text" style="white-space: nowrap; vertical-align: top;">
|
|
<span class="code" style="white-space: nowrap;">#!string!striker_0075!#</span>:
|
|
</td>
|
|
<td class="subtle_text" style="padding-bottom: 10px;">
|
|
#!string!striker_0076!#<br />
|
|
#!string!striker_0077!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="subtle_text" style="white-space: nowrap; vertical-align: top;">
|
|
<span class="code" style="white-space: nowrap;">#!string!striker_0071!#</span>:
|
|
</td>
|
|
<td class="subtle_text" style="padding-bottom: 10px;">
|
|
#!string!striker_0073!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="subtle_text" style="white-space: nowrap; vertical-align: top;">
|
|
<span class="code">#!string!striker_0072!#</span>:
|
|
</td>
|
|
<td class="subtle_text">
|
|
#!string!striker_0074!#
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
<!-- end striker-sync -->
|
|
|
|
<!-- start striker-sync-entry -->
|
|
<tr>
|
|
<td width="25%" class="padded_cell">
|
|
#!variable!access!#
|
|
</td>
|
|
<td width="25%" class="padded_cell">
|
|
#!variable!password!#
|
|
</td>
|
|
<td width="25%" class="padded_cell">
|
|
#!string!striker_0071!# <input type="checkbox" id="#!variable!access!#_ping" name="#!variable!access!#_ping" #!variable!ping_checked!# />
|
|
</td>
|
|
<td width="25%" class="padded_cell" align="center">
|
|
<a href="striker=true&task=sync&delete=#!variable!access!#" id="#!variable!access!#_delete" class="button">#!string!striker_0068!#<a/>
|
|
</td>
|
|
</tr>
|
|
<!-- end striker-sync-entry -->
|
|
|
|
<!-- start striker-sync-inbound -->
|
|
<tr>
|
|
<td width="25%" class="padded_cell" class="code">
|
|
#!variable!access!#
|
|
</td>
|
|
<td width="75%" class="padded_cell" colspan="3">
|
|
#!variable!note!#
|
|
</td>
|
|
</tr>
|
|
<!-- end striker-sync-inbound -->
|
|
|
|
<!-- start striker-welcome -->
|
|
<table align="center" class="striker_welcome">
|
|
<tr>
|
|
<td colspan="2">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="title">
|
|
#!string!striker_0060!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<a href="?anvil=true"><img src="#!data!skin::url!#/images/anvil_icon_on.png" class="top_icon"></a>
|
|
</td>
|
|
<td>
|
|
#!string!striker_0061!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<a href="?striker=true"><img src="#!data!skin::url!#/images/striker_icon_on.png" class="top_icon"></a>
|
|
</td>
|
|
<td>
|
|
#!string!striker_0062!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<a href="?logout=true"><img src="#!data!skin::url!#/images/users_icon_on.png" alt="#!string!striker_0063!#" class="top_icon"></a>
|
|
</td>
|
|
<td>
|
|
#!string!striker_0063!#
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<a href="https://alteeve.com/w/Support" target="_new"><img src="#!data!skin::url!#/images/help_icon_on.png" id="help_icon" class="top_icon"></a>
|
|
</td>
|
|
<td>
|
|
#!string!striker_0064!#
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- end striker-welcome -->
|
|
|
|
<!-- start network_job_recorded -->
|
|
<table>
|
|
<div id="network_job_recorded_div">
|
|
<tr>
|
|
<td>
|
|
<span name="#!variable!title_id!#" id="#!variable!title_id!#" class="config_header1">#!variable!title!#</span><br />
|
|
<span name="#!variable!message_id!#" id="#!variable!message_id!#" class="config_header2">#!variable!description!#</span>
|
|
<br />
|
|
<hr />
|
|
<a href="/" class="button">Reload</a>
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
</table>
|
|
<!-- end network_job_recorded -->
|
|
|
|
<!-- start system_update_recorded -->
|
|
<table>
|
|
<div id="system_update_recorded_div">
|
|
<tr>
|
|
<td>
|
|
<span name="#!variable!title_id!#" id="#!variable!title_id!#" class="config_header1">#!variable!title!#</span><br />
|
|
<span name="#!variable!message_id!#" id="#!variable!message_id!#" class="config_header2">#!variable!description!#</span>
|
|
<br />
|
|
<hr />
|
|
<a href="/" class="button">Reload</a>
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
</table>
|
|
<!-- end system_update_recorded -->
|