What is the problem?

I see that as long as your are running on PORT 80, you will get
redirected as indicated 

<cfif server_port is '80'>
        <cflocation addtoken="Yes" url="http://192.168.1.7";>

Are you expecting something else??



-----Original Message-----
From: Adrian C. [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 16, 2007 12:20 PM
To: CF-Talk
Subject: please help me to debug this code... thanks

redirects me with : http://192.168.1.7/?CFID=500&CFTOKEN=80457585

migrating from coldfusion 5 to mx 7.

the other intranet websites that I have, are working.
this site used to have an dns name, also this one used ssl certificate,
but I don't want to use it anymore.

code below. thanks.

a paypal donation for who is the "hero".
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=

<cfapplication 
        name="aihssis" 
        clientmanagement="Yes" 
        sessionmanagement="Yes" 
        sessiontimeout=#createtimespan(0,0,10,0)# 
        applicationtimeout=#createtimespan(0,0,10,0)#>
        
<!--- set global variables --->
<cfset aihs="aihs_new"> <!--- set DSN ---> <cfset appt="tmp_aihs_appt">
<cfparam name="session.loggedin" default="no"> <cfparam
name="session.userid" default=''> <cfparam name="session.admin"
default="no"> <cfparam name="session.admissions" default="no">

<cfif server_port is '80'>
        <cflocation addtoken="Yes" url="http://192.168.1.7";> </cfif>

<!--- display environment vars for troubleshooting ---> <cfoutput>
<!-- cfid: #cfid# -->
<!-- cftoken: #cftoken#  -->
<!-- scriptname: #cgi.script_name# -->
<!-- loggedin: #session.loggedin# -->
<!-- userid: #session.userid# -->
<!--- <!-- dept: #session.dept# --> --->
<!-- dsn: #aihs# -->
<!-- admin: #session.admin# -->
<!-- admissions: #session.admissions# -->
<!-- authtype: #cgi.auth_type# -->
<!-- SERVER_NAME: #cgi.SERVER_NAME# -->
<!-- GATEWAY_INTERFACE: #cgi.GATEWAY_INTERFACE# -->
<!-- SERVER_PROTOCOL: #cgi.SERVER_PROTOCOL# -->
<!-- SERVER_PORT: #cgi.SERVER_PORT# -->
</cfoutput>

<!--- 
        prevent users from accessing CFM templates EXCEPT for:
        1.  all INDEX.CFM templates
        2.  FLUSH.CFM - for flushing DSN connections
        
        * when a user types in a URL of "dsp_main.cfm" in 
        ANY program module they will get an error message
--->
<cfif (#right(cgi.script_name,10)# neq "/index.cfm") and 
        (#cgi.script_name# neq "/flush.cfm") and 
        (#cgi.script_name# neq "/time.cfm") and
        (#cgi.script_name# neq "/xerox.cfm") and
        (#cgi.script_name# neq "/form_lookupCheckBox.cfm") and
        (#cgi.script_name# neq "/act_lookupCheckBox.cfm") and
        (#cgi.script_name# neq "/dsp_displayCheckBox.cfm") and
        (#cgi.script_name# neq "/form_insertCheckBox.cfm") and
        (#cgi.script_name# neq "/act_insertCheckBox.cfm") and
        (#cgi.script_name# neq "/act_updateCheckBox.cfm") and
        (#cgi.script_name# neq "/late.cfm") and
        (#cgi.script_name# neq "/reports/report.cfm") and
        (#cgi.script_name# neq "/dsp_countAbsences.cfm") and
        (#cgi.script_name# neq "/dsp_mandatoryTutoring.cfm") and
        (#cgi.script_name# neq "/students/act_doeditfachecklist.cfm")
and
        (#cgi.script_name# neq "/dsp_perfectAttendance.cfm") and
        (#cgi.script_name# neq
"/qry_currentptstudentsbyblock_attendance.cfm") and
        (#cgi.script_name# neq "/pt.cfm") and
        (#cgi.script_name# neq
"/qry_currentrmastudentsbyblock_attendance.cfm") and
        (#cgi.script_name# neq "/rma.cfm") and
        (#cgi.script_name# neq "/absences.cfm")>
        <script language="JavaScript">
        <!-- 
                alert("Invalid URL.");
                self.location="/index.cfm";
        // -->
        </script>
</cfif>

<!---  
        this will check if the user is logged on... if not,
        the user will get an error message
--->
<cfif (#cgi.script_name# neq "/index.cfm") and 
        (#cgi.script_name# neq "/flush.cfm") and 
        (#cgi.script_name# neq "/time.cfm") and
        (#cgi.script_name# neq "/xerox.cfm") and
        (#cgi.script_name# neq "/absences.cfm") and
        (#cgi.script_name# neq "/report.cfm") and
        (session.loggedin is "no")>
        <cf_returnfuseaction action="set"
gotourl="/index.cfm?fuseaction=relogon"
returnurl="#cgi.script_name#?#cgi.query_string#">
</cfif>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272847
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to