Changeset 6425
- Timestamp:
- 08/20/08 15:11:08 (5 months ago)
- Location:
- Trunk/association/serversides/cctiddly/Trunk
- Files:
-
- 1 added
- 1 removed
- 4 modified
-
handle/login.php (deleted)
-
handle/loginFile.php (added)
-
includes/config.php (modified) (2 diffs)
-
includes/debug.php (modified) (1 diff)
-
tiddlers/normal/ccAdaptor.js (modified) (3 diffs)
-
tiddlers/normal/ccLogin.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/association/serversides/cctiddly/Trunk/includes/config.php
r6405 r6425 17 17 $tiddlyCfg['can_create_account'] = 1; // users are allowed to register for an account 18 18 19 19 20 //LDAP 20 21 21 22 $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"; 26 27 27 28 //Deligated Session Managment … … 98 99 99 100 $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 logfile101 $tiddlyCfg['debug']['mysql'] = 0; // if set to x1 will output every sql query into the logfile 101 102 $tiddlyCfg['debug']['login'] = 1; 102 103 $tiddlyCfg['debug']['handle'] = 0; -
Trunk/association/serversides/cctiddly/Trunk/includes/debug.php
r5991 r6425 6 6 </form>'; 7 7 8 $file = file_get_contents(' /Applications/xampp/xamppfiles/logs/error_log');8 $file = file_get_contents('C:\xampp\apache\logs\error.log'); 9 9 $lines = explode("\n", $file); 10 10 $lines = array_reverse($lines); -
Trunk/association/serversides/cctiddly/Trunk/tiddlers/normal/ccAdaptor.js
r6419 r6425 23 23 ccTiddlyAdaptor.doHttpGET = function(uri,callback,params,headers,data,contentType,username,password) 24 24 { 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); 26 26 }; 27 27 28 28 ccTiddlyAdaptor.doHttpPOST = function(uri,callback,params,headers,data,contentType,username,password) 29 29 { 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); 31 31 }; 32 32 33 33 ccTiddlyAdaptor.doHttpPUT = function(uri,callback,params,headers,data,contentType,username,password) 34 34 { 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); 36 36 }; 37 37 … … 58 58 //#console.log('login:'+context.username); 59 59 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'; 61 61 var uri = uriTemplate.format([context.host,context.username,context.password]); 62 62 //#console.log('uri:'+uri); 63 displayMessage("uri : "+uri); 63 64 var req = ccTiddlyAdaptor.doHttpGET(uri,ccTiddlyAdaptor.loginCallback,context); 64 65 return typeof req == 'string' ? req : true; … … 67 68 ccTiddlyAdaptor.loginCallback = function(status,context,responseText,uri,xhr) 68 69 { 70 displayMessage(responseText); 69 71 //#console.log('loginCallback:'+status); 70 72 if(xhr.status==401) { -
Trunk/association/serversides/cctiddly/Trunk/tiddlers/normal/ccLogin.js
r6419 r6425 68 68 configPasswordInputName:"cctpass", 69 69 configPasswordCookieName:"cctPass", 70 sha1: true70 sha1:false 71 71 }); 72 72 … … 146 146 } 147 147 148 config.macros.ccLogin.loginCallback=function(context,userParams , responseText){148 config.macros.ccLogin.loginCallback=function(context,userParams){ 149 149 if(context.status){ 150 150 window.location=window.fullUrl;
