Changeset 579
- Timestamp:
- Oct 11, 2013, 11:28:10 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r576 r579 42 42 function Install() 43 43 { 44 $this->Installed = true; 44 45 } 45 46 46 47 function Uninstall() 47 48 { 49 $this->Installed = false; 48 50 } 49 51 50 52 function Start() 51 53 { 54 $this->Running = true; 52 55 } 53 56 54 57 function Stop() 55 58 { 59 $this->Running = false; 56 60 } 57 61 } … … 74 78 { 75 79 //DebugLog('Init module '.$Module->Name); 76 $this->Modules[$Index]->Start(); 80 if($this->Modules[$Index]->Running == false) 81 $this->Modules[$Index]->Start(); 77 82 } 78 83 } … … 83 88 { 84 89 //DebugLog('Init module '.$Module->Name); 85 $this->Modules[$Index]->Stop(); 90 if($this->Modules[$Index]->Running == true) 91 $this->Modules[$Index]->Stop(); 86 92 } 87 93 } -
trunk/Common/Config.php
r565 r579 7 7 function ReadValue($Name) 8 8 { 9 return($this->Data[$Name]); 9 if(!is_array($Name)) $Name = explode('/', $Name); 10 $Last = array_pop($Name); 11 $Data = &$this->Data; 12 foreach($Name as $Item) 13 { 14 $Data = &$Data[$Item]; 15 } 16 return($Data[$Last]); 10 17 } 11 18 12 19 function WriteValue($Name, $Value) 13 20 { 14 $this->Data[$Name] = $Value; 21 if(!is_array($Name)) $Name = explode('/', $Name); 22 $Last = array_pop($Name); 23 $Data = &$this->Data; 24 foreach($Name as $Item) 25 { 26 $Data = &$Data[$Item]; 27 } 28 $Data[$Item] = $Value; 15 29 } 16 30 17 31 function OpenFile($FileName) 18 32 { 33 $ConfigData = array(); 19 34 include $FileName; 20 $this->Data = $ConfigData; 35 foreach($this->Data as $Index => $Item) 36 { 37 if(array_key_exits($Index, $ConfigData)) 38 $this->Data[$Index] = $ConfigData[$Index]; 39 } 21 40 } 22 41 … … 25 44 file_put_content("<?php \n\n\$ConfigData = ".var_export($this->Data).";\n"); 26 45 } 46 47 function GetAsArray() 48 { 49 return($this->Data); 50 } 27 51 } -
trunk/Common/Mail.php
r548 r579 56 56 } 57 57 58 function AddBcc($ bcc)58 function AddBcc($Address, $Name) 59 59 { 60 60 $this->Recipients[] = array('Address' => $Address, 'Name' => $Name, 'Type' => 'HiddenCopy'); -
trunk/Modules/WebCam/WebCam.php
r577 r579 28 28 29 29 // Reload the image every defined period 30 theTimer = setTimeout("reloadImage()", '.($ Config['Web']['WebcamRefresh'] * 1000).');30 theTimer = setTimeout("reloadImage()", '.($this->System->Config['Web']['WebcamRefresh'] * 1000).'); 31 31 } 32 32 </script>'; 33 33 34 $Output .= '<br /><div align="center"><img name="theImage" src="" idth="640" height="480" alt="Webcam image"><br>Poslední aktualizace: '.date('j.n.Y G:i', filemtime($this->System->Modules['Webcam']->ImageFileName)).'<br>Obnovování po '.$ Config['Web']['WebcamRefresh'].' sekundách</div><br />';34 $Output .= '<br /><div align="center"><img name="theImage" src="" idth="640" height="480" alt="Webcam image"><br>Poslední aktualizace: '.date('j.n.Y G:i', filemtime($this->System->Modules['Webcam']->ImageFileName)).'<br>Obnovování po '.$this->System->Config['Web']['WebcamRefresh'].' sekundách</div><br />'; 35 35 } else $Output = '<br />Obrázek nenalezen.<br /><br />'; 36 36 -
trunk/Modules/WebCam/webcam_refresh.php
r548 r579 1 1 <?php 2 include('../ global.php');2 include('../../Common/Global.php'); 3 3 4 4 $Config['Web']['ShowPHPError'] = true;
Note:
See TracChangeset
for help on using the changeset viewer.