%
If objFile.FolderExists(Server.Mappath("innova")) then
%>
<%
End If
Response.Expires = -1000
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl="no-cache"
Dim noRTE, catID, subCatID, cat3rdID, duration, isMozilla
session("constrain" & strSUnique) = Empty
Session("CSS_FOR_RTE") = web_site & dstyle
If Wysiwyg_type = 1 AND NOT isCompatible then isWysiwyg = False: Wysiwyg_type = 0
If isWysiwyg then
Select Case Wysiwyg_type
Case 1
strCrawl = "?y=y"
If isMozilla then
Response.Write ""
mozpath = "moz/"
Else: Response.Write ""
End If
End Select
End If
setLocale server_locale
update = false
If session("user_logged_moderator" & strSUnique) Or Session("admin_loggedin" & strSUnique) = Session.SessionID then moderator = True
Dim imgDim(10,1), uOtpArrayValue(7)
If Request.Querystring.Count = 1 then
Session("Load_Free_Duration" & strSUnique) = Empty
adID = Request.Querystring.Item(1)
Set rs = objConn.Execute("SELECT " & tablPfx & "Ads.* FROM " & tablPfx & "Ads WHERE adID = '" & adID & "';")
If rs.EOF then
iError = True
Else
descr = rs(14)
descr = Replace(descr, "
", vbcr)
userID = rs(4)
status = rs(15)
Select Case moderator
Case True
update = true
msg = msgUpdate
Case Else
If CStr(userID) = CStr(session("user_logged_ID" & strSUnique)) then
adOwner = True
update = true
msg = msgUpdate
Else
iError = True
msg = msgNoAccess
End If
End Select
If not iError then display = "" & strText_UpdateAd & ""
End If
Else
update = false
If isnotfree and not session("allow_post" & strSUnique) then Response.Redirect "post_start.asp"
If CStr(session("user_logged_ID" & strSUnique)) = Empty then Response.Redirect "register.asp"
Response.Cookies("allow_post" & strSUnique) = "True"
Response.Cookies("user_logged_ID" & strSUnique) = CStr(session("user_logged_ID" & strSUnique))
Response.Cookies("user_logged_nick" & strSUnique) = Session("user_logged_nick" & strSUnique)
Response.Cookies("user_logged_city" & strSUnique) = Session("user_logged_city" & strSUnique)
Response.Cookies("final_price" & strSUnique) = Session("final_price" & strSUnique)
Response.Cookies("user_logged_email" & strSUnique) = Session("user_logged_email" & strSUnique)
Response.Cookies("hotlist" & strSUnique) = Session("hotlist" & strSUnique)
Response.Cookies("image_limit" & strSUnique) = Session("image_limit" & strSUnique)
catID = session("Select_CategoryID" & strSUnique)
catName = Session("Select_Category" & strSUnique)
subCatID = session("Select_SubCategoryID" & strSUnique)
subCatName = Session("Select_SubCategory" & strSUnique)
strTreePath = catName & " > " & subCatName
If not session("Select_3rdCategoryID" & strSUnique) = Empty then
cat3rdID = session("Select_3rdCategoryID" & strSUnique)
cat3rdName = session("Select_3rdCategory" & strSUnique)
strTreePath = strTreePath & " > " & cat3rdName
End If
If session("Select_Category" & strSUnique) = Empty Or session("Select_SubCategory" & strSUnique) = Empty then
Response.Redirect "post_new1.asp"
End If
userID = session("user_logged_ID" & strSUnique)
uPA = Session("Attach_Image" & strSUnique)
If isArray(uPA) then
uploadPic = True
For L = 1 to 10
If not uPA(L,0) = Empty then
imgDim(L,0) = CLng(Split(uPA(L,1), "x")(0))
imgDim(L,1) = CLng(Split(uPA(L,1), "x")(1))
If imgDim(L,0) > 100 then
koef = imgDim(L,0) / imgDim(L,1)
imgDim(L,0) = 100
imgDim(L,1) = Round(100 / koef)
End If
strImg = strImg & uPA(L,0) & "|" & uPA(L,1) & sf
End If
Next
End If
msg = msgHead
strRedirect = "catid=" & catID & "&subcatID=" & subCatID & "&3rdcatID=" & cat3rdID
display = "" & strText_PostAdIn & "" & strTreePath & ""
End If
%>
| <%= strText_Home %>::<%= display %> |
| <% If update then catID = rs(2) subcatID = rs(3) status = rs(15) city = rs(8) posted = rs(5) expire = rs(6) duration = Round(CDate(expire) - CDate(posted), 0) iDate = rs(5) imgString = rs(12) strImg = imgString If len(imgString) > 0 then adImgArray = Split(imgString, sf) imgArrayDim = UBound(adImgArray) - 1 uploadPic = True Dim uPA(10,0) For d = 0 to imgArrayDim x = d + 1 uPA(x,0) = Split(adImgArray(d), "|")(0) adSize = Split(adImgArray(d), "|")(1) imgDim(x,0) = CLng(Split(adSize, "x")(0)) imgDim(x,1) = CLng(Split(adSize, "x")(1)) If imgDim(x,0) > 100 then koef = imgDim(x,0) / imgDim(x,1) imgDim(x,0) = 100 imgDim(x,1) = Round(100 / koef) End If Next End If subject = rs(9) phone = rs(10) URL = rs(11) If Len(URL) > 0 then If instr(URL, "//") <> 0 then urlPrefix = Split(URL, "//")(0) urlLink = Replace(URL, urlPrefix & "//", "") End If End If onlineImg = rs(13) button = strText_UpdateAd If ispack then set rsfreecat = objConn.Execute("SELECT ID FROM " & tablPfx & "Cat WHERE (catID = " & catID & " AND isfree = 1);") If not rsfreecat.EOF then Session("Load_Free_Duration" & strSUnique) = True: Else: Session("Load_Free_Duration" & strSUnique) = Empty rsfreecat.close End If Else button = strText_PostAd End If If not iError then %> <% End If %> |