Changeset 874
- Timestamp:
- Apr 6, 2020, 11:56:19 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 118 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/DefaultConfig.php
r873 r874 6 6 { 7 7 $IsDeveloper = in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1')); 8 return (array8 return array 9 9 ( 10 10 array('Name' => 'SystemPassword', 'Type' => 'PasswordEncoded', 'Default' => '', 'Title' => 'Systémové heslo'), … … 53 53 array('Name' => 'MainRouter/ConnectTimeout', 'Type' => 'Integer', 'Default' => '5', 'Title' => 'Vypršení času'), 54 54 array('Name' => 'MainRouter/MangleRuleSubgroupMinPrefix', 'Type' => 'Integer', 'Default' => '28', 'Title' => 'Nejmenší prefix podsítě pro mangle pravidla'), 55 ) );55 ); 56 56 } 57 57 } -
trunk/Application/System.php
r873 r874 75 75 { 76 76 array_shift($PathItems); 77 return ($this->SearchPage($PathItems, $Pages[$PathItem]));78 } else return ($Pages[$PathItem]);79 } else return ('');77 return $this->SearchPage($PathItems, $Pages[$PathItem]); 78 } else return $Pages[$PathItem]; 79 } else return ''; 80 80 } 81 81 82 82 function PageNotFound() 83 83 { 84 return ('Page '.implode('/', $this->PathItems).' not found.');84 return 'Page '.implode('/', $this->PathItems).' not found.'; 85 85 } 86 86 … … 102 102 function ModulePresent($Name) 103 103 { 104 return (array_key_exists($Name, $this->Modules));104 return array_key_exists($Name, $this->Modules); 105 105 } 106 106 … … 112 112 function HumanDate($Time) 113 113 { 114 return (date('j.n.Y', $Time));114 return date('j.n.Y', $Time); 115 115 } 116 116 117 117 function Link($Target) 118 118 { 119 return ($this->RootURLFolder.$Target);119 return $this->RootURLFolder.$Target; 120 120 } 121 121 … … 135 135 '" width="16" height="16" /> <a href="'.$Action['URL'].'">'.$Action['Title'].'</a>'; 136 136 } 137 return ($Output);137 return $Output; 138 138 } 139 139 … … 282 282 { 283 283 Header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); 284 return ('<h3 align="center">Požadovaná stránka neexistuje.</h3>');284 return '<h3 align="center">Požadovaná stránka neexistuje.</h3>'; 285 285 } 286 286 } -
trunk/Application/UpdateTrace.php
r873 r874 2115 2115 function Get() 2116 2116 { 2117 return (array(2117 return array( 2118 2118 491 => array('Revision' => 493, 'Function' => 'UpdateTo493'), 2119 2119 493 => array('Revision' => 494, 'Function' => 'UpdateTo494'), … … 2211 2211 867 => array('Revision' => 869, 'Function' => 'UpdateTo869'), 2212 2212 869 => array('Revision' => 870, 'Function' => 'UpdateTo870'), 2213 ) );2213 ); 2214 2214 } 2215 2215 } -
trunk/Application/View.php
r873 r874 38 38 function SystemMessage($Title, $Text) 39 39 { 40 return ('<table align="center"><tr><td><div class="SystemMessage"><h3>'.$Title.'</h3><div>'.$Text.'</div></div></td></tr></table>');40 return '<table align="center"><tr><td><div class="SystemMessage"><h3>'.$Title.'</h3><div>'.$Text.'</div></div></td></tr></table>'; 41 41 //ShowFooter(); 42 42 //die(); … … 68 68 } 69 69 $Output = substr($Output, 6); 70 return ($Output);70 return $Output; 71 71 } 72 72 … … 106 106 $Output .= '</div></div>'; 107 107 } 108 return ($Output);108 return $Output; 109 109 } 110 110 … … 125 125 } 126 126 $Output .= '</body></html>'; 127 return ($Output);127 return $Output; 128 128 } 129 129 … … 138 138 if ($this->FormatHTML == true) $Output = $this->FormatOutput($Output); 139 139 } 140 return ($Output);140 return $Output; 141 141 } 142 142 … … 147 147 $Page->Database = $this->Database; 148 148 $Page->FormatHTML = $this->FormatHTML; 149 return ($Page);149 return $Page; 150 150 } 151 151 … … 186 186 $nn = $n; 187 187 } 188 return ($out);188 return $out; 189 189 } 190 190 } -
trunk/Common/Form/Form.php
r873 r874 113 113 $Output = '<fieldset><legend>'.$this->Definition['Title'].'</legend>'.Table($Table). 114 114 '</fieldset>'; 115 return ($Output);115 return $Output; 116 116 } 117 117 … … 122 122 '<div><input name="submit" type="submit" value="'.$this->Definition['SubmitText'].'" /> '. 123 123 '<input type="button" value="Zrušit" onclick="location.href=\'?\'"/></div></form>'; 124 return ($Output);124 return $Output; 125 125 } 126 126 … … 316 316 } 317 317 } 318 return ($Values);318 return $Values; 319 319 } 320 320 … … 353 353 } 354 354 if ($Valid == false) throw new Exception('not validated'); 355 return ($Valid);355 return $Valid; 356 356 } 357 357 } … … 360 360 function MakeLink($Target, $Title) 361 361 { 362 return ('<a href="'.$Target.'">'.$Title.'</a>');362 return '<a href="'.$Target.'">'.$Title.'</a>'; 363 363 } 364 364 … … 384 384 } 385 385 $Result .= '</table>'; 386 return ($Result);386 return $Result; 387 387 } 388 388 -
trunk/Common/Form/Types/Base.php
r873 r874 17 17 function OnView($Item) 18 18 { 19 return ('');19 return ''; 20 20 } 21 21 22 22 function OnEdit($Item) 23 23 { 24 return ('');24 return ''; 25 25 } 26 26 27 27 function OnLoad($Item) 28 28 { 29 return ('');29 return ''; 30 30 } 31 31 32 32 function OnLoadDb($Item) 33 33 { 34 return ($Item['Value']);34 return $Item['Value']; 35 35 } 36 36 37 37 function OnSaveDb($Item) 38 38 { 39 return ($Item['Value']);39 return $Item['Value']; 40 40 } 41 41 42 42 function DatabaseEscape($Value) 43 43 { 44 return (addslashes($Value));44 return addslashes($Value); 45 45 } 46 46 … … 50 50 $SQL = '('.$Item['SQL'].') AS '; 51 51 else $SQL = ''; 52 return ($SQL.'`'.$Item['Name'].'`');52 return $SQL.'`'.$Item['Name'].'`'; 53 53 } 54 54 … … 58 58 $Output = '('.$Item['SQL'].') AS `'.$Item['Name'].'`, ('.$Item['SQL'].') AS `'.$Item['Name'].'_Filter`'; 59 59 else $Output = '`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`'; 60 return ($Output);60 return $Output; 61 61 } 62 62 63 63 function Validate($Item) 64 64 { 65 return (true);65 return true; 66 66 } 67 67 68 68 function GetValidationFormat() 69 69 { 70 return ('');70 return ''; 71 71 } 72 72 } -
trunk/Common/Form/Types/Boolean.php
r873 r874 10 10 { 11 11 if ($Item['Value'] == 1) $Checked = ' checked="1"'; else $Checked = ''; 12 return ('<input type="checkbox" name="'.$Item['Name'].'" disabled="1"'.$Checked.'/>');12 return '<input type="checkbox" name="'.$Item['Name'].'" disabled="1"'.$Checked.'/>'; 13 13 } 14 14 … … 16 16 { 17 17 if ($Item['Value'] == 1) $Checked = ' checked="1"'; else $Checked = ''; 18 return ('<input type="checkbox" name="'.$Item['Name'].'"'.$Checked.'/>');18 return '<input type="checkbox" name="'.$Item['Name'].'"'.$Checked.'/>'; 19 19 } 20 20 21 21 function OnLoad($Item) 22 22 { 23 if (array_key_exists($Item['Name'], $_POST)) return (1);24 else return (0);23 if (array_key_exists($Item['Name'], $_POST)) return 1; 24 else return 0; 25 25 } 26 26 } -
trunk/Common/Form/Types/Color.php
r873 r874 10 10 { 11 11 $Output = '<span style="background-color: #'.$Item['Value'].'"> </span>'; 12 return ($Output);12 return $Output; 13 13 } 14 14 … … 16 16 { 17 17 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 21 21 function OnLoad($Item) 22 22 { 23 return ($_POST[$Item['Name']]);23 return $_POST[$Item['Name']]; 24 24 } 25 25 } -
trunk/Common/Form/Types/Date.php
r873 r874 11 11 global $MonthNames; 12 12 13 if ($Item['Value'] == null) return ('');13 if ($Item['Value'] == null) return ''; 14 14 if ((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 15 15 $Parts = getdate($Item['Value']); 16 16 17 17 $Output = $Parts['mday'].'.'.$Parts['mon'].'.'.$Parts['year']; 18 return ($Output);18 return $Output; 19 19 } 20 20 … … 71 71 } 72 72 $Output .= '</select>'; 73 return ($Output);73 return $Output; 74 74 } 75 75 76 76 function OnLoad($Item) 77 77 { 78 if (!array_key_exists($Item['Name'].'-null', $_POST) and array_key_exists('Null', $Item) and ($Item['Null'] == true)) return (null);79 else return (mktime(0, 0, 0, $_POST[$Item['Name'].'-month'], $_POST[$Item['Name'].'-day'], $_POST[$Item['Name'].'-year']));78 if (!array_key_exists($Item['Name'].'-null', $_POST) and array_key_exists('Null', $Item) and ($Item['Null'] == true)) return null; 79 else return mktime(0, 0, 0, $_POST[$Item['Name'].'-month'], $_POST[$Item['Name'].'-day'], $_POST[$Item['Name'].'-year']); 80 80 } 81 81 82 82 function OnLoadDb($Item) 83 83 { 84 return (MysqlDateToTime($Item['Value']));84 return MysqlDateToTime($Item['Value']); 85 85 } 86 86 87 87 function OnSaveDb($Item) 88 88 { 89 if ($Item['Value'] == null) return (null);90 else return (date('Y-m-d', $Item['Value']));89 if ($Item['Value'] == null) return null; 90 else return date('Y-m-d', $Item['Value']); 91 91 } 92 92 93 93 function DatabaseEscape($Value) 94 94 { 95 return ('"'.addslashes($Value).'"');95 return '"'.addslashes($Value).'"'; 96 96 } 97 97 } -
trunk/Common/Form/Types/Enumeration.php
r873 r874 11 11 $Output = $Type['Parameters']['States'][$Item['Value']]; 12 12 else $Output = $Item['Value']; 13 return ($Output);13 return $Output; 14 14 } 15 15 … … 29 29 } 30 30 $Output .= '</select>'; 31 return ($Output);31 return $Output; 32 32 } 33 33 34 34 function OnLoad($Item) 35 35 { 36 if ($_POST[$Item['Name']] == '') return (NULL);37 return ($_POST[$Item['Name']]);36 if ($_POST[$Item['Name']] == '') return NULL; 37 return $_POST[$Item['Name']]; 38 38 } 39 39 40 40 function OnLoadDb($Item) 41 41 { 42 if ($Item['Value'] == '') return (NULL);43 else return ($Item['Value']);42 if ($Item['Value'] == '') return NULL; 43 else return $Item['Value']; 44 44 } 45 45 } -
trunk/Common/Form/Types/File.php
r873 r874 16 16 $Result = $FileInfo->file($this->FileName); 17 17 //$FileInfo->close(); 18 return ($Result);18 return $Result; 19 19 } 20 20 … … 24 24 if (file_exists($FileName)) $Result = filesize($FileName); 25 25 else $Result = 0; 26 return ($Result);26 return $Result; 27 27 } 28 28 … … 38 38 } 39 39 $Result = $this->UploadFileFolder.'/'.$Path.$File->Name; 40 return ($Result);40 return $Result; 41 41 } 42 42 43 43 function GetExt() 44 44 { 45 return (substr($this->Name, 0, strpos($this->Name, '.') - 1));45 return substr($this->Name, 0, strpos($this->Name, '.') - 1); 46 46 } 47 47 … … 55 55 if ($this->TempName != '') $Content = file_get_contents($this->TempName); 56 56 else $Content = file_get_contents($this->GetFullName()); 57 return ($Content);57 return $Content; 58 58 } 59 59 } … … 75 75 { 76 76 $File = &$Item['Value']; 77 return ('<a href="'.$this->FileDownloadURL.'?id='.$File->Id.'">'.78 $File.'</a> ('.HumanSize($File->Size).')' );77 return '<a href="'.$this->FileDownloadURL.'?id='.$File->Id.'">'. 78 $File.'</a> ('.HumanSize($File->Size).')'; 79 79 } 80 80 … … 86 86 $File = &$Item['Value']; 87 87 $Output = '<input type="file" name="'.$Item['Name'].'" value="'.$File->Name.'">'; 88 return ($Output);88 return $Output; 89 89 } 90 90 … … 103 103 } 104 104 } 105 return ($File);105 return $File; 106 106 } 107 107 … … 118 118 $File->Directory = $DbRow['Directory']; 119 119 } 120 return ($File);120 return $File; 121 121 } 122 122 -
trunk/Common/Form/Types/Float.php
r873 r874 10 10 { 11 11 $Output = $Item['Value']; 12 return ($Output);12 return $Output; 13 13 } 14 14 … … 16 16 { 17 17 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 21 21 function OnLoad($Item) 22 22 { 23 return ($_POST[$Item['Name']]);23 return $_POST[$Item['Name']]; 24 24 } 25 25 } -
trunk/Common/Form/Types/GPS.php
r873 r874 17 17 $Output = '<a href="http://www.mapy.cz/?st=search&fr=loc:'.$DbRow['Latitude'].' '.$DbRow['Longitude'].'">'.$Latitude[0].'°'.$Latitude[1]."'".$Latitude[2].'" '.$Longitude[0].'°'.$Longitude[1]."'".$Longitude[2].'"</a>'; 18 18 } 19 return ($Output);19 return $Output; 20 20 } 21 21 … … 40 40 $Output .= '<input type="text" size="3" name="'.$Item['Name'].'-lon-min" value="'.$Value[1].'"/>\''; 41 41 $Output .= '<input type="text" size="3" name="'.$Item['Name'].'-lon-sec" value="'.$Value[2].'"/>"'; 42 return ($Output);42 return $Output; 43 43 } 44 44 … … 50 50 $Longitude = $this->Implode($_POST[$Item['Name'].'-lon-deg'], $_POST[$Item['Name'].'-lon-min'], $_POST[$Item['Name'].'-lon-sec']); 51 51 $Database->query('INSERT INTO SystemGPS (`Latitude`, `Longitude`) VALUES ("'.$Latitude.'", "'.$Longitude.'")'); 52 return ($Database->insert_id);52 return $Database->insert_id; 53 53 } 54 54 … … 61 61 $Float = ($Float - intval($Float)) * 60; 62 62 $Seconds = round($Float, 3); 63 return (array($Degrees, $Minutes, $Seconds));63 return array($Degrees, $Minutes, $Seconds); 64 64 } 65 65 66 66 function Implode($Degrees, $Minutes, $Seconds) 67 67 { 68 if ($Degrees < 0) return (-(abs($Degrees) + ($Minutes + $Seconds / 60) / 60));69 else return ($Degrees + ($Minutes + $Seconds / 60) / 60);68 if ($Degrees < 0) return -(abs($Degrees) + ($Minutes + $Seconds / 60) / 60); 69 else return $Degrees + ($Minutes + $Seconds / 60) / 60; 70 70 } 71 71 } -
trunk/Common/Form/Types/Hidden.php
r873 r874 14 14 { 15 15 $Output = $Item['Value']; 16 return ($Output);16 return $Output; 17 17 } 18 18 … … 20 20 { 21 21 $Output = '<input type="hidden" name="'.$Item['Name'].'" value="'.$Item['Value'].'" />'; 22 return ($Output);22 return $Output; 23 23 } 24 24 25 25 function OnLoad($Item) 26 26 { 27 return ($_POST[$Item['Name']]);27 return $_POST[$Item['Name']]; 28 28 } 29 29 } -
trunk/Common/Form/Types/Hyperlink.php
r873 r874 8 8 { 9 9 $Output = '<a href="'.$Item['Value'].'">'.$Item['Value'].'</a>'; 10 return ($Output);10 return $Output; 11 11 } 12 12 … … 14 14 { 15 15 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 16 return ($Output);16 return $Output; 17 17 } 18 18 19 19 function OnLoad($Item) 20 20 { 21 return ($_POST[$Item['Name']]);21 return $_POST[$Item['Name']]; 22 22 } 23 23 } -
trunk/Common/Form/Types/IPv4Address.php
r873 r874 8 8 { 9 9 $Output = $Item['Value']; 10 return ($Output);10 return $Output; 11 11 } 12 12 … … 14 14 { 15 15 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 16 return ($Output);16 return $Output; 17 17 } 18 18 19 19 function OnLoad($Item) 20 20 { 21 return ($_POST[$Item['Name']]);21 return $_POST[$Item['Name']]; 22 22 } 23 23 24 24 function Validate($Item) 25 25 { 26 if ($Item['Null'] and ($Item['Value'] == '')) return (true);27 return (filter_var($Item['Value'], FILTER_VALIDATE_IP, array('flags' => FILTER_FLAG_IPV4)));26 if ($Item['Null'] and ($Item['Value'] == '')) return true; 27 return filter_var($Item['Value'], FILTER_VALIDATE_IP, array('flags' => FILTER_FLAG_IPV4)); 28 28 } 29 29 30 30 function GetValidationFormat() 31 31 { 32 return ('x.x.x.x kde x je hodnota 0..255');32 return 'x.x.x.x kde x je hodnota 0..255'; 33 33 } 34 34 } -
trunk/Common/Form/Types/IPv6Address.php
r873 r874 8 8 { 9 9 $Output = $Item['Value']; 10 return ($Output);10 return $Output; 11 11 } 12 12 … … 14 14 { 15 15 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 16 return ($Output);16 return $Output; 17 17 } 18 18 19 19 function OnLoad($Item) 20 20 { 21 return ($_POST[$Item['Name']]);21 return $_POST[$Item['Name']]; 22 22 } 23 23 24 24 function Validate($Item) 25 25 { 26 if ($Item['Null'] and ($Item['Value'] == '')) return (true);27 return (filter_var($Item['Value'], FILTER_VALIDATE_IP, array('flags' => FILTER_FLAG_IPV6)));26 if ($Item['Null'] and ($Item['Value'] == '')) return true; 27 return filter_var($Item['Value'], FILTER_VALIDATE_IP, array('flags' => FILTER_FLAG_IPV6)); 28 28 } 29 29 30 30 function GetValidationFormat() 31 31 { 32 return ('xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx kde x je hexa hodnota 0..f');32 return 'xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx kde x je hexa hodnota 0..f'; 33 33 } 34 34 } -
trunk/Common/Form/Types/Image.php
r873 r874 7 7 global $System; 8 8 9 return ('<img src="'.$System->Link('/images/favicons/'.$Item['Value']).'"/> '.$Item['Value']);9 return '<img src="'.$System->Link('/images/favicons/'.$Item['Value']).'"/> '.$Item['Value']; 10 10 } 11 11 } -
trunk/Common/Form/Types/Integer.php
r873 r874 10 10 { 11 11 $Output = $Item['Value']; 12 return ($Output);12 return $Output; 13 13 } 14 14 … … 16 16 { 17 17 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 21 21 function OnLoad($Item) 22 22 { 23 return ($_POST[$Item['Name']]);23 return $_POST[$Item['Name']]; 24 24 } 25 25 26 26 function Validate($Item) 27 27 { 28 if ($Item['Null'] and ($Item['Value'] == '')) return (true);29 return (preg_match('/^\-*[0-9\.]+$/', $Item['Value']));28 if ($Item['Null'] and ($Item['Value'] == '')) return true; 29 return preg_match('/^\-*[0-9\.]+$/', $Item['Value']); 30 30 } 31 31 32 32 function GetValidationFormat() 33 33 { 34 return ('číselná hodnota');34 return 'číselná hodnota'; 35 35 } 36 36 } -
trunk/Common/Form/Types/MacAddress.php
r873 r874 10 10 { 11 11 $Output = $Item['Value']; 12 return ($Output);12 return $Output; 13 13 } 14 14 … … 16 16 { 17 17 $Output = '<input type="text" name="'.$Item['Name'].'" id="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 … … 22 22 { 23 23 //echo($Item['Name'].'='.$_POST[$Item['Name']].','.is_null(NULL).'<br>'); 24 return (strtoupper($_POST[$Item['Name']]));24 return strtoupper($_POST[$Item['Name']]); 25 25 } 26 26 27 27 function DatabaseEscape($Value) 28 28 { 29 return ('"'.addslashes($Value).'"');29 return '"'.addslashes($Value).'"'; 30 30 } 31 31 32 32 function Validate($Item) 33 33 { 34 if ($Item['Null'] and ($Item['Value'] == '')) return (true);35 return (preg_match('/^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$/', $Item['Value']));34 if ($Item['Null'] and ($Item['Value'] == '')) return true; 35 return preg_match('/^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$/', $Item['Value']); 36 36 } 37 37 38 38 function GetValidationFormat() 39 39 { 40 return ('XX:XX:XX:XX:XX:XX kde X je hexa hodnota 0..F');40 return 'XX:XX:XX:XX:XX:XX kde X je hexa hodnota 0..F'; 41 41 } 42 42 } -
trunk/Common/Form/Types/OneToMany.php
r873 r874 15 15 'view'.'&i='.$Item['Value'].'">'.$Item['Filter'].'</a>'; 16 16 } else $Output = ''; 17 return ($Output);17 return $Output; 18 18 } 19 19 … … 51 51 'onclick="return popupwindow("'.$this->FormManager->Root.'/is/?a=select&t='.$Table.'&r='.$Item['Name'].'","test");" style="cursor:hand;cursor:pointer"/>'; 52 52 } 53 return ($Output);53 return $Output; 54 54 } 55 55 56 56 function OnLoad($Item) 57 57 { 58 if ($_POST[$Item['Name']] == '') return (NULL);59 else return ($_POST[$Item['Name']]);58 if ($_POST[$Item['Name']] == '') return NULL; 59 else return $_POST[$Item['Name']]; 60 60 } 61 61 62 62 function OnLoadDb($Item) 63 63 { 64 if ($Item['Value'] == '') return (NULL);65 else return ($Item['Value']);64 if ($Item['Value'] == '') return NULL; 65 else return $Item['Value']; 66 66 } 67 67 68 68 function OnFilterName($Item) 69 69 { 70 return ('`'.$Item['Name'].'_Filter`');70 return '`'.$Item['Name'].'_Filter`'; 71 71 } 72 72 … … 82 82 $Type['Parameters']['Id'].'`=`TX`.`'.$Item['Name'].'`) AS `'.$Item['Name'].'_Filter`'; 83 83 //} else $Output = '`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`'; 84 return ($Output);84 return $Output; 85 85 } 86 86 } -
trunk/Common/Form/Types/OneToMany2.php
r873 r874 8 8 { 9 9 $Output = '<a href="?Action=ShowList&TableId='.$Item['TypeDefinition'].'&ParentTable='.$Item['SourceTable'].'&ParentColumn='.$Item['SourceItemId'].'">Seznam</a>'; 10 return ($Output);10 return $Output; 11 11 } 12 12 … … 14 14 { 15 15 $Output = '<a href="?Action=ShowList&TableId='.$Item['TypeDefinition'].'&ParentTable='.$Item['SourceTable'].'&ParentColumn='.$Item['SourceItemId'].'">Seznam</a>'; 16 return ($Output);16 return $Output; 17 17 } 18 18 19 19 function OnLoad($Item) 20 20 { 21 return ($_POST[$Item['Name']]);21 return $_POST[$Item['Name']]; 22 22 } 23 23 } -
trunk/Common/Form/Types/Password.php
r873 r874 12 12 for ($I = 0; $I < 6; $I++) 13 13 $Output .= '*'; 14 return ($Output);14 return $Output; 15 15 } 16 16 … … 18 18 { 19 19 $Output = '<input type="password" name="'.$Item['Name'].'" value=""/>'; 20 return ($Output);20 return $Output; 21 21 } 22 22 … … 39 39 } 40 40 */ 41 return ($Result);41 return $Result; 42 42 } 43 43 44 44 function OnSaveDb($Item) 45 45 { 46 if ($Item['Value'] == '') return ('');46 if ($Item['Value'] == '') return ''; 47 47 else { 48 48 $PasswordHash = new PasswordHash(); 49 return ($PasswordHash->Hash($Item['Value'], $Item['Values']['Salt']));49 return $PasswordHash->Hash($Item['Value'], $Item['Values']['Salt']); 50 50 } 51 51 } … … 53 53 function OnLoadDb($Item) 54 54 { 55 return ('');55 return ''; 56 56 } 57 57 } -
trunk/Common/Form/Types/RandomHash.php
r873 r874 14 14 { 15 15 $Output = $Item['Value']; 16 return ($Output);16 return $Output; 17 17 } 18 18 … … 26 26 } 27 27 $Output = '<input type="hidden" name="'.$Item['Name'].'" value="'.$Item['Value'].'" />'; 28 return ($Output);28 return $Output; 29 29 } 30 30 31 31 function OnLoad($Item) 32 32 { 33 return ($_POST[$Item['Name']]);33 return $_POST[$Item['Name']]; 34 34 } 35 35 } -
trunk/Common/Form/Types/String.php
r873 r874 10 10 { 11 11 $Output = $Item['Value']; 12 return ($Output);12 return $Output; 13 13 } 14 14 … … 16 16 { 17 17 $Output = '<input type="text" name="'.$Item['Name'].'" id="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 … … 22 22 { 23 23 //echo($Item['Name'].'='.$_POST[$Item['Name']].','.is_null(NULL).'<br>'); 24 return ($_POST[$Item['Name']]);24 return $_POST[$Item['Name']]; 25 25 } 26 26 27 27 function DatabaseEscape($Value) 28 28 { 29 return ('"'.addslashes($Value).'"');29 return '"'.addslashes($Value).'"'; 30 30 } 31 31 } -
trunk/Common/Form/Types/Text.php
r873 r874 10 10 { 11 11 $Output = str_replace("\n", '<br/>', strip_tags($Item['Value'])); 12 return ($Output);12 return $Output; 13 13 } 14 14 … … 16 16 { 17 17 $Output = '<textarea name="'.$Item['Name'].'">'.$Item['Value'].'</textarea>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 21 21 function OnLoad($Item) 22 22 { 23 return ($_POST[$Item['Name']]);23 return $_POST[$Item['Name']]; 24 24 } 25 25 26 26 function DatabaseEscape($Value) 27 27 { 28 return ('"'.addslashes($Value).'"');28 return '"'.addslashes($Value).'"'; 29 29 } 30 30 } -
trunk/Common/Form/Types/Time.php
r873 r874 9 9 function OnView($Item) 10 10 { 11 if ($Item['Value'] == 0) return ('');11 if ($Item['Value'] == 0) return ''; 12 12 if ((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 13 13 $TimeParts = getdate($Item['Value']); 14 14 15 15 $Output = sprintf('%02d', $TimeParts['hours']).':'.sprintf('%02d', $TimeParts['minutes']).':'.sprintf('%02d', $TimeParts['seconds']); 16 return ($Output);16 return $Output; 17 17 } 18 18 … … 67 67 } 68 68 $Output .= '</select>'; 69 return ($Output);69 return $Output; 70 70 } 71 71 72 72 function OnLoad($Item) 73 73 { 74 if (!array_key_exists($Item['Name'].'-null', $_POST) and array_key_exists('Null', $Item) and ($Item['Null'] == true)) return (null);75 return (mktime($_POST[$Item['Name'].'-hour'], $_POST[$Item['Name'].'-minute'], $_POST[$Item['Name'].'-second']));74 if (!array_key_exists($Item['Name'].'-null', $_POST) and array_key_exists('Null', $Item) and ($Item['Null'] == true)) return null; 75 return mktime($_POST[$Item['Name'].'-hour'], $_POST[$Item['Name'].'-minute'], $_POST[$Item['Name'].'-second']); 76 76 } 77 77 78 78 function OnLoadDb($Item) 79 79 { 80 return (MysqlTimeToTime($Item['Value']));80 return MysqlTimeToTime($Item['Value']); 81 81 } 82 82 83 83 function OnSaveDb($Item) 84 84 { 85 if ($Item['Value'] == null) return (null);86 else return (date('H:i:s', $Item['Value']));85 if ($Item['Value'] == null) return null; 86 else return date('H:i:s', $Item['Value']); 87 87 } 88 88 89 89 function DatabaseEscape($Value) 90 90 { 91 return ('"'.addslashes($Value).'"');91 return '"'.addslashes($Value).'"'; 92 92 } 93 93 } -
trunk/Common/Form/Types/TimeDiff.php
r873 r874 15 15 if ($Days > 0) $Output = $Days.' dnů '.$Output; 16 16 } 17 return ($Output);17 return $Output; 18 18 } 19 19 } -
trunk/Common/Form/Types/Type.php
r873 r874 72 72 $TypeClass = 'Type'.$Type['Class']; 73 73 $TypeObject = new $TypeClass($this->FormManager); 74 if (is_callable(array($TypeObject, $Event))) return ($TypeObject->$Event($Parameters));75 else return ($TypeName.'->'.$Event.'('.serialize($Parameters).')');76 } else return ($TypeName);74 if (is_callable(array($TypeObject, $Event))) return $TypeObject->$Event($Parameters); 75 else return $TypeName.'->'.$Event.'('.serialize($Parameters).')'; 76 } else return $TypeName; 77 77 } 78 78 … … 84 84 $TypeClass = 'Type'.$Type['Class']; 85 85 $TypeObject = new $TypeClass($this->FormManager); 86 return ($TypeObject->Hidden);87 } else return (false);86 return $TypeObject->Hidden; 87 } else return false; 88 88 } 89 89 … … 111 111 function GetTypeDefinition($TypeName) 112 112 { 113 return ($this->TypeDefinitionList[$TypeName]);113 return $this->TypeDefinitionList[$TypeName]; 114 114 } 115 115 } -
trunk/Common/Global.php
r873 r874 30 30 $UnitIndex++; 31 31 } 32 return ($Value.' '.$UnitNames[$UnitIndex]);32 return $Value.' '.$UnitNames[$UnitIndex]; 33 33 } 34 34 … … 36 36 { 37 37 list($Usec, $Sec) = explode(' ', microtime()); 38 return ( (float)$Usec + (float)$Sec);38 return (float)$Usec + (float)$Sec; 39 39 } 40 40 … … 48 48 function HumanDate($Time) 49 49 { 50 if ($Time != '') { 50 if ($Time != '') 51 { 51 52 $Date = explode(' ', $Time); 52 53 $Parts = explode('-', $Date[0]); 53 if ($Date != '0000-00-00') return ( ($Parts[2]*1).'.'.($Parts[1]*1).'.'.$Parts[0]);54 else return (' ');55 } else return (' ');54 if ($Date != '0000-00-00') return ($Parts[2] * 1).'.'.($Parts[1] * 1).'.'.$Parts[0]; 55 else return ' '; 56 } else return ' '; 56 57 } 57 58 … … 62 63 $Around = 10; 63 64 $Result = ''; 64 if ($Count >1)65 { 66 if ($Page >0)65 if ($Count > 1) 66 { 67 if ($Page > 0) 67 68 { 68 69 $Result.= '<a href="'.$URL.'0"><<</a> '; 69 $Result.= '<a href="'.$URL.($Page -1).'"><</a> ';70 } 71 $PagesMax = $Count -1;70 $Result.= '<a href="'.$URL.($Page - 1).'"><</a> '; 71 } 72 $PagesMax = $Count - 1; 72 73 $PagesMin = 0; 73 if ($PagesMax >($Page+$Around)) $PagesMax = $Page+$Around;74 if ($PagesMin <($Page-$Around))74 if ($PagesMax > ($Page + $Around)) $PagesMax = $Page + $Around; 75 if ($PagesMin < ($Page - $Around)) 75 76 { 76 77 $Result.= ' .. '; 77 $PagesMin = $Page -$Around;78 } 79 for ($i =$PagesMin;$i<=$PagesMax;$i++)80 { 81 if ($i ==$Page) $Result.= '<strong>';82 $Result .= '<a href="'.$URL.$i.'">'.($i+1).'</a> ';83 if ($i ==$Page) $Result.= '</strong>';84 } 85 if ($PagesMax <($Count-1)) $Result .= ' .. ';86 if ($Page <($Count-1))87 { 88 $Result .= '<a href="'.$URL.($Page+1).'">></a> ';89 $Result .= '<a href="'.$URL.($Count-1).'">>></a>';90 } 91 } 92 return ($Result);78 $PagesMin = $Page - $Around; 79 } 80 for ($i = $PagesMin; $i <= $PagesMax; $i++) 81 { 82 if ($i == $Page) $Result.= '<strong>'; 83 $Result .= '<a href="'.$URL.$i.'">'.($i + 1).'</a> '; 84 if ($i == $Page) $Result.= '</strong>'; 85 } 86 if ($PagesMax < ($Count - 1)) $Result .= ' .. '; 87 if ($Page < ($Count - 1)) 88 { 89 $Result .= '<a href="'.$URL.($Page + 1).'">></a> '; 90 $Result .= '<a href="'.$URL.($Count - 1).'">>></a>'; 91 } 92 } 93 return $Result; 93 94 } 94 95 95 96 function ExtractTime($Time) 96 97 { 97 return (array(98 return array( 98 99 'Year' => date('Y', $Time), 99 100 'Month' => date('n', $Time), … … 102 103 'Minute' => date('i', $Time), 103 104 'Second' => date('s', $Time) 104 ) );105 ); 105 106 } 106 107 … … 118 119 } 119 120 } 120 return ($Result);121 return $Result; 121 122 } 122 123 … … 128 129 $Parts[] = $Index.'='.$Item; 129 130 } 130 return (implode('&', $Parts));131 return implode('&', $Parts); 131 132 } 132 133 … … 199 200 200 201 $Result = '<div style="text-align: center">'.$Result.'</div>'; 201 return (array('SQLLimit' => ' LIMIT '.$CurrentPage * $ItemPerPage.', '.$ItemPerPage,202 return array('SQLLimit' => ' LIMIT '.$CurrentPage * $ItemPerPage.', '.$ItemPerPage, 202 203 'Page' => $CurrentPage, 203 204 'Output' => $Result, 204 ) );205 ); 205 206 } 206 207 … … 253 254 else $Result .= '<th><a href="?'.SetQueryStringArray($QueryItems).'">'.$Column['Title'].$ArrowImage.'</a></th>'; 254 255 } 255 return (array(256 return array( 256 257 'SQL' => ' ORDER BY `'.$_SESSION[$ObjectName.'OrderCol'].'` '.$OrderDirSQL[$_SESSION[$ObjectName.'OrderDir']], 257 258 'Output' => '<tr>'.$Result.'</tr>', 258 259 'Column' => $_SESSION[$ObjectName.'OrderCol'], 259 260 'Direction' => $_SESSION[$ObjectName.'OrderDir'], 260 ) );261 ); 261 262 } 262 263 … … 265 266 if (array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR']; 266 267 else $IP = '0.0.0.0'; 267 return ($IP);268 return $IP; 268 269 } 269 270 … … 282 283 } 283 284 } 284 return ($Result);285 return $Result; 285 286 } 286 287 … … 295 296 { 296 297 $DbRow = $DbResult->fetch_assoc(); 297 return ($DbRow['Id']);298 } else return ('');298 return $DbRow['Id']; 299 } else return ''; 299 300 } 300 301 … … 302 303 { 303 304 $Result = shell_exec('which '.$Command); 304 return (!empty($Result));305 return !empty($Result); 305 306 } 306 307 307 308 function RemoveDiacritic($Text) 308 309 { 309 return (str_replace(310 return str_replace( 310 311 array('á', 'č', 'ď', 'é', 'ě', 'í', 'ľ', 'ň', 'ó', 'ř', 'š', 'ť', 'ú', 'ů', 311 312 'ý', 'ž', 'Á', 'Č', 'Ď', 'É', 'Ě', 'Í', 'Ľ', 'Ň', 'Ó', 'Ř', 'Š', 'Ť', 'Ú', 'Ů', 'Ý', 'Ž'), 312 313 array('a', 'c', 'd', 'e', 'e', 'i', 'l', 'n', 'o', 'r', 's', 't', 'u', 'u', 313 314 'y', 'z', 'A', 'C', 'D', 'E', 'E', 'I', 'L', 'N', 'O', 'R', 'S', 'T', 'U', 'U', 'Y', 'Z'), 314 $Text) );315 $Text); 315 316 } 316 317 317 318 function RouterOSIdent($Name) 318 319 { 319 return (strtr(strtolower(trim($Name)), array(' ' => '-', '.' => '', '(' => '-', ')' => '-', ',' => '-',320 return strtr(strtolower(trim($Name)), array(' ' => '-', '.' => '', '(' => '-', ')' => '-', ',' => '-', 320 321 'č' => 'c', 'š' => 's', 'ě' => 'e', 'ř' => 'r', 'ž' => 'z', 'ý' => 'y', 321 322 'á' => 'a', 'í' => 'i', 'é' => 'e', 'ů' => 'u', 'ú' => 'u', 'ď' => 'd', … … 324 325 'Á' => 'a', 'Í' => 'i', 'É' => 'e', 'Ů' => 'u', 'Ú' => 'u', 'Ď' => 'd', 325 326 'Ť' => 't', 'Ň' => 'n', 'Ó' => 'o', 326 )));327 )); 327 328 } 328 329 329 330 function NotBlank($Text) 330 331 { 331 if ($Text == '') return (' ');332 else return ($Text);332 if ($Text == '') return ' '; 333 else return $Text; 333 334 } 334 335 … … 361 362 else $_SERVER['QUERY_STRING'] = ''; 362 363 parse_str($_SERVER['QUERY_STRING'], $_GET); 363 return ($PathItems);364 return $PathItems; 364 365 } 365 366 -
trunk/Common/VCL/Database.php
r873 r874 66 66 $ListView->Rows[] = $Row; 67 67 $Output = parent::Show(); 68 return ($Output);68 return $Output; 69 69 } 70 70 } -
trunk/Common/VCL/General.php
r873 r874 15 15 if ($Persistent) $_SESSION[$Name] = $Result; 16 16 } 17 return ($Result);17 return $Result; 18 18 } 19 19 … … 34 34 $Output = ''; 35 35 //$Output .= '#'.$this->Id; 36 return ($Output);36 return $Output; 37 37 } 38 38 … … 53 53 foreach ($this->Items as $Item) 54 54 $Output .= $Item->Show(); 55 return ($Output);55 return $Output; 56 56 } 57 57 } … … 72 72 if ($this->Visible) 73 73 { 74 return (parent::Show().'<button>'.$this->Caption.'</button>');74 return parent::Show().'<button>'.$this->Caption.'</button>'; 75 75 } 76 76 } … … 83 83 function Show() 84 84 { 85 return (parent::Show().'<input type="text" name="'.$this->Id.'" value="'.$this->Text.'"/>');85 return parent::Show().'<input type="text" name="'.$this->Id.'" value="'.$this->Text.'"/>'; 86 86 } 87 87 … … 119 119 } 120 120 $Output .= '<br/>'; 121 return ($Output);121 return $Output; 122 122 } 123 123 … … 134 134 function Show() 135 135 { 136 return ($this->Name);136 return $this->Name; 137 137 } 138 138 } … … 170 170 } 171 171 $Output .= '</table>'; 172 return ($Output);172 return $Output; 173 173 } 174 174 } … … 192 192 function ColumnClick($Column) 193 193 { 194 return ('?'.$this->Id.'_SortColumn='.$Column->Id.'&'.$this->Id.'_SortOrder='.(1 - $this->SortOrder));194 return '?'.$this->Id.'_SortColumn='.$Column->Id.'&'.$this->Id.'_SortOrder='.(1 - $this->SortOrder); 195 195 } 196 196 … … 208 208 if ($this->OnColumnClick != '') 209 209 $Output = '<a href="'.call_user_func($this->OnColumnClick, $Column).'">'.$Output.'</a>'; 210 return ($Output);210 return $Output; 211 211 } 212 212 … … 219 219 $Output .= parent::Show(); 220 220 $Output .= $this->PageSelect->Show(); 221 return ($Output);221 return $Output; 222 222 } 223 223 … … 251 251 } 252 252 $Output .= '</table>'; 253 return ($Output);253 return $Output; 254 254 } 255 255 … … 279 279 $Output = '<a href="?'.$Link.'">'.$Output.'</a>'; 280 280 }; 281 return ($Output);281 return $Output; 282 282 } 283 283 … … 301 301 $Output .= $Item->Show(); 302 302 $Output .= '</body></html>'; 303 return ($Output);303 return $Output; 304 304 } 305 305 -
trunk/Modules/API/API.php
r873 r874 72 72 else $Output = 'Unsupported action'; 73 73 74 return ($Output);74 return $Output; 75 75 } 76 76 … … 79 79 if (($Table != '') and (array_key_exists($Table, $this->System->FormManager->Classes))) 80 80 $FormClass = $this->System->FormManager->Classes[$Table]; 81 else return ('Table not found');81 else return 'Table not found'; 82 82 83 83 if (array_key_exists('SQL', $FormClass)) … … 102 102 else if ($this->DataFormat == 'json') $Output = json_encode($Result); 103 103 else die('Unknown data format '.$this->DataFormat); 104 return ($Output);104 return $Output; 105 105 } 106 106 -
trunk/Modules/Chat/Chat.php
r873 r874 14 14 { 15 15 $Num = dechex($Num); 16 return (substr($Num, 4, 2).substr($Num, 2, 2).substr($Num, 0, 2));16 return substr($Num, 4, 2).substr($Num, 2, 2).substr($Num, 0, 2); 17 17 } 18 18 … … 21 21 global $MonthNames; 22 22 23 if (!$this->System->User->CheckPermission('Chat', 'Display')) return ('Nemáte oprávnění');23 if (!$this->System->User->CheckPermission('Chat', 'Display')) return 'Nemáte oprávnění'; 24 24 25 25 if (array_key_exists('date', $_GET)) $Date = $_GET['date']; … … 81 81 else $Output .= 'V daném dni nebyly zaznamenány žádné zprávy.'; 82 82 $Output .= '</div>'; 83 return ($Output);83 return $Output; 84 84 } 85 85 } -
trunk/Modules/Customer/Customer.php
r873 r874 201 201 $Output .= ' platících:'.$DbRow['0'].'<br/>'; 202 202 203 return ($Output);203 return $Output; 204 204 } 205 205 -
trunk/Modules/EmailQueue/EmailQueue.php
r873 r874 11 11 $Output = $this->System->ModuleManager->Modules['EmailQueue']->Process(); 12 12 $Output = $this->SystemMessage('Zpracování fronty emailů', 'Nové emaily byly odeslány').$Output; 13 return ($Output);13 return $Output; 14 14 } 15 15 } … … 106 106 $Output .= 'To: '.$DbRow['To'].' Subject: '.$DbRow['Subject'].'<br />'; 107 107 } 108 return ($Output);108 return $Output; 109 109 } 110 110 } -
trunk/Modules/File/File.php
r873 r874 38 38 } 39 39 } 40 return ($Result);40 return $Result; 41 41 } 42 42 … … 46 46 47 47 $Result = $MimeTypes[pathinfo($FileName, PATHINFO_EXTENSION)][0]; 48 return ($Result);48 return $Result; 49 49 } 50 50 … … 74 74 else $Result = $this->FilesDir; 75 75 $Result .= $DbRow['Name'].'/'; 76 return ($Result);76 return $Result; 77 77 } 78 78 } … … 85 85 if (array_key_exists('id', $_GET)) $Id = $_GET['id']; 86 86 else if (array_key_exists('i', $_GET)) $Id = $_GET['i']; 87 else return ($this->SystemMessage('Chyba', 'Nezadáno id souboru'));87 else return $this->SystemMessage('Chyba', 'Nezadáno id souboru'); 88 88 $this->ClearPage = true; 89 89 $Output = $this->System->Modules['File']->Download($Id); 90 return ($Output);90 return $Output; 91 91 } 92 92 } -
trunk/Modules/Finance/Bill.php
r873 r874 8 8 function GenerateHTML() 9 9 { 10 return ('');10 return ''; 11 11 } 12 12 … … 29 29 $Output = shell_exec('echo "'.addslashes($Encoding->FromUTF8($HtmlCode)). 30 30 '"|htmldoc --no-numbered --webpage --no-embedfonts --charset 8859-2 -t pdf -'); 31 return ($Output);31 return $Output; 32 32 } 33 33 } … … 47 47 if ($Subject['Account'] != '') $Output .= 'Účet: '.$Subject['Account'].'<br>'; 48 48 if ($Subject['PayVAT'] != '') $Output .= 'Plátce DPH: '.$BooleanText[$Subject['PayVAT']].'<br>'; 49 return ($Output);49 return $Output; 50 50 } 51 51 … … 146 146 '</table>'; 147 147 148 return ($Output);148 return $Output; 149 149 } 150 150 } … … 215 215 '<tr><td> </td><td><br><br>'.$Desc['Signature'].':</td></tr>'; 216 216 $Output .= '</table>'; 217 return ($Output);217 return $Output; 218 218 } 219 219 } -
trunk/Modules/Finance/Finance.php
r873 r874 80 80 function W2Kc($Spotreba) 81 81 { 82 return (round($Spotreba * 0.72 * $this->kWh));82 return round($Spotreba * 0.72 * $this->kWh); 83 83 } 84 84 … … 138 138 $this->Database->query('UPDATE `DocumentLineSequence` SET `NextNumber` = `NextNumber` + 1 '. 139 139 'WHERE (`DocumentLine`='.$Id.') AND (`FinanceYear`='.$FinanceYear['Id'].')'); 140 return ($Result);140 return $Result; 141 141 } 142 142 … … 153 153 if ($DbResult->num_rows == 1) { 154 154 $Group = $DbResult->fetch_assoc(); 155 return ($Group);155 return $Group; 156 156 } else die('Finance group id '.$Id.' not found in table '.$Table); 157 157 } … … 204 204 } 205 205 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'RecalculateMemberPayment'); 206 return ($Output);206 return $Output; 207 207 } 208 208 … … 214 214 TimeToMysqlDate($Time).'") OR (ValidTo IS NULL)) LIMIT 1'); 215 215 $Row = $DbResult->fetch_array(); 216 return ($Row[0]);216 return $Row[0]; 217 217 } 218 218 } … … 669 669 $FinanceGroup = $this->System->Modules['Finance']->GetFinanceGroupById($Form->Values['Group'], 'FinanceOperationGroup'); 670 670 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($FinanceGroup['DocumentLine'], $Year); 671 return ($Form->Values);671 return $Form->Values; 672 672 } 673 673 … … 677 677 $this->Database->query('UPDATE `'.$Form->Definition['Table'].'` SET `Value`= '. 678 678 ($Form->Values['ValueUser'] * $FinanceGroup['ValueSign']).' WHERE `Id`='.$Id); 679 return ($Form->Values);679 return $Form->Values; 680 680 } 681 681 … … 685 685 $this->Database->query('UPDATE `'.$Form->Definition['Table'].'` SET `Value`= '. 686 686 ($Form->Values['ValueUser'] * $FinanceGroup['ValueSign']).' WHERE `Id`='.$Id); 687 return ($Form->Values);687 return $Form->Values; 688 688 } 689 689 … … 695 695 $Group = $this->System->Modules['Finance']->GetFinanceGroupById($Form->Values['Group'], 'FinanceInvoiceGroup'); 696 696 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year); 697 return ($Form->Values);697 return $Form->Values; 698 698 } 699 699 … … 707 707 $this->Database->query('UPDATE `'.$Form->Definition['Table'].'` SET `Value`= '. 708 708 ($Sum * $FinanceGroup['ValueSign']).' WHERE `Id`='.$Id); 709 return ($Form->Values);709 return $Form->Values; 710 710 } 711 711 … … 718 718 $this->Database->query('UPDATE `'.$Form->Definition['Table'].'` SET `Value`= '. 719 719 ($Sum * $FinanceGroup['ValueSign']).' WHERE `Id`='.$Id); 720 return ($Form->Values);720 return $Form->Values; 721 721 } 722 722 … … 727 727 $ParentForm->LoadValuesFromDatabase($Form->Values['FinanceInvoice']); 728 728 $this->AfterInsertFinanceInvoice($ParentForm, $Form->Values['FinanceInvoice']); 729 return ($Form->Values);729 return $Form->Values; 730 730 } 731 731 … … 736 736 $ParentForm->LoadValuesFromDatabase($Form->Values['FinanceInvoice']); 737 737 $this->BeforeModifyFinanceInvoice($ParentForm, $Form->Values['FinanceInvoice']); 738 return ($Form->Values);738 return $Form->Values; 739 739 } 740 740 … … 744 744 else $Year = date("Y", $Form->Values['ValidFrom']); 745 745 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Form->Values['DocumentLine'], $Year); 746 return ($Form->Values);746 return $Form->Values; 747 747 } 748 748 } -
trunk/Modules/Finance/Import.php
r873 r874 9 9 function Show() 10 10 { 11 if (!$this->System->User->CheckPermission('Finance', 'SubjectList')) return ('Nemáte oprávnění');11 if (!$this->System->User->CheckPermission('Finance', 'SubjectList')) return 'Nemáte oprávnění'; 12 12 if (array_key_exists('Operation', $_GET)) 13 13 { 14 if ($_GET['Operation'] == 'prepare') return ($this->Prepare());15 else if ($_GET['Operation'] == 'insert') return ($this->Insert());14 if ($_GET['Operation'] == 'prepare') return $this->Prepare(); 15 else if ($_GET['Operation'] == 'insert') return $this->Insert(); 16 16 else echo('Neplatná akce'); 17 17 } else … … 22 22 $Output .= '<input type="submit" value="Analyzovat"/>'; 23 23 $Output .= '</form>'; 24 return ($Output);24 return $Output; 25 25 } 26 26 } … … 121 121 $Output .= '<input type="submit" value="Zpracovat"/></form>'; 122 122 } 123 return ($Output);123 return $Output; 124 124 } 125 125 … … 156 156 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted'); 157 157 } 158 return ($Output);158 return $Output; 159 159 } 160 160 } -
trunk/Modules/Finance/Manage.php
r873 r874 11 11 $Output = ''; 12 12 if (!$this->System->User->CheckPermission('Finance', 'Manage')) 13 return ('Nemáte oprávnění');13 return 'Nemáte oprávnění'; 14 14 15 15 if (array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; … … 42 42 $Output .= '<a href="'.$this->System->Link('/finance/import/').'">Import plateb</a><br />'; 43 43 } 44 return ($Output);44 return $Output; 45 45 } 46 46 … … 52 52 53 53 $MonthCount = $this->System->Modules['Finance']->BillingPeriods[$Period]['MonthCount']; 54 if ($MonthCount <= 0) return (array('From' => NULL, 'To' => NULL, 'MonthCount' => 0));54 if ($MonthCount <= 0) return array('From' => NULL, 'To' => NULL, 'MonthCount' => 0); 55 55 $MonthCurrent = date('n', $Time); 56 56 … … 67 67 $PeriodTo = mktime(0, 0, 0, $MonthTo, date('t', mktime(0, 0, 0, $MonthTo, 1, $Year)), $Year); 68 68 69 return (array('From' => $PeriodFrom, 'To' => $PeriodTo, 'MonthCount' => $MonthCount));69 return array('From' => $PeriodFrom, 'To' => $PeriodTo, 'MonthCount' => $MonthCount); 70 70 } 71 71 72 72 function ShowMonthlyPayment() 73 73 { 74 if (!$this->System->User->CheckPermission('Finance', 'Manage')) return ('Nemáte oprávnění');74 if (!$this->System->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění'; 75 75 $SQL = 'SELECT `Member`.*, `MemberPayment`.`MonthlyTotal` AS `Monthly`, '. 76 76 '`MemberPayment`.`Cash` AS `Cash`, '. … … 120 120 $Output .= $PageList['Output']; 121 121 $Output .= '<a href="?Operation=ProcessMonthlyPayment">Generovat faktury</a>'; 122 return ($Output);122 return $Output; 123 123 } 124 124 … … 149 149 //$LastInsertTime = $Time; 150 150 //$this->CheckAdvancesAndLiabilities($Subject); 151 return ($InvoiceId);151 return $InvoiceId; 152 152 } 153 153 … … 217 217 $Output .= "\n"; 218 218 } 219 return ($Output);219 return $Output; 220 220 } 221 221 … … 270 270 $this->TableUpdateChanges('ServiceCustomerRel'); 271 271 272 return ($Output);272 return $Output; 273 273 } 274 274 275 275 function ProcessMonthlyPayment() 276 276 { 277 if (!$this->System->User->CheckPermission('Finance', 'Manage')) return ('Nemáte oprávnění');277 if (!$this->System->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění'; 278 278 $Output = ''; 279 279 … … 335 335 } 336 336 $Output = str_replace("\n", '<br/>', $Output); 337 return ($Output);337 return $Output; 338 338 } 339 339 … … 478 478 $Output .= $this->GenerateInvoice(' AND (`File` IS NULL)'); 479 479 $Output .= $this->GenerateOperation(' AND (`File` IS NULL)'); 480 return ($Output);480 return $Output; 481 481 } 482 482 } -
trunk/Modules/Finance/Trade.php
r873 r874 65 65 $Row = $DbResult->fetch_array(); 66 66 $Balance['SmallAssets']['End'] = $Row[0] + 0; 67 return ($Balance);67 return $Balance; 68 68 } 69 69 … … 427 427 { 428 428 if (!$this->System->User->CheckPermission('Finance', 'TradingStatus')) 429 return ('Nemáte oprávnění');429 return 'Nemáte oprávnění'; 430 430 431 431 $Finance = &$this->System->Modules['Finance']; … … 478 478 $Output = $this->ShowDefault(); 479 479 } 480 return ($Output);480 return $Output; 481 481 } 482 482 … … 488 488 $Output .= '<a href="?year='.$DbRow['Id'].'">'.$DbRow['Year'].'</a> '; 489 489 $Output .= '<br/>'; 490 return ($Output);490 return $Output; 491 491 } 492 492 -
trunk/Modules/Finance/UserState.php
r873 r874 66 66 $Output .= '</table>'; 67 67 $Output .= $PageList['Output']; 68 return ($Output);68 return $Output; 69 69 } 70 70 … … 77 77 if (array_key_exists('i', $_GET)) 78 78 { 79 if (!$this->System->User->CheckPermission('Finance', 'Manage')) return ('Nemáte oprávnění');79 if (!$this->System->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění'; 80 80 $CustomerId = $_GET['i']; 81 81 } else 82 82 { 83 if (!$this->System->User->CheckPermission('Finance', 'DisplaySubjectState')) return ('Nemáte oprávnění');83 if (!$this->System->User->CheckPermission('Finance', 'DisplaySubjectState')) return 'Nemáte oprávnění'; 84 84 $UserId = $this->System->User->User['Id']; 85 85 $DbResult = $this->Database->query('SELECT `Customer` FROM `UserCustomerRel` WHERE `User`='.$UserId.' LIMIT 1'); … … 88 88 $CustomerUserRel = $DbResult->fetch_assoc(); 89 89 $CustomerId = $CustomerUserRel['Customer']; 90 } else return ($this->SystemMessage('Chyba', 'Nejste zákazníkem'));90 } else return $this->SystemMessage('Chyba', 'Nejste zákazníkem'); 91 91 } 92 92 … … 96 96 { 97 97 $Customer = $DbResult->fetch_assoc(); 98 } else return ($this->SystemMessage('Položka nenalezena', 'Zákazník nenalezen'));98 } else return $this->SystemMessage('Položka nenalezena', 'Zákazník nenalezen'); 99 99 100 100 … … 104 104 { 105 105 $Subject = $DbResult->fetch_assoc(); 106 } else return ($this->SystemMessage('Položka nenalezena', 'Subjekt nenalezen'));106 } else return $this->SystemMessage('Položka nenalezena', 'Subjekt nenalezen'); 107 107 108 108 … … 152 152 153 153 $Output .= '</td></tr></table>'; 154 return ($Output);154 return $Output; 155 155 } 156 156 } -
trunk/Modules/FinanceBankAPI/FileImport.php
r873 r874 89 89 $Import->PairOperations(); 90 90 } 91 return ($Output);91 return $Output; 92 92 } 93 93 … … 95 95 { 96 96 if (!$this->System->User->CheckPermission('Finance', 'SubjectList')) 97 return ('Nemáte oprávnění');97 return 'Nemáte oprávnění'; 98 98 99 99 $Output = $this->Import($_GET['i']); 100 return ($Output);100 return $Output; 101 101 } 102 102 } … … 111 111 { 112 112 $Output = ''; 113 if (!$this->System->User->CheckPermission('Finance', 'SubjectList')) return ('Nemáte oprávnění');113 if (!$this->System->User->CheckPermission('Finance', 'SubjectList')) return 'Nemáte oprávnění'; 114 114 if (array_key_exists('Operation', $_GET)) 115 115 { … … 118 118 else $Output .= 'Neplatná akce'; 119 119 } else $Output .= $this->ShowForm(); 120 return ($Output);120 return $Output; 121 121 } 122 122 … … 128 128 $Form->Values['BankAccount'] = $_GET['id']; 129 129 $Output = $Form->ShowEditForm(); 130 return ($Output);130 return $Output; 131 131 } 132 132 … … 153 153 $Output .= $Import->ImportFile($File->GetContent(), $File->GetExt()); 154 154 155 return ($Output);155 return $Output; 156 156 } 157 157 … … 187 187 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted'); 188 188 } 189 return ($Output);189 return $Output; 190 190 } 191 191 } -
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r873 r874 76 76 $DbRow = $DbResult->fetch_row(); 77 77 $Output = 'Nezpárovaných plateb: '.$DbRow['0'].'<br/>'; 78 return ($Output);78 return $Output; 79 79 } 80 80 … … 94 94 'presetBankAccount' => $Item['BankAccount'], 95 95 'presetGroup' => $FinanceGroup['Id']); 96 return ($Preset);96 return $Preset; 97 97 } 98 98 } … … 112 112 $Output .= $Page->Import($DbRow['Id']); 113 113 } 114 return ($Output);114 return $Output; 115 115 } 116 116 } -
trunk/Modules/FinanceBankAPI/Fio.php
r873 r874 55 55 if ($GPCLine != NULL) $Result[] = $GPCLine; 56 56 } 57 return ($Result);57 return $Result; 58 58 } 59 59 } -
trunk/Modules/FinanceBankAPI/FioAPI.php
r873 r874 7 7 function RemoveComma($Text) 8 8 { 9 if ((mb_strlen($Text) >= 2) and ($Text[0] == '"') and (mb_substr($Text, -1, 1) == '"')) return (mb_substr($Text, 1, -1));10 else return ($Text);9 if ((mb_strlen($Text) >= 2) and ($Text[0] == '"') and (mb_substr($Text, -1, 1) == '"')) return mb_substr($Text, 1, -1); 10 else return $Text; 11 11 } 12 12 … … 97 97 } 98 98 } 99 return ($Result);99 return $Result; 100 100 } 101 101 } -
trunk/Modules/FinanceBankAPI/GPC.php
r873 r874 53 53 $GPCLine = NULL; 54 54 55 return ($GPCLine);55 return $GPCLine; 56 56 } 57 57 } -
trunk/Modules/FinanceBankAPI/ImportFio.php
r873 r874 44 44 $this->Database->update('FinanceBankAccount', 'Id='.$this->BankAccount['Id'], 45 45 array('LastImportDate' => TimeToMysqlDate($PeriodEnd))); 46 return ($Output);46 return $Output; 47 47 } 48 48 } -
trunk/Modules/Log/Log.php
r873 r874 96 96 $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail']; 97 97 $RSS->Items = $Items; 98 return ($RSS->Generate());98 return $RSS->Generate(); 99 99 } 100 100 } -
trunk/Modules/Map/Map.php
r873 r874 14 14 { 15 15 if (!$this->System->User->CheckPermission('Map', 'Show')) 16 return ('Nemáte oprávnění');16 return 'Nemáte oprávnění'; 17 17 18 18 if (count($this->System->PathItems) > 1) 19 19 { 20 if ($this->System->PathItems[1] == 'show-position') return ($this->ShowPosition());21 else return (PAGE_NOT_FOUND);22 } else return ($this->ShowMain());20 if ($this->System->PathItems[1] == 'show-position') return $this->ShowPosition(); 21 else return PAGE_NOT_FOUND; 22 } else return $this->ShowMain(); 23 23 } 24 24 … … 40 40 $MapApi->Markers[] = $Marker; 41 41 $Output = $MapApi->ShowPage($this); 42 return ($Output);43 } else return ('Položka nenalezena');42 return $Output; 43 } else return 'Položka nenalezena'; 44 44 } 45 45 … … 236 236 </table>'; 237 237 */ 238 return ($Output);238 return $Output; 239 239 } 240 240 } … … 249 249 'onclick="return popupwindow("'.$this->FormManager->Root.'/is/?a=mapselect&r='. 250 250 $Item['Name'].'","test");" style="cursor:hand;cursor:pointer"/>'; 251 return ($Output);251 return $Output; 252 252 } 253 253 } -
trunk/Modules/Map/MapAPI.php
r873 r874 37 37 function Show() 38 38 { 39 return ('');39 return ''; 40 40 } 41 41 } … … 102 102 </script>'; 103 103 $Output .= '<div id="map_canvas" style="width: 100%; height: 98%;"></div>'; 104 return ($Output);104 return $Output; 105 105 } 106 106 } -
trunk/Modules/Meals/Meals.php
r873 r874 15 15 if (count($this->System->PathItems) > 1) 16 16 { 17 if ($this->System->PathItems[1] == 'tisk') return ($this->ShowPrint());18 else if ($this->System->PathItems[1] == 'menuedit.php') return ($this->ShowEdit());19 else return (PAGE_NOT_FOUND);20 } else return ($this->ShowMenu());17 if ($this->System->PathItems[1] == 'tisk') return $this->ShowPrint(); 18 else if ($this->System->PathItems[1] == 'menuedit.php') return $this->ShowEdit(); 19 else return PAGE_NOT_FOUND; 20 } else return $this->ShowMenu(); 21 21 } 22 22 … … 40 40 $Output .= 'Cena jednoho menu: '.$Row['Price'].' Kč<br />'; 41 41 $Output .= $Row['Info']; 42 return ($Output);42 return $Output; 43 43 } 44 44 … … 91 91 92 92 $Output .= '</body></html>'; 93 return ($Output);93 return $Output; 94 94 } 95 95 … … 117 117 $Output .= '</select></td></tr>'; 118 118 $LastWeekOfYear = $WeekOfYear; 119 return ($Output);119 return $Output; 120 120 } 121 121 … … 173 173 '<div align="center"><input type="submit" value="Uložit údaje"></div> 174 174 </fieldset></form>'; 175 return ($Output);175 return $Output; 176 176 } 177 177 } -
trunk/Modules/Meteostation/Meteostation.php
r873 r874 11 11 $Output = 'Stav meteostanice:<br/>'; 12 12 $Output .= '<img src="'.$this->System->Link('/Modules/Meteostation/cache/1.png').'" alt="stav meteostanice"/>'; 13 return ($Output);13 return $Output; 14 14 } 15 15 } -
trunk/Modules/Network/HostList.php
r873 r874 12 12 { 13 13 if (!$this->System->User->CheckPermission('Network', 'ShowHostList')) 14 return ('Nemáte oprávnění');14 return 'Nemáte oprávnění'; 15 15 16 16 if (array_key_exists('admin', $_GET)) $Where = 'AND NetworkDevice.Type IN (1,4,5) '; … … 52 52 } 53 53 $Output .= '</table></div>'; 54 return ($Output);54 return $Output; 55 55 } 56 56 } -
trunk/Modules/Network/Hosting.php
r873 r874 16 16 } 17 17 $Output .= '</table>'; 18 return ($Output);18 return $Output; 19 19 } 20 20 } -
trunk/Modules/Network/Network.php
r873 r874 69 69 } 70 70 $Output .= '</table>'; 71 return ($Output);71 return $Output; 72 72 } 73 73 } … … 85 85 $Output = $this->PageNotFound(); 86 86 } else $Output = $this->ShowInformation(); 87 return ($Output);87 return $Output; 88 88 } 89 89 … … 91 91 { 92 92 if (!$this->System->User->CheckPermission('Network', 'ShowInfo')) 93 return ('Nemáte oprávnění');93 return 'Nemáte oprávnění'; 94 94 95 95 $Output = '<a href="'.$this->System->Link('/network/frequency-plan/').'">Frekvenční plán</a><br />'; 96 96 $Output .= '<a href="'.$this->System->Link('/network/subnet/').'">Výpis registrovaných podsítí</a><br />'; 97 97 $Output .= '<a href="'.$this->System->Link('/network/hosts/').'">Registrované zařízení</a><br />'; 98 return ($Output);98 return $Output; 99 99 } 100 100 } … … 895 895 $Output .= $StillOffline['Report']; 896 896 $Offline = $this->OnlineList('Offline', 0, -1, 0); 897 return (array('Report' => $Output, 'Count' => $Offline['Count'], 'ShortTitle' => 'Odezva'));897 return array('Report' => $Output, 'Count' => $Offline['Count'], 'ShortTitle' => 'Odezva'); 898 898 } 899 899 … … 947 947 $Output .= $StillOffline['Report']; 948 948 $Offline = $this->PortCheckList('Offline', 0, -1, 0); 949 return (array('Report' => $Output, 'Count' => $Offline['Count'], 'ShortTitle' => 'Port'));949 return array('Report' => $Output, 'Count' => $Offline['Count'], 'ShortTitle' => 'Port'); 950 950 } 951 951 } -
trunk/Modules/Network/Subnet.php
r873 r874 54 54 $Output .= '</table>'; 55 55 $Output .= $PageList['Output']; 56 return ($Output);56 return $Output; 57 57 } 58 58 } -
trunk/Modules/Network/UserHosts.php
r873 r874 15 15 global $Config; 16 16 17 if ($this->System->User->User['Id'] == '') return ($this->SystemMessage('Nepovolený přístup', 'Nemáte oprávnění pro tuto operaci'));17 if ($this->System->User->User['Id'] == '') return $this->SystemMessage('Nepovolený přístup', 'Nemáte oprávnění pro tuto operaci'); 18 18 $Output = '<div align="center" style="font-size: small;"><table class="WideTable">'; 19 19 $Output .= '<tr><th>Jméno počítače</th><th>Místní adresa</th><th>Veřejná adresa</th><th>Fyzická adresa</th><th>Typ</th><th>Naposledy online</th></tr>'; … … 39 39 } 40 40 $Output .= '</table></div>'; 41 return ($Output);41 return $Output; 42 42 } 43 43 } -
trunk/Modules/NetworkConfig/NetworkConfig.php
r873 r874 90 90 } else $Output = 'Config item '.$ConfigItemName.' not found'; 91 91 } else $Output = 'Not enough parameters'; 92 return ($Output);92 return $Output; 93 93 } 94 94 } -
trunk/Modules/NetworkConfigAirOS/Generators/SSHClient.php
r873 r874 39 39 } else $Output = ''; 40 40 if ($this->Debug) print_r($Output); 41 return ($Output);41 return $Output; 42 42 } 43 43 } -
trunk/Modules/NetworkConfigLinux/Generators/CheckPorts.php
r873 r874 15 15 $State = 1; 16 16 } 17 return ($State);17 return $State; 18 18 } 19 19 -
trunk/Modules/NetworkConfigRouterOS/Generators/AddressPortability.php
r873 r874 11 11 { 12 12 $TimeParts = explode(':', $Time); 13 return ($TimeParts[0] * 3600 + $TimeParts[1] * 60 + $TimeParts[2]);13 return $TimeParts[0] * 3600 + $TimeParts[1] * 60 + $TimeParts[2]; 14 14 } 15 15 -
trunk/Modules/NetworkConfigRouterOS/Generators/Common.php
r873 r874 9 9 { 10 10 $DbRow = $DbResult->fetch_assoc(); 11 return ($DbRow['Id']);11 return $DbRow['Id']; 12 12 } else 13 13 { 14 14 $DbResult = $Database->query('INSERT INTO `NetworkMark` (`Comment`) VALUES ("'.$Comment.'")'); 15 return ($Database->insert_id);15 return $Database->insert_id; 16 16 } 17 17 } … … 25 25 { 26 26 $DbRow = $DbResult->fetch_assoc(); 27 return ($DbRow['Id']);27 return $DbRow['Id']; 28 28 } else 29 29 { 30 30 $DbResult = $Database->query('INSERT INTO `NetworkMangleSubgroup` (`AddressRange`) VALUES ("'.$AddressRange.'")'); 31 return ($Database->insert_id);31 return $Database->insert_id; 32 32 } 33 33 } -
trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php
r873 r874 74 74 if (substr($Value, -3, 3) == "Mbp") $Value = substr($Value, 0, -3); // without Mbp unit 75 75 if (substr($Value, -1, 1) == "M") $Value = substr($Value, 0, -1); // without M unit 76 return ($Value);76 return $Value; 77 77 } 78 78 -
trunk/Modules/NetworkConfigRouterOS/NetworkConfigRouterOS.php
r873 r874 72 72 if (IsInternetAddr($IPAddress)) { 73 73 $Output .= '<p>Internet zdarma je dostupný pouze z vnitřní sítě.</p>'; 74 return ($Output);74 return $Output; 75 75 } 76 76 $Time = time(); … … 111 111 else $Output .= '<a href="?a=activate">Aktivovat</a>'; 112 112 113 return ($Output);113 return $Output; 114 114 } 115 115 } … … 135 135 $Routerboard->ExecuteBatch(implode(';', $Commands)); 136 136 137 return ($Output);137 return $Output; 138 138 } 139 139 } -
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r873 r874 41 41 } else 42 42 $Output = array_merge($Output, $this->ExecuteBatch($Commands)); 43 return ($Output);43 return $Output; 44 44 } 45 45 … … 62 62 } else $Output = ''; 63 63 if ($this->Debug) print_r($Output); 64 return ($Output);64 return $Output; 65 65 } 66 66 … … 79 79 } else $List[substr($ResultLineParts[0], 0, -1)] = ''; 80 80 } 81 return ($List);81 return $List; 82 82 } 83 83 … … 113 113 $List[] = $ListItem; 114 114 } 115 return ($List);115 return $List; 116 116 } 117 117 … … 148 148 if (count($ListItem) > 0) $List[] = $ListItem; 149 149 } 150 return ($List);150 return $List; 151 151 } 152 152 … … 244 244 } 245 245 if ($this->Debug) print_r($Commands); 246 return ($this->Execute($Commands));246 return $this->Execute($Commands); 247 247 } 248 248 } -
trunk/Modules/NetworkConfigRouterOS/Routerboard2.php
r873 r874 14 14 { 15 15 if (is_array($Commands)) $Commands = implode(';', $Commands); 16 return (parent::Execute($Commands));16 return parent::Execute($Commands); 17 17 } 18 18 … … 28 28 $List[substr($ResultLineParts[0], 0, -1)] = $ResultLineParts[1]; 29 29 } 30 return ($List);30 return $List; 31 31 } 32 32 … … 52 52 $List[] = $ListItem; 53 53 } 54 return ($List);54 return $List; 55 55 } 56 56 57 57 function GetSystemResource() 58 58 { 59 return ($this->GetItem('/system resource print'));59 return $this->GetItem('/system resource print'); 60 60 } 61 61 62 62 function GetFirewallFilterList() 63 63 { 64 return ($this->GetList('/ip firewall nat', array('src-address', 'dst-address', 'bytes')));64 return $this->GetList('/ip firewall nat', array('src-address', 'dst-address', 'bytes')); 65 65 } 66 66 67 67 function GetDHCPServerLeasesList() 68 68 { 69 return ($this->GetList('/ip dhcp-server lease', array('address', 'active-address', 'comment', 'lease-time', 'status', 'host-name')));69 return $this->GetList('/ip dhcp-server lease', array('address', 'active-address', 'comment', 'lease-time', 'status', 'host-name')); 70 70 } 71 71 } -
trunk/Modules/NetworkConfigRouterOS/RouterboardAPI.php
r873 r874 40 40 } else if ($Length >= 0x10000000) 41 41 $Length = chr(0xF0).chr(($Length >> 24) & 0xFF).chr(($Length >> 16) & 0xFF).chr(($Length >> 8) & 0xFF).chr($Length & 0xFF); 42 return ($Length);42 return $Length; 43 43 } 44 44 … … 71 71 sleep($this->Delay); 72 72 } 73 return ($this->Connected);73 return $this->Connected; 74 74 } 75 75 … … 234 234 $this->Write($el, $Last); 235 235 } 236 return ($this->Read());236 return $this->Read(); 237 237 } 238 238 } -
trunk/Modules/NetworkConfigRouterOS/SSH.php
r873 r874 54 54 } 55 55 echo($Response); 56 return (explode("\n", substr($Response, 0, -1)));56 return explode("\n", substr($Response, 0, -1)); 57 57 } 58 58 } -
trunk/Modules/NetworkShare/SharePage.php
r873 r874 22 22 function ShowTime() 23 23 { 24 return (date("H:i:s")."<br />\n");24 return date("H:i:s")."<br />\n"; 25 25 } 26 26 … … 51 51 } 52 52 if ($i >= $this->MaxNesting) $Cesta = '?'.'\\'.$Cesta; 53 return ('\\\\'.$Cesta);53 return '\\\\'.$Cesta; 54 54 } 55 55 … … 63 63 array_shift($Jednotky); 64 64 } 65 return ($Velikost.' '.$Jednotky[0]);65 return $Velikost.' '.$Jednotky[0]; 66 66 } 67 67 68 68 function Show() 69 69 { 70 if (!$this->System->User->CheckPermission('NetworkShare', 'Display')) return ('Nemáte oprávnění');70 if (!$this->System->User->CheckPermission('NetworkShare', 'Display')) return 'Nemáte oprávnění'; 71 71 72 72 // If not only online checkbox checked … … 318 318 } 319 319 } 320 return ($Output);320 return $Output; 321 321 } 322 322 } -
trunk/Modules/NetworkShare/browse.php
r873 r874 130 130 $Database->update('NetworkShareItem', 'id='.$Parent, array('size' => $VelikostSlozky)); 131 131 //closedir($Dir); 132 return ($VelikostSlozky);132 return $VelikostSlozky; 133 133 } 134 134 -
trunk/Modules/NetworkShare/playlist.php
r873 r874 34 34 } 35 35 if ($i >= $MaxNesting) $Cesta = '?'.'\\'.$Cesta; 36 return ('\\\\'.$Cesta);36 return '\\\\'.$Cesta; 37 37 } 38 38 … … 40 40 { 41 41 //$FileInfo = new finfo(FILEINFO_MIME); 42 //return ($FileInfo->file($FileName));43 return ('');42 //return $FileInfo->file($FileName); 43 return ''; 44 44 } 45 45 -
trunk/Modules/NetworkTopology/NetworkTopology.php
r873 r874 12 12 if (count($this->System->PathItems) > 1) 13 13 { 14 if ($this->System->PathItems[1] == 'topologie.png') return ($this->ShowImage());15 else return (PAGE_NOT_FOUND);14 if ($this->System->PathItems[1] == 'topologie.png') return $this->ShowImage(); 15 else return PAGE_NOT_FOUND; 16 16 17 } else return ($this->ShowOverview());17 } else return $this->ShowOverview(); 18 18 } 19 19 … … 109 109 imagedestroy($im_dev); 110 110 } 111 return ('');111 return ''; 112 112 } 113 113 … … 126 126 zařízení, které jsou přes něj připojeny. U zařízení, kde není stav možné 127 127 zjišťovat je použita <span style="color:gray">šedá barvou</span>.</p>'; 128 return ($Output);128 return $Output; 129 129 } 130 130 } -
trunk/Modules/NetworkTopology/topologie-img.php
r873 r874 156 156 } while ($level >= 0); 157 157 $data = compact('tbound', 'count', 'tbound', 'vfirst', 'vlast', 'vtop', 'vleft', 'height', 'width', 'index', 'maxindex'); 158 return ($data);158 return $data; 159 159 }; 160 160 … … 194 194 { 195 195 global $vleft, $spacex; 196 return ($vleft[$id] * $spacex);196 return $vleft[$id] * $spacex; 197 197 } 198 198 -
trunk/Modules/NetworkTopology/topologie2.php
r873 r874 50 50 $Result['max'] = max($SubitemResult['max'], $Result['max']); 51 51 } 52 return ($Result);52 return $Result; 53 53 } 54 54 -
trunk/Modules/News/News.php
r873 r874 5 5 function CategoryItemCompare($Item1, $Item2) 6 6 { 7 if ($Item1['Index'] == $Item2['Index']) return (0);8 return ($Item1['Index'] > $Item2['Index'])? -1 : 1;7 if ($Item1['Index'] == $Item2['Index']) return 0; 8 return $Item1['Index'] > $Item2['Index'] ? -1 : 1; 9 9 } 10 10 … … 133 133 } 134 134 $Output .= '</div></div>'; 135 return ($Output);135 return $Output; 136 136 } 137 137 … … 191 191 $Output .= '<a href="aktuality/subscription"><img class="RSSIcon" src="images/rss20.png" alt="Aktuality přes RSS" /></a> <a href="aktuality/subscription">Automatické sledování novinek</a>'; 192 192 $Output .= '</div>'; 193 return ($Output);193 return $Output; 194 194 } 195 195 … … 214 214 } 215 215 $Output .= '</table><input type="hidden" name="NewsCategoryCount" value="'.count($this->NewsSetting).'" /><input type="submit" value="Uložit" /></form></td></tr></table><br>'; 216 return ($Output);216 return $Output; 217 217 } 218 218 … … 267 267 } 268 268 $Result .= $Content; 269 return ($Result);269 return $Result; 270 270 } 271 271 } -
trunk/Modules/News/NewsPage.php
r873 r874 13 13 if (count($this->System->PathItems) > 1) 14 14 { 15 if ($this->System->PathItems[1] == 'subscription') return ($this->ShowSubscription());16 else if ($this->System->PathItems[1] == 'rss') return ($this->ShowRSS());17 else return (PAGE_NOT_FOUND);18 } else return ($this->ShowMain());15 if ($this->System->PathItems[1] == 'subscription') return $this->ShowSubscription(); 16 else if ($this->System->PathItems[1] == 'rss') return $this->ShowRSS(); 17 else return PAGE_NOT_FOUND; 18 } else return $this->ShowMain(); 19 19 } 20 20 … … 57 57 } else $Output .= 'Položka nenalezena.'; 58 58 } 59 return ($Output);59 return $Output; 60 60 } 61 61 … … 93 93 '</form>'; 94 94 } else $Output .= 'Do této kategorie nemůžete vkládat aktuality!'; 95 return ($Output);95 return $Output; 96 96 } 97 97 … … 130 130 $this->System->ModuleManager->Modules['Log']->NewRecord('News', 'Aktualita přidána', $this->Database->insert_id); 131 131 } else $Output .= 'Do této kategorie nemůžete vkládat aktuality!'; 132 return ($Output);132 return $Output; 133 133 } 134 134 135 135 function GetPageHeader() 136 136 { 137 return ('<script src="'.$this->System->Link('/Packages/TinyMCE/tinymce.min.js').'"></script>'.137 return '<script src="'.$this->System->Link('/Packages/TinyMCE/tinymce.min.js').'"></script>'. 138 138 "<script>tinymce.init({ 139 139 selector: 'textarea', … … 149 149 toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', 150 150 language: 'cs_CZ', 151 });</script>" );151 });</script>"; 152 152 } 153 153 … … 174 174 } else $Output .= 'Nepovolená operace!'; 175 175 } else $Output .= 'Do této kategorie nemůžete vkládat aktuality!'; 176 return ($Output);176 return $Output; 177 177 } 178 178 … … 198 198 } else $Output .= 'ID nenalezeno!'; 199 199 } else $Output .= 'Do této kategorie nemůžete vkládat aktuality!'; 200 return ($Output);200 return $Output; 201 201 } 202 202 … … 225 225 } else $Output .= 'Nemáte oprávnění.'; 226 226 } else $Output .= 'Do této kategorie nemůžete vkládat aktuality!'; 227 return ($Output);227 return $Output; 228 228 } 229 229 … … 274 274 $Output .= '</div>'; 275 275 } else $Output .= 'Nemáte oprávnění.'; 276 return ($Output);276 return $Output; 277 277 } 278 278 … … 289 289 else $Category = array('Id' => 0); //throw new Exception('Kategorie nenalezena'); 290 290 } 291 return ($Category);291 return $Category; 292 292 } 293 293 … … 304 304 else if ($Action == 'del') $Output .= $this->ShowDelete(); 305 305 else $Output .= $this->ShowList(); 306 return ($Output);306 return $Output; 307 307 } 308 308 … … 331 331 '</form>'; 332 332 } 333 return ($Output);333 return $Output; 334 334 } 335 335 … … 429 429 $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail']; 430 430 $RSS->Items = $Items; 431 return ($RSS->Generate());431 return $RSS->Generate(); 432 432 } 433 433 } -
trunk/Modules/Notify/Notify.php
r873 r874 120 120 } 121 121 122 return ($Output);122 return $Output; 123 123 } 124 124 … … 195 195 $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail']; 196 196 $RSS->Items = $Items; 197 return ($RSS->Generate());197 return $RSS->Generate(); 198 198 } 199 199 } -
trunk/Modules/OpeningHours/OpeningHours.php
r873 r874 17 17 if ($Minutes < 10) $Minutes = '0'.$Minutes; 18 18 $Hours = $Hours % 24; 19 return ($Hours.':'.$Minutes);19 return $Hours.':'.$Minutes; 20 20 } 21 21 … … 31 31 if ($Hours > 0) $Output .= $Hours.' hodin, '; 32 32 if ($Minutes > 0) $Output .= $Minutes.' minut'; 33 return ($Output);33 return $Output; 34 34 } 35 35 … … 70 70 '</form></div>'; 71 71 } else $Output = 'Nemáte oprávnění'; 72 return ($Output);72 return $Output; 73 73 } 74 74 … … 111 111 $this->Database->update('SubjectOpenTime', 'Subject='.$Id, array('UpdateTime' => 'NOW()', 'Notice' => $_POST['notice'], 'Photo' => $FileId)); 112 112 } else $Output = 'Nemáte oprávnění'; 113 return ($Output);113 return $Output; 114 114 } 115 115 … … 195 195 } 196 196 $Output .= '</div>'; 197 return ($Output);197 return $Output; 198 198 } 199 199 … … 209 209 } else $Output = PAGE_NOT_FOUND; 210 210 } else $Output = $this->ShowAll(); 211 return ($Output);211 return $Output; 212 212 } 213 213 } -
trunk/Modules/Portal/Portal.php
r873 r874 64 64 $Output .= $this->System->ShowAction($Action['Id']).'<br/>'; 65 65 } 66 return ($this->Panel($ActionGroup['Name'], $Output));66 return $this->Panel($ActionGroup['Name'], $Output); 67 67 } 68 68 … … 109 109 110 110 $Output = '<div class="Navigation"><span class="MenuItem">'.$Output.'</span><div class="MenuItem2"> '.$Output2.'</div></div>'; 111 return ($Output);111 return $Output; 112 112 } 113 113 … … 129 129 if ($this->System->User->CheckPermission('IS', 'Manage')) 130 130 $Output .= '<a href="'.$this->System->Link('/is/').'">Správa dat</a><br />'; 131 return ($Output);131 return $Output; 132 132 } 133 133 … … 135 135 { 136 136 $Output = $this->System->ModuleManager->Modules['WebCam']->ShowImage(); 137 return ($Output);137 return $Output; 138 138 } 139 139 … … 141 141 { 142 142 $Output = '<a href="https://stat.zdechov.net/meteo/?Measure=28" title="Klikněte pro detailní informace a předpověď"><img src="https://www.zdechov.net/meteo/koliba.png" border="0" alt="Počasí - Meteostanice Zděchov" width="150" height="150" /></a>'; 143 return ($Output);143 return $Output; 144 144 } 145 145 … … 155 155 } 156 156 $Output .= '</span>'; 157 return ($Output);157 return $Output; 158 158 } 159 159 … … 167 167 } 168 168 $Output .= '</span>'; 169 return ($Output);169 return $Output; 170 170 } 171 171 … … 175 175 foreach ($Menu as $Item) 176 176 $Title .= '<div class="Action">'.$Item.'</div>'; 177 return ('<div class="Panel"><div class="Title">'.$Title.'</div><div class="Content">'.$Content.'</div></div>');177 return '<div class="Panel"><div class="Title">'.$Title.'</div><div class="Content">'.$Content.'</div></div>'; 178 178 } 179 179 … … 243 243 } 244 244 } else $Output = $this->ShowMain(); 245 return ($Output);245 return $Output; 246 246 } 247 247 … … 280 280 } 281 281 $Output .= '</tr></table>'; 282 return ($Output);282 return $Output; 283 283 } 284 284 } -
trunk/Modules/RSS/RSS.php
r873 r874 48 48 $this->System->Link('/rss/?channel='.$Channel['Channel']).'" type="application/rss+xml" />'; 49 49 } 50 return ($Output);50 return $Output; 51 51 } 52 52 } … … 76 76 } else $Output = 'Nemáte oprávnění'; 77 77 } else $Output = 'Kanál nenalezen'; 78 return ($Output);78 return $Output; 79 79 } 80 80 } -
trunk/Modules/Scheduler/Scheduler.php
r873 r874 115 115 { 116 116 $Output = '#'; 117 return ($Output);117 return $Output; 118 118 } 119 119 } -
trunk/Modules/Search/Search.php
r873 r874 43 43 } 44 44 } 45 return ($Output);45 return $Output; 46 46 } 47 47 } -
trunk/Modules/SpeedTest/SpeedTest.php
r873 r874 41 41 if (count($this->System->PathItems) > 1) 42 42 { 43 if ($this->System->PathItems[1] == 'download.php') return ($this->ShowDownload());44 //else if ($this->System->PathItems[1] == 'rss') return ($this->ShowRSS());45 else return (PAGE_NOT_FOUND);46 } else return ($this->ShowMain());43 if ($this->System->PathItems[1] == 'download.php') return $this->ShowDownload(); 44 //else if ($this->System->PathItems[1] == 'rss') return $this->ShowRSS(); 45 else return PAGE_NOT_FOUND; 46 } else return $this->ShowMain(); 47 47 } 48 48 … … 114 114 print "</center>\n"; 115 115 } 116 return ($Output);116 return $Output; 117 117 } 118 118 } -
trunk/Modules/Stock/Stock.php
r873 r874 252 252 $Group = $this->System->Modules['Finance']->GetFinanceGroupById($Form->Values['Group'], 'StockMoveGroup'); 253 253 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year); 254 return ($Form->Values);254 return $Form->Values; 255 255 } 256 256 } -
trunk/Modules/Subject/Subject.php
r873 r874 184 184 $DbRow = $DbResult->fetch_row(); 185 185 $Output = 'Subjektů: '.$DbRow['0'].'<br/>'; 186 return ($Output);186 return $Output; 187 187 } 188 188 } -
trunk/Modules/System/System.php
r873 r874 59 59 $Output .= $PageList['Output']; 60 60 $Output .= '<p><a href="?A=SaveToDb">Uložit do databáze</a></p>'; 61 return ($Output);61 return $Output; 62 62 } 63 63 … … 94 94 } 95 95 $Output .= $this->ShowList(); 96 return ($Output);96 return $Output; 97 97 } 98 98 } … … 416 416 $this->InstalledChecked = true; 417 417 } 418 return ($this->Installed);418 return $this->Installed; 419 419 } 420 420 … … 532 532 } 533 533 } 534 return ($Output);534 return $Output; 535 535 } 536 536 } -
trunk/Modules/TV/TV.php
r873 r874 13 13 if (count($this->System->PathItems) > 1) 14 14 { 15 if ($this->System->PathItems[1] == 'playlist.m3u') return ($this->ShowPlayList());16 else return (PAGE_NOT_FOUND);17 } else return ($this->ShowChannelList());15 if ($this->System->PathItems[1] == 'playlist.m3u') return $this->ShowPlayList(); 16 else return PAGE_NOT_FOUND; 17 } else return $this->ShowChannelList(); 18 18 } 19 19 … … 72 72 $Output .= 'Další online TV na webu: <a href="http://www.tvinfo.cz/live/televize/evropa/cz">TV info</a><br/>'; 73 73 74 return ($Output);74 return $Output; 75 75 } 76 76 -
trunk/Modules/TV/tkr.php
r873 r874 17 17 } 18 18 $Output .= '</table>Aktualizováno dne 17.12.2007<br></div>'; 19 return ($Output);19 return $Output; 20 20 } 21 21 } -
trunk/Modules/TimeMeasure/Graph.php
r873 r874 20 20 { 21 21 $this->ClearPage = true; 22 return ($this->Render());22 return $this->Render(); 23 23 } 24 24 -
trunk/Modules/TimeMeasure/Main.php
r873 r874 111 111 $Output .= '</form>'; 112 112 113 return ($Output);113 return $Output; 114 114 } 115 115 … … 179 179 180 180 $Output .= '<br/>'.$this->MeasureTable(); 181 return ($Output);181 return $Output; 182 182 } 183 183 … … 191 191 $Output .= '<a href="?Measure='.$_SESSION['Measure'].'&TimeStart='. 192 192 $_SESSION['TimeStart'].'&TimeEnd='.$_SESSION['TimeEnd'].'&TimeSpecify=1&Differential='.$_SESSION['Differential'].'">Odkaz na vybraný graf</a><br>'; 193 return ($Output);193 return $Output; 194 194 } 195 195 … … 260 260 //echo($PrefixMultiplier->Add('-0.000000071112345', 'B')); 261 261 $Output .= '</div>'; 262 return ($Output);262 return $Output; 263 263 } 264 264 } … … 271 271 272 272 $Output = ''; 273 if (!array_key_exists('MeasureId', $_GET)) return ('Nebylo zadáno Id měření.');274 if (!array_key_exists('Value', $_GET)) return ('Nebyla zadána hodnota.');273 if (!array_key_exists('MeasureId', $_GET)) return 'Nebylo zadáno Id měření.'; 274 if (!array_key_exists('Value', $_GET)) return 'Nebyla zadána hodnota.'; 275 275 $Measure = new Measure($this->System); 276 276 $Measure->Load($_GET['MeasureId']); 277 if (!isset($Measure->Data['Id'])) return ('Měření s Id '.$_GET['MeasureId'].' nenalezeno.');277 if (!isset($Measure->Data['Id'])) return 'Měření s Id '.$_GET['MeasureId'].' nenalezeno.'; 278 278 $Measure->AddValue(array('Min' => $_GET['Value'], 'Avg' => $_GET['Value'], 'Max' => $_GET['Value'])); 279 return ($Output);279 return $Output; 280 280 } 281 281 } -
trunk/Modules/TimeMeasure/Measure.php
r873 r874 25 25 function TimeSegment($Base, $Level) 26 26 { 27 return (pow($this->LevelReducing, $Level) * $Base);27 return pow($this->LevelReducing, $Level) * $Base; 28 28 } 29 29 30 30 function StatTableName($Level) 31 31 { 32 if ($Level == 0) return ('Data');33 else return ('DataCache');32 if ($Level == 0) return 'Data'; 33 else return 'DataCache'; 34 34 } 35 35 36 36 function AlignTime($Time, $TimeSegment) 37 37 { 38 return (round(($Time - $this->ReferenceTime) / $TimeSegment) * $TimeSegment + $this->ReferenceTime);38 return round(($Time - $this->ReferenceTime) / $TimeSegment) * $TimeSegment + $this->ReferenceTime; 39 39 } 40 40 … … 124 124 { 125 125 $Y = ($Y2 - $Y1) / ($X2 - $X1) * ($X - $X1) + $Y1; 126 return ($Y);126 return $Y; 127 127 } 128 128 … … 203 203 $NewValue['Avg'] = $NewValue['Avg'] / ($RightTime - $LeftTime); 204 204 } 205 return ($NewValue);205 return $NewValue; 206 206 } 207 207 … … 228 228 echo('AbsoluteRightTime: '.$AbsoluteRightTime.'('.TimeToMysqlDateTime($AbsoluteRightTime).')<br>'); 229 229 } 230 return (array('Left' => $AbsoluteLeftTime, 'Right' => $AbsoluteRightTime));230 return array('Left' => $AbsoluteLeftTime, 'Right' => $AbsoluteRightTime); 231 231 } 232 232 … … 239 239 $Row = $DbResult->fetch_assoc(); 240 240 $Row['Time'] = MysqlDateTimeToTime($Row['Time']); 241 return (array($Row));241 return array($Row); 242 242 } else 243 243 { … … 253 253 } 254 254 // if ($Debug) print_r($Result); 255 return ($Result);255 return $Result; 256 256 } 257 257 } … … 266 266 $Row = $DbResult->fetch_assoc(); 267 267 $Row['Time'] = MysqlDateTimeToTime($Row['Time']); 268 return (array($Row));268 return array($Row); 269 269 } else 270 270 { … … 280 280 array_push($Result, array('Time' => (MysqlDateTimeToTime($Row['Time']) - 10), 'Min' => 0, 'Avg' => 0, 'Max' => 0, 'Continuity' => 0)); 281 281 } 282 return ($Result);282 return $Result; 283 283 } 284 284 } … … 338 338 if ($this->Debug) print_r($Points); 339 339 } else $Points[] = array('Min' => 0, 'Avg' => 0, 'Max' => 0); 340 return ($Points);340 return $Points; 341 341 } 342 342 -
trunk/Modules/TimeMeasure/Measurement/System.php
r873 r874 14 14 { 15 15 fclose($Fp1); 16 return (TRUE);16 return TRUE; 17 17 } else 18 18 { 19 19 //echo($ERROR_NO.','.$ERROR_STR); 20 return (FALSE);20 return FALSE; 21 21 } 22 22 restore_error_handler(); … … 34 34 $Time = $Parts[7]; 35 35 $TimeParts = explode('=', $Time); 36 return ($TimeParts[1]);37 } else return (0);36 return $TimeParts[1]; 37 } else return 0; 38 38 } 39 39 … … 48 48 while (strpos($Row, ' ') !== false) $Row = str_replace(' ', ' ', $Row); 49 49 $RowParts2 = explode(' ', $Row); 50 return ($RowParts[2] + $RowParts2[2]);50 return $RowParts[2] + $RowParts2[2]; 51 51 } 52 52 … … 81 81 } 82 82 file_put_contents($CpuStateFileName, serialize($CpuUsage)); 83 return (100 - round($CpuUsagePercent['Idle'], 2));83 return 100 - round($CpuUsagePercent['Idle'], 2); 84 84 } 85 85 … … 114 114 } 115 115 file_put_contents($NetworkStateFile, serialize($NetworkState)); 116 return ($NetworkState);116 return $NetworkState; 117 117 } 118 118 … … 120 120 { 121 121 $NetworkState = $this->GetNetworkState(); 122 return ($NetworkState['Interface']['DownAverage']);122 return $NetworkState['Interface']['DownAverage']; 123 123 } 124 124 … … 126 126 { 127 127 $NetworkState = $this->GetNetworkState(); 128 return ($NetworkState['Interface']['UpAverage']);128 return $NetworkState['Interface']['UpAverage']; 129 129 } 130 130 … … 134 134 $Output = array(); 135 135 exec('cat /proc/net/nf_conntrack|grep "dst='.$HostIP.' "|grep "dport='.$Port.' "|grep "ASSURED"', $Output); 136 return (count($Output));136 return count($Output); 137 137 } 138 138 … … 145 145 $Parts = explode(' ', $Row); 146 146 $Value = str_replace(',', '.', $Parts[11]); 147 return ($Value);147 return $Value; 148 148 } 149 149 150 150 function DiskFree($Path) 151 151 { 152 return (disk_free_space($Path));152 return disk_free_space($Path); 153 153 } 154 154 … … 163 163 $Line = substr($Line, strpos($Line, '+') + 1); 164 164 $Line = substr($Line, 0, strpos($Line, '°')); 165 return ($Line);165 return $Line; 166 166 } 167 167 } 168 return (0);168 return 0; 169 169 } 170 170 … … 175 175 fclose($File); 176 176 $UptimeParts = explode(' ', $Uptime); 177 return ($UptimeParts[0]);177 return $UptimeParts[0]; 178 178 } 179 179 } -
trunk/Modules/TimeMeasure/Measurement/WoW.php
r873 r874 12 12 $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1'); 13 13 $Row = $DbResult->fetch_array(); 14 return ($Row[0]);14 return $Row[0]; 15 15 } 16 16 … … 20 20 $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1 AND gmlevel > 0'); 21 21 $Row = $DbResult->fetch_array(); 22 return ($Row[0]);22 return $Row[0]; 23 23 } 24 24 … … 28 28 $DbResult = $Database->query('SELECT COUNT(*) FROM account'); 29 29 $Row = $DbResult->fetch_array(); 30 return ($Row[0]);30 return $Row[0]; 31 31 } 32 32 … … 36 36 $DbResult = $Database->query('SELECT COUNT(*) FROM guild'); 37 37 $Row = $DbResult->fetch_array(); 38 return ($Row[0]);38 return $Row[0]; 39 39 } 40 40 … … 44 44 $DbResult = $Database->query('SELECT COUNT(*) FROM `characters`'); 45 45 $Row = $DbResult->fetch_array(); 46 return ($Row[0]);46 return $Row[0]; 47 47 } 48 48 … … 52 52 $DbResult = $Database->query('SELECT COUNT(*) FROM uptime'); 53 53 $Row = $DbResult->fetch_array(); 54 return ($Row[0]);54 return $Row[0]; 55 55 } 56 56 57 57 function WoWEmulatorAvailability() 58 58 { 59 if (CheckPortStatus('localhost', 8085)) return (100); else return (0); 59 if (CheckPortStatus('localhost', 8085)) return 100; 60 else return 0; 60 61 } 61 62 … … 69 70 $Row = $DbResult->fetch_array(); 70 71 $Value = $Row[0]; 71 return ($Value);72 return $Value; 72 73 } 73 74 } -
trunk/Modules/User/User.php
r873 r874 301 301 // <a href="'.$this->System->Link('/?Action=UserOptions').'">Nastavení</a>'; 302 302 } 303 return ($Output);303 return $Output; 304 304 } 305 305 } -
trunk/Modules/User/UserList.php
r873 r874 10 10 { 11 11 if (!$this->System->User->CheckPermission('User', 'ShowList')) 12 return ('Nemáte oprávnění');12 return 'Nemáte oprávnění'; 13 13 14 14 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `User`'); … … 52 52 $Output .= $PageList['Output']; 53 53 54 return ($Output);54 return $Output; 55 55 } 56 56 } -
trunk/Modules/User/UserModel.php
r873 r874 30 30 function Hash($Password, $Salt) 31 31 { 32 return (sha1(sha1($Password).$Salt));32 return sha1(sha1($Password).$Salt); 33 33 } 34 34 35 35 function Verify($Password, $Salt, $StoredHash) 36 36 { 37 return ($this->Hash($Password, $Salt) == $StoredHash);37 return $this->Hash($Password, $Salt) == $StoredHash; 38 38 } 39 39 … … 177 177 } 178 178 } 179 return ($Result);179 return $Result; 180 180 } 181 181 … … 195 195 } else $Output = PASSWORDS_UNMATCHED; 196 196 } else $Output = USER_NOT_FOUND; 197 return ($Output);197 return $Output; 198 198 } 199 199 … … 231 231 } 232 232 } else $Result = USER_NOT_REGISTRED; 233 return ($Result);233 return $Result; 234 234 } 235 235 … … 240 240 $this->System->ModuleManager->Modules['Log']->NewRecord('User', 'Logout', $this->User['Login']); 241 241 $this->Check(); 242 return (USER_LOGGED_OUT);242 return USER_LOGGED_OUT; 243 243 } 244 244 … … 271 271 $Result[$DbRow['Description']][$DbRow['Title']] = $Value; 272 272 } 273 return ($Result);273 return $Result; 274 274 } 275 275 … … 296 296 { 297 297 if ($DbRow['AssignedGroup'] != '') 298 if ($this->CheckGroupPermission($DbRow['AssignedGroup'], $OperationId) == true) return (true);298 if ($this->CheckGroupPermission($DbRow['AssignedGroup'], $OperationId) == true) return true; 299 299 } 300 300 } … … 314 314 if ($PermissionExists) 315 315 { 316 return ($this->PermissionGroupCacheOp[$GroupId.','.$OperationId]);317 } 318 return (false);316 return $this->PermissionGroupCacheOp[$GroupId.','.$OperationId]; 317 } 318 return false; 319 319 } 320 320 … … 327 327 $DbRow = $DbResult->fetch_assoc(); 328 328 $ModuleId = $DbRow['Id']; 329 } else return (false);329 } else return false; 330 330 331 331 // First try to check cache … … 358 358 // Check user-operation relation 359 359 $DbResult = $this->Database->select('PermissionUserAssignment', '*', $UserCondition.' AND (`AssignedOperation`="'.$OperationId.'")'); 360 if ($DbResult->num_rows > 0) return (true);360 if ($DbResult->num_rows > 0) return true; 361 361 362 362 // Check user-group relation … … 364 364 while ($DbRow = $DbResult->fetch_array()) 365 365 { 366 if ($this->CheckGroupPermission($DbRow['AssignedGroup'], $OperationId) == true) return (true);367 } 368 return (false);369 } else return (false);366 if ($this->CheckGroupPermission($DbRow['AssignedGroup'], $OperationId) == true) return true; 367 } 368 return false; 369 } else return false; 370 370 } 371 371 … … 394 394 $this->System->ModuleManager->Modules['Log']->NewRecord('User', 'PasswordRecoveryRequest', 'Login='.$Login.',Email='.$Email); 395 395 } else $Output = USER_PASSWORD_RECOVERY_FAIL; 396 return ($Output);396 return $Output; 397 397 } 398 398 … … 414 414 } else $Output = PASSWORDS_UNMATCHED; 415 415 } else $Output = USER_NOT_FOUND; 416 return ($Output);416 return $Output; 417 417 } 418 418 … … 425 425 $User = new User($this->System); 426 426 $User->User = array('Id' => $DbRow['User']); 427 return ($User->CheckPermission($Module, $Operation));428 } else return (false);427 return $User->CheckPermission($Module, $Operation); 428 } else return false; 429 429 } 430 430 } -
trunk/Modules/User/UserPage.php
r873 r874 12 12 foreach ($Menu as $Item) 13 13 $Title .= '<div class="Action">'.$Item.'</div>'; 14 return ('<div class="Panel"><div class="Title">'.$Title.'</div><div class="Content">'.$Content.'</div></div>');14 return '<div class="Panel"><div class="Title">'.$Title.'</div><div class="Content">'.$Content.'</div></div>'; 15 15 } 16 16 … … 50 50 $Output .= $PageList['Output']; 51 51 52 return ($Output);52 return $Output; 53 53 } 54 54 … … 85 85 $Output .= '</td></tr></table></div>'; 86 86 } else $Output .= $this->SystemMessage('Oprávnění', 'Nejste přihlášen'); 87 return ($Output);87 return $Output; 88 88 } 89 89 … … 213 213 } else $Output = $this->ShowMain(); 214 214 } else $Output = $this->ShowMain(); 215 return ($Output);215 return $Output; 216 216 } 217 217 … … 219 219 { 220 220 $Output = 'Nebyla vybrána akce'; 221 return ($Output);221 return $Output; 222 222 } 223 223 } -
trunk/Modules/WebCam/WebCam.php
r873 r874 38 38 '<a href="http://www.mestovsetin.cz/vismo/dokumenty2.asp?id_org=18676&id=480245">Webové kamery ve Vsetíně</a><br />'; 39 39 40 return ($Output);40 return $Output; 41 41 } 42 42 } … … 72 72 $Output .= '<a href="//www.zdechov.net/kamery/?Id=3"><img alt="Skiareál, motokrosová grapa" width="140" height="79" src="//www.zdechov.net/images/webcam/webcam3.jpg" /></a>'; 73 73 $Output .= '<a href="//www.zdechov.net/kamery/?Id=4"><img alt="Fotbalové hřiště" width="140" height="79" src="//www.zdechov.net/images/webcam/webcam4.jpg" /></a>'; 74 return ($Output);74 return $Output; 75 75 } 76 76 } -
trunk/Modules/Wiki/Wiki.php
r873 r874 89 89 else $Output = $this->ShowContent(); 90 90 } else $Output = $this->ShowContent(); 91 return ($Output);91 return $Output; 92 92 } 93 93 … … 123 123 } 124 124 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 125 return ($Output);125 return $Output; 126 126 } 127 127 … … 148 148 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 149 149 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL); 150 return ($Output);150 return $Output; 151 151 } 152 152 … … 169 169 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 170 170 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL); 171 return ($Output);171 return $Output; 172 172 } 173 173 … … 215 215 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 216 216 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL); 217 return ($Output);217 return $Output; 218 218 } 219 219 … … 242 242 $text = str_replace("\r\n", '<br/>', $text); 243 243 $text = '<p>'.$text.'</p>'; 244 return ($text);244 return $text; 245 245 } 246 246 } -
trunk/Packages/Common/AppModule.php
r873 r874 315 315 function ModulePresent($Name) 316 316 { 317 return (array_key_exists($Name, $this->Modules));317 return array_key_exists($Name, $this->Modules); 318 318 } 319 319 320 320 function ModuleEnabled($Name) 321 321 { 322 return (array_key_exists($Name, $this->Modules) and $this->Modules[$Name]->Enabled);322 return array_key_exists($Name, $this->Modules) and $this->Modules[$Name]->Enabled; 323 323 } 324 324 325 325 function ModuleRunning($Name) 326 326 { 327 return (array_key_exists($Name, $this->Modules) and $this->Modules[$Name]->Running);327 return array_key_exists($Name, $this->Modules) and $this->Modules[$Name]->Running; 328 328 } 329 329 … … 334 334 { 335 335 //DebugLog($Module->Name.' '.$Module->Id); 336 if ($Module->Id == $Id) return ($Module->Name);337 } 338 return ('');336 if ($Module->Id == $Id) return $Module->Name; 337 } 338 return ''; 339 339 } 340 340 -
trunk/Packages/Common/Common.php
r873 r874 125 125 $this->SQLLimit = ' LIMIT '.$CurrentPage * $ItemPerPage.', '.$ItemPerPage; 126 126 $this->Page = $CurrentPage; 127 return ($Result);127 return $Result; 128 128 } 129 129 } -
trunk/Packages/Common/Config.php
r873 r874 19 19 $Data = &$Data[$Item]; 20 20 } 21 return ($Data[$Last]);21 return $Data[$Last]; 22 22 } 23 23 … … 52 52 function GetAsArray() 53 53 { 54 return ($this->Data);54 return $this->Data; 55 55 } 56 56 } -
trunk/Packages/Common/Database.php
r873 r874 7 7 { 8 8 list($usec, $sec) = explode(" ", microtime()); 9 return ( (float)$usec + (float)$sec);9 return (float)$usec + (float)$sec; 10 10 } 11 11 … … 17 17 function fetch_assoc() 18 18 { 19 return ($this->PDOStatement->fetch(PDO::FETCH_ASSOC));19 return $this->PDOStatement->fetch(PDO::FETCH_ASSOC); 20 20 } 21 21 22 22 function fetch_array() 23 23 { 24 return ($this->PDOStatement->fetch(PDO::FETCH_BOTH));24 return $this->PDOStatement->fetch(PDO::FETCH_BOTH); 25 25 } 26 26 27 27 function fetch_row() 28 28 { 29 return ($this->PDOStatement->fetch(PDO::FETCH_NUM));29 return $this->PDOStatement->fetch(PDO::FETCH_NUM); 30 30 } 31 31 } … … 81 81 function Connected() 82 82 { 83 return (isset($this->PDO));83 return isset($this->PDO); 84 84 } 85 85 … … 119 119 throw new Exception('SQL Error: '.$this->Error.', Query: '.$Query); 120 120 } 121 return ($Result);121 return $Result; 122 122 } 123 123 124 124 function select($Table, $What = '*', $Condition = 1) 125 125 { 126 return ($this->query('SELECT '.$What.' FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition));126 return $this->query('SELECT '.$What.' FROM `'.$this->Prefix.$Table.'` WHERE '.$Condition); 127 127 } 128 128 … … 154 154 $Name = substr($Name, 1); 155 155 $Values = substr($Values, 1); 156 return ('INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')');156 return 'INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'; 157 157 } 158 158 … … 175 175 } 176 176 $Values = substr($Values, 2); 177 return ('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');177 return 'UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')'; 178 178 } 179 179 … … 206 206 function real_escape_string($Text) 207 207 { 208 return (addslashes($Text));208 return addslashes($Text); 209 209 } 210 210 211 211 function quote($Text) 212 212 { 213 return ($this->PDO->quote($Text));213 return $this->PDO->quote($Text); 214 214 } 215 215 … … 239 239 function TimeToMysqlDateTime($Time) 240 240 { 241 if ($Time == NULL) return (NULL);242 else return (date('Y-m-d H:i:s', $Time));241 if ($Time == NULL) return NULL; 242 else return date('Y-m-d H:i:s', $Time); 243 243 } 244 244 245 245 function TimeToMysqlDate($Time) 246 246 { 247 if ($Time == NULL) return (NULL);248 else return (date('Y-m-d', $Time));247 if ($Time == NULL) return NULL; 248 else return date('Y-m-d', $Time); 249 249 } 250 250 251 251 function TimeToMysqlTime($Time) 252 252 { 253 if ($Time == NULL) return (NULL);254 else return (date('H:i:s', $Time));253 if ($Time == NULL) return NULL; 254 else return date('H:i:s', $Time); 255 255 } 256 256 257 257 function MysqlDateTimeToTime($DateTime) 258 258 { 259 if ($DateTime == '') return (NULL);259 if ($DateTime == '') return NULL; 260 260 $Parts = explode(' ', $DateTime); 261 261 $DateParts = explode('-', $Parts[0]); 262 262 $TimeParts = explode(':', $Parts[1]); 263 263 $Result = mktime($TimeParts[0], $TimeParts[1], $TimeParts[2], $DateParts[1], $DateParts[2], $DateParts[0]); 264 return ($Result);264 return $Result; 265 265 } 266 266 267 267 function MysqlDateToTime($Date) 268 268 { 269 if ($Date == '') return (NULL);270 return (MysqlDateTimeToTime($Date.' 0:0:0'));269 if ($Date == '') return NULL; 270 return MysqlDateTimeToTime($Date.' 0:0:0'); 271 271 } 272 272 273 273 function MysqlTimeToTime($Time) 274 274 { 275 if ($Time == '') return (NULL);276 return (MysqlDateTimeToTime('0000-00-00 '.$Time));277 } 275 if ($Time == '') return NULL; 276 return MysqlDateTimeToTime('0000-00-00 '.$Time); 277 } -
trunk/Packages/Common/Image.php
r873 r874 112 112 function GetWidth() 113 113 { 114 return (imagesx($this->Image));114 return imagesx($this->Image); 115 115 } 116 116 117 117 function GetHeight() 118 118 { 119 return (imagesy($this->Image));119 return imagesy($this->Image); 120 120 } 121 121 … … 127 127 function ConvertColor($Color) 128 128 { 129 return (imagecolorallocate($this->Image, ($Color >> 16) & 0xff, ($Color >> 8) & 0xff, $Color & 0xff));129 return imagecolorallocate($this->Image, ($Color >> 16) & 0xff, ($Color >> 8) & 0xff, $Color & 0xff); 130 130 } 131 131 -
trunk/Packages/Common/Locale.php
r873 r874 21 21 { 22 22 if (array_key_exists($Text, $this->Data[$Group]) and ($this->Data[$Group][$Text] != '')) 23 return ($this->Data[$Group][$Text]);24 else return ($Text);23 return $this->Data[$Group][$Text]; 24 else return $Text; 25 25 } 26 26 … … 28 28 { 29 29 $Key = array_search($Text, $this->Data[$Group]); 30 if (($Key === FALSE) or ($this->Data[$Group][$Key] == '')) return ($Text);31 else return ($Key);30 if (($Key === FALSE) or ($this->Data[$Group][$Key] == '')) return $Text; 31 else return $Key; 32 32 } 33 33 } … … 245 245 global $GlobalLocaleManager; 246 246 247 if (isset($GlobalLocaleManager)) return ($GlobalLocaleManager->CurrentLocale->Texts->Translate($Text, $Group));248 else return ($Text);249 } 247 if (isset($GlobalLocaleManager)) return $GlobalLocaleManager->CurrentLocale->Texts->Translate($Text, $Group); 248 else return $Text; 249 } -
trunk/Packages/Common/Mail.php
r873 r874 74 74 function Priority($Priority) 75 75 { 76 if (!intval($Priority)) return (false);77 78 if (!isset($this->priorities[$Priority - 1])) return (false);76 if (!intval($Priority)) return false; 77 78 if (!isset($this->priorities[$Priority - 1])) return false; 79 79 80 80 $this->xheaders['X-Priority'] = $this->priorities[$Priority - 1]; 81 return (true);81 return true; 82 82 } 83 83 … … 146 146 147 147 $res = mail($To, $this->Subject, $Body, $Headers); 148 return ($res);148 return $res; 149 149 } 150 150 … … 153 153 if (ereg(".*<(.+)>", $Address, $regs)) $Address = $regs[1]; 154 154 if (ereg("^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)\$", $Address)) 155 return (true);156 else return (false);155 return true; 156 else return false; 157 157 } 158 158 … … 168 168 private function ContentEncoding($Charset) 169 169 { 170 if ($Charset != CHARSET_ASCII) return ('8bit');171 else return ('7bit');170 if ($Charset != CHARSET_ASCII) return '8bit'; 171 else return '7bit'; 172 172 } 173 173 … … 203 203 } 204 204 } else $Result = $Body; 205 return ($Result);205 return $Result; 206 206 } 207 207 … … 227 227 "\nContent-Transfer-Encoding: ".$this->ContentEncoding($Body['Charset'])."\n\n".$Body['Content']."\n"; 228 228 } 229 return ($Result);229 return $Result; 230 230 } 231 231 } -
trunk/Packages/Common/NetworkAddress.php
r873 r874 16 16 function GetNetMask() 17 17 { 18 return (( (1 << IPV4_BIT_WIDTH) - 1) ^ ((1 << (IPV4_BIT_WIDTH - $this->Prefix)) - 1));18 return ((1 << IPV4_BIT_WIDTH) - 1) ^ ((1 << (IPV4_BIT_WIDTH - $this->Prefix)) - 1); 19 19 } 20 20 21 21 function AddressToString() 22 22 { 23 return (implode('.', array(($this->Address >> 24) & 255, ($this->Address >> 16) & 255, ($this->Address >> 8) & 255, ($this->Address & 255))));23 return implode('.', array(($this->Address >> 24) & 255, ($this->Address >> 16) & 255, ($this->Address >> 8) & 255, ($this->Address & 255))); 24 24 } 25 25 … … 39 39 $To->Address = $From->Address + $HostMask; 40 40 $To->Prefix = IPV4_BIT_WIDTH; 41 return (array('From' => $From, 'To' => $To));41 return array('From' => $From, 'To' => $To); 42 42 } 43 43 … … 55 55 if (($this->Prefix < $Address->Prefix) and (($Address->Address & $UpperNetmask) == ($this->Address & $UpperNetmask))) $Result = true; 56 56 else $Result = false; 57 return ($Result);57 return $Result; 58 58 } 59 59 } … … 74 74 function GetNetMask() 75 75 { 76 return (Int128Xor(Int128Sub(Int128Shl(IntToInt128(1), IntToInt128(IPV6_BIT_WIDTH)), IntToInt128(1)),77 Int128Sub(Int128Shl(IntToInt128(1), IntToInt128(IPV6_BIT_WIDTH - $this->Prefix)), IntToInt128(1))) );76 return Int128Xor(Int128Sub(Int128Shl(IntToInt128(1), IntToInt128(IPV6_BIT_WIDTH)), IntToInt128(1)), 77 Int128Sub(Int128Shl(IntToInt128(1), IntToInt128(IPV6_BIT_WIDTH - $this->Prefix)), IntToInt128(1))); 78 78 } 79 79 80 80 function AddressToString() 81 81 { 82 return (inet_ntop($this->Address));82 return inet_ntop($this->Address); 83 83 } 84 84 … … 106 106 $Result[] = dechex(($Item >> 4) & 15); 107 107 } 108 return ($Result);108 return $Result; 109 109 } 110 110 … … 129 129 if (($this->Prefix < $Address->Prefix) and ((Int128Equal(Int128And($Address->Address, $UpperNetmask), Int128And($this->Address, $UpperNetmask))))) $Result = true; 130 130 else $Result = false; 131 return ($Result);131 return $Result; 132 132 } 133 133 } -
trunk/Packages/Common/Page.php
r873 r874 20 20 function Show() 21 21 { 22 return ('');22 return ''; 23 23 } 24 24 … … 26 26 { 27 27 $Output = $this->Show(); 28 return ($Output);28 return $Output; 29 29 } 30 30 31 31 function SystemMessage($Title, $Text) 32 32 { 33 return (call_user_func_array($this->OnSystemMessage, array($Title, $Text)));33 return call_user_func_array($this->OnSystemMessage, array($Title, $Text)); 34 34 } 35 35 } -
trunk/Packages/Common/PrefixMultiplier.php
r873 r874 84 84 } 85 85 } 86 return ($Value);86 return $Value; 87 87 } 88 88 … … 94 94 $Value = abs($Value); 95 95 if (($Unit == '') and ($PrefixType != 'Time')) 96 return ($this->TruncateDigits($Value, $Digits));96 return $this->TruncateDigits($Value, $Digits); 97 97 98 98 $I = $PrefixMultipliers[$PrefixType]['BaseIndex']; 99 if ($Value == 0) return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);99 if ($Value == 0) return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit; 100 100 101 101 if ($Value > 1) … … 114 114 $Value = $this->TruncateDigits($Value, $Digits); 115 115 if ($Negative) $Value = -$Value; 116 return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);116 return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit; 117 117 } 118 118 } -
trunk/Packages/Common/Process.php
r873 r874 47 47 function IsRunning() 48 48 { 49 return (is_resource($this->Handle));49 return is_resource($this->Handle); 50 50 } 51 51 } -
trunk/Packages/Common/RSS.php
r873 r874 39 39 $Result .= " </channel>\n". 40 40 "</rss>"; 41 return ($Result);41 return $Result; 42 42 } 43 43 } -
trunk/Packages/Common/Setup.php
r873 r874 29 29 '<input type="submit" name="login" value="'.T('Login').'"/>'. 30 30 '</form>'; 31 return ($Output);31 return $Output; 32 32 } 33 33 … … 59 59 $Output .= '<a href="'.$this->System->Link('/').'">'.T('Go to main page').'</a> '; 60 60 $Output .= ''; 61 return ($Output);61 return $Output; 62 62 } 63 63 … … 160 160 } 161 161 } 162 return ($Output);162 return $Output; 163 163 } 164 164 … … 200 200 $Output .= '<h3>Správa modulů</h3>'; 201 201 $Output .= $this->ShowList(); 202 return ($Output);202 return $Output; 203 203 } 204 204 … … 244 244 $Output .= $Pageing->Show(); 245 245 //$Output .= '<p><a href="?A=SaveToDb">Uložit do databáze</a></p>'; 246 return ($Output);246 return $Output; 247 247 } 248 248 … … 281 281 '</table>'. 282 282 '</form>'; 283 return ($Output);283 return $Output; 284 284 } 285 285 … … 319 319 file_put_contents($this->ConfigDir.'/Config.php', $ConfigText); 320 320 $Output = 'Konfigurace nastavena<br/>'; 321 return ($Output);321 return $Output; 322 322 } 323 323 … … 353 353 } 354 354 $Output .= "\n\n"; 355 return ($Output);355 return $Output; 356 356 } 357 357 } … … 371 371 } 372 372 $Output .= sprintf(T('Front page was not configured. Continue to %s'), '<a href="'.$this->System->Link('/setup/').'">'.T('setup').'</a>'); 373 return ($Output);373 return $Output; 374 374 } 375 375 } … … 402 402 function CheckState() 403 403 { 404 return ($this->Database->Connected() and $this->UpdateManager->IsInstalled() and405 $this->UpdateManager->IsUpToDate() );404 return $this->Database->Connected() and $this->UpdateManager->IsInstalled() and 405 $this->UpdateManager->IsUpToDate(); 406 406 } 407 407 … … 435 435 { 436 436 $DbResult = $this->Database->query('SHOW TABLES LIKE "'.$this->UpdateManager->VersionTable.'"'); 437 return ($DbResult->num_rows > 0);437 return $DbResult->num_rows > 0; 438 438 } 439 439 … … 443 443 $this->UpdateManager->Trace = $Updates->Get(); 444 444 $Output = $this->UpdateManager->Upgrade(); 445 return ($Output);445 return $Output; 446 446 } 447 447 } -
trunk/Packages/Common/Table.php
r873 r874 7 7 function Show() 8 8 { 9 return ('');9 return ''; 10 10 } 11 11 } … … 15 15 function GetCell($Y, $X) 16 16 { 17 return ('');17 return ''; 18 18 } 19 19 … … 28 28 function RowsCount() 29 29 { 30 return (0);30 return 0; 31 31 } 32 32 } … … 38 38 function GetCell($Y, $X) 39 39 { 40 return ($this->Cells[$Y][$X]);40 return $this->Cells[$Y][$X]; 41 41 } 42 42 43 43 function RowsCount() 44 44 { 45 return (count($this->Cells));45 return count($this->Cells); 46 46 } 47 47 } … … 55 55 function GetCell($Y, $X) 56 56 { 57 return ($this->Cells[$Y][$X]);57 return $this->Cells[$Y][$X]; 58 58 } 59 59 … … 75 75 function RowsCount() 76 76 { 77 return (count($this->Cells));77 return count($this->Cells); 78 78 } 79 79 } … … 145 145 $this->Table->EndRead(); 146 146 $Output .= '</table>'; 147 return ($Output);147 return $Output; 148 148 } 149 149 … … 190 190 $this->OrderDirection = $_SESSION['OrderDir']; 191 191 192 return ('<tr>'.$Result.'</tr>');192 return '<tr>'.$Result.'</tr>'; 193 193 } 194 194 } -
trunk/Packages/Common/UTF8.php
r873 r874 537 537 } 538 538 } 539 return ($Result);539 return $Result; 540 540 } 541 541 … … 561 561 } 562 562 } 563 return ($Result);563 return $Result; 564 564 } 565 565 } -
trunk/Packages/Common/Update.php
r873 r874 23 23 $DbResult = $this->Database->select($this->VersionTable, '*', 'Id=1'); 24 24 $Version = $DbResult->fetch_assoc(); 25 return ($Version['Revision']);25 return $Version['Revision']; 26 26 } 27 27 … … 29 29 { 30 30 $DbResult = $this->Database->query('SHOW TABLES LIKE "'.$this->VersionTable.'"'); 31 return ($DbResult->num_rows > 0);31 return $DbResult->num_rows > 0; 32 32 } 33 33 34 34 function IsUpToDate() 35 35 { 36 return ($this->Revision <= $this->GetDbVersion());36 return $this->Revision <= $this->GetDbVersion(); 37 37 } 38 38 … … 56 56 $TraceItem['Revision'].' WHERE `Id`=1'); 57 57 } 58 return ($Output);58 return $Output; 59 59 } 60 60 … … 81 81 echo($Query.';<br/>'); 82 82 flush(); 83 return ($this->Database->query($Query));83 return $this->Database->query($Query); 84 84 } 85 85 } -
trunk/block/index.php
r873 r874 38 38 $Output .= '<br/><br/>V případě problémů kontaktujte technickou podporu na telefonu 737785792<br/><br/>'; 39 39 $Output .= '</body></html>'; 40 return ($Output);40 return $Output; 41 41 } 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.