Subversion Repositories oidplus

Rev

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

Rev 1033 Rev 1050
Line 15... Line 15...
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
20
if (!defined('INSIDE_OIDPLUS')) die();
20
namespace ViaThinkSoft\OIDplus;
21
 
21
 
22
class OIDplusPageAdminRegistration extends OIDplusPagePluginAdmin {
22
class OIDplusPageAdminRegistration extends OIDplusPagePluginAdmin {
23
 
23
 
24
        /*private*/ const QUERY_REGISTER_V1 =         '1.3.6.1.4.1.37476.2.5.2.1.1.1';
24
        /*private*/ const QUERY_REGISTER_V1 =         '1.3.6.1.4.1.37476.2.5.2.1.1.1';
25
        /*private*/ const QUERY_UNREGISTER_V1 =       '1.3.6.1.4.1.37476.2.5.2.1.2.1';
25
        /*private*/ const QUERY_UNREGISTER_V1 =       '1.3.6.1.4.1.37476.2.5.2.1.2.1';
Line 602... Line 602...
602
                $msg = '';
602
                $msg = '';
603
                if ($do_edits) {
603
                if ($do_edits) {
604
                        try {
604
                        try {
605
                                OIDplus::config()->setValue('reg_privacy', isset($_POST['reg_privacy']) ? $_POST['reg_privacy'] : 1);
605
                                OIDplus::config()->setValue('reg_privacy', isset($_POST['reg_privacy']) ? $_POST['reg_privacy'] : 1);
606
                                OIDplus::config()->setValue('oobe_registration_done', '1');
606
                                OIDplus::config()->setValue('oobe_registration_done', '1');
607
                        } catch (Exception $e) {
607
                        } catch (\Exception $e) {
608
                                $msg = $e->getMessage();
608
                                $msg = $e->getMessage();
609
                                $errors_happened = true;
609
                                $errors_happened = true;
610
                        }
610
                        }
611
                }
611
                }
612
                if (!empty($msg)) echo ' <font color="red"><b>'.$msg.'</b></font>';
612
                if (!empty($msg)) echo ' <font color="red"><b>'.$msg.'</b></font>';