Table of Contents

sys_set

FW >= 1300

Set a system parameter

Description

int sys_set ( string $parameter , int $value )

This function will set an internal parameter

Parameters

$parameter: The $parameter must be one of the following:

Parameter Description
force_log Set to 1 to trigger a log event
FLASH_WP Set to 1 to write protect the flash, and 0 to allow writes

Note

The parameters are case sensitive - not all parameters will be available, depending on the hardware (i.e. Flash may not be onboard).

Return Values

Examples

<pre><?
 
  // this will fail on the flash drive as it is locked by default at boot
 
  ini_set("1:/config/myinifile.ini","config","value",1);
 
  // unlock flash
  sys_set("FLASH_WP",0);
 
  // this will succeed
  ini_set("1:/config/myinifile.ini","config","value",1);
 
  // re-lock
  sys_set("FLASH_WP",1);
?></pre>