Skip to content

Commit

Permalink
2017.07.14. / official release
Browse files Browse the repository at this point in the history
 - setup_net_ok.php : ssid comment bug fix
  • Loading branch information
phpoc committed Jul 14, 2017
1 parent c1350c1 commit 65c3fad
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define("PHPOC_PKG_INFO", "arduino shield, 1.0.1,");
define("PHPOC_PKG_INFO", "arduino shield, 1.0.2,");
define("NM0_ENVU_SIZE", 512);
define("NM0_ENVU_OFFSET", 1536);

Expand Down
3 changes: 2 additions & 1 deletion setup_info.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@
</table>
<?php
}
?>
?>
<br /><br /><br />
</center>
</form>
<div id="footer">
Expand Down
6 changes: 0 additions & 6 deletions setup_net.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,6 @@ function chkWlan()
phpoc_setup.hide_key.disabled = "";

chkChannel();
}

if('<?php echo $shared_key;?>' == "")
{
phpoc_setup.shared_key.disabled = "true";
phpoc_setup.hide_key.disabled = "true";
}
}

Expand Down
12 changes: 6 additions & 6 deletions setup_net_ok.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
$ip6_opt = (int) _POST("ip6_opt"); // Enable 1 - Disbale 0 (IPv6)
$shared_key = _POST("shared_key");
$ssid = hex2bin(_POST("ssid_raw"));
// $ssid = bin2hex(_POST("ssid"));
// $ssid_raw = _POST("ssid_raw");
$ssid = bin2hex(_POST("ssid"));
$ssid_raw = _POST("ssid_raw");

// if ( $ssid != $ssid_raw )
// $ssid = hex2bin($ssid);
// else
// $ssid = hex2bin($ssid_raw);
if ( $ssid != $ssid_raw )
$ssid = hex2bin($ssid);
else
$ssid = hex2bin($ssid_raw);

$envs = envs_read();

Expand Down
16 changes: 2 additions & 14 deletions setup_search_ap.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,10 @@
</style>
<script type="text/javascript">

function select(ssid, ssid_raw, security)
function select(ssid, ssid_raw)
{
window.opener.parent.document.phpoc_setup.ssid.value = ssid;
window.opener.parent.document.phpoc_setup.ssid_raw.value = ssid_raw;

if (security == "None")
{
window.opener.parent.document.phpoc_setup.shared_key.value = "";
window.opener.parent.document.phpoc_setup.shared_key.disabled = true;
window.opener.parent.document.phpoc_setup.hide_key.disabled = true;
}
else
{
window.opener.parent.document.phpoc_setup.shared_key.disabled = false;
window.opener.parent.document.phpoc_setup.hide_key.disabled = false;
}
window.close();
}

Expand Down Expand Up @@ -280,7 +268,7 @@ function get_item($src, $index, $delimiter)
<td width="170px" class="theader"><?php echo $ssid;?></td>
<td><?php echo $security;?></td>
<td><?php echo "-",$rssi,"dBm";?></td>
<td align="center"><button type="button" onclick="select('<?php echo $ssid?>', '<?php echo $ssid_raw?>', '<?php echo $security?>')";>Select</button></td>
<td align="center"><button type="button" onclick="select('<?php echo $ssid?>', '<?php echo $ssid_raw?>')";>Select</button></td>
</tr>
<?php

Expand Down

0 comments on commit 65c3fad

Please sign in to comment.