Example #1
0
 public function __construct(&$doorGets, $dataInfo = array())
 {
     $this->dataInfo = $dataInfo;
     $this->doorGets = $doorGets;
     $this->installDB = new DoDatabaseInstaller($doorGets);
     parent::__construct($doorGets->myLanguage);
 }
Example #2
0
 public function __construct($lg = 'fr')
 {
     parent::__construct($lg);
     $this->lg = URL . 't/' . $lg . '/';
     $base = $this->lg;
     $this->xmlOut = '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
     $this->xmlOut .= "<url><loc>{$base}</loc><priority>1.00</priority><changefreq>daily</changefreq></url>";
     $this->Gen();
     $this->xmlOut .= '</urlset>';
     $fileSitemap = BASE . 'sitemap.xml';
     $newXml = new SimpleXMLElement($this->xmlOut);
     $newXml->asXML($fileSitemap);
     $aL = $this->allLanguages;
     foreach ($aL as $k => $v) {
         parent::__construct($k);
         $this->lg = URL . 't/' . $k . '/';
         $base = $this->lg;
         $this->xmlOut = '';
         $this->xmlOut = '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
         $this->xmlOut .= "<url><loc>{$base}</loc><priority>1.00</priority><changefreq>daily</changefreq></url>";
         $this->Gen();
         $this->xmlOut .= '</urlset>';
         $fileSitemap = BASE . 't/' . $k . '/sitemap.xml';
         $newXml = new SimpleXMLElement($this->xmlOut);
         $newXml->asXML($fileSitemap);
     }
 }
Example #3
0
 public function __construct($controllerName = "index")
 {
     parent::__construct('en');
     $this->user = $this->isValidAccessToken();
     $this->controllerNameNow = $controllerName;
     $this->isUserLogged = $this->user ? true : false;
     $this->loadRequestMethod();
     $this->getParams();
     $this->getController();
     $this->reloadController();
 }
Example #4
0
 public function __construct($controllerName = "index", $user = array())
 {
     parent::__construct('en');
     $this->user = $user;
     $this->controllerNameNow = $controllerName;
     if (!empty($user)) {
         $this->isUserLogged = true;
     }
     $this->getParams();
     $this->getController();
     $this->reloadController();
 }
 public function __construct()
 {
     parent::__construct();
     $this->getParams();
     $hasOneclickInstaller = $this->isOneclickInstaller();
     if ($hasOneclickInstaller) {
         $this->checkModulesAndExtensions();
         $this->initOneclickInstaller();
     } else {
         $this->init();
     }
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->getParams();
     $hasOneclickInstaller = $this->isOneclickInstaller();
     if ($hasOneclickInstaller) {
         $this->checkModulesAndExtensions();
         $this->initOneclickInstaller();
     } else {
         $this->init();
     }
     $this->hasRtl = $this->Language === 'iw' || $this->Language === 'ar' ? true : false;
 }
Example #7
0
 public function __construct($init = 0, $lg = "fr")
 {
     parent::__construct($lg);
     $this->loadModuleValid();
     if (!empty($_GET) && empty($init)) {
         foreach ($_GET as $k => $v) {
             if (array_key_exists($k, $this->ModulesInfo)) {
                 $this->simpleModuleToRss($k);
             }
         }
     } else {
         $this->Get = $this->getAllToRss();
     }
 }
Example #8
0
 public function __construct($id_Website, $controllerName = "index", $langue = 'fr', $zoneArea = 'bigadmin', $user = array())
 {
     $this->timeExecution = microtime(true);
     $this->langueZone = $langue;
     $this->zoneArea = $zoneArea;
     $this->controllerNameNow = $controllerName;
     $this->user = $user;
     if (empty($langue)) {
         $db = new CRUD();
         $isWebsite = $db->dbQS($id_Website, '_website');
         if (!empty($isWebsite)) {
             $langue = $isWebsite['langue_front'];
             $isWebsite['langue_groupe'] = unserialize($isWebsite['langue_groupe']);
             $isWebsite['langue_groupe'][$langue] = $langue;
             $urlToRedirect = URL_USER . $langue . '/';
             $cLangues = count($isWebsite['langue_groupe']);
             if ($cLangues === 1) {
                 $urlToRedirect = URL;
             }
             if ($cLangues > 1) {
                 header('HTTP/1.1 301 Moved Permanently', false, 301);
                 header('Location: ' . $urlToRedirect);
                 exit;
             }
         }
     }
     if (!empty($this->user) && $zoneArea === 'user' && $_SESSION['doorgets_user']['langue'] !== $langue && $controllerName !== 'changelangue') {
         header('Location: ' . URL_USER . $_SESSION['doorgets_user']['langue'] . '/');
         exit;
     }
     parent::__construct($langue);
     if (!empty($this->user) && !empty($this->user['timezone'])) {
         date_default_timezone_set($this->user['timezone']);
     }
     $this->getParams();
     $this->getController();
     $this->reloadController();
     $this->isRtlLanguage = in_array($this->myLanguage, Constant::$rtlLanguage) ? true : false;
 }
