author | Dan Fuhry <dan@enanocms.org> |
Sat, 21 Aug 2010 18:20:18 -0400 | |
changeset 11 | b62383876fdb |
parent 10 | 014d58335b6d |
permissions | -rwxr-xr-x |
0 | 1 |
Page custom SiteConfigCreate SiteConfigLeave " - Configure site information" |
2 |
||
3 |
Function SiteConfigCreate |
|
10
014d58335b6d
Changed behavior of the entire database selection process. A real "upgrade"/"don't touch the database" option was added, and the old options unconditionally delete the database.
Dan Fuhry <dan@enanocms.org>
parents:
5
diff
changeset
|
4 |
IntCmp $skip_install 0 +2 |
014d58335b6d
Changed behavior of the entire database selection process. A real "upgrade"/"don't touch the database" option was added, and the old options unconditionally delete the database.
Dan Fuhry <dan@enanocms.org>
parents:
5
diff
changeset
|
5 |
Abort |
014d58335b6d
Changed behavior of the entire database selection process. A real "upgrade"/"don't touch the database" option was added, and the old options unconditionally delete the database.
Dan Fuhry <dan@enanocms.org>
parents:
5
diff
changeset
|
6 |
|
0 | 7 |
!insertmacro XPUI_INSTALLOPTIONS_EXTRACT_AS "pages\SiteConfig.ini" "SiteConfig.ini" |
8 |
!insertmacro XPUI_HEADER_TEXT "Configure website" "Enter basic information about your website." |
|
9 |
!insertmacro XPUI_INSTALLOPTIONS_DISPLAY "SiteConfig.ini" |
|
10 |
FunctionEnd |
|
11 |
||
12 |
Function SiteConfigLeave |
|
13 |
StrCmp $XPUI_ABORTED 1 0 +2 |
|
14 |
Return |
|
15 |
||
16 |
ReadINIStr $site_name "$PLUGINSDIR\SiteConfig.ini" "Field 1" "State" |
|
17 |
StrCmp $site_name "" 0 +3 |
|
18 |
MessageBox MB_OK|MB_ICONEXCLAMATION "Please enter a name for your site." |
|
19 |
Abort |
|
20 |
||
21 |
ReadINIStr $site_desc "$PLUGINSDIR\SiteConfig.ini" "Field 2" "State" |
|
22 |
StrCmp $site_desc "" 0 +3 |
|
23 |
MessageBox MB_OK|MB_ICONEXCLAMATION "Please enter a description for your site." |
|
24 |
Abort |
|
25 |
||
26 |
ReadINIStr $site_copyright "$PLUGINSDIR\SiteConfig.ini" "Field 3" "State" |
|
27 |
StrCmp $site_copyright "" 0 +2 |
|
28 |
StrCpy $site_copyright "No copyright assigned." |
|
29 |
||
30 |
Push $site_copyright |
|
31 |
Call CleanCopyright |
|
32 |
Pop $site_copyright |
|
33 |
||
34 |
StrCpy $url_scheme "standard" |
|
35 |
ReadINIStr $0 "$PLUGINSDIR\SiteConfig.ini" "Field 4" "State" |
|
36 |
IntCmp $0 1 0 +2 +2 |
|
37 |
StrCpy $url_scheme "short" |
|
38 |
||
39 |
StrCpy $start_with "blank" |
|
40 |
ReadINIStr $0 "$PLUGINSDIR\SiteConfig.ini" "Field 6" "State" |
|
41 |
IntCmp $0 1 0 +2 +2 |
|
42 |
StrCpy $start_with "tutorial" |
|
2
0c0d5dadfca3
Added LockWindow calls to all custom page exit paths to smooth transitions
Dan
parents:
0
diff
changeset
|
43 |
|
0c0d5dadfca3
Added LockWindow calls to all custom page exit paths to smooth transitions
Dan
parents:
0
diff
changeset
|
44 |
LockWindow on |
0 | 45 |
FunctionEnd |
46 |
||
47 |
Function CleanCopyright |
|
48 |
Pop $0 |
|
5
85800cb04cc5
Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents:
2
diff
changeset
|
49 |
${str_replace} $0 "©" "©" "$0" |
0 | 50 |
Push $0 |
51 |
FunctionEnd |