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


PHP CSession::get方法代码示例

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


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

示例1: checkRight

 /**
  * 是否有权限
  */
 public static function checkRight($thisRoute = null)
 {
     // 用户资源
     $userData = CSession::get('user');
     if ($userData['groupId'] == 1) {
         return true;
     }
     $userRightList = isset($userData['rightAll']) ? $userData['rightAll'] : array();
     // 附加公共资源
     array_push($userRightList, 'system@welcome');
     array_push($userRightList, 'system@navList');
     array_push($userRightList, 'system@addNav');
     array_push($userRightList, 'system@addNavHandle');
     array_push($userRightList, 'system@ajaxAddNav');
     array_push($userRightList, 'system@editNav');
     array_push($userRightList, 'system@editNavHandle');
     array_push($userRightList, 'system@delNav');
     array_push($userRightList, 'system@changeMyPassword');
     array_push($userRightList, 'system@changeMyPassHandle');
     array_push($userRightList, 'adminRole@messageCenterForClient');
     array_push($userRightList, 'system@seeHelp');
     // 转小写
     foreach ($userRightList as $key => $val) {
         $userRightList[$key] = strtolower($val);
     }
     // 获取当前请求的路由
     if ($thisRoute == null) {
         $route = CRequest::getController() . '@' . str_replace(CConfig::getInstance()->load('ACTION_PREFIX'), '', CRequest::getAction());
     } else {
         $route = $thisRoute;
     }
     return in_array(strtolower($route), $userRightList);
 }
开发者ID:seiven,项目名称:ACEAdminForMyframework,代码行数:36,代码来源:AdminController.php

示例2: MiddleModuleInit

 /**
  * @return void
  */
 public function MiddleModuleInit()
 {
     $sScreenName = $this->GetScreenName();
     if (isset($_GET['mode']) && isset($this->aMenu[$_GET['mode']])) {
         CSession::Set($sScreenName . self::SESS_MODE, $_GET['mode']);
     }
     $this->sMode = CSession::get($sScreenName . self::SESS_MODE, $this->aMenuDefMode);
 }
开发者ID:Git-Host,项目名称:email,代码行数:11,代码来源:standard.php

示例3: TemplateValues

 public function TemplateValues()
 {
     $sFootError = '';
     if (CSession::Has('wm_install_pass_error')) {
         $sFootError = CSession::get('wm_install_pass_error', '');
         CSession::clear('wm_install_pass_error');
     }
     return array('Login' => $this->oSettings->GetConf('Common/AdminLogin'), 'Password1' => '', 'Password2' => '', 'FootError' => $sFootError);
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:9,代码来源:admin-panel.php

示例4: filterRight

 /**
  * 过滤资源
  */
 public function filterRight($right)
 {
     $userData = CSession::get('user');
     $groupId = $userData['groupData']['gid'];
     if ($groupId == 1) {
         return $right;
     }
     // 自身权限
     $selfRight = $userData['groupData']['rightList'];
     $selfRightArr = explode(',', $selfRight);
     foreach ($right as $name => $list) {
         foreach ($list as $key => $val) {
             if (!in_array($val[$this->pkName()], $selfRightArr)) {
                 unset($right[$name][$key]);
             }
         }
     }
     return $right;
 }
开发者ID:seiven,项目名称:ACEAdminForMyframework,代码行数:22,代码来源:adminRightsModel.php

示例5: filterCanAddRole

 /**
  * 可添加的角色组
  */
 public function filterCanAddRole($list)
 {
     $userData = CSession::get('user');
     $groupId = $userData['groupData']['gid'];
     // 超级管理员给全部资源
     if (1 == $groupId) {
         return $list;
     }
     $category = CDatabase::getInstance()->from('admin_group')->select()->execute()->asArray();
     foreach ($category as $key => $val) {
         $category[$key]['name'] = $val['gname'];
         $category[$key]['id'] = $val['gid'];
     }
     $category = TreeClass::getTree($category);
     // 获取其子类
     $childData = $childDataVal = array();
     TreeClass::getCatTree($groupId, $category, $childData, $childDataVal);
     foreach ($list as $key => $val) {
         if (!in_array($val['gid'], $childData)) {
             unset($list[$key]);
         }
     }
     return $list;
 }
开发者ID:seiven,项目名称:ACEAdminForMyframework,代码行数:27,代码来源:adminRoleModel.php

示例6: getCalUser

 /**
  * Obtains CCalUser object that contains calendar settings for specified user. User identifier is used for look up.
  * 
  * @param int $iUserId User identifier.
  * 
  * @return CCalUser
  */
 public function getCalUser($iUserId)
 {
     $oCalUser = CSession::get(CApiUsersNodbStorage::SESS_ACCOUNT_STORAGE, null);
     return $oCalUser && $iUserId === $oCalUser->IdUser ? clone $oCalUser : null;
 }
开发者ID:Git-Host,项目名称:email,代码行数:12,代码来源:storage.php

示例7: trim

				$groupe->update();
		}
	}
	// FIN INSERTION
	
	
	$a = 0;
	break;
}

