Rev 29 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 29 | Rev 31 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | /* |
3 | /* |
4 | * OID-Info.com API for PHP |
4 | * OID-Info.com API for PHP |
5 | * Copyright 2019-2022 Daniel Marschall, ViaThinkSoft |
5 | * Copyright 2019-2022 Daniel Marschall, ViaThinkSoft |
6 | * Version 2022-03-24 |
6 | * Version 2022-12-09 |
7 | * |
7 | * |
8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
9 | * you may not use this file except in compliance with the License. |
9 | * you may not use this file except in compliance with the License. |
10 | * You may obtain a copy of the License at |
10 | * You may obtain a copy of the License at |
11 | * |
11 | * |
Line 572... | Line 572... | ||
572 | $elements['description'] = '"' . $elements['description'] . '"'; |
572 | $elements['description'] = '"' . $elements['description'] . '"'; |
573 | } |
573 | } |
574 | } |
574 | } |
575 | // End request by O.D. 26. August 2019 |
575 | // End request by O.D. 26. August 2019 |
576 | 576 | ||
577 | if ($params['auto_extract_name'] || $params['auto_extract_url']) { |
577 | if (($params['auto_extract_name'] != '') || ($params['auto_extract_url'] != '')) { |
578 | if (!empty($elements['information'])) $elements['information'] .= '<br /><br />'; |
578 | if (!empty($elements['information'])) $elements['information'] .= '<br /><br />'; |
579 | if ($params['auto_extract_name'] || $params['auto_extract_url']) { |
579 | if (($params['auto_extract_name'] != '') || ($params['auto_extract_url'] != '')) { |
580 | $elements['information'] .= 'Automatically extracted from <a href="'.$params['auto_extract_url'].'">'.$params['auto_extract_name'].'</a>.'; |
580 | $elements['information'] .= 'Automatically extracted from <a href="'.$params['auto_extract_url'].'">'.$params['auto_extract_name'].'</a>.'; |
581 | } else if ($params['auto_extract_name']) { |
581 | } else if ($params['auto_extract_name'] != '') { |
582 | $elements['information'] .= 'Automatically extracted from '.$params['auto_extract_name']; |
582 | $elements['information'] .= 'Automatically extracted from '.$params['auto_extract_name']; |
583 | } else if ($params['auto_extract_url']) { |
583 | } else if ($params['auto_extract_url'] != '') { |
584 | $hr_url = $params['auto_extract_url']; |
584 | $hr_url = $params['auto_extract_url']; |
585 | // $hr_url = preg_replace('@^https{0,1}://@ismU', '', $hr_url); |
585 | // $hr_url = preg_replace('@^https{0,1}://@ismU', '', $hr_url); |
586 | $hr_url = preg_replace('@^http://@ismU', '', $hr_url); |
586 | $hr_url = preg_replace('@^http://@ismU', '', $hr_url); |
587 | $elements['information'] .= 'Automatically extracted from <a href="'.$params['auto_extract_url'].'">'.$hr_url.'</a>.'; |
587 | $elements['information'] .= 'Automatically extracted from <a href="'.$params['auto_extract_url'].'">'.$hr_url.'</a>.'; |
588 | } |
588 | } |