Guest User

Untitled

a guest
Apr 9th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.07 KB | None | 0 0
  1. From [email protected] Thu Mar 18 09:26:37 2010
  2. MIME-Version: 1.0
  3. Received: from mail.eoa.de [192.168.1.3]
  4. by ask.home.local with IMAP (fetchmail-6.3.11)
  5. for <ingo@localhost> (single-drop); Thu, 18 Mar 2010 09:26:37 +0100 (CET)
  6. Received: from mail03do.versatel.de (89.245.129.23) by mail.eoa.de
  7. (192.168.1.3) with Microsoft SMTP Server id 14.0.682.1; Thu, 18 Mar 2010
  8. 09:24:35 +0100
  9. Received: (qmail 5911 invoked from network); 18 Mar 2010 08:26:03 -0000
  10. Received: from i577b96c7.versanet.de (HELO eoa-dortmund-krabbe.dyndns.org)
  11. ([87.123.150.199]) (envelope-sender
  12. <[email protected]>) by mail03do.versatel.de
  13. (qmail-ldap-1.03) with SMTP for <[email protected]>; 18 Mar 2010
  14. 08:26:01 -0000
  15. Received: by eoa-dortmund-krabbe.dyndns.org (Postfix, from userid 1000) id
  16. 3508511875B; Thu, 18 Mar 2010 09:25:58 +0100 (CET)
  17. Subject: [PATCH] newsletter and login changes
  18. Date: Thu, 18 Mar 2010 09:25:36 +0100
  19. Message-ID: <[email protected]>
  20. In-Reply-To: <[email protected]>
  21. References: <[email protected]>
  22. X-WatchGuard-IPS: message checked
  23. X-WatchGuard-Spam-ID: str=0001.0A090206.4BA1E39C.00C3,ss=1,fgs=0
  24. X-WatchGuard-Spam-Score: 0, clean; 0, no virus
  25. X-WatchGuard-Mail-Client-IP: 89.245.129.23
  26. X-WatchGuard-Mail-From: [email protected]
  27. X-WatchGuard-AntiVirus: part scanned. clean action=allow
  28. Content-Type: text/plain
  29. Return-Path: [email protected]
  30. X-MS-Exchange-Organization-AuthSource: coresrv1.eoa.intra
  31. X-MS-Exchange-Organization-AuthAs: Anonymous
  32. X-MS-Exchange-Organization-PRD: eoa.de
  33. X-MS-Exchange-Organization-SenderIdResult: None
  34. Received-SPF: None (coresrv1.eoa.intra: [email protected] does not
  35. designate permitted sender hosts)
  36. Status: RO
  37. Content-Length: 20663
  38. Lines: 588
  39.  
  40. From: Ingo Krabbe <[email protected]>
  41.  
  42. ---
  43. club/newsletter/NewsletterConfigurator.as | 26 +++-
  44. core/abstract/AbstractStage.as | 4 +-
  45. data/IUserData.as | 2 +
  46. data/UserData.as | 18 ++-
  47. modules/top/club/assets/ClubBar.as | 241 +++++++++++++----------------
  48. 5 files changed, 139 insertions(+), 152 deletions(-)
  49.  
  50. diff --git a/club/newsletter/NewsletterConfigurator.as b/club/newsletter/NewsletterConfigurator.as
  51. index 7a9a749..6b5ff1a 100644
  52. --- a/club/newsletter/NewsletterConfigurator.as
  53. +++ b/club/newsletter/NewsletterConfigurator.as
  54. @@ -79,8 +79,9 @@ public class NewsletterConfigurator extends Sprite implements INewsLetter {
  55. public static const NC_TAIL_O3:int = 11;
  56. public static const NC_TAIL_O4:int = 12;
  57. public static const NC_TAIL_O5:int = 13;
  58. + public static const NC_TAIL_O6:int = 14;
  59.  
  60. - public static const _EOF_NC:int = 14;
  61. + public static const _EOF_NC:int = 15;
  62.  
  63. public static const SB_UP:int = 0;
  64. public static const SB_DOWN:int = 1;
  65. @@ -94,7 +95,7 @@ public class NewsletterConfigurator extends Sprite implements INewsLetter {
  66. ******************************************************************************/
  67. public function NewsletterConfigurator() {
  68. status= 0;
  69. - //status |= (1<<DEBUG_SET);
  70. + status |= (1<<DEBUG_SET);
  71. if ( stage ) { w = stage.stageWidth; h = stage.stageHeight; }
  72. else { w=740; h=310; }
  73. show(null,null);
  74. @@ -152,6 +153,7 @@ private function ur_clicked(e:Event):void { clickEvent(e,5); }
  75.  
  76. private function cancel_clicked(e:Event):void { clickEvent(e,7); }
  77. private function faq_clicked(e:Event):void { clickEvent(e,9); }
  78. +private function bottom_clicked(e:Event):void { clickEvent(e,11); }
  79.  
  80. private function clickEvent(e:Event, i:int ):void {
  81. var url:String="";
  82. @@ -168,15 +170,18 @@ private function clickEvent(e:Event, i:int ):void {
  83. url = news_data.body.object.(@bid==id).linkurl;
  84. break;
  85. case NC_TAIL_O1: case NC_TAIL_O2: case NC_TAIL_O3:
  86. - case NC_TAIL_O4: case NC_TAIL_O5:
  87. + case NC_TAIL_O4: case NC_TAIL_O5: case NC_TAIL_O6:
  88. id = i-NC_TAIL_O1+1;
  89. type = "tail";
  90. url = news_data.tail.object.(@tid==id).linkurl;
  91. break;
  92. }
  93. if ( url ) {
  94. - CallConverter.call("quickFadeIn();");
  95. - CallConverter.call(url);
  96. + var urlRequest:URLRequest = new URLRequest(url);
  97. +// CallConverter.call("quickFadeIn();");
  98. + Logger.debug("click url:"+url);
  99. + flash.net.navigateToURL(urlRequest, "_blank");
  100. +// CallConverter.call(url);
  101. }
  102. if ( status & (1<<DEBUG_SET) )
  103. Logger.debug("Click Event="+type+" "+id+" :"+url);
  104. @@ -420,6 +425,15 @@ private function addTail():void {
  105. x.addChild(news_content[i]);
  106. x.x = px; x.y = py;
  107. frame.addChild(x);
  108. + px = x.x + x.width;
  109. + }
  110. + i=NC_TAIL_O6; if ( news_content[i] ) { /*main*/
  111. + x = new Sprite();
  112. + x.buttonMode = true;
  113. + x.addEventListener(MouseEvent.CLICK, bottom_clicked);
  114. + x.addChild(news_content[i]);
  115. + x.x = px; x.y = py;
  116. + frame.addChild(x);
  117. py = x.y + x.height;
  118. }
  119. ph = py-py1;
  120. @@ -599,7 +613,7 @@ public function get content_url():String {
  121. ret = news_data.body.object.(@bid==nc_I-NC_BODY_O1+1).image;
  122. break;
  123. case NC_TAIL_O1: case NC_TAIL_O2: case NC_TAIL_O3:
  124. - case NC_TAIL_O4: case NC_TAIL_O5:
  125. + case NC_TAIL_O4: case NC_TAIL_O5: case NC_TAIL_O6:
  126. ret = news_data.tail.object.(@tid==nc_I-NC_TAIL_O1+1).image;
  127. break;
  128. }
  129. diff --git a/core/abstract/AbstractStage.as b/core/abstract/AbstractStage.as
  130. index d14012d..65fdb33 100644
  131. --- a/core/abstract/AbstractStage.as
  132. +++ b/core/abstract/AbstractStage.as
  133. @@ -66,8 +66,8 @@ package tf.core.abstract
  134. private function prepairUserData () : void
  135. {
  136. _userData = UserData.getInstance( );
  137. - _userData.loginService = LoginService.getInstance ( ServiceVars.getDefServiceURI(stage) );
  138. - _userData.logoutService = LogoutService.getInstance ( ServiceVars.getDefServiceURI(stage) );
  139. + _userData.loginService = null;
  140. + _userData.logoutService = null;
  141. _imCtrl = IMctrl.getInstance();
  142. }
  143.  
  144. diff --git a/data/IUserData.as b/data/IUserData.as
  145. index 49cd438..5036a55 100644
  146. --- a/data/IUserData.as
  147. +++ b/data/IUserData.as
  148. @@ -25,6 +25,8 @@ package tf.data
  149. function get parentsMail () : String;
  150. function set alternativMail ( p_alternativMail : String ) : void;
  151. function get alternativMail () : String;
  152. + function set flags ( f : int ) : void;
  153. + function get flags () : int;
  154.  
  155. function get startNewsletter():String;
  156. function set startNewsletter(nl:String):void;
  157. diff --git a/data/UserData.as b/data/UserData.as
  158. index 0cea765..cfc0d8b 100644
  159. --- a/data/UserData.as
  160. +++ b/data/UserData.as
  161. @@ -21,6 +21,7 @@ package tf.data
  162. private var _gender : String;
  163. private var _parentsMail : String;
  164. private var _alternativMail : String;
  165. + public var _flags:int;
  166.  
  167. private var startNL:String;
  168.  
  169. @@ -47,6 +48,9 @@ package tf.data
  170.  
  171. }
  172.  
  173. + public function set flags ( f: int ) : void { _flags = f; }
  174. + public function get flags () : int { return _flags; }
  175. +
  176. //
  177. public function set name ( p_name : String ) : void
  178. {
  179. @@ -77,26 +81,26 @@ package tf.data
  180. {
  181. return _isLoggedIn;
  182. }
  183. - //
  184. +
  185. + /* FIXME: disable service classes */
  186. public function set loginService ( p_loginService : LoginService ) : void
  187. {
  188. _loginService = p_loginService;
  189. }
  190. - //
  191. +
  192. public function get loginService () : LoginService
  193. {
  194. - return _loginService;
  195. + return null;
  196. }
  197. - //
  198. - //
  199. +
  200. public function set logoutService ( p_logoutService : LogoutService ) : void
  201. {
  202. _logoutService = p_logoutService;
  203. }
  204. - //
  205. +
  206. public function get logoutService () : LogoutService
  207. {
  208. - return _logoutService;
  209. + return null;
  210. }
  211.  
  212. public function get birthdate () : Date
  213. diff --git a/modules/top/club/assets/ClubBar.as b/modules/top/club/assets/ClubBar.as
  214. index 73c72eb..d0084ad 100644
  215. --- a/modules/top/club/assets/ClubBar.as
  216. +++ b/modules/top/club/assets/ClubBar.as
  217. @@ -1,5 +1,7 @@
  218. package tf.modules.top.club.assets
  219. {
  220. + import org.osflash.thunderbolt.Logger;
  221. +
  222. import flash.display.DisplayObject;
  223. import flash.display.Loader;
  224. import flash.display.LoaderInfo;
  225. @@ -28,15 +30,16 @@ package tf.modules.top.club.assets
  226. import tf.modules.top.club.IClub;
  227. import tf.club.login.CStartModules;
  228. import tf.club.login.ICStart;
  229. - import tf.services.LoginService;
  230. - import tf.services.LogoutService;
  231. import tf.services.ServiceVars;
  232. import tf.services.club.bar.IStateService;
  233. import tf.services.club.bar.StateService;
  234. import tf.services.statistics.AdvertiseManager;
  235. - import netTrekLibs.data.services.xml.Service;
  236. +
  237. + import tf.services.ServiceEvent;
  238. + import tf.services.Service;
  239. + import tf.services.NewService;
  240. +
  241. import netTrekLibs.data.services.xml.ServiceEvents;
  242. - import netTrekLibs.utils.Logger;
  243.  
  244. [Embed(source='/assets/gfx/club/club.swf#ClubBar')]
  245. public class ClubBar
  246. @@ -54,7 +57,8 @@ package tf.modules.top.club.assets
  247. public var avatar : MovieClip;
  248. public var friendsIcon : MovieClip;
  249. private var _friendsIcon : UIbutton;
  250. - public var chatIcon : MovieClip;
  251. private var _chatIcon : UIbutton;
  252. + public var chatIcon : MovieClip;
  253. + private var _chatIcon : UIbutton;
  254. public var greetsIcon : MovieClip;
  255. private var _greetsIcon : UIbutton;
  256. public var mailIcon : MovieClip;
  257. @@ -73,7 +77,7 @@ package tf.modules.top.club.assets
  258. private var password_input : TextField=new TextField();
  259. //
  260. private var _currentState : String;
  261. - private var ts : Service;
  262. +// private var ts : Service;
  263. private var isJSLogin : Boolean = false;
  264. private var mails_txt : TextField;
  265. private var messages_txt : TextField;
  266. @@ -81,6 +85,7 @@ package tf.modules.top.club.assets
  267. private var currAvatarID : int = int.MIN_VALUE;
  268. private const defaultUserName : String = "Nickname"; // Nickname
  269. private const defaultPassword : String = "Passwort"; // Passwort
  270. + public var loginStatus:int = -1;
  271.  
  272. // private var _sessionAliveCheck : Boolean;
  273. public function ClubBar ()
  274. @@ -126,11 +131,6 @@ package tf.modules.top.club.assets
  275. textfieldsScreen1.username_input.restrict = "a-zA-Z0-9\\-\\_";
  276. textfieldsScreen1.password_input.restrict = "a-zA-Z0-9\\-\\_";
  277. textfieldsScreen1.password_input.displayAsPassword = true;
  278. -
  279. - // Check for autologin
  280. -// addLoginEvents();
  281. -// _sessionAliveCheck = true;
  282. -// loginService.sessionAliveCheck();
  283. }
  284.  
  285.  
  286. @@ -150,17 +150,6 @@ package tf.modules.top.club.assets
  287. return moduleCtrl.imCtrl;
  288. }
  289.  
  290. - //
  291. - public function get loginService () : LoginService {
  292. - return userData.loginService;
  293. - }
  294. -
  295. - //
  296. - public function get logoutService () : LogoutService {
  297. - return userData.logoutService;
  298. - }
  299. -
  300. - //
  301. private function checkLogin ( e : Event = null ) : void
  302. {
  303. /*
  304. @@ -169,7 +158,7 @@ package tf.modules.top.club.assets
  305. //TODO : SABAN :::: comment later
  306. // checkLoginSuccess ( );
  307. // return;
  308. - Logger.log( "SABAN ::: CHECK LOGIN because login was pressed ", false );
  309. + Logger.debug( "SABAN ::: CHECK LOGIN because login was pressed ", false );
  310. // quickConfirm("LOGIN", "ACHTUNG! Auf Grund technischer\n" +
  311. // "Umstellungen kannst du dich\nmomentan nicht im Treff anmelden.\n" +
  312. // "Bitte versuch es später noch einmal." +
  313. @@ -206,125 +195,102 @@ package tf.modules.top.club.assets
  314.  
  315. userData.name = n;
  316. userData.password = p;
  317. + userData.flags=0;
  318.  
  319. isJSLogin = false;
  320. - addLoginEvents( );
  321. - loginService.login( userData.name, userData.password );
  322. + doLogin();
  323. }
  324.  
  325. public function doJSlogin ( username : String, md5Password : String ) : void
  326. {
  327. if ( !userData.isLoggedIn ) {
  328. isJSLogin = true;
  329. - Logger.log( "SABAN ::: doJSlogin with username:= " + username + " & md5Password:= " + md5Password, false );
  330. - addLoginEvents( );
  331. + Logger.debug( "doJSlogin with username:= "+ username
  332. + +" & md5Password:= " + md5Password );
  333. userData.name = username;
  334. userData.password = md5Password;
  335. - loginService.login( username, md5Password, false );
  336. + userData.flags=0;
  337. + //loginService.login( username, md5Password );
  338. }
  339. }
  340.  
  341. - private function addLoginEvents () : void
  342. + public function doLogin(): void
  343. {
  344. - clubInstance.showLoadingAnimation( );
  345. - try {
  346. + var x:XML = new XML(<data><name/><password md5="true"/></data>);
  347. + var req:NewService;
  348. + x.name = userData.name;
  349. + x.password = userData.password;
  350. +
  351. + req = new NewService( "login", "start", x );
  352. + req.addEventListener(ServiceEvent.READY, checkLoginSuccess);
  353. + req.addEventListener(ServiceEvent.IOERROR, handleError);
  354. + clubInstance.showLoadingAnimation( );
  355. ExternalInterface.call( 'expandNavDiv' );
  356. - }
  357. - catch ( e : Error) {
  358. - }
  359. - loginService.addEventListener( ServiceEvents.COMPLETE, checkLoginSuccess );
  360. - loginService.addEventListener( ServiceEvents.ERROR, handelError );
  361. }
  362.  
  363. - private function clearLoginEvents () : void
  364. +
  365. + private function finalizeLogin( e:Event ) : void
  366. {
  367. clubInstance.hideLoadingAnimation( );
  368. - try {
  369. - moduleCtrl.fitDivSize( );
  370. + moduleCtrl.fitDivSize( );
  371. + if ( e ) {
  372. + e.target.removeEventListener( ServiceEvent.READY, checkLoginSuccess );
  373. + e.target.removeEventListener( ServiceEvent.IOERROR, handleError );
  374. }
  375. - catch ( e : Error) {
  376. - }
  377. - try {
  378. - loginService.removeEventListener( ServiceEvents.COMPLETE, checkLoginSuccess );
  379. - } catch ( e1 : Error) {
  380. - }
  381. - try {
  382. - loginService.removeEventListener( ServiceEvents.ERROR, handelError );
  383. - } catch ( e2 : Error) {
  384. - }
  385. }
  386.  
  387. - private function handelError ( e : ServiceEvents = null ) : void
  388. + private function handleError ( e : ServiceEvent ) : void
  389. {
  390. - clearLoginEvents( );
  391. - Logger.log( "ERROR#################" + e.eventInfo );
  392. - try {
  393. - ExternalInterface.call( 'expandNavDiv' );
  394. - }
  395. - catch ( e : Error) {
  396. - }
  397. -
  398. - // if ( ! _sessionAliveCheck )
  399. - quickConfirm( "Fehlgeschlagen", "Leider haben wir technische Probleme. Bitte versuche es später noch einmal!" );
  400. -
  401. -// _sessionAliveCheck = false;
  402. - }
  403. -
  404. - private function checkLoginSuccess ( e : ServiceEvents = null ) : void
  405. - {
  406. - clearLoginEvents( );
  407. - try {
  408. - userData.isLoggedIn = loginService.isLoginSuccess( ) == true;
  409. - if ( userData.isLoggedIn )
  410. - clubInstance.loadNext( );
  411. - }
  412. - catch ( e1 : Error) {
  413. - userData.isLoggedIn = false;
  414. - }
  415. - try {
  416. - userData.name = String( loginService.name ).toLowerCase( );
  417. - } catch ( e2 : Error) {
  418. - userData.name = "UNKOWN" ;
  419. - }
  420. - Logger.log( "SABAN___LOGIN INFORMATION RECEIVED ::: " + userData.isLoggedIn );
  421. - Logger.log( "SABAN___LOGIN INFORMATION RECEIVED ::: status is" + loginService.status );
  422. + finalizeLogin(e);
  423. + Logger.error( "Login? ERROR "+ e.target.data );
  424. + ExternalInterface.call( 'expandNavDiv' );
  425.  
  426. - if ( !userData.isLoggedIn ) {
  427. - try {
  428. -switch (loginService.status) {
  429. - case 5:
  430. - quickConfirm( "Hinweis", "Dein Zugang wurde gesperrt."
  431. - +" \nBitte halte dich"
  432. - +" an die Treff-Regeln, wenn du dich erneut anmelden"
  433. - +" möchtest." );
  434. - break;
  435. - case 9:
  436. - quickConfirm( "Achtung:","Alle Treff Mitglieder haben ein"
  437. - +" neues Passwort an die E-Mail-Adresse,"
  438. - +" die bei der Neuanmeldung angegeben wurde,"
  439. - +" geschickt bekommen." );
  440. - break;
  441. - case 7: // Dont show error window if user is not activated yet!
  442. - // handleLogin will perform the needed state-change to
  443. - // inform the user.
  444. - break;
  445. - default:
  446. - quickConfirm( "Fehlgeschlagen", "Dein Nickname oder"
  447. - +" dein Passwort ist falsch.\n"
  448. - +"Bitte überprüfe deine Eingabe." );
  449. - break;
  450. -}
  451. - }
  452. - catch ( e : Error) {
  453. - }
  454. + quickConfirm( "Fehlgeschlagen",
  455. + "Leider haben wir technische Probleme."
  456. + +"Bitte versuche es später noch einmal!" );
  457. + }
  458. +
  459. + private function checkLoginSuccess ( e : ServiceEvent ) : void
  460. + {
  461. + var service:Service = e.object;
  462. + loginStatus = -1;
  463. + finalizeLogin(e);
  464. + userData.isLoggedIn = false;
  465. + if ( service.xml_data.child("name").length()>0 )
  466. + userData.name = String(service.xml_data.name).toLowerCase();
  467. + if ( service.xml_data.child("status").length()>0 )
  468. + loginStatus = parseInt(service.xml_data.status);
  469. + if ( service.xml_data.child("flags").length()>0 )
  470. + userData.flags = parseInt(service.xml_data.flags);
  471. + Logger.debug("Login Service answer="+service.xml_data.toString());
  472. +
  473. + switch ( loginStatus ) {
  474. + case 1: userData.isLoggedIn =true;
  475. + case 5:
  476. + quickConfirm( "Hinweis", "Dein Zugang wurde gesperrt."
  477. + +" \nBitte halte dich"
  478. + +" an die Treff-Regeln, wenn du dich erneut anmelden"
  479. + +" möchtest." );
  480. + break;
  481. + case 9:
  482. + quickConfirm( "Achtung:","Alle Treff Mitglieder haben ein"
  483. + +" neues Passwort an die E-Mail-Adresse,"
  484. + +" die bei der Neuanmeldung angegeben wurde,"
  485. + +" geschickt bekommen." );
  486. + break;
  487. + case 7: // Dont show error window if user is not activated yet!
  488. + // handleLogin will perform the needed state-change to
  489. + // inform the user.
  490. + break;
  491. + default:
  492. + quickConfirm( "Fehlgeschlagen", "Dein Nickname oder"
  493. + +" dein Passwort ist falsch.\n"
  494. + +"Bitte überprüfe deine Eingabe." );
  495. + break;
  496. }
  497.  
  498. - // if ( userData.isLoggedIn )
  499. + if ( userData.isLoggedIn ) clubInstance.loadNext();
  500. handelLoginView( );
  501. -
  502. -// if ( !_sessionAliveCheck || userData.isLoggedIn )
  503. -// handelLoginView( );
  504. -// _sessionAliveCheck = false;
  505. }
  506.  
  507. private function quickConfirm ( header : String, mesage : String, settings : ConfirmBTNsettings = null ) : void
  508. @@ -336,25 +302,28 @@ switch (loginService.status) {
  509.  
  510. private function prepairRuntimeView () : void
  511. {
  512. - try {
  513. - // userData.name = (loginService.name).toLowerCase();
  514. - userData.name = String( loginService.name ).toLowerCase( );
  515. - } catch ( e2 : Error) {
  516. - userData.name = "UNKOWN" ;
  517. - }
  518. - showRunTime( );
  519. - clubInstance.clubScreen.group.enable( );
  520. - clubInstance.clubScreen.friendList.show( );
  521. + showRunTime();
  522. + clubInstance.clubScreen.group.enable();
  523. + clubInstance.clubScreen.friendList.show();
  524. clubInstance.clubScreen.loadCurrentPet();
  525. }
  526.  
  527. + public function get isFirstLogin():Boolean
  528. + {
  529. + return ( userData.flags & (1<<9) )? true: false;
  530. + }
  531. + public function get isLoggedIn():Boolean
  532. + {
  533. + return userData.isLoggedIn;
  534. + }
  535. +
  536. private function handelLoginView () : void
  537. {
  538. var cstart : ICStart;
  539. var module : IModule;
  540. AdvertiseManager.getInstance( ).notify( AdvertiseManager .ADVERTISE_LOGIN );
  541.  
  542. - if ( userData.isLoggedIn ) {
  543. + if ( isLoggedIn ) {
  544. userData.name = userData.name.toLowerCase( );
  545. imCtrl.addEventListener( IMEvent.ALREADY_LOGGED_IN, imAlreadyLoggedIn );
  546. imCtrl.addEventListener( IMEvent.FAILED, imFailed );
  547. @@ -367,7 +336,7 @@ switch (loginService.status) {
  548. module = clubInstance.currentModule;
  549. if ( module is ICStart ) {
  550. cstart = module as ICStart;
  551. - if ( loginService.isFirstLogin( ) )
  552. + if ( isFirstLogin )
  553. cstart.showStartModuleByID( CStartModules.NEWS_LETTER );
  554. else
  555. {
  556. @@ -386,7 +355,7 @@ switch (loginService.status) {
  557. module = clubInstance.currentModule;
  558. if ( module is ICStart ) {
  559. cstart = module as ICStart;
  560. - switch (loginService.status) {
  561. + switch (loginStatus) {
  562. case 7:
  563. cstart.showStartModuleByID( CStartModules.NOT_ACTIVATED );
  564. break;
  565. @@ -490,7 +459,7 @@ switch (loginService.status) {
  566. // {
  567. currAvatarID = stateService.getAvatarNum( );
  568. var avatarURI : String = ServiceVars .HOST_ROOT + stateService.getAvatarFile( ) + "?$" + Math.floor( Math .random( ) * 9999 ) + "=" + +Math.floor( Math .random( ) * 9999 );
  569. - Logger.log( "important ::: LOADIN AVATAR_URI ::: " + avatarURI, false );
  570. + Logger.debug( "important ::: LOADIN AVATAR_URI ::: " + avatarURI );
  571. // Logger.log("important ::: START AVATAR XY ::: " + avatar.x + " # " + avatar.y, false );
  572. try {
  573. while ( avatar.numChildren > 0 )
  574. @@ -529,7 +498,7 @@ switch (loginService.status) {
  575. try {
  576. var lInfo : LoaderInfo = event.target as LoaderInfo;
  577. var loader : Loader = lInfo.loader;
  578. - Logger.log( "important ::: LOADED AVATAR ::: " + lInfo.url, false );
  579. + Logger.debug( "important ::: LOADED AVATAR ::: " + lInfo.url );
  580. // Logger.log("important ::: LOADED AVATAR XY ::: " + avatar.x + " # " + avatar.y, false );
  581. // Logger.log("important ::: LOADED LOADER XY ::: " + loader.x + " # " + loader.y, false );
  582. avatar.visible = true;
  583. @@ -545,7 +514,7 @@ switch (loginService.status) {
  584.  
  585. private function loadingError (event : Event) : void
  586. {
  587. - Logger.log( "important ::: EROR WHILE LOADING AVATA " + event, false );
  588. + Logger.debug( "important ::: EROR WHILE LOADING AVATA " + event );
  589. try {
  590. var lInfo : LoaderInfo = event.target as LoaderInfo;
  591. clearLoderEvents( lInfo );
  592. @@ -564,13 +533,11 @@ switch (loginService.status) {
  593. avatar.visible = false;
  594. currAvatarID = int.MAX_VALUE;
  595.  
  596. - try {
  597. stateService.stop( );
  598. stateService.removeEventListener( ServiceEvents.COMPLETE, stateServiceComplete );
  599. - logoutService.logout( userData.name, userData.password );
  600. - // ?password needed for logout?
  601. - imCtrl.logout( );
  602. - } catch ( e4 : Error) {}
  603. + // ?password needed for logout? of course not
  604. +//TODO: logoutService.logout( userData.name, userData.password );
  605. +//TODO: imCtrl.logout( );
  606. imCtrl.removeEventListener( IMEvent.ALREADY_LOGGED_IN, imAlreadyLoggedIn );
  607. imCtrl.removeEventListener( IMEvent.FAILED, imFailed );
  608. clubInstance.moduleCtrl.userData.isLoggedIn = false;
  609. @@ -578,11 +545,11 @@ switch (loginService.status) {
  610. password_input = textfieldsScreen1.password_input;
  611. username_input = textfieldsScreen1.username_input;
  612.  
  613. - Logger.log("** TextFieldsScreen1="+textfieldsScreen1, false);
  614. - Logger.log("** password_input="+password_input, false);
  615. - Logger.log("** username_input="+username_input, false);
  616. - Logger.log("** TF:password_input="+textfieldsScreen1.password_input, false);
  617. - Logger.log("** TF:username_input="+textfieldsScreen1.username_input, false);
  618. + Logger.debug("** TextFieldsScreen1="+textfieldsScreen1
  619. + +"\n** password_input="+password_input
  620. + +"\n** username_input="+username_input
  621. + +"\n** TF:password_input="+textfieldsScreen1.password_input
  622. + +"\n** TF:username_input="+textfieldsScreen1.username_input);
  623.  
  624. username_input.maxChars = 20;
  625. password_input.maxChars = 20;
  626. --
  627. 1.7.0.54.g1958e.dirty
Advertisement
Add Comment
Please, Sign In to add comment