Changeset 6425

Show
Ignore:
Timestamp:
08/20/08 15:11:08 (5 months ago)
Author:
simonmcmanus
Message:

cct - fixed login for ie7

Location:
Trunk/association/serversides/cctiddly/Trunk
Files:
1 added
1 removed
4 modified

Legend:

Unmodified
Added
Removed
  • Trunk/association/serversides/cctiddly/Trunk/includes/config.php

    r6405 r6425  
    1717$tiddlyCfg['can_create_account'] = 1; // users are allowed to register for an account  
    1818         
     19         
    1920//LDAP 
    2021 
    2122$tiddlyCfg['pref']['ldap_server'] = '127.0.0.1';         
    22 $tiddlyCfg['pref']['ldap_enabled'] = 0;  
    23 $tiddlyCfg['pref']['ldap_username']     = "CN="; 
    24 $tiddlyCfg['pref']['ldap_password'] = ""; 
    25 $tiddlyCfg['pref']['ldap_connection_string'] = "ldap://"; 
     23$tiddlyCfg['pref']['ldap_enabled'] = 1;  
     24$tiddlyCfg['pref']['ldap_username']     = "CN=Sa063338,OU=functional,OU=btplc,DC=iuser,DC=iroot,DC=adidom,DC=com"; 
     25$tiddlyCfg['pref']['ldap_password'] = "pass9431w"; 
     26$tiddlyCfg['pref']['ldap_connection_string'] = "ldap://iuser.iroot.adidom.com:389"; 
    2627 
    2728//Deligated Session Managment  
     
    9899 
    99100$tiddlyCfg['developing'] = 1;           //developing mode. If set to 2 will override debug setting below and output everything into the debug file.  
    100 $tiddlyCfg['debug']['mysql'] = 1;        // if set to x1 will output every sql query into the logfile  
     101$tiddlyCfg['debug']['mysql'] = 0;        // if set to x1 will output every sql query into the logfile  
    101102$tiddlyCfg['debug']['login'] = 1; 
    102103$tiddlyCfg['debug']['handle'] = 0; 
  • Trunk/association/serversides/cctiddly/Trunk/includes/debug.php

    r5991 r6425  
    66</form>'; 
    77 
    8 $file = file_get_contents('/Applications/xampp/xamppfiles/logs/error_log'); 
     8$file = file_get_contents('C:\xampp\apache\logs\error.log'); 
    99$lines = explode("\n", $file); 
    1010$lines = array_reverse($lines); 
  • Trunk/association/serversides/cctiddly/Trunk/tiddlers/normal/ccAdaptor.js

    r6419 r6425  
    2323ccTiddlyAdaptor.doHttpGET = function(uri,callback,params,headers,data,contentType,username,password) 
    2424{ 
    25         return doHttp('GET',uri,data,contentType,username,password,callback,params,headers,1); 
     25        return doHttp('GET',uri,data,contentType,username,password,callback,params,headers); 
    2626}; 
    2727 
    2828ccTiddlyAdaptor.doHttpPOST = function(uri,callback,params,headers,data,contentType,username,password) 
    2929{ 
    30         return doHttp('POST',uri,data,contentType,username,password,callback,params,headers,1); 
     30        return doHttp('POST',uri,data,contentType,username,password,callback,params,headers); 
    3131}; 
    3232 
    3333ccTiddlyAdaptor.doHttpPUT = function(uri,callback,params,headers,data,contentType,username,password) 
    3434{ 
    35         return doHttp('PUT',uri,data,contentType,username,password,callback,params,headers,1); 
     35        return doHttp('PUT',uri,data,contentType,username,password,callback,params,headers); 
    3636}; 
    3737 
     
    5858//#console.log('login:'+context.username); 
    5959       context = this.setContext(context,userParams,callback); 
    60        var uriTemplate = '%0/handle/login.php?cctuser=%1&cctpass=%2'; 
     60       var uriTemplate = '%0/handle/loginFile.php?cctuser=%1&cctpass=%2'; 
    6161       var uri = uriTemplate.format([context.host,context.username,context.password]); 
    6262//#console.log('uri:'+uri); 
     63displayMessage("uri : "+uri); 
    6364       var req = ccTiddlyAdaptor.doHttpGET(uri,ccTiddlyAdaptor.loginCallback,context); 
    6465       return typeof req == 'string' ? req : true; 
     
    6768ccTiddlyAdaptor.loginCallback = function(status,context,responseText,uri,xhr) 
    6869{ 
     70        displayMessage(responseText); 
    6971//#console.log('loginCallback:'+status); 
    7072       if(xhr.status==401) { 
  • Trunk/association/serversides/cctiddly/Trunk/tiddlers/normal/ccLogin.js

    r6419 r6425  
    6868        configPasswordInputName:"cctpass", 
    6969        configPasswordCookieName:"cctPass", 
    70         sha1:true 
     70        sha1:false 
    7171}); 
    7272         
     
    146146} 
    147147 
    148 config.macros.ccLogin.loginCallback=function(context,userParams, responseText){ 
     148config.macros.ccLogin.loginCallback=function(context,userParams){        
    149149        if(context.status){ 
    150150                window.location=window.fullUrl;