"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Froxlor/UI/Data.php" between
froxlor-0.10.26.tar.gz and froxlor-0.10.27.tar.gz

About: Froxlor is a web-based server management panel. It’s a fork of SysCP and has its main focus on simplicity and usability.

Data.php  (froxlor-0.10.26):Data.php  (froxlor-0.10.27)
skipping to change at line 55 skipping to change at line 55
{ {
if (isset($input[$fieldname]) && ($input[$fieldname] === '1' || $ input[$fieldname] === 1 || $input[$fieldname] === true || strtolower($input[$fie ldname]) === 'yes' || strtolower($input[$fieldname]) === 'ja')) { if (isset($input[$fieldname]) && ($input[$fieldname] === '1' || $ input[$fieldname] === 1 || $input[$fieldname] === true || strtolower($input[$fie ldname]) === 'yes' || strtolower($input[$fieldname]) === 'ja')) {
$newfieldvalue = '1'; $newfieldvalue = '1';
} else { } else {
$newfieldvalue = '0'; $newfieldvalue = '0';
} }
return $newfieldvalue; return $newfieldvalue;
} }
public static function getFormFieldDataImage($fieldname, $fielddata, $inp
ut)
{
// We always make the system think we have new data to trigger the save
function where we actually check everything
return time();
}
public static function manipulateFormFieldDataDate($fieldname, $fielddata , $newfieldvalue) public static function manipulateFormFieldDataDate($fieldname, $fielddata , $newfieldvalue)
{ {
if (isset($fielddata['date_timestamp']) && $fielddata['date_times tamp'] === true) { if (isset($fielddata['date_timestamp']) && $fielddata['date_times tamp'] === true) {
$newfieldvalue = strtotime($newfieldvalue); $newfieldvalue = strtotime($newfieldvalue);
} }
return $newfieldvalue; return $newfieldvalue;
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)