Subversion Repositories oidplus

Rev

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

Rev 360 Rev 366
Line 179... Line 179...
179
                                $out['icon'] = 'img/error_big.png';
179
                                $out['icon'] = 'img/error_big.png';
180
                                $out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);
180
                                $out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);
181
                                return;
181
                                return;
182
                        }
182
                        }
183
 
183
 
184
                        $out['text'] .= '<p><a '.OIDplus::gui()->link('oidplus:datatransfer').'><img src="img/arrow_back.png" width="16"> '._L('Go back to data transfer main page').'</a>'; // TODO: How to automatically jump to the "Export" tab?
184
                        $out['text'] .= '<p><a '.OIDplus::gui()->link('oidplus:datatransfer').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to data transfer main page').'</a>'; // TODO: How to automatically jump to the "Export" tab?
185
 
185
 
186
                        if (isset($json['error']) || ($json['status'] != 0)) {
186
                        if (isset($json['error']) || ($json['status'] != 0)) {
187
                                $out['text'] .= '<p>'._L('Error: %1',htmlentities($json['error'])).'</p>';
187
                                $out['text'] .= '<p>'._L('Error: %1',htmlentities($json['error'])).'</p>';
188
                        } else {
188
                        } else {
189
                                // TODO: If roots were created or deleted recently, we must do a re-query of the registration, so that the "roots" information at the directory service gets refreshed
189
                                // TODO: If roots were created or deleted recently, we must do a re-query of the registration, so that the "roots" information at the directory service gets refreshed
Line 425... Line 425...
425
                                $out['icon'] = 'img/error_big.png';
425
                                $out['icon'] = 'img/error_big.png';
426
                                $out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);
426
                                $out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);
427
                                return;
427
                                return;
428
                        }
428
                        }
429
 
429
 
430
                        $out['text'] .= '<p><a '.OIDplus::gui()->link('oidplus:datatransfer').'><img src="img/arrow_back.png" width="16"> '._L('Go back to data transfer main page').'</a>'; // TODO: How to automatically jump to the "Import" tab?
430
                        $out['text'] .= '<p><a '.OIDplus::gui()->link('oidplus:datatransfer').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to data transfer main page').'</a>'; // TODO: How to automatically jump to the "Import" tab?
431
 
431
 
432
                        $all_local_oids = array();
432
                        $all_local_oids = array();
433
                        $res = OIDplus::db()->query("select id from ###objects");
433
                        $res = OIDplus::db()->query("select id from ###objects");
434
                        while ($row = $res->fetch_array()) {
434
                        while ($row = $res->fetch_array()) {
435
                                if (strpos($row['id'], 'oid:') === 0) {
435
                                if (strpos($row['id'], 'oid:') === 0) {