Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 18, 2015
1 parent b0a2583 commit 5aa7405
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 18 deletions.
4 changes: 2 additions & 2 deletions modules/kwh/highcharts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi



mkdir -p $dir/tmp/kwh 1> /dev/null
mkdir -p $dir/tmp/kwh
gpio=$(sqlite3 $dir/dbf/nettemp.db "SELECT gpio FROM gpio WHERE mode='kwh'")

if [ -n "$gpio" ]; then
Expand All @@ -24,7 +24,7 @@ if base=$(sqlite3 $dir/dbf/kwh.db "select strftime('%s', time),pulse FROM kwh;")
middle=$(printf "$base %s\n" | awk -F "|" '{printf "["}{ printf "%3.0f",($1)*1000}{printf ","}{printf "%3.3f", $2/'$divider'}{print "]," }')
echo -e "[ ${middle%?} ]" > $dir/tmp/kwh/gpio_kwh_min.json
else
echo "cannot read base"
echo "kWh: cannot read base"
fi
else
echo "kWh OFF"
Expand Down
8 changes: 0 additions & 8 deletions modules/kwh/html/kwh_charts.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<span class="belka">&nbsp kWh charts<span class="okno">

<script type="text/javascript" src="modules/kwh/html/js/jquery.min.js"></script>
<script src="modules/kwh/html/js/highstock.js"></script>
<script src="modules/kwh/html/js/exporting.js"></script>



<div id="container" style="height: 400px"></div>
<br />
<div id="container2" style="height: 400px"></div>
Expand Down
2 changes: 1 addition & 1 deletion modules/mail/html/mail_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<td>Send test mail to:</td>
<td><input type="text" name="test_mail" size="25" value="<?php echo $a["test_mail"]; ?>" /></td>
<input type="hidden" name="mail_test1" value="mail_test2" />
<td><input class="btn btn-primary" type="submit" value="Test" /></td>
<td><input class="btn btn-primary" type="submit" value="Send" /></td>
</form>
</tr>
</table>
Expand Down
13 changes: 8 additions & 5 deletions modules/security/authmod/html/authmod_pass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
else {
echo "Status: enabled";
}
?>
<hr>
<?php

$pass = isset($_POST['pass']) ? $_POST['pass'] : '';
$pass2 = isset($_POST['pass2']) ? $_POST['pass2'] : '';
Expand All @@ -22,11 +25,11 @@
}
?>

<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<table>
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<input type="hidden" name="chg" value="chg2"/></td></tr>
<tr><td>Password :</td><td><input type="password" name="pass" size="8"/></td></tr>
<tr><td>Repeat:</td><td><input type="password" name="pass2" size="8"/></td></tr>
</table>
<input type="submit" value="Change" class="btn btn-default" />
<tr><td><label>Password:</label><input type="password" name="pass" size="8"/></td></tr>
<tr><td><label>Repeat:</label><input type="password" name="pass2" size="8"/></td></tr>
<tr><td><input type="submit" value="Change" class="btn btn-primary" /></td></tr>
</form>
</table>
2 changes: 1 addition & 1 deletion modules/security/fw/html/fw_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
</p>
<input type="hidden" name="fw_apply" value="fw_apply" />
<br>
<input type="submit" name="submit" value="Apply" class="btn btn-primary" />
<input type="submit" name="submit" value="Save" class="btn btn-primary" />
</form>

2 changes: 1 addition & 1 deletion modules/tools/html/tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="index.php?id=tools&type=reboot" ><button class="btn btn-default">Reboot</button></a>
<a href="index.php?id=tools&type=log" ><button class="btn btn-default">Logging</button></a>
<?php if ( $gpio == 'on' ) { ?>
<a href="index.php?id=tools&type=gpio" ><button class="btn btn-default">Gpio</button></a>
<a href="index.php?id=tools&type=gpio" ><button class="btn btn-default">GPIO</button></a>
<?php } ?>
<a href="index.php?id=tools&type=backup" ><button class="btn btn-default">Backup/Restore</button></a>
<a href="index.php?id=tools&type=espupload" ><button class="btn btn-default">ESPupload</button></a>
Expand Down

0 comments on commit 5aa7405

Please sign in to comment.