| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getFileData() |
||
| 27 | { |
||
| 28 | // Check for request forgeries |
||
| 29 | JSession::checkToken('get') or die(JText::_('JINVALID_TOKEN')); |
||
|
|
|||
| 30 | |||
| 31 | // Get items to copy from the request. |
||
| 32 | $id = JFactory::getApplication()->input->get('id', 0, 'int'); |
||
| 33 | $table = RTable::getAdminInstance('Webservice_History_Log'); |
||
| 34 | $table->load($id); |
||
| 35 | |||
| 36 | echo file_get_contents(JPATH_ROOT . '/' . $table->file_name); |
||
| 37 | |||
| 38 | JFactory::getApplication()->close(); |
||
| 39 | } |
||
| 41 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.