diff --git a/addhost.php b/addhost.php index 73265b2..6a42d18 100644 --- a/addhost.php +++ b/addhost.php @@ -117,7 +117,7 @@ classname: 'ddsmoothmenu', //class added to menu's outer DIV Name IP / Hostname Port - cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> desired + cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> desired @@ -137,7 +137,7 @@ classname: 'ddsmoothmenu', //class added to menu's outer DIV Name: You can enter any name you like.
IP/Hostname: Enter the IP or Hostname of your cgminer cgapi enabled host. I.E. 10.10.1.10 or 192.168.1.10. You can also use FQDN so miner1.mynet.com i.e.
Port: The port CGMINER is listening on (default 4028)
-cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> desired: If you already now how much cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> your host will/should make, enter it here.
+cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> desired: If you already now how much cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> your host will/should make, enter it here.

You can change any value afterwards.

diff --git a/edithost.php b/edithost.php index 4c87a8a..06340ec 100644 --- a/edithost.php +++ b/edithost.php @@ -64,6 +64,22 @@ $dev_response = send_request_to_host($arr, $host_data); sleep(2); } + + if (isset($_POST['startasc'])) + { + $asc_id = filter_input(INPUT_POST, 'startasc', FILTER_SANITIZE_NUMBER_INT); + $arr = array ('command'=>'ascenable','parameter'=>$asc_id); + $dev_response = send_request_to_host($arr, $host_data); + sleep(2); + } + + if (isset($_POST['stopasc'])) + { + $asc_id = filter_input(INPUT_POST, 'stopasc', FILTER_SANITIZE_NUMBER_INT); + $arr = array ('command'=>'ascdisable','parameter'=>$asc_id); + $dev_response = send_request_to_host($arr, $host_data); + sleep(2); + } if (isset($_POST['flashpga'])) { @@ -322,7 +338,7 @@ classname: 'ddsmoothmenu', //class added to menu's outer DIV Name IP / Hostname Port - cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> desired + cointype=='scrypt'){echo "KH/s";}else{ echo "MH/s";}?> desired @@ -363,6 +379,7 @@ classname: 'ddsmoothmenu', //class added to menu's outer DIV
- + + diff --git a/func.inc.php b/func.inc.php index ad238dd..874ab17 100644 --- a/func.inc.php +++ b/func.inc.php @@ -801,6 +801,17 @@ function process_dev_disp($gpu_data_array, $edit=false) $DEV_cell = $gpu_data_array['Name'] . $gpu_data_array['PGA']; } + else if (isset($gpu_data_array['ASC'])) + { + if ($privileged) + { + if(($gpu_data_array['Enabled'] == "Y")) + $button = ""; + else + $button = ""; + } + $DEV_cell = $gpu_data_array['Name'] . $gpu_data_array['ASC']; + } else if (isset($gpu_data_array['CPU'])) { $DEV_cell = $gpu_data_array['Name'] . $gpu_data_array['CPU']; @@ -871,7 +882,7 @@ function process_devs_disp($host_data, $edit=false) /* Description: retrives a single dev from a host /* Inputs: host_data - the host data array. /* devid - the the device ID. -/* type - the the device type (CPU/GPU/PGA). +/* type - the the device type (CPU/GPU/PGA/ASC). /* Outputs: return - the device data array *****************************************************************************/ function get_dev_data($host_data, $devid, $type) @@ -888,6 +899,10 @@ function get_dev_data($host_data, $devid, $type) { $cmnd = 'pga'; } + else if ($type == 'ASC') + { + $cmnd = 'asc'; + } $arr = array ('command'=>$cmnd,'parameter'=>$devid); $dev_arr = send_request_to_host($arr, $host_data);