本文整理汇总了PHP中global_common::isCLogin方法的典型用法代码示例。如果您正苦于以下问题:PHP global_common::isCLogin方法的具体用法?PHP global_common::isCLogin怎么用?PHP global_common::isCLogin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类global_common
的用法示例。
在下文中一共展示了global_common::isCLogin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$resultID = $objAdType->insert($adTypeID, $adTypeName, $width, $height, $numOfDay, $displayPage, $sharedItem, $price, $cityID, $status);
if ($resultID) {
$arrHeader = global_common::getMessageHeaderArr($banCode);
//$banCode
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, $result), array(0, 1));
return;
} else {
echo global_common::convertToXML($arrHeader, array("rs", "info"), array(0, "Input data is invalid"), array(0, 1));
return;
}
} else {
echo global_common::convertToXML($arrHeader, array("rs", 'info'), array(0, global_common::STRING_REQUIRE_LOGIN), array(0, 1));
}
return;
} elseif ($_pgR['act'] == model_AdType::ACT_UPDATE) {
if (global_common::isCLogin()) {
//l?y th?ng tin user
//$c_userInfo = $_SESSION[consts::SES_C_USERINFO];
$adTypeID = $_pgR['AdTypeID'];
$adTypeID = global_editor::rteSafe(html_entity_decode($adTypeID, ENT_COMPAT, 'UTF-8'));
$adTypeName = $_pgR['AdTypeName'];
$adTypeName = global_editor::rteSafe(html_entity_decode($adTypeName, ENT_COMPAT, 'UTF-8'));
$width = $_pgR['Width'];
$width = global_editor::rteSafe(html_entity_decode($width, ENT_COMPAT, 'UTF-8'));
$height = $_pgR['Height'];
$height = global_editor::rteSafe(html_entity_decode($height, ENT_COMPAT, 'UTF-8'));
$numOfDay = $_pgR['NumOfDay'];
$numOfDay = global_editor::rteSafe(html_entity_decode($numOfDay, ENT_COMPAT, 'UTF-8'));
$displayPage = $_pgR['DisplayPage'];
$displayPage = global_editor::rteSafe(html_entity_decode($displayPage, ENT_COMPAT, 'UTF-8'));
$sharedItem = $_pgR['SharedItem'];