Changeset 874 for trunk/Modules
- Timestamp:
- Apr 6, 2020, 11:56:19 PM (5 years ago)
- Location:
- trunk/Modules
- Files:
-
- 69 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.