/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
--------------------------------------------------------*/
//echo 'session'.$_SESSION['idgroupe'];

$filtre_id_groupe 				= CSession::get('filtre_id_groupe', $id_groupe);
$form_filtrecat 				= $_GET['form_filtrecat'];
$_SESSION['form_filtrecat']     = $form_filtrecat;
$filtre_id_groupe				= $_SESSION['id_groupe'];

if(isset($_REQUEST['id_groupe']) && $_REQUEST['id_groupe']==0) {
	$liste_user_all_groupe = trim(implode(',',CTableGroupeCommune::get_array_id_user_all_groupe()), ',');
	if(empty($liste_user_all_groupe)) {
		$filtre_groupe = '';
	}
	else {
		$filtre_groupe = " WHERE id_com NOT IN (" . $liste_user_all_groupe . ")";
	}	
}
else {
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:30,代码来源:user_groupeCommune.php

示例8: if

case 5 : // Modifier 1
	if(!empty($_GET['id'])) $id = $_GET['id'];
	CFunction::redirection("../src/gr_user.php?a=5&id=" . $id);
	break;
	
case 6 : // Filtrer
	CSession::save($_GET);
	break;
}

/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
--------------------------------------------------------*/
$filtre_etat 		= CSession::get('filtre_etat', $etat);
$filtre_date_debut 	= CDate::date_switch(CSession::get('filtre_date_debut'));
$filtre_date_fin 	= CDate::date_switch(CSession::get('filtre_date_fin'));

if ($_GET['filtre_id_periode']!='%%'){
	if ($_GET['filtre_id_periode']==1){
		$filtreDateDebut = $dSemaine;
		$filtreDateFin   = $dSemaine;
	}
	else if ($_GET['filtre_id_periode']==2){
		$filtreDateDebut = $pSemaine;
		$filtreDateFin   = $dSemaine;
	}else if ($_GET['filtre_id_periode']==3){
		$filtreDateDebut = $pMois;
		$filtreDateFin   = $dMois;
	}
}
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:30,代码来源:gr_rdv.php

示例9: forceGetOrPost

function forceGetOrPost ($_zVarName, $_zDefault = '') {
	if (isset ($_GET[$_zVarName])) {
		return $_GET[$_zVarName];
	}
	elseif (isset ($_POST[$_zVarName])) {
		return $_POST[$_zVarName];
	}
	else {
		CSession::get($_zVarName, $_zDefault);
	}
}
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:11,代码来源:user.php

示例10: array

