From: Christopher N. <ch...@ne...> - 2005-06-23 15:16:01
|
Hi All Here is a patch to pre-populate text boxes. It also has the changes from my previous patch included as well as some help documentation for the settings in iwsettings.php I plan to keep building my patches as whole chunks as it is very difficult to branch the CVS import I have, develop and then try to merge with my other changes fixing conflicts. Please find the patch attached, it patches against CVS on sourceforge, the CHANGELOG was v1.3 Changelog: ------------------------------------------------------------------------ r116 | nesscg | 2005-06-21 17:49:54 -0400 (Tue, 21 Jun 2005) | 14 lines * (/help/iwconfig.html) * Added help documentation in the form of the iwconfig man page * (/include/functions.php) * parse_iwconfig() * Added the encryption key to the parsed array * getnext() is a much better function than get_value() * str2html() * New function to print htmlspecial(trim($str)) * (iwsettings.php) * Now fills form with the systems current values * Setting name is a link to the help file anchor * mode_options() * Builds the possible modes for the options array ------------------------------------------------------------------------ r117 | nesscg | 2005-06-22 09:34:46 -0400 (Wed, 22 Jun 2005) | 3 lines Using tabs in the file header makes the display dependent on the tabwidth of the text editor. ------------------------------------------------------------------------ r125 | nesscg | 2005-06-22 15:01:30 -0400 (Wed, 22 Jun 2005) | 24 lines * (include/functions.php) * parse_iwconfig() * Returning names without quotes using new function strip_quotes() * Returning data rate with units for input to `iwconfig` * Added new KVP to return array: enc = "encryption_key security_mode" * strip_quotes() * New function to remove char[0] and char[n] from a string * (iwsettings.php) * Rewritten to pre-populate the input boxes with the system settings * Debug command output is commented out * Removed italic current settings from the label text * get_iwconfig_params() * Now knows current system settings and the $POST results * Compares the two to decide if a change should be made * Added encryption key as a configuration option * Escaping all arguments sometimes causes a command to fail * Many ctype_allnum checks use punctuation causing them to fail * mode_options() * Added a '''value="String"''' to the options * (README) * Added a section about the need for --enable-ctype when building PHP * (iwstatus.php) * Fixed some comments that were tabbed. ------------------------------------------------------------------------ r126 | nesscg | 2005-06-22 15:09:03 -0400 (Wed, 22 Jun 2005) | 2 lines Updated copy and paste error in a comment ------------------------------------------------------------------------ Cheers, Chris -- Wireless Group, McMaster University finger.localdomain 10:52:08 up 2 days, 23:55, 1 user, load average: 0.16, 0.41, 0.27 |