Location: PHPKode > projects > O - OpenSource GroupWare > osgw/admin/system.php
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   @Authors:	Ryan Thompson(hide@address.com)


	foreach($_POST as $key => $value)
		//Got nowhere to put this yet. It doesn't effect other services
		//Used for Windows compatibilty of File Manager plugin
		if(strstr($value, '\\'))
			$value = str_replace('\\','\\\\', $value);
		$sql = "UPDATE o_settings SET value='$value' WHERE setting_id='$key'";


<h1 class="input_header">System Settings</h1>

	$sql = "SELECT * FROM o_settings";
	$db->query($sql, __FILE__, __LINE__);
<form action="<?php echo $_SERVER['PHP_SELF']. "?x=". $_GET['x']. "&s=". $_GET['s']?>" method="post">
<table border="0">

	$setting[$db->record['id']] = $db->record['value'];
	if($class == "list_light")
		$class = "list_dark";
	} else {
		$class = "list_light";
echo "<tr><td class=\"$class\">";
echo $db->record['setting'];
echo "</td>\n";
echo "<td class=\"$class\">";
echo "<input type=\"text\" name=\"". $db->record['setting_id'] ."\" value=\"". $db->record['value'] ."\" size=\"25\"></td>";
echo "</tr>\n";


<td class="header_dark"><input type="submit" class="button1" value="Save Settings" name="save_settings"></td>

Return current item: O - OpenSource GroupWare