Example #9
0
 public function __construct($lg = '')
 {
     $this->User = new AuthUser();
     $isUser = $this->User->isConnected();
     if (!empty($isUser)) {
         $this->_User = $isUser;
         $this->isUser = true;
     }
     $lgTemp = $lg;
     if (empty($lg)) {
         $db = new CRUD();
         $isWebsite = $db->dbQS(1, '_website');
         if (!empty($isWebsite)) {
             $lgTemp = $isWebsite['langue_front'];
             $isWebsite['langue_groupe'] = unserialize($isWebsite['langue_groupe']);
             $isWebsite['langue_groupe'][$lgTemp] = $lgTemp;
             $urlToRedirect = URL . 't/' . $lgTemp;
             $cLangues = count($isWebsite['langue_groupe']);
             if ($cLangues === 1) {
                 $urlToRedirect = URL;
             }
             if ($cLangues > 1) {
                 header('HTTP/1.1 301 Moved Permanently', false, 301);
                 header('Location: ' . $urlToRedirect);
                 exit;
             }
         }
     }
     if (!empty($isUser)) {
         $this->_lgUrl = $isUser['langue'] . '/';
     }
     parent::__construct($lgTemp);
     if (!empty($lg) && array_key_exists($lgTemp, $this->allLanguages)) {
         $this->configWeb['langue_front'] = $lgTemp;
     }
     if (!empty($lg) && count($this->allLanguagesWebsite) === 1) {
         header('HTTP/1.1 301 Moved Permanently', false, 301);
         header('Location: ' . URL);
         exit;
     }
     if (!array_key_exists($this->configWeb['langue_front'], $this->configWeb['langue_groupe']) && empty($this->allLanguagesWebsite)) {
         header('Location:' . URL . '#');
         exit;
     }
     @date_default_timezone_set($this->configWeb['horaire']);
     $this->myLanguage = $this->configWeb['langue_front'];
     $this->module = $this->configWeb['module_homepage'];
     $this->theme = $this->configWeb['theme'];
     $this->rubriques = $this->getRubriques('_rubrique');
     $this->activeModules = $this->getAllActiveModules();
     // Widget Newsletter init
     $this->initNewsletterWidget();
     $themeExists = $this->checkTheme();
     if (empty($themeExists)) {
         die('The dir <b>' . THEME . '/' . $this->theme . '</b> not found.');
     }
     $this->htmlContent = $this->getHtmlWaitingPage();
     $isIpUserStatut = $this->isIpUserStatut();
     if ($this->configWeb['statut'] === '1' || $isIpUserStatut) {
         $this->loadParams();
         $this->loadPosition();
         if ($this->position == 'error') {
             $this->redirectToErrorHeader();
         }
         $this->loadMeta();
         $this->isRtlLanguage = in_array($this->myLanguage, Constant::$rtlLanguage) ? true : false;
         // Widget Comment init
         $this->initCommentWidget();
         $this->genController();
         $this->htmlContent = $this->getHtmlWrapper();
     }
 }
Example #10
0
 public function __construct(&$doorGets, $dataInfo = array())
 {
     $this->dataInfo = $dataInfo;
     $this->doorGets = $doorGets;
     parent::__construct($doorGets->myLanguage);
 }
Example #11
0
 public function __construct($lg = 'fr')
 {
     parent::__construct($lg);
     $this->genHTML();
 }
