Subversion Repositories oidinfo_api

Rev

Rev 28 | Rev 31 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28 Rev 29
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-01-10
6
 * Version 2022-03-24
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 651... Line 651...
651
                $elements['current-registrant']['email'] = $this->softCorrectEMail($elements['current-registrant']['email'], $params);
651
                $elements['current-registrant']['email'] = $this->softCorrectEMail($elements['current-registrant']['email'], $params);
652
 
652
 
653
                // TODO: if name is empty, but address has 1 line, take it as firstname (but remove hyperlink)
653
                // TODO: if name is empty, but address has 1 line, take it as firstname (but remove hyperlink)
654
 
654
 
655
                $ignore_current_registrant = false;
655
                $ignore_current_registrant = false;
-
 
656
                if (isset($elements['current-registrant'])) {
656
                $test_keys = array_keys($elements['current-registrant']);
657
                        $test_keys = array_keys($elements['current-registrant']);
657
                if ((count($test_keys) == 1) && ($test_keys[0] == 'modification-date')) {
658
                        if ((count($test_keys) == 1) && ($test_keys[0] == 'modification-date')) {
658
                        // Modification dates without information about the current RA which are rejected by the OID repository
659
                                // Modification dates without information about the current RA which are rejected by the OID repository
659
                        $ignore_current_registrant = true;
660
                                $ignore_current_registrant = true;
660
                }
661
                        }
-
 
662
                }
661
 
663
 
662
                $out_loc = '';
664
                $out_loc = '';
663
                foreach ($elements as $name => $val) {
665
                foreach ($elements as $name => $val) {
664
                        if (($name == 'first-registrant') || ($name == 'current-registrant')) {
666
                        if (($name == 'first-registrant') || ($name == 'current-registrant')) {
665
                                if (($name != 'current-registrant') || !$ignore_current_registrant) {
667
                                if (($name != 'current-registrant') || !$ignore_current_registrant) {