Changeset 523
- Timestamp:
- Apr 20, 2013, 8:21:15 PM (12 years ago)
- Location:
- trunk/Modules
- Files:
-
- 3 added
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Error/Error.php
r516 r523 111 111 $Error .= "\n"; 112 112 113 $this->System->Module s['Log']->NewRecord('Error', 'Log', $Error);113 $this->System->ModuleManager->Modules['Log']->NewRecord('Error', 'Log', $Error); 114 114 115 115 //if($Config['Web']['ErrorLogFile'] != '') -
trunk/Modules/Finance/Import.php
r521 r523 139 139 $this->InsertMoney($_POST['Subject'.$I], $_POST['Money'.$I], 0, $_POST['Taxable'.$I], $Date, $_POST['Text'.$I], $DocumentLine); 140 140 $Output .= $I.', '; 141 $this->System->Module s['Log']->NewRecord('Finance', 'NewPaymentInserted');141 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted'); 142 142 } 143 143 return($Output); -
trunk/Modules/Finance/finance.php
r521 r523 229 229 'Cash' => $Cash, 'MonthlyPlus' => $this->W2Kc($ConsumptionPlus))); 230 230 } 231 $this->System->Module s['Log']->NewRecord('Finance', 'RecalculateMemberPayment');231 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'RecalculateMemberPayment'); 232 232 $this->RecalculateTariffs(1); 233 233 $this->RecalculateTariffs(0); … … 272 272 $DbResult = $this->Database->update('NetworkSegment', 'Id='.$this->InternetSegmentId, 273 273 array('Users' => $Row[0], 'UsersOverheads' => $Row[0])); 274 $this->System->Module s['Log']->NewRecord('Finance', 'RecalculateSegmentParameters');274 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'RecalculateSegmentParameters'); 275 275 return($Output); 276 276 } -
trunk/Modules/FinanceBankAPI/FileImport.php
r508 r523 121 121 $this->InsertMoney($_POST['Subject'.$I], $_POST['Money'.$I], 0, $_POST['Taxable'.$I], $Date, $_POST['Text'.$I], $DocumentLine); 122 122 $Output .= $I.', '; 123 $this->System->Module s['Log']->NewRecord('Finance', 'NewPaymentInserted');123 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted'); 124 124 } 125 125 return($Output); -
trunk/Modules/Log/Log.php
r521 r523 1 1 <?php 2 2 3 class Log extendsModule3 class ModuleLog extends AppModule 4 4 { 5 var $Dependencies = array('User'); 5 function __construct($System) 6 { 7 parent::__construct($System); 8 $this->Name = 'Log'; 9 $this->Version = '1.0'; 10 $this->Creator = 'Chronos'; 11 $this->License = 'GNU/GPLv3'; 12 $this->Description = 'Logging user actions'; 13 $this->Dependencies = array('User'); 14 } 15 16 function Install() 17 { 18 parent::Install(); 19 } 6 20 21 function UnInstall() 22 { 23 parent::UnInstall(); 24 } 25 26 function Start() 27 { 28 parent::Start(); 29 } 30 31 function Stop() 32 { 33 parent::Stop(); 34 } 35 7 36 function NewRecord($Module, $Operation, $Value = '') 8 37 { … … 15 44 'Operation' => $Operation, 'Value' => $Value, 'IPAddress' => $_SERVER['REMOTE_ADDR'])); 16 45 } 46 } 17 47 18 } 48 ?> -
trunk/Modules/Meals/Meals.php
r519 r523 136 136 } 137 137 $Output .= '<div style="color: red; font-size: larger;">Menu uloženo!</div>'; 138 $this->System->Module s['Log']->NewRecord('EatingPlace', 'MenuSave');138 $this->System->ModuleManager->Modules['Log']->NewRecord('EatingPlace', 'MenuSave'); 139 139 } 140 140 if($_GET['action'] == 'saveinfo') … … 143 143 $this->Database->insert('MealsInfo', array('Info' => $_POST['info'], 'Price' => $_POST['price'])); 144 144 $Output .= '<div style="color: red; font-size: larger;">Informační údaje uloženy!</div>'; 145 $this->System->Module s['Log']->NewRecord('EatingPlace', 'InfoSave');145 $this->System->ModuleManager->Modules['Log']->NewRecord('EatingPlace', 'InfoSave'); 146 146 } 147 147 } -
trunk/Modules/NetworkShare/SharePage.php
r519 r523 102 102 // Log search 103 103 if(array_key_exists('keyword', $_POST) or array_key_exists('keyword', $_GET)) 104 $this->System->Module s['Log']->NewRecord('Share', 'Hledaný výraz', $_SESSION['keyword']);104 $this->System->ModuleManager->Modules['Log']->NewRecord('Share', 'Hledaný výraz', $_SESSION['keyword']); 105 105 106 106 // Zobrazení formuláře -
trunk/Modules/News/NewsPage.php
r521 r523 124 124 $Output .= 'Aktualita přidána!<br />Pokud budete chtít vaši aktualitu smazat, klikněte na odkaz Smazat v seznamu všech aktualit v kategorii.<br /><br />'; 125 125 $Output .= '<a href="?category='.$_POST['category'].'">Zpět na seznam aktualit</a>'; 126 $this->System->Module s['Log']->NewRecord('News', 'Aktualita přidána', $this->Database->insert_id);126 $this->System->ModuleManager->Modules['Log']->NewRecord('News', 'Aktualita přidána', $this->Database->insert_id); 127 127 } else $Output .= 'Do této kategorie nemůžete vkládat aktuality!'; 128 128 break; -
trunk/Modules/Portal/Portal.php
r521 r523 193 193 $UserOptions->SaveValuesToDatabase($this->System->Modules['User']->User['Id']); 194 194 $Output .= $this->SystemMessage('Nastavení', 'Nastavení uloženo.'); 195 $this->System->Module s['Log']->NewRecord('User', 'Nastavení uživatele změněno', $UserOptions->Values['Name']);195 $this->System->ModuleManager->Modules['Log']->NewRecord('User', 'Nastavení uživatele změněno', $UserOptions->Values['Name']); 196 196 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->User['Id']); 197 197 $UserOptions->OnSubmit = '?Action=UserOptionsSave'; … … 289 289 'DIC' => $UserOptions->Values['DIC'])); 290 290 $Output .= $this->SystemMessage('Nastavení', 'Nastavení domácnosti uloženo.'); 291 $this->System->Module s['Log']->NewRecord('Member+Subject', 'Nastavení člena/subjektu změněno',291 $this->System->ModuleManager->Modules['Log']->NewRecord('Member+Subject', 'Nastavení člena/subjektu změněno', 292 292 $Form->Values['Name']); 293 293 $DbResult = $this->Database->query('SELECT Member.Id, Member.FamilyMemberCount, Member.BillingPeriodNext, '. -
trunk/Modules/User/UserList.php
r519 r523 9 9 function Show() 10 10 { 11 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `User` WHERE (`Login` != "Anonym")');11 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `User`'); 12 12 $DbRow = $DbResult->fetch_row(); 13 13 $PageList = GetPageList($DbRow[0]); … … 26 26 $Output .= $Order['Output']; 27 27 28 $Query = 'SELECT * FROM `User` WHERE (`Login` != "Anonym")'.$Order['SQL'].$PageList['SQLLimit'];28 $Query = 'SELECT * FROM `User` '.$Order['SQL'].$PageList['SQLLimit']; 29 29 30 30 $DbResult = $this->Database->query($Query); -
trunk/Modules/WebCam/WebCam.php
r519 r523 67 67 { 68 68 global $Config; 69 $Output = '<a href="http://www.zdechov.net/kamery/?id=1"><img alt="Webkamera školní hřiště" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam.jpg" /></a>'; 70 $Output .= '<a href="http://www.zdechov.net/kamery/?id=2"><img alt="Webkamera střed obce obloha" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam2.jpg" /></a>'; 71 $Output .= '<a href="http://www.zdechov.net/kamery/?id=3"><img alt="Skiareál, motokrosová grapa" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam3.jpg" /></a>'; 72 $Output .= '<a href="http://www.zdechov.net/kamery/?id=4"><img alt="Fotbalové hřiště" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam4.jpg" /></a>'; 73 return($Output); 69 $Output = ''; 70 //$Output = '<a href="http://www.zdechov.net/kamery/?id=1"><img alt="Webkamera školní hřiště" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam.jpg" /></a>'; 71 //$Output .= '<a href="http://www.zdechov.net/kamery/?id=2"><img alt="Webkamera střed obce obloha" width="140" height="105" src="http://www.zdechov.net/images/webcam/webcam2.jpg" /></a>'; 72 //$Output .= '<a href="http://www.zdechov.net/kamery/?id=3"><img alt="Skiareál, motokrosová grapa" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam3.jpg" /></a>'; 73 //$Output .= '<a href="http://www.zdechov.net/kamery/?id=4"><img alt="Fotbalové hřiště" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam4.jpg" /></a>'; 74 return($Output); 74 75 } 75 76 }
Note:
See TracChangeset
for help on using the changeset viewer.