@_UI_STD_INIT_@ [set page_perm]backup[/set] [set ui_class]Admin[/set] [set page_title][L]Transfer Catalog[/L][/set] [set help_name]xfer.main[/set] [set icon_name]icon_config.gif[/set] [calc] my $old = $Scratch->{xfer_catname} = $Config->{CatalogName}; return if $CGI->{do_xfer}; my $new = $CGI->{rename}; return unless $old and $new; $new =~ s/[^-\w]+//g; for(qw/ SERVER_NAME SECURE_SERVER CGI_URL IMAGE_DIR SQLDSN SQLUSER SQLPASS DOCROOT ORDERS_TO SAMPLEHTML SAMPLEURL IC_DIR CGI_DIR CGIWRAP LINKMODE LINKHOST LINKPORT /) { my $val = $Variable->{$_}; $val =~ s/$old\b/$new/g; $CGI->{$_} = $val; } return; [/calc] [if cgi do_xfer] [tmp xfer_success][xfer-catalog][/tmp] [/if] @_UI_STD_HEAD_@ [if scratch xfer_success] Catalog output successfully. [/if] [if type=file term="[scratch xfer_catname].tar.gz"]

[calc] $Scratch->{mv_deliver} .= " $Scratch->{xfer_catname}.tar.gz" ; return; [/calc] [page add_dot_html=0 href="ui/[scratch xfer_catname].tar.gz" form=" mv_data_file=[scratch xfer_catname].tar.gz mv_content_type=application/x-gzip mv_todo=deliver "][L]Download transfer file[/L] ([file-info name="[scratch xfer_catname].tar.gz"])

[/if]
[form-session-id] [loop acclist=1 list="SERVER_NAME=Server domain/URL) no leading protocol (www.domain.tld), SECURE_SERVER=Secure server) with leading protocol (https://www.domain.tld), CGI_URL=The URL (without server) to call the catalog, IMAGE_DIR=The image base URL, SQLDSN=Base SQL DSN (if using SQL), SQLUSER=SQL user (if any), SQLPASS=SQL password (if any), DOCROOT=The HTML document root, ORDERS_TO=Where orders should be sent, SAMPLEHTML=Base HTML directory for the catalog (not usually important), SAMPLEURL=Base static URL for the catalog (not usually important), IC_DIR=Interchange software directory, CGI_DIR=CGI directory (where to copy link file) "] [/loop]
[form-session-id] Rename things with current catalog name [calc]$Config->{CatalogName}[/calc] to
[loop-code] [loop-param label]
Link File information [display name=LINKMODE cgi-default=1 type=select passed="NONE=NONE (don't try to create one), UNIX=UNIX mode/vlink, INET=INET mode/tlink" ] Link type
[display name=CGIWRAP cgi-default=1 type=yesno ] Inhibit setuid in UNIX mode (for SUEXEC or CGIWRAP installations)
[display name=LINKHOST cgi-default=1 type=text_20 ] Link host if INET mode (default is 127.0.0.1)
[display name=LINKPORT cgi-default=1 type=text_5 ] Link port if INET mode (default is 7786)
Options Create Database on target
Add Catalog line to interchange.cfg

Keep files [display name=keep_together type=checkbox_left_4 passed=" tmp=Temporary files, session=Session files, usertrack=User traffic log, orders=Order backup files, survey=Survey log files, logs=Log files, backup=Backup files, config=Original catalog creation files, upload=Uploads" cgi-default=1]

@_UI_STD_FOOTER_@