Forums
This topic is locked
Rename of folder in UD4 results in errors???
Posted 25 Aug 2003 18:04:34
1
has voted
25 Aug 2003 18:04:34 ollie wenger posted:
Hi,I'm really confused by this one, and I haven't received any help from the Macromedia UltraDev 4 forum. I created a folder named "Releases", and put several dynamic pages inside of it. It eventually became necessary to rename the folder "MyAccess", but when I attempt this, everything on the login page stops working.
These pages are on an intranet, and I created a login page that automatically looks for a network login, and either gives them access or redirects them to a "No Access" page. But when I try to rename the "Releases" folder to be "MyAccess", the login page goes back and forth saying that I do and don't have access. (I have access to everything). I've also tried creating a new folder, and copying & pasting the files into the new folder, but this doesn't work either.
Can anyone explain why I cannot rename this folder in UD4? Is there something in UD4 or with the ASP code that's causing this problem. All help is appreciated! (P.S. I've included the page's code below.)
KWilliams
PAGE'S CODE:
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/strConn_Releases.asp" -->
<%Session("Login"


<%
var rs_Login__varLoggedIn = "()";
if(String(Session("Login"


rs_Login__varLoggedIn = String(Session("Login"

}
%>
<%
var rs_Login = Server.CreateObject("ADODB.Recordset"

rs_Login.ActiveConnection = MM_strConn_Releases_STRING;
rs_Login.Source = "SELECT * FROM dbo.Registered_Users WHERE User_Name = '"+ rs_Login__varLoggedIn.replace(/'/g, "''"

rs_Login.CursorType = 0;
rs_Login.CursorLocation = 2;
rs_Login.LockType = 3;
rs_Login.Open();
var rs_Login_numRows = 0;
%>
<%
if(rs_Login.EOF)
Response.Redirect("dgitsrv1/MyAccess/noaccess.asp");
%>
<html>
<head>
<title>Douglas County, Kansas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="Douglas County,Douglas County KS,Douglas County Kansas,Douglas,County,Kansas,Government,KS Government,Kansas Government,Stephen A. Douglas,Quantrill,Quantrill's Raid,Lawrence,Lecompton,Baldwin,Baldwin City,Eudora,Clinton,Jayhawks;KU,Kansas University,University of Kansas,University of KS,Baker University,Haskell,Haskell Indian Nations University,John Baldwin,Amos A. Lawrence,Samuel D. Lecompte,Kanzas Nation.">
<META NAME="description" CONTENT= "Official site for Douglas County, Kansas - Our mission is to provide for the safety and well being of the citizens of Douglas County through the professional and efficient delivery of essential public services in response to the needs of Douglas County citizens.">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!--#include virtual="/topborder.asp" -->
<table width="750" border="0" align="left">
<tr>
<td valign="top" height="27">
<% if (!rs_Login.EOF || !rs_Login.BOF)
{ %>
<h1><b>Welcome <%=(rs_Login.Fields.Item("Name"

<% } // end !rs_Login.EOF || !rs_Login.BOF %>
</td>
</tr>
<tr>
<td valign="top" height="140">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr valign="top" bgcolor="#660000">
<td width="46%"><font color="#FFFFFF"><b>Your
Access Pages</b></font></td>
<td width="54%"><font color="#FFFFFF"><b>Section
Descriptions</b></font></td>
</tr>
<tr valign="top" bgcolor="#FFFFCC">
<td width="46%">Welcome
to your home page. Below is a list of the restricted areas that
you have access to:
<p><a href="<%=(rs_Login.Fields.Item("Section1_Link"


<a href="<%=(rs_Login.Fields.Item("Section2_Link"


<a href="<%=(rs_Login.Fields.Item("Section3_Link"


<a href="<%=(rs_Login.Fields.Item("Section4_Link"


<i>NOTE: Click
on the links above to visit each section.</i></td>
<td width="54%">
<p>Below is a
list of sections available for editing, with descriptions for
each section:</p>
<ul>
<li>
Employment
- Includes editing pages for the "Job List" &
"Online Employment Application" (Coming Soon!)
</li>
<li>
News Releases - Includes editing pages for internet "News
Releases" & intranet "Announcements"
</li>
<li>Personnel - Includes editing pages for "Employee Directory"</li>
<li>Website Feedback - Includes editing pages for feedback from the Douglas
County website</li>
</ul>
</td>
</tr>
</table>
<p><b><a name="reg"></a>Registration Information</b>
If you would like to be registered for one or more of these sections,
if you are not already, please have your department head contact the Douglas
County Webmaster via email at <a class=roll href="mailto: "> </a>,
or via phone at (785) 832-5184 with the following information: </p>
<ul>
<li>
First & Last Name
</li>
<li>
Department
</li>
<li>
Job Title
</li>
<li>Section Name - Name of section from list above that you want access
to.</li>
<li>
Windows NT User Name - The user name you enter to login to your computer
each morning/No password is required.
</li>
</ul>
<p> </p></td>
</tr>
<tr>
<td>
<div align="center">
<script language="JavaScript" src="dgitsrv1/footer.js">
</script></div>
</td>
</tr>
</table>
</body>
</html>
<%
rs_Login.Close();
%>
Replies
Replied 19 Sep 2003 16:09:45
19 Sep 2003 16:09:45 Rammy Nasser replied:
maybe worth a shot. check the folder permissions have not changed when u renamed your folder,,,,