parent
601b5c45cc
commit
d2daed3317
@ -5,6 +5,7 @@ if (!defined('SECURITY')) die('Hacking attempt');
|
|||||||
if (!$_SESSION['AUTHENTICATED']) header('Location: index.php?page=home');
|
if (!$_SESSION['AUTHENTICATED']) header('Location: index.php?page=home');
|
||||||
|
|
||||||
if ($_REQUEST['do'] == 'save') {
|
if ($_REQUEST['do'] == 'save') {
|
||||||
|
var_dump($_REQUEST['data']);
|
||||||
if ($notification->updateSettings($_SESSION['USERDATA']['id'], $_REQUEST['data'])) {
|
if ($notification->updateSettings($_SESSION['USERDATA']['id'], $_REQUEST['data'])) {
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Updated notification settings');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Updated notification settings');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -12,28 +12,32 @@
|
|||||||
<td class="left">IDLE Worker</td>
|
<td class="left">IDLE Worker</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<input type="hidden" name="data[idle_worker]" value="0" />
|
<input type="hidden" name="data[idle_worker]" value="0" />
|
||||||
<input type="checkbox" name="data[idle_worker]" value="1"{if $SETTINGS['idle_worker']}checked{/if} />
|
<input type="checkbox" name="data[idle_worker]" id="data[idle_worker]" value="1"{if $SETTINGS['idle_worker']}checked{/if} />
|
||||||
|
<label for="data[idle_worker]"></label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="left">New Blocks</td>
|
<td class="left">New Blocks</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<input type="hidden" name="data[new_block]" value="0" />
|
<input type="hidden" name="data[new_block]" value="0" />
|
||||||
<input type="checkbox" name="data[new_block]" value="1"{if $SETTINGS['new_block']}checked{/if} />
|
<input type="checkbox" name="data[new_block]" id="data[new_block]" value="1"{if $SETTINGS['new_block']}checked{/if} />
|
||||||
|
<label for="data[new_block]"></label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="left">Auto Payout</td>
|
<td class="left">Auto Payout</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<input type="hidden" name="data[auto_payout]" value="0" />
|
<input type="hidden" name="data[auto_payout]" value="0" />
|
||||||
<input type="checkbox" name="data[auto_payout]" value="1"{if $SETTINGS['auto_payout']}checked{/if} />
|
<input type="checkbox" name="data[auto_payout]" id="data[auto_payout]" value="1"{if $SETTINGS['auto_payout']}checked{/if} />
|
||||||
|
<label for="data[auto_payout]"></label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="left">Manual Payout</td>
|
<td class="left">Manual Payout</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<input type="hidden" name="data[manual_payout]" value="0" />
|
<input type="hidden" name="data[manual_payout]" value="0" />
|
||||||
<input type="checkbox" name="data[manual_payout]" value="1"{if $SETTINGS['manual_payout']}checked{/if} />
|
<input type="checkbox" name="data[manual_payout]" id="data[manual_payout]" value="1"{if $SETTINGS['manual_payout']}checked{/if} />
|
||||||
|
<label for="data[manual_payout]"></label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user