BBOX3V+ maintenance opties
Geplaatst: 08 aug 2018, 14:14
Hallo allen,
Na wat graven kwam ik op volgende verborgen settings uit:
Standaard zijn enkel Restart en Factory Reset beschikbaar.
Het lijkt erop dat ofwel de .js of de .css deze verwijderd want wanneer de pagina volledig is geladen zijn deze verdwenen.
Ik heb echter te weinig kaas gegeten om de juiste CSS attributen of de juiste .js functie te vinden om deze naar behoren te activeren.
Ik zou graag mijn config file willen kunnen downloaden/uploaden zoals in de opties mogelijk is.
Na wat graven kwam ik op volgende verborgen settings uit:
Code: Selecteer alles
<div data-role="content">
<div id="Restart" class="gui-content" >
<h2 xmsg="MAINTENANCE_RESTART">Restart</h2>
<ul class="gui-info" >
<li data-role="fieldcontain">
<label for="RebootBtn" xmsg="MAINTENANCE_RESTART_GATEWAY">Restart Gateway</label>
<input id="RebootBtn" type="button" xvalue="MAINTENANCE_RESTART" value="Restart" >
</li>
</ul>
</div> <!-- #Restart -->
<div id="Config" class="gui-content" >
<h2 xmsg="HOME_CONFIG">Configuration</h2>
<ul class="gui-info" >
<li data-role="fieldcontain">
<label for="ConfigBackupBtn" xmsg="MAINTENANCE_BACKUP_FILE">Backup File</label>
<input id="ConfigBackupBtn" type="button" xvalue="MAINTENANCE_BACKUP" value="Backup" >
</li>
<li data-role="fieldcontain">
<label for="ConfigFileInput" xmsg="MAINTENANCE_RESTORE_FILE" class="ui-submit">Restore File</label>
<div class="ui-btn ui-shadow ui-btn-corner-all ui-mini ui-btn-inline ui-btn-up-c" style="max-width: 220px; height: 33px;">
<span class="ui-btn-inner ui-btn-corner-all" style="z-index:0; height:33px;">
<span class="ui-btn-text" xmsg="MAINTENANCE_CHOSEFILE">No file selected</span>
</span>
<input id="ConfigFileInput" type="file" name="config" filename="config.cfg" style="display:block; margin-top:-33px; z-index:10; opacity:0; -moz-opacity:0 ; filter:alpha(opacity=0); cursor: pointer; width: 100%; height: 33px; font-size:50px;">
</div>
</li>
<li data-role="fieldcontain">
<label for="ConfigRestoreBtn" ></label>
<input id="ConfigRestoreBtn" type="button" xvalue="MAINTENANCE_RESTORE" value="Restore" >
</li>
</ul>
</div> <!-- #Config -->
<div id="Reset" class="gui-content" >
<h2 xmsg="MAINTENANCE_RESET">Reset</h2>
<ul class="gui-info" >
<li data-role="fieldcontain" >
<label for="RestoreFactoryBtn" xmsg="MAINTENANCE_FACTORY_SET">Factory Settings</label>
<input id="RestoreFactoryBtn" type="button" xvalue="MAINTENANCE_RESET" value="Reset" >
</li>
</ul>
</div> <!-- #Reset -->
<div id="Route" class="gui-content" >
<h2 xmsg="DEVICE_CONNECT_MODE">Connection Mode</h2>
<ul class="gui-info">
<li data-role="fieldcontain" id="ConnectionMode">
<label for="DeviceConnectionModeSelect" xmsg="DEVICE_CONNECT_MODE">Connection Mode</label>
<select id="DeviceConnectionModeSelect" data-xmo-role="select" data-xpath="Device/Services/BGCTV/Mode" >
<option value="ROUTED" xmsg="DEVICE_ROUTED">Routed</option>
<option value="BRIDGED" xmsg="DEVICE_BRIDGED">Bridged</option>
</select>
</li>
</ul>
</div>
<br/>
<div id="Upgrade" class="gui-content" >
<h2 xmsg="MAINTENANCE_UPGRADE">Upgrade</h2>
<ul class="gui-info" >
<li data-role="fieldcontain" class="local-firmware">
<label for="UpgradeFileTypeSelect" xmsg="MAINTENANCE_FILE_TYPE">File Type</label>
<select id="UpgradeFileTypeSelect" >
<option value="SYSTEM" xmsg="MAINTENANCE_FW_IMG">Firmware Image</option>
<option value="GUI" xmsg="MAINTENANCE_GUI_IMG">User Interface Image</option>
</select>
</li>
<li data-role="fieldcontain" class="local-firmware">
<label for="UpgradeFile" xmsg="MAINTENANCE_IMG_FILE" class="ui-submit">Image File</label>
<div class="ui-btn ui-shadow ui-btn-corner-all ui-mini ui-btn-inline ui-btn-up-c" style="max-width: 220px; height: 33px;">
<span class="ui-btn-inner ui-btn-corner-all" style="z-index:0; height:33px;">
<span class="ui-btn-text" xmsg="MAINTENANCE_CHOSEFILE">No file selected</span>
</span>
<input id="UpgradeFile" type="file" name="firmware" filename="image.gsdf" style="display:block; margin-top:-33px; z-index:10; -moz-opacity:0 ; filter:alpha(opacity=0); opacity:0; cursor: pointer; width: 100%; height: 33px; font-size:50px;">
</div>
</li>
<li data-role="fieldcontain">
<label for="UpgradeBtn" > </label>
<input id="UpgradeBtn" type="button" xvalue="MAINTENANCE_UPGRADE" value="Upgrade" >
</li>
</ul>
</div> <!-- #Upgrade -->
<div id="ManagementServer" class="gui-content" >
<h2 xmsg="MAINTENANCE_MGMT_SRV">Management Server</h2>
<ul class="gui-info" >
<li data-role="fieldcontain" >
<label for="ACSUrl" xmsg="MAINTENANCE_ACS_URL">ACS URL</label>
<input id="ACSUrl" type="text" data-xmo-role="input" data-control-type="URL" data-xpath="Device/ManagementServer/URL" />
</li>
<li data-role="fieldcontain" >
<label for="ACSUsername" xmsg="DYNDNS_USERNAME">Username</label>
<input id="ACSUsername" type="text" data-xmo-role="input" data-control-type="BASIC_PASSWORD" data-xpath="Device/ManagementServer/Username" />
</li>
<li data-role="fieldcontain" >
<label for="ACSPassword" xmsg="HOME_PASSWORD">Password</label>
<input id="ACSPassword" type="password" data-xmo-role="input" data-control-type="BASIC_PASSWORD" data-write-only="true" data-xpath="Device/ManagementServer/Password" autocomplete="off"/>
</li>
<li data-role="fieldcontain" >
<label for="ACSDownloadTypeSelect" xmsg="MAINTENANCE_DL">Download</label>
<select id="ACSDownloadTypeSelect" >
<option value="FIRMWAREUPGRADE" xmsg="MAINTENANCE_FW_IMG">Firmware Image</option>
<option value="WEBCONTENT" xmsg="MAINTENANCE_GUI_IMG">User Interface Image</option>
</select>
</li>
<li data-role="fieldcontain" >
<label for="ACSRequestDownloadRetryCheck" xmsg="MAINTENANCE_DL_RETRY">Download Retry</label>
<select id="ACSRequestDownloadRetryCheck" data-role="slider" >
<option value="false" xmsg="HOME_OFF">Off</option>
<option value="true" xmsg="HOME_ON">On</option>
</select>
</li>
<li data-role="fieldcontain" >
<label for="ACSRequestDownloadBtn" > </label>
<input id="ACSRequestDownloadBtn" type="button" xvalue="MAINTENANCE_REQUEST_DL" value="Request Download" >
</li>
</ul>
</div> <!-- #ManagementServer -->
<div id="SSHService" class="gui-content" >
<h2>SSH</h2>
<ul class="gui-info" >
<!-- <li id="SSHExpirationTime" data-role="fieldcontain" data-xmo-role="timestatus" data-xpath="Device/UserAccounts/Users/User[Login='user']/RemoteAccesses/RemoteAccess[@Service='SSH']/ExpirationTime" >
<h3>Expiration Time</h3>
<p class="gui-status-text" > </p>
<div id="SSHExpirationTimeWrite" data-xmo-role="item" data-write-only="true" data-xpath="Device/UserAccounts/Users/User[Login='user']/RemoteAccesses/RemoteAccess[@Service='SSH']/ExpirationTime" ></div>
</li>-->
<li data-role="fieldcontain">
<label for="SSHPortInput" xmsg="MAINTENANCE_PORT_NUM">Port Number</label>
<input id="SSHPortInput" type="text" data-xmo-role="input" data-control-type="PORT" data-xpath="Device/UserAccounts/Users/User[Login='user']/RemoteAccesses/RemoteAccess[@Service='SSH']/Port" />
</li>
<!-- Sliders at the bottom because ApplyButton doesn't work with a input field after theses ...-->
<li data-role="fieldcontain" data-xmo-role="status" data-xpath="Device/UserAccounts/Users/User[Login='user']/RemoteAccesses/RemoteAccess[@Service='SSH']/Enabled" >
<h3 xmsg="MAINTENANCE_SRV_ENABLE">Service enable</h3>
<p class="gui-status-text" > </p>
<select>
<option value="false" xmsg="HOME_OFF">Off</option>
<option value="true" xmsg="HOME_ON">On</option>
</select>
</li>
<li id="SSHWANRestriction" data-role="fieldcontain" data-xmo-role="status" data-xpath="Device/UserAccounts/Users/User[Login='user']/RemoteAccesses/RemoteAccess[@Service='SSH']/MNGRestriction" >
<h3 xmsg="MAINTENANCE_WAN_ACCESS">WAN Access</h3>
<p class="gui-status-text" > </p>
<select>
<option value="ACCESS_DISABLE" xmsg="HOME_OFF">Off</option>
<option value="ACCESS_ENABLE" xmsg="HOME_ON">On</option>
</select>
</li>
<li data-role="fieldcontain" >
<label for="SSHLANRestriction" xmsg="MAINTENANCE_LAN_ACCESS">LAN Access</label>
<select id="SSHLANRestriction" data-role="slider" data-xmo-role="select" data-xpath="Device/UserAccounts/Users/User[Login='user']/RemoteAccesses/RemoteAccess[@Service='SSH']/LANRestriction" >
<option value="ACCESS_DISABLE" xmsg="HOME_OFF">Off</option>
<option value="ACCESS_ENABLE_ALL" xmsg="HOME_ON">On</option>
</select>
</li>
</ul>
</div> <!-- #SSHService -->
</div><!-- /content -->
Het lijkt erop dat ofwel de .js of de .css deze verwijderd want wanneer de pagina volledig is geladen zijn deze verdwenen.
Ik heb echter te weinig kaas gegeten om de juiste CSS attributen of de juiste .js functie te vinden om deze naar behoren te activeren.
Ik zou graag mijn config file willen kunnen downloaden/uploaden zoals in de opties mogelijk is.