Subversion Repositories oidplus

Rev

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

Rev 413 Rev 433
Line 132... Line 132...
132
                        }
132
                        }
133
                        curl_close($ch);
133
                        curl_close($ch);
134
 
134
 
135
                        $json = @json_decode($res, true);
135
                        $json = @json_decode($res, true);
136
 
136
 
-
 
137
                        $out['title'] = _L('Registration live status');
-
 
138
 
137
                        if (!$json) {
139
                        if (!$json) {
138
                                $out['icon'] = 'img/error_big.png';
140
                                $out['icon'] = 'img/error_big.png';
139
                                $out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);
141
                                $out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);
140
                                return;
142
                                return;
141
                        }
143
                        }
Line 148... Line 150...
148
                                        $out['text'] = _L('Received error status code: %1',$json['status']);
150
                                        $out['text'] = _L('Received error status code: %1',$json['status']);
149
                                }
151
                                }
150
                                return;
152
                                return;
151
                        }
153
                        }
152
 
154
 
153
                        $out['title'] = _L('Registration live status');
-
 
154
                        $out['text']  = '<p><a '.OIDplus::gui()->link('oidplus:srv_registration').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to registration settings').'</a></p>' .
155
                        $out['text']  = '<p><a '.OIDplus::gui()->link('oidplus:srv_registration').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to registration settings').'</a></p>' .
155
                                        $json['content'];
156
                                        $json['content'];
156
                }
157
                }
157
        }
158
        }
158
 
159