\n"; print &ui_form_end([ [ "confirm", $text{'scripts_iok'} ] ]); print "
\n"; if ($ok > 0 && !$sinfo) { # Show login details if ($suser && $spass) { print &text('scripts_userpass', "$suser", "$spass"),"
\n"; } elsif ($suser) { print &text('scripts_useronly', "$suser"),"
\n"; } elsif ($spass) { print &text('scripts_passonly', "$spass"),"
\n"; } } if ($ok && $script->{'site'} && $ok >= 0) { print &script_link($script->{'site'}, 'scripts_sitelink'),"
\n"; } &$outdent_print(); # Re-enable script PHP timeout if (&indexof("php", @{$script->{'uses'}}) >= 0) { &enable_script_php_timeout($d, $t); } if ($ok) { # Suggest to go on installation manually if ($ok < 0) { &$indent_print(); &$first_print($text{'scripts_epartialmanual'}." ".&get_script_link($d, $opts, 1)); if ($ok && $script->{'site'}) { print &script_link($script->{'site'}, 'scripts_sitelink'),"
\n"; } &$outdent_print(); } &$second_print($ok < 0 ? $text{'scripts_epartial'} : $text{'setup_done'}); # Record script install in domain if ($sinfo) { &remove_domain_script($d, $sinfo); } $sinfo = &add_domain_script($d, $sname, $ver, $opts, $desc, $url, $sinfo ? ( $sinfo->{'user'}, $sinfo->{'pass'} ) : ( $suser, $spass ), $ok < 0 ? $msg : undef); &run_post_actions(); &webmin_log("install", "script", $sname, { 'ver' => $ver, 'desc' => $desc, 'dom' => $d->{'dom'}, 'url' => $url }); } else { &$second_print($text{'scripts_failed'}); &run_post_actions(); } &release_lock_web($d); &release_lock_cron($d); # Run post commands &set_domain_envs($d, "SCRIPT_DOMAIN", undef, \%envs); local $merr = &made_changes(); &$second_print(&text('setup_emade', "$merr")) if (defined($merr)); &reset_domain_envs($d); &ui_print_footer( $sinfo ? ( "edit_script.cgi?dom=$in{'dom'}&script=$sinfo->{'id'}", $text{'scripts_ereturn'} ) : ( ), "list_scripts.cgi?dom=$in{'dom'}", $text{'scripts_return'}, &domain_footer_link($d));