$email], ['id_user' => $config['id_user']] ); } // Update the alert action Mail to XXX/Administrator // if it is set to default. $mail_check = 'yourmail@domain.es'; $mail_alert = alerts_get_alert_action_field1(1); if ($mail_check === $mail_alert && $email !== false) { alerts_update_alert_action( 1, [ 'field1' => $email, 'field1_recovery' => $email, ] ); } config_update_value('initial_wizard', 1); } /** * Generates base code to print main configuration modal. * * Asks for timezone, mail. * * @param boolean $return Print output or not. * @param boolean $launch Process JS modal. * @param string $callback Call to JS function at end. * * @return string HTML. */ function config_wiz_modal( $return=false, $launch=true, $callback=false ) { global $config; $email = db_get_value('email', 'tusuario', 'id_user', $config['id_user']); // Avoid to show default email. if ($email == 'admin@example.com') { $email = ''; } $output = ''; // Prints first step pandora registration. $output .= ''; $output .= ''; // Verification modal. $output .= ''; ob_start(); ?>