CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 SSL problem in common.php

Print topic Send  topic

Author Message
andy


Posts: 183
Posted: 04/19/2008, 12:04 AM

Hi

I have recently converted my project to an SSL project. Having duly purchased my SSL certificate, I entered the "https://mysubdomain.mydomain.co.uk" in the project settings field: "Secure Server URL" and at page level, set each page's SSL Access Only setting to "Yes". I also set each page's "Convert URL To" setting to "Yes".

As far as I understand, this is all you have to do to convert a project to SSL.

Any way it didn't work and the nice people at 1&1 Internet diagnosed and fixed the problem as being the function CCCheckSSL() code in common.php.

This is how they rewrote 2 lines of it highlighted here in bold. The CCS code is commented out.
It now works:

   
[In common.php]  
  
function CCCheckSSL()  
{  
    //$HTTPS = isset($_SERVER["HTTPS"]) ? strtolower($_SERVER["HTTPS"]) : "" ;  
     $HTTPS = isset($_SERVER["HTTPS"]) ? strtolower($_SERVER["HTTPS"]) : NULL ;  
    //if($HTTPS != "on")  
    if(!isset($HTTPS))  
    {  
        echo "SSL connection error. This page can only be accessed via a secure connection.";  
        exit;  
    }  
}  
//End CCCheckSSL  

Is this a bug in CCS? Anyone else had similar problem?

_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.