Example #12
0
 public function __construct($id)
 {
     parent::__construct();
     $isUser = $this->dbQS($id, '_users_info', 'id_user');
     if (!empty($isUser)) {
         $isUser['count_notification'] = 0;
         $isUser['count_track'] = 0;
         $isUser['last_connexion'] = 0;
         $isUser['total_contribution'] = 0;
         $isUser['network_name'] = '-';
         $nameGroupe = $this->dbQS($isUser['network'], '_users_groupes');
         if (!empty($nameGroupe)) {
             $isUser['network_name'] = $nameGroupe['title'];
         }
         $isUser['date_creation'] = GetDate::in($isUser['date_creation']);
         $isUserNotification = $this->dbQ("SELECT count(*) as counter FROM _users_notification WHERE id_user = "******"SELECT date  FROM _users_notification WHERE id_user = "******" ORDER BY date DESC LIMIT 1");
         if (!empty($isUserLastConnexion)) {
             $isUser['last_connexion'] = GetDate::in($isUserLastConnexion[0]['date']);
         }
         $isUserTrack = $this->dbQ("SELECT count(*) as counter FROM _users_track WHERE id_user = "******"SELECT count(*) as counter FROM _m_" . $nameModule . " WHERE id_user = "******" ");
                             $countContents = (int) $isCounterContents[0]['counter'];
                             $realCount = $realCount + $countContents;
                         }
                         $outListeTypeModule[$nameModule]['count'] = $countContents;
                     }
                 }
                 $isUser['total_contribution'] = $realCount;
                 $isUser['liste_module'] = $outListeTypeModule;
             }
         }
         /*
                     $out = '';
             
                         $blockInfos = new BlockTable();
                         $blockInfos->setClassCass('doorgets-listing');
                         
                         $blockInfos->addTitle($this->getWords("Date d'inscription"),'date_inscription',' td-title center');
                         $blockInfos->addTitle($this->getWords("Dérnnière connexion"),'date_connexion',' td-title center');
                         $blockInfos->addTitle($this->getWords("Nbre de contibution"),'nb_contribution',' td-title center');
                         $blockInfos->addTitle($this->getWords("Nbre d'action"),'nb_action',' td-title center');
                         $blockInfos->addTitle($this->getWords("Nbre de page afficher"),'nb_page',' td-title center');
                         
                         $blockInfos->addContent('date_inscription',$isUser['date_creation'],'center');
                         $blockInfos->addContent('date_connexion',$isUser['last_connexion'],'center' );
                         $blockInfos->addContent('nb_contribution',$isUser['total_contribution'],'center' );
                         $blockInfos->addContent('nb_action',$isUser['count_track'],'center' );
                         $blockInfos->addContent('nb_page',$isUser['count_notification'],'center' );
                         
                         if (!empty($isUser['liste_module'])) {
                             
                             $blockModule = new BlockTable();
                             $blockModule->setClassCass('doorgets-listing');
                             $blockModule->addTitle($this->getWords("Module"),'module','first-title td-title left');
                             $blockModule->addTitle($this->getWords("Type"),'titre','td-title center');
                             $blockModule->addTitle($this->getWords("Nbre de contribution"),'nb_contribution','td-title center');
                             
                             foreach($isUser['liste_module'] as $k=>$v) {
                                 
                                 $blockModule->addContent('module',$k );
                                 $blockModule->addContent('titre',$v['type'],'center' );
                                 $blockModule->addContent('nb_contribution',$v['count'],'center' );
                             }
                         }
                         
                         $fTpl = GenView::getAdmin('doorgets','users/info.dguser.tpl.php');
                         ob_start();
                         include $fTpl;
                         $out = ob_get_clean();
                    
         $this->user = $out;
         */
     }
     return $isUser;
 }