$filtre_nom 				= CSession::get('filtre_nom', '%%');
$pays_id 			 		= CSession::get('pays_id', '%%');
$sql_idcom="select DISTINCT commune_alias FROM entreprise WHERE pays_ent='".$pays_id."'";
$oRes1 = CBdd::select($sql_idcom) ;
$filtre_prenom				= CSession::get('filtre_prenom', '%%');
$filtre_societe_			= CSession::get('filtre_societe', '%%');
$filtre_societe				= CFunctions::remove($filtre_societe_);
$filtre_secteur_			= CSession::get('filtre_secteur', '%%');
$filtre_secteur				= CFunctions::remove($filtre_secteur_);

$filtre_categorie_			= CSession::get('filtre_categorie', '%%');
$filtre_categorie			= CFunctions::remove($filtre_categorie_);
$filtre_pays				= CSession::get('filtre_pays', '%%');
$filtre_commune				= CSession::get('filtre_commune', '%%');
if (isset($_GET['alphaA']))	$_SESSION['alphaA']	= $_GET['alphaA'];
$filtre_idopportunite		= CSession::get('filtre_idopportunite', array(0));
$filtre = array();

switch($filtre_id_groupe) {
	case '0':
		$liste_user_all_groupe = trim(implode(',',CTableGroupeUtilitaire::get_array_id_user_all_groupe()), ',');
		if($liste_user_all_groupe) {
			$filtre_groupe = " AND id_ent NOT IN (" . $liste_user_all_groupe . ")";
		} else {
			$filtre_groupe = " AND id_ent='0'";
		}
		break;
	case '%%':
		$filtre_groupe = " ";
		break;
	default:
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:contact.php

示例11: Action_delUser

 /**
  * 删除用户
  */
 public function Action_delUser()
 {
     $id = $this->Args('id', 'int');
     $user = CSession::get('user');
     if ($id == $user['id']) {
         $this->displayAjax(false, '您不能删除自己啊~');
     }
     $status = CModel::factory('adminUserModel')->delete(array('id' => $id));
     if (false == $status) {
         $errorMessage = CDatabase::getDatabase()->errorInfo();
         $errorMessage = isset($errorMessage[2]) ? $errorMessage[2] : '';
     }
     $this->displayAjax($status, $errorMessage);
 }
开发者ID:seiven,项目名称:ACEAdminForMyframework,代码行数:17,代码来源:adminRole.php

示例12: filterUser

 /**
  * 过滤权限
  */
 public function filterUser($list)
 {
     $userData = CSession::get('user');
     $groupId = $userData['groupData']['gid'];
     if (1 == $groupId) {
         return $list;
     }
     $category = CDatabase::getInstance()->from('admin_group')->select()->execute()->asArray();
     foreach ($category as $key => $val) {
         $category[$key]['name'] = $val['gname'];
         $category[$key]['id'] = $val['gid'];
     }
     $category = TreeClass::getTree($category);
     // 获取该组ID阔以查看的所有子组ID
     $childData = $childDataVal = array();
     TreeClass::getCatTree($groupId, $category, $childData, $childDataVal);
     // 可以查询的子组ID序列
     $groupList = array();
     foreach ($childDataVal as $key => $val) {
         $groupList[] = $val['gid'];
     }
     foreach ($list as $key => $val) {
         if (!in_array($val['groupId'], $groupList)) {
             unset($list[$key]);
         }
     }
     return $list;
 }
开发者ID:seiven,项目名称:ACEAdminForMyframework,代码行数:31,代码来源:adminUserModel.php

示例13: DomainsMainEdit

 public function DomainsMainEdit(ap_Table_Screen &$oScreen)
 {
     $iAutocheckMail = 0;
     $sDomainSkin = $sDomainLang = $sDomainZone = '';
     $iMessagesPerPage = $iContactsPerPage = 20;
     $iContactsGABVisibility = EContactsGABVisibility::Off;
     /* @var $oDomain CDomain */
     $oDomain = $this->oAdminPanel->GetMainObject('domain_edit');
     if ($oDomain) {
         $bHideProtocol = true;
         if ($oDomain->IsDefaultDomain || CSession::Has(AP_SESS_DOMAIN_NEXT_EDIT_ID) && $oDomain->IdDomain === CSession::get(AP_SESS_DOMAIN_NEXT_EDIT_ID, null)) {
             $oScreen->Data->SetValue('classHideIncomingMailProtocol', '');
         }
         if ($bHideProtocol) {
             $oScreen->Data->SetValue('classHideIncomingMailProtocol', 'wm_hide');
             $oScreen->Data->SetValue('textIncomingMailProtocol', '');
         }
         $oScreen->Data->SetValue('txtFilteHrefAdd', '&filter=' . $oDomain->IdDomain);
         $oScreen->Data->SetValue('radioAuthTypeAuthCurrentUser', true);
         $oScreen->Data->SetValue('classHideSsl', $this->oModule->hasSslSupport() ? '' : 'wm_hide');
         $oScreen->Data->SetValue('txtWebDomain', $oDomain->Url);
         $mLinkWebUrl = $this->oAdminPanel->IsTenantAuthType() ? CApi::GetConf('labs.custom-tenant-link-web-domain-help-url', null) : CApi::GetConf('labs.custom-admin-link-web-domain-help-url', null);
         if (null === $mLinkWebUrl) {
             if ($this->oAdminPanel->AType) {
                 $mLinkWebUrl = 'http://www.afterlogic.com/wiki/Configuring_web_domain_names_(Aurora)';
             } else {
                 $mLinkWebUrl = 'http://www.afterlogic.com/wiki/Configuring_web_domain_names_(WebMail_Pro)';
             }
         }
         if (!empty($mLinkWebUrl)) {
             $oScreen->Data->SetValue('linkWebDomain', $mLinkWebUrl);
         }
         $oScreen->Data->SetValue('classLinkWebDomain', empty($mLinkWebUrl) ? 'wm_hide' : '');
         $oScreen->Data->SetValue('chAllowUsersAccessInterfaveSettings', $oDomain->AllowUsersChangeInterfaceSettings);
         $oScreen->Data->SetValue('chAllowUsersAccessAccountsSettings', $oDomain->AllowUsersChangeEmailSettings);
         $oScreen->Data->SetValue('chEnableWebmail', $oDomain->AllowWebMail);
         $oScreen->Data->SetValue('chEnableAddressBook', $oDomain->AllowContacts);
         $iMessagesPerPage = $oDomain->MailsPerPage;
         $iContactsPerPage = $oDomain->ContactsPerPage;
         $iAutocheckMail = $oDomain->AutoCheckMailInterval;
         $iIncomingMailProtocol = $oDomain->IncomingMailProtocol;
         $oScreen->Data->SetValue('optIncomingProtocolIMAP', EMailProtocol::IMAP4 === $iIncomingMailProtocol);
         $oScreen->Data->SetValue('optIncomingProtocolPOP3', EMailProtocol::POP3 === $iIncomingMailProtocol);
         $oScreen->Data->SetValue('txtIncomingMailHost', $oDomain->IncomingMailServer);
         $oScreen->Data->SetValue('txtIncomingMailPort', $oDomain->IncomingMailPort);
         $oScreen->Data->SetValue('chIncomingUseSSL', $oDomain->IncomingMailUseSSL);
         $oScreen->Data->SetValue('txtOutgoingMailHost', $oDomain->OutgoingMailServer);
         $oScreen->Data->SetValue('txtOutgoingMailPort', $oDomain->OutgoingMailPort);
         $oScreen->Data->SetValue('chOutgoingUseSSL', $oDomain->OutgoingMailUseSSL);
         //			$oScreen->Data->SetValue('txtExternalHostNameOfDAVServer', $oDomain->ExternalHostNameOfDAVServer);
         //			$oScreen->Data->SetValue('txtExternalHostNameOfLocalImap', $oDomain->ExternalHostNameOfLocalImap);
         //			$oScreen->Data->SetValue('txtExternalHostNameOfLocalSmtp', $oDomain->ExternalHostNameOfLocalSmtp);
         $sOutPassword = $oDomain->OutgoingMailPassword;
         $oScreen->Data->SetValue('txtOutgoingMailLogin', $oDomain->OutgoingMailLogin);
         $oScreen->Data->SetValue('txtOutgoingMailPassword', empty($sOutPassword) ? '' : AP_DUMMYPASSWORD);
         $iAuthType = $oDomain->OutgoingMailAuth;
         $oScreen->Data->SetValue('radioAuthTypeNoAuth', $iAuthType === ESMTPAuthType::NoAuth);
         $oScreen->Data->SetValue('radioAuthTypeAuthSpecified', $iAuthType === ESMTPAuthType::AuthSpecified);
         $oScreen->Data->SetValue('radioAuthTypeAuthCurrentUser', $iAuthType === ESMTPAuthType::AuthCurrentUser);
         $oScreen->Data->SetValue('chAllowNewUsersRegister', !$oDomain->AllowNewUsersRegister);
         $oScreen->Data->SetValue('IsDefaultDomain', $oDomain->IsDefaultDomain);
         $oScreen->Data->SetValue('domainIsInternal', $oDomain->IsInternal);
         $iLayout = $oDomain->Layout;
         $oScreen->Data->SetValue('radioLayoutSide', $iLayout === ELayout::Side);
         $oScreen->Data->SetValue('radioLayoutBottom', $iLayout === ELayout::Bottom);
     }
     $sMessagesPerPageOptions = '';
     $aMessagesPerPageList = array(10, 20, 30, 50, 75, 100, 150, 200);
     foreach ($aMessagesPerPageList as $iMessageCount) {
         $sSelected = $iMessageCount === $iMessagesPerPage ? ' selected="selected"' : '';
         $sMessagesPerPageOptions .= '<option value="' . $iMessageCount . '"' . $sSelected . '>' . $iMessageCount . '</option>';
     }
     $oScreen->Data->SetValue('selMessagesPerPageOptions', $sMessagesPerPageOptions);
     $sAutocheckMailOptions = '';
     $aAutocheckMailList = array(0, 1, 3, 5, 10, 15, 20, 30);
     foreach ($aAutocheckMailList as $iAutocheckMailValue) {
         $sSelected = $iAutocheckMail === $iAutocheckMailValue ? ' selected="selected"' : '';
         $sAutocheckMailView = CApi::I18N('ADMIN_PANEL/DOMAINS_WEBMAIL_AUTO_OFF');
         if (0 < $iAutocheckMailValue) {
             $sAutocheckMailView = 1 === $iAutocheckMailValue ? $iAutocheckMailValue . ' ' . CApi::I18N('ADMIN_PANEL/DOMAINS_WEBMAIL_AUTO_MIN') : $iAutocheckMailValue . ' ' . CApi::I18N('ADMIN_PANEL/DOMAINS_WEBMAIL_AUTO_MINS');
         }
         $sAutocheckMailOptions .= '<option value="' . $iAutocheckMailValue . '"' . $sSelected . '>' . $sAutocheckMailView . '</option>';
     }
     $oScreen->Data->SetValue('selAutocheckMailOptions', $sAutocheckMailOptions);
     $sContactsPerPageOptions = '';
     $aContactsPerPageList = array(10, 20, 30, 50, 75, 100, 150, 200);
     foreach ($aContactsPerPageList as $iContactsCount) {
         $sSelected = $iContactsPerPage === $iContactsCount ? ' selected="selected"' : '';
         $sContactsPerPageOptions .= '<option value="' . $iContactsCount . '"' . $sSelected . '>' . $iContactsCount . '</option>';
     }
     $oScreen->Data->SetValue('selContactsPerPageOptions', $sContactsPerPageOptions);
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:92,代码来源:populate.php

示例14: initAdminPanel

 /**
  * @return void
  */
 protected function initAdminPanel()
 {
     $this->RType = (bool) CApi::GetConf('tenant', false);
     $this->AType = !!CApi::Manager('collaboration');
     $this->aTabsSort = array(AP_TAB_COMMON, AP_TAB_DOMAINS, AP_TAB_USERS, AP_TAB_TENANTS, AP_TAB_CHANNELS, AP_TAB_SYSTEM);
     $GLOBALS[AP_START_TIME] = ap_Utils::Microtime();
     $GLOBALS[AP_DB_COUNT] = 0;
     if (isset($_GET['logout'])) {
         CSession::ClearAll();
         CApi::Location(AP_INDEX_FILE . '?login');
     }
     if (isset($_GET['tab']) && strlen($_GET['tab']) > 0) {
         CSession::Set(AP_SESS_TAB, $_GET['tab']);
     } else {
         CSession::Set(AP_SESS_TAB, CSession::get(AP_SESS_TAB, AP_TAB_DEFAULT));
     }
     $this->sTab = CSession::get(AP_SESS_TAB, AP_TAB_DEFAULT);
     try {
         $this->CssAddFile('static/styles/style.css');
         $this->JsAddFile('static/js/common.js');
         $this->JsAddFile('static/js/jquery.js');
         $this->JsAddFile('static/js/knockout-2.3.0.js');
         if (!CApi::IsValid()) {
             return false;
         }
         $this->initModules();
         $this->initType();
         $this->initAuth();
         $this->sHelpUrl = '';
         $sUrl = $this->IsTenantAuthType() ? (string) CApi::GetConf('labs.custom-tenant-help-url', '') : (string) CApi::GetConf('labs.custom-admin-help-url', '');
         if (0 < strlen($sUrl)) {
             $this->sHelpUrl = $sUrl;
         } else {
             if ($this->AType) {
                 $this->sHelpUrl = 'http://www.afterlogic.com/wiki/Aurora_documentation';
             } else {
                 if ($this->PType) {
                     $this->sHelpUrl = 'http://www.afterlogic.com/wiki/WebMail_Pro_documentation';
                 } else {
                     $this->sHelpUrl = 'http://www.afterlogic.com/wiki/WebMail_Lite_documentation';
                 }
             }
         }
         if (isset($_GET['help'])) {
             if (0 < strlen($this->sHelpUrl)) {
                 CApi::Location($this->sHelpUrl);
             } else {
                 CApi::Location('?root');
             }
         }
         $bResetToDefault = true;
         foreach ($this->aTabs as $aTab) {
             if (isset($aTab[1]) && (string) $aTab[1] === (string) $this->sTab) {
                 $bResetToDefault = false;
                 break;
             }
         }
         if ($bResetToDefault) {
             $this->sTab = $this->IsTenantAuthType() ? AP_TAB_TENANT_DEFAULT : AP_TAB_DEFAULT;
             CSession::Set(AP_SESS_TAB, $this->sTab);
         }
         if (isset($_GET['submit']) && isset($_POST) && 0 < count($_POST)) {
             $this->bShowScreen = false;
             $sReturnRef = $this->initPostActionModules($this->sTab);
             CApi::Location(AP_INDEX_FILE . $sReturnRef);
         } else {
             if (isset($_GET['pop'])) {
                 $this->bShowScreen = false;
                 $this->initPopActionModules($this->sTab);
             } else {
                 if (isset($_GET['blank'])) {
                     $this->bShowScreen = false;
                     $this->initBlankActionModules($this->sTab);
                 } else {
                     if (isset($_GET['ajax'])) {
                         $this->bShowScreen = false;
                         $this->initAjaxActionModules($this->sTab);
                     } else {
                         $this->oCurrentScreen = $this->initScreen($this->sTab);
                         if ($this->oCurrentScreen) {
                             $this->oCurrentScreen->PreModuleInit();
                             $this->initCurrentScreenByModules('first', $this->sTab, $this->oCurrentScreen);
                             $this->oCurrentScreen->MiddleModuleInit();
                             $this->initCurrentScreenByModules('second', $this->sTab, $this->oCurrentScreen);
                             $this->oCurrentScreen->EndModuleInit();
                             $this->initCurrentScreenByModules('third', $this->sTab, $this->oCurrentScreen);
                         }
                         if (CSession::Has(AP_SESS_ERROR)) {
                             $this->JsAddInitText('OnlineMsgError("' . ap_Utils::ReBuildStringToJavaScript(nl2br(CSession::get(AP_SESS_ERROR, '')), '"') . '");');
                             CSession::clear(AP_SESS_ERROR);
                         } else {
                             if (CSession::Has(AP_SESS_MESSAGE)) {
                                 $this->JsAddInitText('OnlineMsgInfo("' . ap_Utils::ReBuildStringToJavaScript(nl2br(CSession::get(AP_SESS_MESSAGE, '')), '"') . '");');
                                 CSession::clear(AP_SESS_MESSAGE);
                             }
                         }
                     }
//.........这里部分代码省略.........
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:101,代码来源:cadminpanel.php

示例15: isset

$filtre_date_debut              = isset($filtre_date_debut) ? $filtre_date_debut : CFunctions::getUserParam('filtre_date_debut', '') ;
$filtre_date_fin                = isset($filtre_date_fin) ? $filtre_date_fin : CFunctions::getUserParam('filtre_date_fin', '') ;
$filtre_email                   = isset($filtre_email) ? $filtre_email : CFunctions::getUserParam('filtre_email', -1) ;
$filtre_nom                     = isset($filtre_nom) ? $filtre_nom : CFunctions::getUserParam('filtre_nom', '%%') ;
$filtre_prenom                  = isset($filtre_prenom) ? $filtre_prenom : CFunctions::getUserParam('filtre_prenom', '%%') ;
$filtre_idopportunite           = isset($filtre_idopportunite) ? $filtre_idopportunite : CFunctions::getUserParam('filtre_idopportunite', array(0)) ;

$filtre_etat_contact 			= CSession::get('filtre_etat_contact', $etat_contact);
$filtre_id_groupe 				= CSession::get('filtre_id_groupe', $id_groupe);
$filtre_date_debut 				= CDate::date_switch(CSession::get('filtre_date_debut', $filtre_date_debut));
$filtre_date_fin 				= CDate::date_switch(CSession::get('filtre_date_fin', $filtre_date_fin));
$filtre_email 					= CSession::get('filtre_email', $filtre_email);
$filtre_nom 					= CSession::get('filtre_nom', $filtre_nom);
$filtre_prenom					= CSession::get('filtre_prenom', $filtre_prenom);

$filtre_idopportunite			= CSession::get('filtre_idopportunite', $filtre_idopportunite);

$filtre = array();

switch ($filtre_id_groupe) {
    case '0':
			$liste_user_all_groupe = '(' . trim (implode (',', CTableGrGroupe::get_array_id_user_all_groupe ()), ',') . ')';
			$listeGroupe__ = str_replace (array ('(,', ',)', ',,'), array ('(', ')', ''), ($liste_user_all_groupe));
			$Test = str_replace (array ('(', ',', ')'), array ('', '', ''), $listeGroupe__);
			if ($Test) {
				$filtre_groupe = " AND id NOT IN " . $listeGroupe__;
			} else {
				$filtre_groupe = " AND id LIKE '0'";
			}
            break;
    case '%%':
开发者ID:rakotobe,项目名称:Rakotobe,代码行数:31,代码来源:gr_user_list_ajax.php


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