<commit_before><?php

/*
 @file 	dashboard.actiongroup.php
 @desc		Dashboard constructor
 @version 	1.0.2
 @date 	2010-05-28 09:28:09 +0200 (Fri, 28 May 2010)
 @author 	S.HOLTZ <<EMAIL>>

 Copyright (c) 2010 CAP-TIC <http://www.cap-tic.fr>
 */


_classInclude('welcome|welcome');

class ActionGroupDefault extends enicActionGroup {

	function processDefault() {

		$tpl = & new CopixTpl ();
		$tplModule = & new CopixTpl ();

		//if user is not connected :
		if (1) {
			// S'il y a un blog prevu a l'accueil
			$dispBlog = false;
			$getKernelLimitsIdBlog = Kernel::getKernelLimits('id_blog');
			if ( $getKernelLimitsIdBlog ) {
					_classInclude ('blog|kernelblog');
					if ($blog = _ioDao('blog|blog')->getBlogById ($getKernelLimitsIdBlog)) {
						// On vrifie qu'il y a au moins un article
						$stats = KernelBlog::getStats ($blog->id_blog);
						if ($stats['nbArticles']['value']>0)
							$dispBlog = true;
					}
				}
			if ($dispBlog) return CopixActionGroup::process ('blog|frontblog::getListArticle', array ('blog'=>$blog->url_blog));	
   	   
			CopixHtmlHeader::addOthers ('<link rel="alternate" href="'.CopixUrl::get ('public||rss', array()).'" type="application/rss+xml" title="'.htmlentities(CopixI18N::get ('public|public.rss.flux.title')).'" />');

      $result = $tplModule->fetch('welcome|welcome_'.CopixI18N::getLang().'.tpl');

			$tpl->assign ('TITLE_PAGE', ''.CopixI18N::get ('public|public.welcome.title'));  
			$tpl->assign('MAIN', $result);
			return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
		}
	}
}<commit_msg>Welcome / Ajout du _currentUser ()<commit_after><?php

/*
 @file 	dashboard.actiongroup.php
 @desc		Dashboard constructor
 @version 	1.0.2
 @date 	2010-05-28 09:28:09 +0200 (Fri, 28 May 2010)
 @author 	S.HOLTZ <<EMAIL>>

 Copyright (c) 2010 CAP-TIC <http://www.cap-tic.fr>
 */


_classInclude('welcome|welcome');

class ActionGroupDefault extends enicActionGroup {

	function processDefault() {

		$tpl = & new CopixTpl ();
		$tplModule = & new CopixTpl ();

		//if user is not connected :
		if (1) {
			// S'il y a un blog prevu a l'accueil
			$dispBlog = false;
			$getKernelLimitsIdBlog = Kernel::getKernelLimits('id_blog');
			if ( $getKernelLimitsIdBlog ) {
					_classInclude ('blog|kernelblog');
					if ($blog = _ioDao('blog|blog')->getBlogById ($getKernelLimitsIdBlog)) {
						// On vrifie qu'il y a au moins un article
						$stats = KernelBlog::getStats ($blog->id_blog);
						if ($stats['nbArticles']['value']>0)
							$dispBlog = true;
					}
				}
			if ($dispBlog) return CopixActionGroup::process ('blog|frontblog::getListArticle', array ('blog'=>$blog->url_blog));	
   	   
			CopixHtmlHeader::addOthers ('<link rel="alternate" href="'.CopixUrl::get ('public||rss', array()).'" type="application/rss+xml" title="'.htmlentities(CopixI18N::get ('public|public.rss.flux.title')).'" />');
      
      $tplModule->assign('user', _currentUser ());
      $result = $tplModule->fetch('welcome|welcome_'.CopixI18N::getLang().'.tpl');

			$tpl->assign ('TITLE_PAGE', ''.CopixI18N::get ('public|public.welcome.title'));  
			$tpl->assign('MAIN', $result);
			return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
		}
	}
}
{'fraction_non_alphanumeric': 0.17902010050251257, 'fraction_numerical': 0.024497487437185928, 'mean_word_length': 4.096, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '683130', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1141, 'n_words': 222}