Skip to content
Snippets Groups Projects
  1. Sep 23, 2016
    • Adam Wujek's avatar
      [Bug: 1219] rootfs/www: fix problem with uploading the firmware · a71cbce8
      Adam Wujek authored
      
      PHP code of the web interface was updating values of "upload_max_filesize"
      and "post_max_size" in the /etc/php.ini. Besides it is extremely bad idea to
      do that, such changes to take place require restart of lighttpd, which was
      never performed. Luckily after the update of /etc/php.ini it was also copied
      to flash at the location /usr/etc/php.ini. Because of this update via
      webinterface worked only when:
      --firmware.php was opened via web browser
      --restart of a switch was performed
      
      The fix contains a patch to set these values in the php.ini and remove
      the update of php.ini by php code.
      
      Set maximum upload limit size to 30M in php.ini.
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      a71cbce8
    • Adam Wujek's avatar
      rootfs/www: clean up webinterface's code · 7061b6f7
      Adam Wujek authored
      
      Following changes were made in this commit:
      --Add quotas to the arrays in the file var/www/data/wrs-data.php
      --Change CONFIG_PORT00_PARAMS to CONFIG_PORT01_PARAMS in the
        var/www/endpointcalibration.php. It looks like it was missed during
        interface renaming.
      --Change "file" into "firmware" in the firmware input form
      --Remove the help when mouse hovers over the form. The help wasn't filled
        anyway (remove title="'.$row["help"].).
      --fix part of the shell_exec command: awk '{print $NF}'
        escape the $
      --use index 0..5 in the sfpcalibration.php
      --remove unlink after calling "rename" function
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      7061b6f7
  2. Sep 05, 2016
  3. Aug 31, 2016
  4. Aug 30, 2016
  5. Aug 22, 2016
  6. Aug 15, 2016
  7. Aug 12, 2016
  8. Aug 11, 2016