| Line 34... |
Line 34... |
| 34 |
Dim gHomeTopic, gStyleSheet, gIconName, gEditPassword, gIsOpenWiki
|
34 |
Dim gHomeTopic, gStyleSheet, gIconName, gEditPassword, gIsOpenWiki
|
| 35 |
Dim glsTopic, glsMode , gHideLastEditor, gLoginFlag, gRemoveHtml,gBlackListedIps
|
35 |
Dim glsTopic, glsMode , gHideLastEditor, gLoginFlag, gRemoveHtml,gBlackListedIps
|
| 36 |
Dim gRE, gHighlightFlag, gHideWikiSource, gHideWikiFooter, gHideLogin, gHtmlHeadStr
|
36 |
Dim gRE, gHighlightFlag, gHideWikiSource, gHideWikiFooter, gHideLogin, gHtmlHeadStr
|
| 37 |
Dim gDisableSave,gTimeZoneOffset, gRssStyle, gRedirectURL
|
37 |
Dim gDisableSave,gTimeZoneOffset, gRssStyle, gRedirectURL
|
| 38 |
Dim gBannerTemplate, gWikiBodyPrefix, gHideTopSearch, gDisableScripting
|
38 |
Dim gBannerTemplate, gWikiBodyPrefix, gHideTopSearch, gDisableScripting
|
| 39 |
Dim gMdbExtension , gSearchLabel, gBlackListedIpsRE ,gDeletePassword , gPersistPassword
|
39 |
Dim gMdbExtension , gSearchLabel, gBlackListedIpsRE ,gPersistPassword
|
| 40 |
Dim gPasswordLabel, gFooterHtml, gEnableEdit
|
40 |
Dim gPasswordLabel, gFooterHtml, gEnableEdit, gDevNotePrefix, gBulkDelete
|
| 41 |
|
41 |
|
| 42 |
'+-----------------------------------------------------------------------------+
|
42 |
'+-----------------------------------------------------------------------------+
|
| 43 |
'| AN IMPORTANT NOTE: !!!!! |
|
43 |
'| AN IMPORTANT NOTE: !!!!! |
|
| 44 |
'| Enter your password below for creating new DB and for Delete. |
|
44 |
'| Enter your password below for creating new DB and for Delete. |
|
| 45 |
'| Enter your URL inside quotes below e.g. http://www28.brinkster.com/site |
|
45 |
'| Enter your URL inside quotes below e.g. http://www28.brinkster.com/site |
|
| Line 54... |
Line 54... |
| 54 |
gIsOpenWiki = true ' Allow editing or Password Protect Editing?
|
54 |
gIsOpenWiki = true ' Allow editing or Password Protect Editing?
|
| 55 |
gHideWikiSource = false ' Allow viewing of unformatted wiki text when loggin in.
|
55 |
gHideWikiSource = false ' Allow viewing of unformatted wiki text when loggin in.
|
| 56 |
gHideWikiFooter = false ' Show or Hide the whole wiki footer
|
56 |
gHideWikiFooter = false ' Show or Hide the whole wiki footer
|
| 57 |
gHideLogin = false ' Enable/Disable double-click or Edit. This can be overriden by &log
|
57 |
gHideLogin = false ' Enable/Disable double-click or Edit. This can be overriden by &log
|
| 58 |
gHideLastEditor = false ' Show/Hide in the footer the info about last edit
|
58 |
gHideLastEditor = false ' Show/Hide in the footer the info about last edit
|
| 59 |
gDeletePassword = "passworddel" ' password for deleting
|
- |
|
| 60 |
gEditPassword = "password" ' password for editing the site
|
59 |
gEditPassword = "password" ' password for editing the site
|
| 61 |
gPassword = "password" ' password for editing and delete and db creation.
|
60 |
gPassword = "password" ' password for editing and delete and db creation.
|
| 62 |
gHttpDomain = "auto" ' URL for RSS links to work. Override in config.asp . Set to "" to remove rss footer links
|
61 |
gHttpDomain = "auto" ' URL for RSS links to work. Override in config.asp . Set to "" to remove rss footer links
|
| 63 |
gDefaultIcon = "icon" ' This default. Maybe overridden if your site has icon.gif, icon.jpg or xxxx.gif and if FSO is working.
|
62 |
gDefaultIcon = "icon" ' This default. Maybe overridden if your site has icon.gif, icon.jpg or xxxx.gif and if FSO is working.
|
| 64 |
gDefaultHomePage = "WikiAsp" ' modify your start page here. this may be overridden by .ini file. The .ini file is same dir as mdb file
|
63 |
gDefaultHomePage = "WikiAsp" ' modify your start page here. this may be overridden by .ini file. The .ini file is same dir as mdb file
|
| Line 75... |
Line 74... |
| 75 |
gSearchLabel = " Search On:"
|
74 |
gSearchLabel = " Search On:"
|
| 76 |
gPersistPassword = true ' Remember password by default
|
75 |
gPersistPassword = true ' Remember password by default
|
| 77 |
gPasswordLabel = " To edit, enter the password: " ' The prompt label to use when entering a password. 4/2010
|
76 |
gPasswordLabel = " To edit, enter the password: " ' The prompt label to use when entering a password. 4/2010
|
| 78 |
gFooterHtml = "</body></html>" ' Now you can customize the footer with your chosen html. Even remove ads
|
77 |
gFooterHtml = "</body></html>" ' Now you can customize the footer with your chosen html. Even remove ads
|
| 79 |
gEnableEdit = false
|
78 |
gEnableEdit = false
|
| - |
|
79 |
gDevNotePrefix = "??" ' Dev Note Prefix
|
| - |
|
80 |
gBulkDelete = false ' Manually enabled bulk delete mode
|
| 80 |
|
81 |
|
| 81 |
'+-----------------------------------------------------------------------------+
|
82 |
'+-----------------------------------------------------------------------------+
|
| 82 |
'| DO YOU WANT TO SEPARATE SOME CONFIG SETTINGS IN ANOTHER FILE? |
|
83 |
'| DO YOU WANT TO SEPARATE SOME CONFIG SETTINGS IN ANOTHER FILE? |
|
| 83 |
'+-----------------------------------------------------------------------------+
|
84 |
'+-----------------------------------------------------------------------------+
|
| 84 |
'| IF yes,just uncomment line after this box (by removing single quote as |
|
85 |
'| IF yes,just uncomment line after this box (by removing single quote as |
|
| Line 135... |
Line 136... |
| 135 |
End If
|
136 |
End If
|
| 136 |
gHideWikiFooter = NOT gEnableEdit
|
137 |
gHideWikiFooter = NOT gEnableEdit
|
| 137 |
Else
|
138 |
Else
|
| 138 |
gHideLogin = true
|
139 |
gHideLogin = true
|
| 139 |
gHideWikiFooter = true
|
140 |
gHideWikiFooter = true
|
| - |
|
141 |
gBulkDelete = false
|
| 140 |
End If
|
142 |
End If
|
| 141 |
|
143 |
|
| 142 |
'set destination URL
|
144 |
'set destination URL
|
| 143 |
gScriptURL = gScript & "?db=" & gDataSourceFile ' removed & "&dbname=" & server.urlencode(gDataSourceName)
|
145 |
gScriptURL = gScript & "?db=" & gDataSourceFile ' removed & "&dbname=" & server.urlencode(gDataSourceName)
|
| 144 |
gHomeTopic = gDataSourceFile ' default home topic is the same as ms access db name unless overwritten by .ini
|
146 |
gHomeTopic = gDataSourceFile ' default home topic is the same as ms access db name unless overwritten by .ini
|
| Line 861... |
Line 863... |
| 861 |
'Elrey - move HTML removal into here
|
863 |
'Elrey - move HTML removal into here
|
| 862 |
If gRemoveHtml Then
|
864 |
If gRemoveHtml Then
|
| 863 |
newText = removeHTML(newText)
|
865 |
newText = removeHTML(newText)
|
| 864 |
End If
|
866 |
End If
|
| 865 |
|
867 |
|
| - |
|
868 |
'David Purdie
|
| - |
|
869 |
'Remove comments - Lines starting with //
|
| - |
|
870 |
gRE.Pattern = "(\r\n)//([^\r\n]+)"
|
| - |
|
871 |
newText=gRE.Replace(newText,"")
|
| - |
|
872 |
|
| 866 |
' indented paragraph second level using '>' ( '|' is now used with Tables - Elrey
|
873 |
' indented paragraph second level using '>' ( '|' is now used with Tables - Elrey
|
| 867 |
newText=replace(newText,vbcrlf & ">>>>",vbcrlf & "<p style=""margin-left:80pt;"">")
|
874 |
newText=replace(newText,vbcrlf & ">>>>",vbcrlf & "<p style=""margin-left:80pt;"">")
|
| 868 |
newText=replace(newText,vbcrlf & ">>>",vbcrlf & "<p style=""margin-left:60pt;"">")
|
875 |
newText=replace(newText,vbcrlf & ">>>",vbcrlf & "<p style=""margin-left:60pt;"">")
|
| 869 |
newText=replace(newText,vbcrlf & ">>",vbcrlf & "<p style=""margin-left:40pt;"">")
|
876 |
newText=replace(newText,vbcrlf & ">>",vbcrlf & "<p style=""margin-left:40pt;"">")
|
| 870 |
newText=replace(newText,vbcrlf & ">",vbcrlf & "<p style=""margin-left:20pt;"">")
|
877 |
newText=replace(newText,vbcrlf & ">",vbcrlf & "<p style=""margin-left:20pt;"">")
|
| Line 1243... |
Line 1250... |
| 1243 |
end if
|
1250 |
end if
|
| 1244 |
set fso = nothing
|
1251 |
set fso = nothing
|
| 1245 |
'---- some security here
|
1252 |
'---- some security here
|
| 1246 |
|
1253 |
|
| 1247 |
If gDataSourceFile <> gDefaultHomePage Then
|
1254 |
If gDataSourceFile <> gDefaultHomePage Then
|
| - |
|
1255 |
|
| 1248 |
Dim pwd
|
1256 |
' Expecting delVerified=1 for deletion confirmation
|
| 1249 |
If Request.QueryString("pw") <> gPassword Then
|
1257 |
If Request.QueryString("dbCreate") <> "1" Then
|
| - |
|
1258 |
Response.Write("<center><h2>Database Creation</h2></center><hr>")
|
| - |
|
1259 |
Response.Write("<center>")
|
| - |
|
1260 |
If gHideLogin Then
|
| - |
|
1261 |
Response.Write("The Database --> <b>" & gDataSource & "</b> <--- Cannot be created on this Server")
|
| - |
|
1262 |
ElseIf NOT gEnableEdit Then
|
| 1250 |
Response.Write("Sorry but the Database (db) requested does not exist, or may not be writable.<br>Correct password must be sent to create it.")
|
1263 |
Response.Write("The Database --> <b>" & gDataSource & "</b> <--- Cannot be created until you enable editing")
|
| - |
|
1264 |
Else
|
| - |
|
1265 |
Response.Write("<br><br><span style='border: solid 5px red; padding: 10px;display:inline-block'>")
|
| 1251 |
Response.Write("<br>Hint. Add &pw=" & gPassword & " to the URL.")
|
1266 |
response.write("Create Database --> <b>" & gDataSource & "</b> <---")
|
| 1252 |
Response.Write("<p>Folder:" & f1 & ".")
|
1267 |
Response.Write("<p align=left>Folder: " & f1 & ".")
|
| 1253 |
Response.Write("<br>DataBase:" & gDataSource & ".")
|
1268 |
Response.Write("<br>DataBase: " & gDataSource & ".")
|
| - |
|
1269 |
response.write("<p>Are your sure that you wish to continue!")
|
| - |
|
1270 |
response.write( "<br><br><a href='" & gScriptURL & "&dbCreate=1'><button style='color:red'>Create Database.</button></a>" )
|
| - |
|
1271 |
response.write( " <a href='" & gScript & "'><button>No, don't create it.</button></a>" )
|
| - |
|
1272 |
response.write( "</span>" )
|
| - |
|
1273 |
End If
|
| - |
|
1274 |
Response.Write("</center>")
|
| 1254 |
Response.End
|
1275 |
Response.End
|
| 1255 |
End If
|
1276 |
End If
|
| 1256 |
End If
|
1277 |
End If
|
| - |
|
1278 |
|
| 1257 |
'--------------------------------------------
|
1279 |
'--------------------------------------------
|
| 1258 |
' step 1: create the new db catalog, if necessary
|
1280 |
' step 1: create the new db catalog, if necessary
|
| 1259 |
Err.Clear
|
1281 |
Err.Clear
|
| 1260 |
EmitDebug 21, 2, vbcrlf & " creating db " & dbname & "<br/>"
|
1282 |
EmitDebug 21, 2, vbcrlf & " creating db " & dbname & "<br/>"
|
| 1261 |
on error resume next
|
1283 |
on error resume next
|
| 1262 |
cat.Create ConnStr(0)
|
1284 |
cat.Create ConnStr(0)
|
| 1263 |
on error goto 0
|
1285 |
on error goto 0
|
| 1264 |
EmitDebug 22, 2, ">> error(" & err.Number & "," & err.Description & ")<br/>"
|
1286 |
EmitDebug 22, 2, ">> error(" & err.Number & "," & err.Description & ")<br/>"
|
| 1265 |
'EmitDebug 23, 2, vbcrlf & " catConnErrorCount(" & _
|
1287 |
'EmitDebug 23, 2, vbcrlf & " catConnErrorCount(" & _
|
| 1266 |
' cat.ActiveConnection.errors.count & ")<br/>"
|
1288 |
' cat.ActiveConnection.errors.count & ")<br/>"
|
| Line 1574... |
Line 1596... |
| 1574 |
|
1596 |
|
| 1575 |
end sub
|
1597 |
end sub
|
| 1576 |
|
1598 |
|
| 1577 |
'ElreyRonald 4/2004
|
1599 |
'ElreyRonald 4/2004
|
| 1578 |
Sub HandleDelete
|
1600 |
Sub HandleDelete
|
| 1579 |
Dim pwd, topic, sh
|
1601 |
Dim sh
|
| 1580 |
Response.Write("<center><h2>Page Deletion</h2></center><hr>")
|
- |
|
| 1581 |
sh = "<br><a href='" & gScriptURL & "' >Click here proceed to home page</a>"
|
1602 |
sh = "<br><a href='" & gScriptURL & "' >Click here proceed to home page</a>"
|
| - |
|
1603 |
|
| 1582 |
If Request.QueryString("pw") <> gDeletePassword Then
|
1604 |
' Expecting delVerified=1 for deletion confirmation
|
| 1583 |
Response.Write( "Authorization to delete failed. Try adding &pw=" & gDeletePassword & sh)
|
1605 |
Response.Write("<center><h2>Page Deletion</h2></center><hr>")
|
| 1584 |
Response.End
|
1606 |
Response.Write("<center>")
|
| 1585 |
End If
|
1607 |
|
| 1586 |
topic = Request.QueryString("o") ' Topic to delete
|
1608 |
If Request.QueryString("delVerified") <> 1 Then
|
| 1587 |
If IsNull(topic) or topic = "" Then
|
1609 |
if gHideLogin Then
|
| 1588 |
Response.Write( "Specify page name to delete i.e. &o=MyPage" & sh)
|
1610 |
Response.Write("The page --> <b>" & glsTopic & "</b> <--- Cannot be created on this Server")
|
| 1589 |
Response.End
|
1611 |
ElseIf NOT gEnableEdit Then
|
| - |
|
1612 |
Response.Write("The page --> <b>" & glsTopic & "</b> <--- Cannot be deleted until you enable editing")
|
| 1590 |
End If
|
1613 |
Else
|
| 1591 |
Dim stmnt
|
- |
|
| 1592 |
stmnt = "delete from WikiData where Title='" & topic & "'"
|
1614 |
Response.Write("<br><br><span style='border: solid 5px red; padding: 10px;display:inline-block'>")
|
| 1593 |
Set gDataConn = Server.CreateObject("ADODB.Connection")
|
1615 |
response.write("Deletion of the page --> <b>" & glsTopic & "</b> <--- is cannot be undone")
|
| 1594 |
on error resume next
|
1616 |
response.write("<br>Are your sure that you wish to continue!")
|
| 1595 |
gDataConn.Open ConnStr(1)
|
1617 |
response.write( "<br><br><a href='" & gScriptURL & "&a=del&delVerified=1&o=" & glsTopic & "'><button style='color:red'>Delete this page.</button></a>" )
|
| 1596 |
on error goto 0
|
- |
|
| 1597 |
on error resume next
|
1618 |
response.write( " <a href='" & gScriptURL & "'><button>No, don't delete it.</button></a>" )
|
| 1598 |
gDataConn.execute(stmnt)
|
1619 |
response.write( "</span>" )
|
| 1599 |
on error goto 0
|
1620 |
End If
|
| 1600 |
If gDataConn.errors.count = 0 then
|
- |
|
| 1601 |
Response.Write( "<b>" & topic & " </b> was successfully deleted. " )
|
- |
|
| 1602 |
Else
|
1621 |
Else
|
| - |
|
1622 |
|
| - |
|
1623 |
Dim topic
|
| - |
|
1624 |
topic = Request.QueryString("o") ' Topic to delete
|
| - |
|
1625 |
If IsNull(topic) or topic = "" Then
|
| - |
|
1626 |
Response.Write( "Specify page name to delete i.e. &o=MyPage" & sh)
|
| - |
|
1627 |
Response.End
|
| - |
|
1628 |
End If
|
| - |
|
1629 |
|
| - |
|
1630 |
Dim stmnt
|
| - |
|
1631 |
stmnt = "delete from WikiData where Title='" & topic & "'"
|
| - |
|
1632 |
Set gDataConn = Server.CreateObject("ADODB.Connection")
|
| - |
|
1633 |
on error resume next
|
| - |
|
1634 |
gDataConn.Open ConnStr(1)
|
| - |
|
1635 |
on error goto 0
|
| - |
|
1636 |
on error resume next
|
| - |
|
1637 |
gDataConn.execute(stmnt)
|
| - |
|
1638 |
on error goto 0
|
| - |
|
1639 |
If gDataConn.errors.count = 0 then
|
| - |
|
1640 |
Response.Write( "<b>" & topic & " </b> was successfully deleted. " )
|
| - |
|
1641 |
Else
|
| 1603 |
Response.Write( "<b>" & topic & " </b> was not deleted due to some errors. " )
|
1642 |
Response.Write( "<b>" & topic & " </b> was not deleted due to some errors. " )
|
| 1604 |
End if
|
1643 |
End if
|
| 1605 |
Set gDataConn = nothing
|
1644 |
Set gDataConn = nothing
|
| 1606 |
Response.write sh
|
1645 |
Response.write sh
|
| - |
|
1646 |
End If
|
| - |
|
1647 |
Response.Write("</center>")
|
| 1607 |
Response.End
|
1648 |
Response.End
|
| 1608 |
end sub
|
1649 |
end sub
|
| 1609 |
|
1650 |
|
| 1610 |
'ElreyRonald 4/2004
|
1651 |
'ElreyRonald 4/2004
|
| 1611 |
sub handleRss
|
1652 |
sub handleRss
|
| 1612 |
|
1653 |
|
| Line 1906... |
Line 1947... |
| 1906 |
end if
|
1947 |
end if
|
| 1907 |
|
1948 |
|
| 1908 |
Dim deleteColumn
|
1949 |
Dim deleteColumn
|
| 1909 |
deleteColumn = ""
|
1950 |
deleteColumn = ""
|
| 1910 |
|
1951 |
|
| 1911 |
' gDelete is only passed on querystring
|
1952 |
' Allow bulk deletion
|
| 1912 |
If Request.QueryString("pw") = gDeletePassword Then
|
1953 |
If (gBulkDelete) Then
|
| 1913 |
deleteColumn = "<td class='tabular'><a href=""" & gScriptURL & "&o=" & rs("Title")&"&a=del&pw=" & gDeletePassword & """> del </td>"
|
1954 |
deleteColumn = "<td class='tabular'><a href=""" & gScriptURL & "&o=" & rs("Title")&"&a=del&delVerified=1" & """>[Delete Page]</td>"
|
| 1914 |
End If
|
1955 |
End If
|
| 1915 |
|
1956 |
|
| 1916 |
|
1957 |
|
| 1917 |
if rs("Title") <> "RegisteredUsers" then
|
1958 |
if rs("Title") <> "RegisteredUsers" then
|
| 1918 |
Response.Write("<td class='tabular'>" & i & ".</td><td class='tabular'><a href=""" &_
|
1959 |
Response.Write("<td class='tabular'>" & i & ".</td><td class='tabular'><a href=""" &_
|
| Line 2075... |
Line 2116... |
| 2075 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=edit&o=" & search & "'>Edit page</a>"
|
2116 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=edit&o=" & search & "'>Edit page</a>"
|
| 2076 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=del&o=" & search & "'>Del page</a>"
|
2117 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=del&o=" & search & "'>Del page</a>"
|
| 2077 |
end if
|
2118 |
end if
|
| 2078 |
bannerPart = bannerPart & " | <a href='" & gScript & "?db=ReleaseNotes&o=TextFormattingRules'>Formatting Rules</a>"
|
2119 |
bannerPart = bannerPart & " | <a href='" & gScript & "?db=ReleaseNotes&o=TextFormattingRules'>Formatting Rules</a>"
|
| 2079 |
bannerPart = bannerPart & " | <a href='" & gScript & "?db=ReleaseNotes'>Release Notes</a>"
|
2120 |
bannerPart = bannerPart & " | <a href='" & gScript & "?db=ReleaseNotes'>Release Notes</a>"
|
| 2080 |
bannerPart = bannerPart & " | <a href='" & gScript & "?db=ImplementationNotes'>PM Dev Notes</a>"
|
2121 |
bannerPart = bannerPart & " | <a href='" & gScript & "?db=ImplementationNotes'>"& gDevNotePrefix &" Dev Notes</a>"
|
| 2081 |
if gEnableEdit Then
|
2122 |
if gEnableEdit Then
|
| 2082 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=logout&o=" & search & "'>Log out</a>"
|
2123 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=logout&o=" & search & "'>Disable Editing</a>"
|
| 2083 |
Else
|
2124 |
Else
|
| 2084 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=login&o=" & search & "'>Log in</a>"
|
2125 |
bannerPart = bannerPart & " | <a href='" & gScriptURL & "&a=login&o=" & search & "'>Enable Editing</a>"
|
| 2085 |
End If
|
2126 |
End If
|
| 2086 |
End If
|
2127 |
End If
|
| 2087 |
bannerPart = bannerPart & "<hr>"
|
2128 |
bannerPart = bannerPart & "<hr>"
|
| 2088 |
|
2129 |
|
| 2089 |
bannerPart = bannerPart & " <table class='cssBannerTable' id='idBannerTable' cellSpacing='0' cellPadding='0' border='0'>"
|
2130 |
bannerPart = bannerPart & " <table class='cssBannerTable' id='idBannerTable' cellSpacing='0' cellPadding='0' border='0'>"
|
| Line 2165... |
Line 2206... |
| 2165 |
if rs.eof=true then
|
2206 |
if rs.eof=true then
|
| 2166 |
Response.Write("<center><h2>Page Creation</h2><hr>")
|
2207 |
Response.Write("<center><h2>Page Creation</h2><hr>")
|
| 2167 |
if gHideLogin Then
|
2208 |
if gHideLogin Then
|
| 2168 |
Response.Write("The page --> <b>" & glsTopic & "</b> <--- Does not exit and it cannot be created on this Server")
|
2209 |
Response.Write("The page --> <b>" & glsTopic & "</b> <--- Does not exit and it cannot be created on this Server")
|
| 2169 |
ElseIf NOT gEnableEdit Then
|
2210 |
ElseIf NOT gEnableEdit Then
|
| 2170 |
Response.Write("The page --> <b>" & glsTopic & "</b> <--- Does not exit and it cannot be created until you log in")
|
2211 |
Response.Write("The page --> <b>" & glsTopic & "</b> <--- Does not exit and it cannot be created until you enable editing")
|
| 2171 |
Else
|
2212 |
Else
|
| - |
|
2213 |
Response.Write("<br><br><span style='border: solid 2px black; padding: 10px;display:inline-block'>")
|
| 2172 |
response.write("Sorry! The page --> <b>" & glsTopic & "</b> <--- is not existing or it is a page that must be created </h4>")
|
2214 |
response.write("The page --> <b>" & glsTopic & "</b> <--- does not exist.")
|
| 2173 |
response.write( "<br><a href='" & gScriptURL & "&a=edit&o=" & glsTopic & "'>Click this link to create this page.</a>" )
|
2215 |
response.write("<br><br><a href='" & gScriptURL & "&a=edit&o=" & glsTopic & "'><button style='color:red'>Create this page.</button></a>" )
|
| 2174 |
response.write( "<br><br><a href='" & gScriptURL & "'>No, don't create it.</a>" )
|
2216 |
response.write(" <a href='" & gScriptURL & "'><button>Don't create page.</button></a>" )
|
| - |
|
2217 |
Response.Write("</span>")
|
| 2175 |
End If
|
2218 |
End If
|
| 2176 |
Response.Write("</center>")
|
2219 |
Response.Write("</center>")
|
| 2177 |
|
2220 |
|
| 2178 |
else
|
2221 |
else
|
| 2179 |
EmitDebug 51, 3, "found...(" & rs("PageData") & ")<br/>" & vbcrlf
|
2222 |
EmitDebug 51, 3, "found...(" & rs("PageData") & ")<br/>" & vbcrlf
|
| Line 2230... |
Line 2273... |
| 2230 |
Else
|
2273 |
Else
|
| 2231 |
handleRss
|
2274 |
handleRss
|
| 2232 |
End If
|
2275 |
End If
|
| 2233 |
response.End
|
2276 |
response.End
|
| 2234 |
end if
|
2277 |
end if
|
| 2235 |
'Intercept delete request here
|
- |
|
| 2236 |
if ( glsMode = "del") then
|
- |
|
| 2237 |
handleDelete
|
- |
|
| 2238 |
response.End
|
- |
|
| 2239 |
end if
|
- |
|
| 2240 |
|
- |
|
| 2241 |
|
2278 |
|
| 2242 |
'********************************************************************
|
2279 |
'********************************************************************
|
| 2243 |
'*********************************************************************
|
2280 |
'*********************************************************************
|
| 2244 |
'<?xml version="1.0" encoding="UTF-8" ?>
|
2281 |
'<?xml version="1.0" encoding="UTF-8" ?>
|
| 2245 |
'<!DOCTYPE html
|
2282 |
'<!DOCTYPE html
|
| Line 2295... |
Line 2332... |
| 2295 |
gDataConn.errors(0).description & ")<br/>" & vbcrlf
|
2332 |
gDataConn.errors(0).description & ")<br/>" & vbcrlf
|
| 2296 |
VerifyWikiTable
|
2333 |
VerifyWikiTable
|
| 2297 |
end if
|
2334 |
end if
|
| 2298 |
end if
|
2335 |
end if
|
| 2299 |
|
2336 |
|
| 2300 |
select case (glsMode)
|
2337 |
select case (glsMode)
|
| 2301 |
case "edit" handleEdit
|
2338 |
case "edit" handleEdit
|
| 2302 |
case "list" handleList
|
2339 |
case "list" handleList
|
| 2303 |
case "search" handleSearch
|
2340 |
case "search" handleSearch
|
| 2304 |
case "create" handleCreate
|
2341 |
case "create" handleCreate
|
| 2305 |
case "save" handleSave
|
2342 |
case "save" handleSave
|
| 2306 |
case "browse" handleBrowse
|
2343 |
case "browse" handleBrowse
|
| 2307 |
case "logout" handleLogout
|
2344 |
case "logout" handleLogout
|
| 2308 |
case "login" handleLogin
|
2345 |
case "login" handleLogin
|
| - |
|
2346 |
case "del" handleDelete
|
| 2309 |
case else
|
2347 |
case else
|
| 2310 |
end select
|
2348 |
end select
|
| 2311 |
|
2349 |
|
| 2312 |
EmitDebug 56, 2, "<br/>done...<br/>" & vbcrlf
|
2350 |
EmitDebug 56, 2, "<br/>done...<br/>" & vbcrlf
|
| 2313 |
gDataConn.Close()
|
2351 |
gDataConn.Close()
|
| 2314 |
set gDataConn = nothing
|
2352 |
set gDataConn = nothing
|
| 2315 |
%>
|
2353 |
%>
|
| 2316 |
|
2354 |
|
| 2317 |
<% Response.Write(gFooterHtml) %>
|
2355 |
<% Response.Write(gFooterHtml) %>
|
| 2318 |
<% Response.Flush %>
|
2356 |
<% Response.Flush %>
|
| - |
|
2357 |
|