当前位置: 首页>>代码示例>>PHP>>正文


PHP interPool::getIdPoolForLogin方法代码示例

本文整理汇总了PHP中interPool::getIdPoolForLogin方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::getIdPoolForLogin方法的具体用法?PHP interPool::getIdPoolForLogin怎么用?PHP interPool::getIdPoolForLogin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在interPool的用法示例。


在下文中一共展示了interPool::getIdPoolForLogin方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: interPool

             $pool->dbClose();
         }
     }
 } else {
     if (!isset($_GET['logout'])) {
         $pool = new interPool();
         if (!is_null($pool->readCookie("pmh"))) {
             $cValue = $pool->readCookie("pmh");
             $cValueA = explode(":", $cValue);
             $username = $cValueA[0];
             $password = $cValueA[1];
             $id_pool = $cValueA[2];
             if (!$pool->dbConnect("pmh")) {
                 $message = "Problèmes avec la base de données. Ré-essayez plus tard...";
             } else {
                 $id_pool = $pool->getIdPoolForLogin("PMH");
                 $rtn = $pool->validate_login($username, $password, $id_pool);
                 $rtnL = explode(" ", $rtn);
                 if ($rtnL[0] != "OK") {
                     $message = $rtn;
                 } else {
                     $id_gerant = $rtnL[1];
                     $id_saison = $pool->getSaisonID($id_pool);
                     $periode = $pool->getPeriode($id_pool, $id_saison);
                     $pool->set_account_stats($id_pool, $id_gerant, $id_saison);
                     $pool_type = $pool->getPoolType($id_pool, $id_saison);
                     $sess->setSessVar('authenticated', TRUE);
                     // Set that authentication occurred.
                     $sess->setSessVar('id_pool', $id_pool);
                     // Store the ligue_id in the session
                     $sess->setSessVar('user', $username);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:index_pmh.php

示例2: interPool

             $pool->dbClose();
         }
     }
 } else {
     if (!isset($_GET['logout'])) {
         $pool = new interPool();
         if (!is_null($pool->readCookie("lge"))) {
             $cValue = $pool->readCookie("lge");
             $cValueA = explode(":", $cValue);
             $username = $cValueA[0];
             $password = $cValueA[1];
             $id_pool = $cValueA[2];
             if (!$pool->dbConnect("lge")) {
                 $message = "Problèmes avec la base de données. Ré-essayez plus tard...";
             } else {
                 $id_pool = $pool->getIdPoolForLogin("LGE");
                 $rtn = $pool->validate_login($username, $password, $id_pool);
                 $rtnL = explode(" ", $rtn);
                 if ($rtnL[0] != "OK") {
                     $message = $rtn;
                 } else {
                     $id_gerant = $rtnL[1];
                     $id_saison = $pool->getSaisonID($id_pool);
                     $periode = $pool->getPeriode($id_pool, $id_saison);
                     $pool->set_account_stats($id_pool, $id_gerant, $id_saison);
                     $pool_type = $pool->getPoolType($id_pool, $id_saison);
                     $sess_param['errors_path'] = "./src/";
                     $sess_param['new_sid'] = TRUE;
                     // Create new session ID to be safe.
                     $sess_param['name'] = "INTERPOOL";
                     $sess = new DB_eSession($sess_param);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:index_lge.php

示例3: interPool

             $pool->dbClose();
         }
     }
 } else {
     if (!isset($_GET['logout'])) {
         $pool = new interPool();
         if (!is_null($pool->readCookie("bchtl"))) {
             $cValue = $pool->readCookie("bchtl");
             $cValueA = explode(":", $cValue);
             $username = $cValueA[0];
             $password = $cValueA[1];
             $id_pool = $cValueA[2];
             if (!$pool->dbConnect()) {
                 $message = "Problèmes avec la base de données. Ré-essayez plus tard...";
             } else {
                 $id_pool = $pool->getIdPoolForLogin("BCHTL");
                 $rtn = $pool->validate_login($username, $password, $id_pool);
                 $rtnL = explode(" ", $rtn);
                 if ($rtnL[0] != "OK") {
                     $message = $rtn;
                 } else {
                     $id_gerant = $rtnL[1];
                     $id_saison = $pool->getSaisonID($id_pool);
                     $periode = $pool->getPeriode($id_pool, $id_saison);
                     $pool->set_account_stats($id_pool, $id_gerant, $id_saison);
                     $pool_type = $pool->getPoolType($id_pool, $id_saison);
                     $sess->setSessVar('authenticated', TRUE);
                     // Set that authentication occurred.
                     $sess->setSessVar('id_pool', $id_pool);
                     // Store the ligue_id in the session
                     $sess->setSessVar('user', $username);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:index_bchtl.php


注:本文中的interPool::getIdPoolForLogin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。