//------------------------------------------------------------------------------ // Licensed Materials - Property of IBM // (c) Copyright IBM Corporation 2001,2002 All Rights Reserved. // US Government Users Restricted Rights - Use, duplication or disclosure // restricted by GSA ADP Schedule Contract with IBM Corp. //------------------------------------------------------------------------------ // Contact Information // // Filename: ml_set_duplex_background_process.htm // // This page displays the current contact information settings, if any, and alowes the user to set/change the // contact information. // // When a POST is operation result information is retrieved from POST // data and displayed in the Message Box. // // // Input: POST data // url original request page // duplex duplex drop-down input // speed speed drop-down input // // Ouput: POST ('form_out') // url original request page // errorCode result of operation // Message message flag = message in POST data // returnMessage text information about the operation results // // // Change History: // // Date Defect Changed By Description of Change // ---- ------ ---------- --------------------- // 12/05/2005 roomor01 File Created //------------------------------------------------------------------------------ include('user_inc.htm'); error_log("in background process: "); if($_SERVER[REQUEST_METHOD]=='POST'){ $selectedSpeed = $_REQUEST['selectedSpeed']; $url = $_REQUEST['url']; error_log("selectedSpeed : ".$selectedSpeed); error_log("selectedSpeed : ".print_r($selectedSpeed, true)); if ($selectedSpeed == 0) { $auto = 1; } else { $auto = 0; } if ($selectedSpeed == 1) { $speed = 10; $duplex = 1; $auto = 0; } else if ($selectedSpeed == 2) { $speed = 10; $duplex = 0; $auto = 0; } else if ($selectedSpeed == 3) { $speed = 100; $duplex = 1; $auto = 0; } else if ($selectedSpeed == 4) { $speed = 100; $duplex = 0; $auto = 0; } else if ($selectedSpeed == 5) { $speed = 1000; $duplex = 1; $auto = 0; } else if ($selectedSpeed == 6) { $speed = 1000; $duplex = 0; $auto = 0; } error_log("auto, speed, duplex".$auto." ".$speed." ".$duplex); set_eth2_port_settings($user,$auto,$speed,$duplex); error_log("back from set_eth2_port_settings "); $returnMessage = "The ethernet speed and duplex setting have been successfully activated."; } ?>