Example #13
0
 public function __construct($resetToken = true, $verifPayment = true)
 {
     parent::__construct('fr');
     if (isset($_SESSION['doorgets_user']) && isset($_SESSION['doorgets_user']['login']) && isset($_SESSION['doorgets_user']['token'])) {
         extract($_SESSION['doorgets_user']);
         $userExist = $this->dbQS($login, '_users', 'login');
         if (!empty($userExist) && $token === $userExist['token']) {
             $userExistInfo = $this->dbQS($userExist['id'], '_users_info', 'id_user');
             if (!empty($userExistInfo)) {
                 parent::__construct($userExistInfo['langue']);
                 $userExistInfoGroupe = $this->dbQS($userExistInfo['network'], '_users_groupes');
                 if (!empty($userExistInfoGroupe)) {
                     // Load all data about user
                     $this->isConnected['profile_type'] = $userExistInfo['profile_type'];
                     $this->isConnected['id'] = $userExist['id'];
                     $this->isConnected['groupe'] = $userExistInfo['network'];
                     $this->isConnected['login'] = $userExist['login'];
                     $this->isConnected['timezone'] = $userExistInfo['horaire'];
                     $this->isConnected['pseudo'] = $userExistInfo['pseudo'];
                     $this->isConnected['langue'] = $userExistInfo['langue'];
                     $this->isConnected['last_name'] = $userExistInfo['last_name'];
                     $this->isConnected['first_name'] = $userExistInfo['first_name'];
                     $this->isConnected['description'] = $userExistInfo['description'];
                     $this->isConnected['website'] = $userExistInfo['website'];
                     $this->isConnected['id_facebook'] = $userExistInfo['id_facebook'];
                     $this->isConnected['id_twitter'] = $userExistInfo['id_twitter'];
                     $this->isConnected['id_youtube'] = $userExistInfo['id_youtube'];
                     $this->isConnected['id_google'] = $userExistInfo['id_google'];
                     $this->isConnected['id_pinterest'] = $userExistInfo['id_pinterest'];
                     $this->isConnected['id_linkedin'] = $userExistInfo['id_linkedin'];
                     $this->isConnected['id_myspace'] = $userExistInfo['id_myspace'];
                     $this->isConnected['company'] = $userExistInfo['company'];
                     $this->isConnected['country'] = $userExistInfo['country'];
                     $this->isConnected['city'] = $userExistInfo['city'];
                     $this->isConnected['zipcode'] = $userExistInfo['zipcode'];
                     $this->isConnected['adresse'] = $userExistInfo['adresse'];
                     $this->isConnected['tel_fix'] = $userExistInfo['tel_fix'];
                     $this->isConnected['tel_mobil'] = $userExistInfo['tel_mobil'];
                     $this->isConnected['tel_fax'] = $userExistInfo['tel_fax'];
                     $this->isConnected['region'] = $userExistInfo['region'];
                     $this->isConnected['avatar'] = $userExistInfo['avatar'];
                     $this->isConnected['gender'] = $userExistInfo['gender'];
                     $this->isConnected['birthday'] = $userExistInfo['birthday'];
                     $this->isConnected['notification_mail'] = $userExistInfo['notification_mail'];
                     $this->isConnected['notification_newsletter'] = $userExistInfo['notification_newsletter'];
                     $this->isConnected['liste_widget'] = $this->_toArray($userExistInfoGroupe['liste_widget']);
                     $this->isConnected['liste_module'] = $this->_toArray($userExistInfoGroupe['liste_module']);
                     $this->isConnected['liste_module_interne'] = $this->_toArray($userExistInfoGroupe['liste_module_interne']);
                     $this->isConnected['liste_enfant'] = $this->_toArray($userExistInfoGroupe['liste_enfant']);
                     $this->isConnected['liste_module_limit'] = $this->_toArrayKeys($userExistInfoGroupe['liste_module_limit']);
                     $this->isConnected['liste_module_list'] = $this->_toArray($userExistInfoGroupe['liste_module_list']);
                     $this->isConnected['liste_module_show'] = $this->_toArray($userExistInfoGroupe['liste_module_show']);
                     $this->isConnected['liste_module_add'] = $this->_toArray($userExistInfoGroupe['liste_module_add']);
                     $this->isConnected['liste_module_edit'] = $this->_toArray($userExistInfoGroupe['liste_module_edit']);
                     $this->isConnected['liste_module_delete'] = $this->_toArray($userExistInfoGroupe['liste_module_delete']);
                     $this->isConnected['liste_module_admin'] = $this->_toArray($userExistInfoGroupe['liste_module_admin']);
                     $this->isConnected['liste_module_modo'] = $this->_toArray($userExistInfoGroupe['liste_module_modo']);
                     $this->isConnected['liste_module_interne_modo'] = $this->_toArray($userExistInfoGroupe['liste_module_interne_modo']);
                     $this->isConnected['liste_enfant_modo'] = $this->_toArray($userExistInfoGroupe['liste_enfant_modo']);
                     $this->isConnected['liste_enfant'] = $this->_toArray($userExistInfoGroupe['liste_enfant']);
                     $this->isConnected['attributes'] = unserialize(base64_decode($userExistInfoGroupe['attributes']));
                     $this->isConnected['editor_group'] = array('-- ' . $this->__('Aucun') . ' --');
                     $this->isConnected['editor_html'] = $userExistInfo['editor_html'];
                     $this->isConnected['fileman'] = $userExistInfoGroupe['fileman'];
                     // $this->isConnected['payment']                       = ($userExistInfoGroupe['payment'] == '1')?true:false;
                     // $this->isConnected['payment_currency']              = $userExistInfoGroupe['payment_currency'];
                     // $this->isConnected['payment_amount_month']          = $userExistInfoGroupe['payment_amount_month'];
                     // $this->isConnected['payment_group_expired']         = $userExistInfoGroupe['payment_group_expired'];
                     // $this->isConnected['payment_tranche']               = $userExistInfoGroupe['payment_tranche'];
                     // $this->isConnected['payment_group_upgrade']         = $userExistInfoGroupe['payment_group_upgrade'];
                     if (!empty($userExistInfoGroupe['editor_ckeditor'])) {
                         $this->isConnected['editor_group']['editor_ckeditor'] = 'editor_ckeditor';
                     }
                     if (!empty($userExistInfoGroupe['editor_tinymce'])) {
                         $this->isConnected['editor_group']['editor_tinymce'] = 'editor_tinymce';
                     }
                     if (array_key_exists('langue_temp', $_SESSION['doorgets_user'])) {
                         $this->isConnected['langue'] = $_SESSION['doorgets_user']['langue_temp'];
                     }
                     if (empty($userExistInfoGroupe['saas_options'])) {
                         $this->isConnected['saas_options'] = array('saas_add' => false, 'saas_delete' => false, 'saas_limit' => 0, 'saas_date_end' => 0);
                     } else {
                         $this->isConnected['saas_options'] = unserialize(base64_decode($userExistInfoGroupe['saas_options']));
                     }
                     $sesssionId = session_id();
                     $surveryData = array('pseudo' => $this->isConnected['pseudo'], 'id_user' => $this->isConnected['id'], 'id_groupe' => $this->isConnected['groupe']);
                     $this->dbQU($sesssionId, $surveryData, '_dg_survey_response', 'id_session', '');
                     // echo '<pre>';
                     // var_dump($this->isConnected['liste_module_interne']);
                     // exit;
                     // reset token
                     // if ($resetToken) {
                     //     $_token = $_SESSION['doorgets_user']['token'] = md5(uniqid(mt_rand(), true));
                     //     $this->dbQU($userExist['id'],array('token'=>$_token),'_users');
                     // }
                 }
             }
         }
     }
     return null;
 }
