$templates.shared.doctype $lang_admin.choose_temporary_directory.title {= expand(templates.shared.content_type); =} {= # If they clicked the final submit button, all is well-- save the pathname and URL if (node_exists("webvars.final_submit") and (webvars.final_submit ne "")) then ( # Make sure the pathname and the URL ends with a slash string local_dir_divider = (if _PLATFORM eq "Win32" then "\\" else "/"); if (!ends_with(webvars.temporary_directory_pathname, local_dir_divider)) then webvars.temporary_directory_pathname = webvars.temporary_directory_pathname . local_dir_divider; if (!ends_with(webvars.temporary_directory_url, "/")) then webvars.temporary_directory_url = webvars.temporary_directory_url . "/"; # Save the pathname and the URL preferences.server.temporary_directory_pathname = webvars.temporary_directory_pathname; preferences.server.temporary_directory_url = webvars.temporary_directory_url; save_changes(); '\n'; ); # If final submit =}

$lang_admin.choose_temporary_directory.title

$lang_admin.choose_temporary_directory.text

{= # "Exists webvars.temporary_directory_url: " . node_exists("webvars.temporary_directory_url") . "
\n"; # "Exists webvars.temporary_directory_pathname: " . node_exists("webvars.temporary_directory_pathname") . "
\n"; # "Exists webvars.submit: " . node_exists("webvars.submit") . "
\n"; # If there is no pathname chosen yet, choose a default if (!node_exists("webvars.temporary_directory_pathname")) then ( if (_PLATFORM eq "Win32") then webvars.temporary_directory_pathname = "c:\\inetpub\\wwwroot\\" . PRODUCT_EXECUTABLE_DOCS; else webvars.temporary_directory_pathname = print("/var/httpd/html/$PRODUCT_EXECUTABLE_DOCS"); ); # If there is no URL chosen yet, choose a default if (!node_exists("webvars.temporary_directory_url")) then webvars.temporary_directory_url = print("http://$HTTP_HOST/$PRODUCT_EXECUTABLE_DOCS"); =}
$lang_admin.choose_temporary_directory.pathname_label:
$lang_admin.choose_temporary_directory.url_label:
{= # if (node_exists("webvars.temporary_directory_url")) then ( # "temporary_directory_url: $webvars.temporary_directory_url
"; # "submit_temporary_directory: $webvars.submit_temporary_directory
"; # ); # node_exists("internal.submit_temporary_directory"); # node_exists("internal.submit_temporary_directory"); # If they submitted the form, create the logo file and display the logo if (node_exists("webvars.submit") and (webvars.submit ne "")) then ( "
\n"; # Make sure the pathname ends with a slash string local_dir_divider = (if _PLATFORM eq "Win32" then "\\" else "/"); if (!ends_with(webvars.temporary_directory_pathname, local_dir_divider)) then webvars.temporary_directory_pathname = webvars.temporary_directory_pathname . local_dir_divider; if (!ends_with(webvars.temporary_directory_url, "/")) then webvars.temporary_directory_url = webvars.temporary_directory_url . "/"; preferences.server.temporary_directory = webvars.temporary_directory_pathname; preferences.server.temporary_directory_url = webvars.temporary_directory_url; # test_temporary_directory(webvars.temporary_directory_pathname, webvars.temporary_directory_url, "volatile.result"); string imagehtml = ""; # debug_message("DONE CREATING IMAGE
\n"); if (node_exists("volatile.error_message")) then ( "\n"; print("Error: $volatile.error_message
\n"); print("$lang_admin.choose_temporary_directory.create_file_error
\n"); if (node_exists("RUNNING_USERNAME")) then print("$lang_admin.choose_temporary_directory.create_file_user
\n"); "
\n"; ); else ( print("$lang_admin.choose_temporary_directory.create_file_successful

\n"); print("$lang_admin.choose_temporary_directory.logo_below
\n"); print("$imagehtml
"); print("$lang_admin.choose_temporary_directory.logo_above

\n"); print("$lang_admin.choose_temporary_directory.no_logo

\n"); "
\n"; print("\n"); print("\n"); print("\n"); "
\n"; ); # "ERROR: $volatile.error_message
\n"; preferences.server.temporary_directory = ""; preferences.server.temporary_directory_url = ""; # "Submission detected
"; ); # if submit # "SUBMIT2"; # "something"; # debug_message("$webvars.submit_temporary_directory\n"); =}