TiddlyWiki.org

Changeset 3907

Show
Ignore:
Timestamp:
12/03/08 11:07:27 (6 months ago)
Author:
simonmcmanus
Message:

new support for https

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Tags/association/serversides/cctiddly/1.5.1/includes/config.php

    r3875 r3907  
    1010        $tiddlyCfg['db']['login'] = "root";             //login name 
    1111        $tiddlyCfg['db']['pass'] = "";          //login password 
    12         $tiddlyCfg['db']['name'] = "cctiddly_public";         //db name 
     12        $tiddlyCfg['db']['name'] = "cctiddly";                //db name 
    1313 
    1414         
  • Tags/association/serversides/cctiddly/1.5.1/index.php

    r3634 r3907  
    5656$data1['time'] = date( 'Y-m-d H:i:s', mktime()); 
    5757db_record_insert($tiddlyCfg['table']['workspace_view'],$data1); 
     58 
     59 
     60                 
    5861?> 
    5962 
    6063<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    6164<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    62 <base href='http://<?php echo $_SERVER['SERVER_NAME'];?><?php echo $tiddlyCfg['pref']['base_folder'];?>/' /> 
     65<?php 
     66        $scheme = 'http'; 
     67        if (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] == 'on') { 
     68$scheme .= 's'; 
     69
     70?> 
     71<base href='<?php echo $scheme;?>://<?php echo $_SERVER['SERVER_NAME'];?><?php echo $tiddlyCfg['pref']['base_folder'];?>/' /> 
    6372<head> 
    6473<script type="text/javascript"> 
  • Tags/association/serversides/cctiddly/1.5.1/index/base.php

    r3636 r3907  
    1 <base href='http://<?php echo $_SERVER['SERVER_NAME'];?><?php echo $tiddlyCfg['pref']['base_folder'];?>/' /> 
     1<?php 
     2        $scheme = 'http'; 
     3        if (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] == 'on') { 
     4$scheme .= 's'; 
     5
     6?> 
     7<base href='<?php echo $scheme;?>http://<?php echo $_SERVER['SERVER_NAME'];?><?php echo $tiddlyCfg['pref']['base_folder'];?>/' />