Example #14
0
 public function __construct($resetToken = true)
 {
     parent::__construct('fr');
     if (isset($_SESSION['doorgets_user']) && isset($_SESSION['doorgets_user']['login']) && isset($_SESSION['doorgets_user']['token'])) {
         extract($_SESSION['doorgets_user']);
         $userExist = $this->dbQS($login, '_users', 'login');
         if (!empty($userExist) && $token === $userExist['token']) {
             $userExistInfo = $this->dbQS($userExist['id'], '_users_info', 'id_user');
             if (!empty($userExistInfo)) {
                 parent::__construct($userExistInfo['langue']);
                 $userExistInfoGroupe = $this->dbQS($userExistInfo['network'], '_users_groupes');
                 if (!empty($userExistInfoGroupe)) {
                     // Load all data about user
                     $this->isConnected['profile_type'] = $userExistInfo['profile_type'];
                     $this->isConnected['id'] = $userExist['id'];
                     $this->isConnected['groupe'] = $userExistInfo['network'];
                     $this->isConnected['login'] = $userExist['login'];
                     $this->isConnected['timezone'] = $userExistInfo['horaire'];
                     $this->isConnected['pseudo'] = $userExistInfo['pseudo'];
                     $this->isConnected['langue'] = $userExistInfo['langue'];
                     $this->isConnected['last_name'] = $userExistInfo['last_name'];
                     $this->isConnected['first_name'] = $userExistInfo['first_name'];
                     $this->isConnected['description'] = $userExistInfo['description'];
                     $this->isConnected['website'] = $userExistInfo['website'];
                     $this->isConnected['id_facebook'] = $userExistInfo['id_facebook'];
                     $this->isConnected['id_twitter'] = $userExistInfo['id_twitter'];
                     $this->isConnected['id_youtube'] = $userExistInfo['id_youtube'];
                     $this->isConnected['id_google'] = $userExistInfo['id_google'];
                     $this->isConnected['id_pinterest'] = $userExistInfo['id_pinterest'];
                     $this->isConnected['id_linkedin'] = $userExistInfo['id_linkedin'];
                     $this->isConnected['id_myspace'] = $userExistInfo['id_myspace'];
                     $this->isConnected['country'] = $userExistInfo['country'];
                     $this->isConnected['city'] = $userExistInfo['city'];
                     $this->isConnected['zipcode'] = $userExistInfo['zipcode'];
                     $this->isConnected['adresse'] = $userExistInfo['adresse'];
                     $this->isConnected['tel_fix'] = $userExistInfo['tel_fix'];
                     $this->isConnected['tel_mobil'] = $userExistInfo['tel_mobil'];
                     $this->isConnected['tel_fax'] = $userExistInfo['tel_fax'];
                     $this->isConnected['avatar'] = $userExistInfo['avatar'];
                     $this->isConnected['gender'] = $userExistInfo['gender'];
                     $this->isConnected['birthday'] = $userExistInfo['birthday'];
                     $this->isConnected['notification_mail'] = $userExistInfo['notification_mail'];
                     $this->isConnected['notification_newsletter'] = $userExistInfo['notification_newsletter'];
                     $this->isConnected['liste_widget'] = $this->_toArray($userExistInfoGroupe['liste_widget']);
                     $this->isConnected['liste_module'] = $this->_toArray($userExistInfoGroupe['liste_module']);
                     $this->isConnected['liste_module_interne'] = $this->_toArray($userExistInfoGroupe['liste_module_interne']);
                     $this->isConnected['liste_enfant'] = $this->_toArray($userExistInfoGroupe['liste_enfant']);
                     $this->isConnected['liste_module_limit'] = $this->_toArrayKeys($userExistInfoGroupe['liste_module_limit']);
                     $this->isConnected['liste_module_list'] = $this->_toArray($userExistInfoGroupe['liste_module_list']);
                     $this->isConnected['liste_module_show'] = $this->_toArray($userExistInfoGroupe['liste_module_show']);
                     $this->isConnected['liste_module_add'] = $this->_toArray($userExistInfoGroupe['liste_module_add']);
                     $this->isConnected['liste_module_edit'] = $this->_toArray($userExistInfoGroupe['liste_module_edit']);
                     $this->isConnected['liste_module_delete'] = $this->_toArray($userExistInfoGroupe['liste_module_delete']);
                     $this->isConnected['liste_module_admin'] = $this->_toArray($userExistInfoGroupe['liste_module_admin']);
                     $this->isConnected['liste_module_modo'] = $this->_toArray($userExistInfoGroupe['liste_module_modo']);
                     $this->isConnected['liste_module_interne_modo'] = $this->_toArray($userExistInfoGroupe['liste_module_interne_modo']);
                     $this->isConnected['liste_enfant_modo'] = $this->_toArray($userExistInfoGroupe['liste_enfant_modo']);
                     $this->isConnected['liste_enfant'] = $this->_toArray($userExistInfoGroupe['liste_enfant']);
                     $this->isConnected['attributes'] = @unserialize($userExistInfoGroupe['attributes']);
                     $this->isConnected['editor_group'] = array('-- ' . $this->__('Aucun') . ' --');
                     $this->isConnected['editor_html'] = $userExistInfo['editor_html'];
                     if (!empty($userExistInfoGroupe['editor_ckeditor'])) {
                         $this->isConnected['editor_group']['editor_ckeditor'] = 'editor_ckeditor';
                     }
                     if (!empty($userExistInfoGroupe['editor_tinymce'])) {
                         $this->isConnected['editor_group']['editor_tinymce'] = 'editor_tinymce';
                     }
                     // Users tracking
                     $this->_trackMe($userExist['id']);
                     if (array_key_exists('langue_temp', $_SESSION['doorgets_user'])) {
                         $this->isConnected['langue'] = $_SESSION['doorgets_user']['langue_temp'];
                     }
                     // reset token
                     // if ($resetToken) {
                     //     $_token = $_SESSION['doorgets_user']['token'] = md5(uniqid(mt_rand(), true));
                     //     $this->dbQU($userExist['id'],array('token'=>$_token),'_users');
                     // }
                 }
             }
         }
     }
     return null;
 }
Example #15
0
 public function __construct($lg = '', $userId = 0)
 {
     $this->timeExecution = microtime(true);
     parent::__construct($lg, $userId);
 }