Changeset 64 for trunk/www/view/task.php
- Timestamp:
- Aug 5, 2009, 2:44:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/view/task.php
r59 r64 48 48 function ErrorLog() 49 49 { 50 $DbResult = $this->Database->select('Task', 'Title, Error ', 'Id='.$_GET['Id']);51 $DbRow = $DbResult->fetch_assoc(); 50 $DbResult = $this->Database->select('Task', 'Title, Error, State', 'Id='.$_GET['Id']); 51 $DbRow = $DbResult->fetch_assoc(); 52 52 $Output = '<h4>Chybový výpis úlohy: '.$DbRow['Title'].'</h4>'; 53 $Output .= '<pre>'.$DbRow['Error'].'</pre>'; 53 if($DbRow['State'] == 1) $Output .= '<pre>'.file_get_contents('../temp/wowhosting_script.sh.err').'</pre>'; 54 else $Output .= '<pre>'.$DbRow['Error'].'</pre>'; 54 55 return($Output); 55 56 } … … 57 58 function StandardLog() 58 59 { 59 $DbResult = $this->Database->select('Task', 'Title, Output ', 'Id='.$_GET['Id']);60 $DbResult = $this->Database->select('Task', 'Title, Output, State', 'Id='.$_GET['Id']); 60 61 $DbRow = $DbResult->fetch_assoc(); 61 62 $Output = '<h4>Výpis výstupu úlohy: '.$DbRow['Title'].'</h4>'; 63 if($DbRow['State'] == 1) $Output .= '<pre>'.file_get_contents('../temp/wowhosting_script.sh.log').'</pre>'; 62 64 $Output .= '<pre>'.$DbRow['Output'].'</pre>'; 63 65 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.