Advertisement
Guest User

Untitled

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