|
@@ -38,6 +38,10 @@ if (!class_exists("plug_login")) {
|
|
|
wp_enqueue_media();
|
|
|
});
|
|
|
|
|
|
+ add_filter('register', function ($linket) {
|
|
|
+ return "";
|
|
|
+ });
|
|
|
+
|
|
|
add_filter('upload_mimes', function ($mime_types) {
|
|
|
|
|
|
$mime_types['m4a'] = 'audio/m4a'; //
|
|
@@ -328,6 +332,12 @@ body {
|
|
|
|
|
|
if (empty($_POST['r_proselect'])) {
|
|
|
$_POST['r_proselect'] = "Perspektiv";
|
|
|
+ } else {
|
|
|
+
|
|
|
+ if ($_POST['r_proselect'] == "default") {
|
|
|
+ $errors->add('demo_error', __(stripslashes(get_option($this->pluginname . "_login_support_error"))));
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -439,6 +449,8 @@ $errors->add('demo_error',__('hmmm.. din alder virker mystisk'));
|
|
|
update_option($pre . '_support_splash_resetpass', $_POST[$pre . '_support_splash_resetpass']);
|
|
|
update_option($pre . '_support_splash_register', $_POST[$pre . '_support_splash_register']);
|
|
|
|
|
|
+ update_option($pre . '_support_error', $_POST[$pre . '_support_error']);
|
|
|
+
|
|
|
update_option($pre . '_background_image', $_POST[$pre . '_background_image']);
|
|
|
update_option($pre . '_image', $_POST[$pre . '_image']);
|
|
|
|
|
@@ -498,6 +510,10 @@ $errors->add('demo_error',__('hmmm.. din alder virker mystisk'));
|
|
|
<?php echo (__("Login splash html register:", "dagsopt")) ?><br><textarea style="width: 100%; height: 150px;" name="<?php echo ($pre . '_support_splash_register'); ?>"><?php echo (stripslashes(get_option($pre . "_support_splash_register"))); ?></textarea>
|
|
|
|
|
|
|
|
|
+<hr>
|
|
|
+
|
|
|
+ <?php echo (__("Login support error tekst:", "dagsopt")) ?><br><textarea style="width: 100%; height: 150px;" name="<?php echo ($pre . '_support_error'); ?>"><?php echo (stripslashes(get_option($pre . "_support_error"))); ?></textarea>
|
|
|
+
|
|
|
|
|
|
|
|
|
|