• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getParam函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getParam函数的典型用法代码示例。如果您正苦于以下问题:PHP getParam函数的具体用法?PHP getParam怎么用?PHP getParam使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: _processProfileDelete

 function _processProfileDelete($oAlert)
 {
     $oPC = new BxDolProfilesController();
     if (getParam('unregisterusernotify') == 'on') {
         $oPC->sendUnregisterUserNotify($oAlert->aExtras['profile_info']);
     }
 }
开发者ID:bright-spark,项目名称:dolphin.pro,代码行数:7,代码来源:BxDolAlertsResponseProfile.php


示例2: getBlockCode_All

 function getBlockCode_All($iBlockId)
 {
     $oCateg = new BxBaseCategories();
     $oCateg->getTagObjectConfig();
     $this->_aParam['common'] = false;
     return array($oCateg->display($this->_aParam, $iBlockId, '', true, getParam('categ_show_columns'), $this->_sUrl), array(), array(), $this->_sTitle);
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:7,代码来源:BxBaseCategoriesModule.php


示例3: getObjectInstance

 /**
  * Get captcha object instance by object name
  *
  * @param $sObject object name
  * @return object instance or false on error
  */
 public static function getObjectInstance($sObject = false)
 {
     if (!$sObject) {
         $sObject = getParam('sys_captcha_default');
     }
     if (isset($GLOBALS['bxDolClasses']['BxDolCaptcha!' . $sObject])) {
         return $GLOBALS['bxDolClasses']['BxDolCaptcha!' . $sObject];
     }
     $aObject = BxDolCaptchaQuery::getCaptchaObject($sObject);
     if (!$aObject || !is_array($aObject)) {
         return false;
     }
     if (empty($aObject['override_class_name'])) {
         return false;
     }
     $sClass = $aObject['override_class_name'];
     if (!empty($aObject['override_class_file'])) {
         require_once BX_DIRECTORY_PATH_ROOT . $aObject['override_class_file'];
     } else {
         bx_import($sClass);
     }
     $o = new $sClass($aObject);
     if (!$o->isAvailable()) {
         return false;
     }
     return $GLOBALS['bxDolClasses']['BxDolCaptcha!' . $sObject] = $o;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:33,代码来源:BxDolCaptcha.php


示例4: getProfileData

 /**
  *  return assoc array of all frofile fields
  */
 function getProfileData()
 {
     global $aUser;
     $bUseCacheSystem = getParam('enable_cache_system') == 'on' ? true : false;
     $oPDb = new BxDolProfileQuery();
     $sProfileCache = BX_DIRECTORY_PATH_CACHE . 'user' . $this->_iProfileID . '.php';
     if ($bUseCacheSystem && file_exists($sProfileCache) && is_file($sProfileCache)) {
         require_once $sProfileCache;
         $this->_aProfile = $aUser[$this->_iProfileID];
     } else {
         $this->_aProfile = $oPDb->getProfileDataById($this->_iProfileID);
     }
     //get couple data
     if ($this->_aProfile['Couple']) {
         $this->bCouple = true;
         $this->_iCoupleID = $this->_aProfile['Couple'];
         $sProfileCache = BX_DIRECTORY_PATH_CACHE . 'user' . $this->_iCoupleID . '.php';
         if ($bUseCacheSystem && file_exists($sProfileCache) && is_file($sProfileCache)) {
             require_once $sProfileCache;
             $this->_aCouple = $aUser[$this->_iCoupleID];
         } else {
             $this->_aCouple = $oPDb->getProfileDataById($this->_iCoupleID);
         }
     }
     return $this->_aProfile;
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:29,代码来源:BxDolProfile.php


示例5: __construct

 function __construct($iYear, $iMonth)
 {
     $aMonths = array(1 => '_January', 2 => '_February', 3 => '_March', 4 => '_April', 5 => '_May', 6 => '_June', 7 => '_July', 8 => '_August', 9 => '_September', 10 => '_October', 11 => '_November', 12 => '_December');
     // input values
     $this->iYear = (int) $iYear ? (int) $iYear : date('Y');
     $this->iMonth = (int) $iMonth ? (int) $iMonth : date('m');
     $this->iDay = date('d');
     $this->sMonthName = _t($aMonths[(int) $this->iMonth]);
     $this->iNumDaysInMonth = date('t', mktime(0, 0, 0, $this->iMonth + 1, $iDay, $this->iYear));
     $this->iFirstWeekDay = (int) date('w', mktime(0, 0, 0, $this->iMonth, 1, $this->iYear));
     // previous month year, month
     $this->iPrevYear = $this->iYear;
     $this->iPrevMonth = $this->iMonth - 1;
     if ($this->iPrevMonth <= 0) {
         $this->iPrevMonth = 12;
         $this->iPrevYear--;
     }
     // next month year, month
     $this->iNextYear = $this->iYear;
     $this->iNextMonth = $this->iMonth + 1;
     if ($this->iNextMonth > 12) {
         $this->iNextMonth = 1;
         $this->iNextYear++;
     }
     // week config
     list($this->iWeekStart, $this->iWeekEnd) = getParam('sys_calendar_starts_sunday') == 'on' ? array(0, 7) : array(1, 8);
     if ($this->iFirstWeekDay < $this->iWeekStart) {
         $this->iFirstWeekDay = $this->iWeekEnd - 1;
     }
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:30,代码来源:BxDolCalendar.php


示例6: send_cupid_email

function send_cupid_email($aAnyProf, $iSelCupID)
{
    global $site;
    $message = getParam("t_CupidMail");
    $subject = getParam('t_CupidMail_subject');
    $subject = addslashes($subject);
    $recipient = $aAnyProf['Email'];
    $headers = "From: {$site['title']} <{$site['email_notify']}>";
    $headers2 = "-f{$site['email_notify']}";
    $message = str_replace("<SiteName>", $site['title'], $message);
    $message = str_replace("<Domain>", $site['url'], $message);
    $message = str_replace("<RealName>", $aAnyProf['NickName'], $message);
    $message = str_replace("<StrID>", $aAnyProf['ID'], $message);
    $message = str_replace("<MatchProfileLink>", getProfileLink($iSelCupID), $message);
    $message = addslashes($message);
    if ('Text' == $aAnyProf['EmailFlag']) {
        $message = html2txt($message);
    }
    if ('HTML' == $aAnyProf['EmailFlag']) {
        $headers = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=UTF-8\r\n" . $headers;
    }
    $sql = "INSERT INTO `NotifyQueue` SET `Email` = {$aAnyProf['ID']}, Msg = 0, `From` = 'ProfilesMsgText', Creation = NOW(), MsgText = '{$message}', MsgSubj = '{$subject}'";
    $res = db_res($sql);
    return true;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:25,代码来源:match.inc.php


示例7: __construct

 function __construct()
 {
     parent::__construct();
     if (class_exists('BxDolDb') && BxDolDb::getInstance()) {
         $this->_aConfig['aLessConfig']['bx-page-width'] = getParam('main_div_width');
     }
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:7,代码来源:BxBaseConfig.php


示例8: PrintSearhResult

 /**
  * @description : function will generate profile block (used the profile template );
  * @return : Html presentation data ;
  */
 function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null)
 {
     global $site;
     global $aPreValues;
     $iVisitorID = getLoggedId();
     $bExtMode = !empty($_GET['mode']) && $_GET['mode'] == 'extended' || !empty($_GET['search_result_mode']) && $_GET['search_result_mode'] == 'ext';
     $isShowMatchPercent = $bExtMode && $iVisitorID && $iVisitorID != $aProfileInfo['ID'] && getParam('view_match_percent') && getParam('enable_match');
     $sProfileThumb = get_member_thumbnail($aProfileInfo['ID'], 'none', !$bExtMode, 'visitor');
     $sProfileMatch = $isShowMatchPercent ? $GLOBALS['oFunctions']->getProfileMatch($iVisitorID, $aProfileInfo['ID']) : '';
     $sProfileNickname = '<a href="' . getProfileLink($aProfileInfo['ID']) . '">' . getNickName($aProfileInfo['ID']) . '</a>';
     $sProfileInfo = $GLOBALS['oFunctions']->getUserInfo($aProfileInfo['ID']);
     $sProfileDesc = strmaxtextlen($aProfileInfo['DescriptionMe'], 130);
     $sProfileZodiac = $bExtMode && getParam('zodiac') ? $GLOBALS['oFunctions']->getProfileZodiac($aProfileInfo['DateOfBirth']) : '';
     $sProfile2ASc1 = $sProfile2ASc2 = $sProfile2Nick = $sProfile2Desc = $sProfile2Info = $sProfile2Zodiac = '';
     if ($aCoupleInfo) {
         $sProfile2Nick = '<a href="' . getProfileLink($aCoupleInfo['ID']) . '">' . getNickName($aCoupleInfo['ID']) . '</a>';
         $sProfile2Info = $GLOBALS['oFunctions']->getUserInfo($aCoupleInfo['ID']);
         $sProfile2Desc = strmaxtextlen($aCoupleInfo['DescriptionMe'], 130);
         $sProfile2Zodiac = $bExtMode && getParam('zodiac') ? $GLOBALS['oFunctions']->getProfileZodiac($aCoupleInfo['DateOfBirth']) : '';
         $sProfile2ASc1 = 'float:left;width:31%;margin-right:10px;';
         $sProfile2ASc2 = 'float:left;width:31%;display:block;';
     } else {
         $sProfile2ASc2 = 'display:none;';
     }
     $aKeys = array('thumbnail' => $sProfileThumb, 'match' => $sProfileMatch, 'nick' => $sProfileNickname, 'info' => $sProfileInfo, 'i_am_desc' => $sProfileDesc, 'zodiac_sign' => $sProfileZodiac, 'nick2' => $sProfile2Nick, 'info2' => $sProfile2Info, 'i_am_desc2' => $sProfile2Desc, 'zodiac_sign2' => $sProfile2Zodiac, 'add_style_c1' => $sProfile2ASc1, 'add_style_c2' => $sProfile2ASc2);
     if ($aExtendedKey and is_array($aExtendedKey) and !empty($aExtendedKey)) {
         foreach ($aExtendedKey as $sKey => $sValue) {
             $aKeys[$sKey] = $sValue;
         }
     } else {
         $aKeys['ext_css_class'] = '';
     }
     return $oCustomTemplate ? $oCustomTemplate->parseHtmlByName($sTemplateName, $aKeys) : $GLOBALS['oSysTemplate']->parseHtmlByName($sTemplateName, $aKeys);
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:38,代码来源:BxBaseSearchProfile.php


示例9: getBlockCode_ViewImage

 function getBlockCode_ViewImage()
 {
     $sSiteUrl = $this->_aSite['url'];
     $aFile = BxDolService::call('photos', 'get_photo_array', array($this->_aSite['photo'], 'file'), 'Search');
     $sImage = $aFile['no_image'] ? '' : $aFile['file'];
     // BEGIN STW INTEGRATION
     if (getParam('bx_sites_account_type') != 'No Automated Screenshots') {
         if ($sImage == '') {
             $aSTWOptions = array();
             bx_sites_import('STW');
             $sThumbHTML = getThumbnailHTML($sSiteUrl, $aSTWOptions, false, false);
         }
     }
     // END STW INTEGRATION
     $sVote = '';
     if (strncasecmp($sSiteUrl, 'http://', 7) !== 0 && strncasecmp($sSiteUrl, 'https://', 8) !== 0) {
         $sSiteUrl = 'http://' . $sSiteUrl;
     }
     if ($this->_oConfig->isVotesAllowed() && $this->_oSites->oPrivacy->check('rate', $this->_aSite['id'], $this->_oSites->iOwnerId)) {
         bx_import('BxTemplVotingView');
         $oVotingView = new BxTemplVotingView('bx_sites', $this->_aSite['id']);
         if ($oVotingView->isEnabled()) {
             $sVote = $oVotingView->getBigVoting();
         }
     }
     $sContent = $this->_oTemplate->parseHtmlByName('view_image.html', array('title' => $this->_aSite['title'], 'site_url' => $sSiteUrl, 'site_url_view' => $this->_aSite['url'], 'bx_if:is_image' => array('condition' => $sThumbHTML == false, 'content' => array('image' => $sImage ? $sImage : $this->_oTemplate->getImageUrl('no-image-thumb.png'))), 'bx_if:is_thumbhtml' => array('condition' => $sThumbHTML != '', 'content' => array('thumbhtml' => $sThumbHTML)), 'vote' => $sVote, 'view_count' => $this->_aSite['views']));
     return array($sContent, array(), array(), false);
 }
开发者ID:boonex,项目名称:dolphin.pro,代码行数:28,代码来源:BxSitesPageView.php


示例10: genSiteServiceMenu

 function genSiteServiceMenu()
 {
     $bLogged = isLogged();
     $aMenuItem = array();
     $sMenuPopupId = '';
     $sMenuPopupContent = '';
     if ($bLogged) {
         bx_import('BxTemplMenuService');
         $oMenu = new BxTemplMenuService();
         if ($oMenu->aMenuInfo['memberID'] != 0) {
             $aProfile = getProfileInfo($oMenu->aMenuInfo['memberID']);
         }
         $sThumbSetting = getParam('sys_member_info_thumb_icon');
         bx_import('BxDolMemberInfo');
         $o = BxDolMemberInfo::getObjectInstance($sThumbSetting);
         $sThumbUrl = $o ? $o->get($aProfile) : '';
         $o = BxDolMemberInfo::getObjectInstance($sThumbSetting . '_2x');
         $sThumbTwiceUrl = $o ? $o->get($aProfile) : '';
         if (!$sThumbTwiceUrl) {
             $sThumbTwiceUrl = $sThumbUrl;
         }
         $bThumb = !empty($sThumbUrl);
         $aMenuItem = array('bx_if:show_fu_thumb_image' => array('condition' => $bThumb, 'content' => array('image' => $sThumbUrl, 'image_2x' => $sThumbTwiceUrl)), 'bx_if:show_fu_thumb_icon' => array('condition' => !$bThumb, 'content' => array()), 'thumbnail' => get_member_icon($oMenu->aMenuInfo['memberID']), 'title' => getNickName($oMenu->aMenuInfo['memberID']));
         $sMenuPopupId = 'sys-service-menu-' . time();
         $sMenuPopupContent = $this->transBox($oMenu->getCode());
     }
     return $GLOBALS['oSysTemplate']->parseHtmlByName('extra_service_menu_wrapper.html', array('bx_if:show_for_visitor' => array('condition' => !$bLogged, 'content' => array()), 'bx_if:show_for_user' => array('condition' => $bLogged, 'content' => $aMenuItem), 'menu_popup_id' => $sMenuPopupId, 'menu_popup_content' => $sMenuPopupContent));
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:28,代码来源:BxTemplFunctions.php


示例11: unit

 function unit($aData, $isCheckPrivateContent = true, $sTemplateName = 'unit.html')
 {
     $oModule = BxDolModule::getInstance($this->MODULE);
     $CNF =& $oModule->_oConfig->CNF;
     if ($isCheckPrivateContent && CHECK_ACTION_RESULT_ALLOWED !== ($sMsg = $oModule->checkAllowedView($aData))) {
         $aVars = array('summary' => $sMsg);
         return $this->parseHtmlByName('unit_private.html', $aVars);
     }
     // get thumb url
     $sPhotoThumb = '';
     if ($aData[$CNF['FIELD_THUMB']]) {
         bx_import('BxDolImageTranscoder');
         $oImagesTranscoder = BxDolImageTranscoder::getObjectInstance($CNF['OBJECT_IMAGES_TRANSCODER_PREVIEW']);
         if ($oImagesTranscoder) {
             $sPhotoThumb = $oImagesTranscoder->getImageUrl($aData[$CNF['FIELD_THUMB']]);
         }
     }
     // get entry url
     bx_import('BxDolPermalinks');
     $sUrl = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=' . $CNF['URI_VIEW_ENTRY'] . '&id=' . $aData[$CNF['FIELD_ID']]);
     bx_import('BxDolProfile');
     $oProfile = BxDolProfile::getInstance($aData[$CNF['FIELD_AUTHOR']]);
     if (!$oProfile) {
         bx_import('BxDolProfileUndefined');
         $oProfile = BxDolProfileUndefined::getInstance();
     }
     // get summary
     $sLinkMore = ' <a title="' . bx_html_attribute(_t('_sys_read_more', $aData[$CNF['FIELD_TITLE']])) . '" href="' . $sUrl . '"><i class="sys-icon ellipsis-h"></i></a>';
     $sSummary = strmaxtextlen($aData[$CNF['FIELD_TEXT']], (int) getParam($CNF['PARAM_CHARS_SUMMARY']), $sLinkMore);
     $sSummaryPlain = BxTemplFunctions::getInstance()->getStringWithLimitedLength(strip_tags($sSummary), (int) getParam($CNF['PARAM_CHARS_SUMMARY_PLAIN']));
     // generate html
     $aVars = array('id' => $aData[$CNF['FIELD_ID']], 'content_url' => $sUrl, 'title' => bx_process_output($aData[$CNF['FIELD_TITLE']]), 'summary' => $sSummary, 'author' => $oProfile->getDisplayName(), 'author_url' => $oProfile->getUrl(), 'entry_posting_date' => bx_time_js($aData[$CNF['FIELD_ADDED']], BX_FORMAT_DATE), 'module_name' => _t($CNF['T']['txt_sample_single']), 'ts' => $aData[$CNF['FIELD_ADDED']], 'bx_if:thumb' => array('condition' => $sPhotoThumb, 'content' => array('title' => bx_process_output($aData[$CNF['FIELD_TITLE']]), 'summary_attr' => bx_html_attribute($sSummaryPlain), 'content_url' => $sUrl, 'thumb_url' => $sPhotoThumb ? $sPhotoThumb : '')), 'bx_if:no_thumb' => array('condition' => !$sPhotoThumb, 'content' => array('content_url' => $sUrl, 'summary_plain' => $sSummaryPlain)));
     return $this->parseHtmlByName($sTemplateName, $aVars);
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:34,代码来源:BxBaseModTextTemplate.php


示例12: getBlockCode_SearchResults

 function getBlockCode_SearchResults()
 {
     $this->_oTemplate->addJs('http://www.google.com/jsapi');
     $a = parse_url($GLOBALS['site']['url']);
     $aVars = array('is_image_search' => 'on' == getParam('bx_gsearch_separate_images') ? 1 : 0, 'is_tabbed_search' => 'on' == getParam('bx_gsearch_separate_tabbed') ? 1 : 0, 'domain' => $a['host'], 'keyword' => str_replace('"', '\\"', stripslashes($_GET['keyword'])), 'suffix' => 'adv', 'separate_search_form' => 1);
     return $this->_oTemplate->parseHtmlByName('search', $aVars);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:7,代码来源:BxGSearchPageMain.php


示例13: adm_hosting_promo

function adm_hosting_promo()
{
    if (getParam('feeds_enable') != 'on') {
        return '';
    }
    return DesignBoxAdmin(_t('_adm_txt_hosting_title'), $GLOBALS['oAdmTemplate']->parseHtmlByName('hosting_promo.html', array()), '', '', 11);
}
开发者ID:Arvindvi,项目名称:dolphin,代码行数:7,代码来源:admin_design.inc.php


示例14: _action

 protected function _action($sCache, $sMode = 'clear')
 {
     $sFuncCacheObject = $sMode == 'clear' ? '_clearObject' : '_getSizeObject';
     $sFuncCacheFile = $sMode == 'clear' ? '_clearFile' : '_getSizeFile';
     $mixedResult = false;
     switch ($sCache) {
         case 'db':
             if (getParam('sys_db_cache_enable') != 'on') {
                 break;
             }
             $oCacheDb = BxDolDb::getInstance()->getDbCacheObject();
             $mixedResult = $this->{$sFuncCacheObject}($oCacheDb, 'db_');
             break;
         case 'template':
             if (getParam('sys_template_cache_enable') != 'on') {
                 break;
             }
             $oCacheTemplates = BxDolTemplate::getInstance()->getTemplatesCacheObject();
             $mixedResult = $this->{$sFuncCacheObject}($oCacheTemplates, BxDolStudioTemplate::getInstance()->getCacheFilePrefix($sCache));
             break;
         case 'css':
             if (getParam('sys_template_cache_css_enable') != 'on') {
                 break;
             }
             $mixedResult = $this->{$sFuncCacheFile}(BxDolStudioTemplate::getInstance()->getCacheFilePrefix($sCache), BX_DIRECTORY_PATH_CACHE_PUBLIC);
             break;
         case 'js':
             if (getParam('sys_template_cache_js_enable') != 'on') {
                 break;
             }
             $mixedResult = $this->{$sFuncCacheFile}(BxDolStudioTemplate::getInstance()->getCacheFilePrefix($sCache), BX_DIRECTORY_PATH_CACHE_PUBLIC);
             break;
     }
     return $mixedResult;
 }
开发者ID:Baloo7super,项目名称:dolphin,代码行数:35,代码来源:BxDolCacheUtilities.php


示例15: PageCompMainCode

/**
 * page code function
 */
function PageCompMainCode()
{
    ob_start();
    $oAccount = BxDolAccount::getInstance();
    $aAccountInfo = $oAccount ? $oAccount->getInfo() : false;
    if (!$aAccountInfo) {
        return DesignBoxContent("Send Email example", 'Please login first', BX_DB_PADDING_DEF);
    }
    echo "<h2>Account info</h2>";
    echo "Email: " . $aAccountInfo['email'] . '<br />';
    echo "Email Confirmed: " . ($aAccountInfo['email_confirmed'] ? 'yes' : 'no') . '<br />';
    echo "Receive site updates: " . ($aAccountInfo['receive_updates'] ? 'yes' : 'no') . '<br />';
    echo "Receive site newsletters: " . ($aAccountInfo['receive_news'] ? 'yes' : 'no') . '<br />';
    echo "Site emails are sent from: " . getParam('site_email_notify') . '<br />';
    $a = array('sys' => array('title' => "Send me system email", 'type' => BX_EMAIL_SYSTEM, 'subj' => 'System Email', 'body' => 'This is system email <br /> {unsubscribe}'), 'notif' => array('title' => "Send me notification", 'type' => BX_EMAIL_NOTIFY, 'subj' => 'Notification Email', 'body' => 'This is notification email<br /> {unsubscribe}'), 'mass' => array('title' => "Send me bulk email", 'type' => BX_EMAIL_MASS, 'subj' => 'Bulk Email', 'body' => 'This is bulk email<br /> {unsubscribe}'));
    $sSendMail = bx_get('send');
    if ($sSendMail && isset($a[$sSendMail])) {
        echo "<h2>Send Email Result</h2>";
        $r = $a[$sSendMail];
        if (sendMail($aAccountInfo['email'], $r['subj'], $r['body'], 0, array(), $r['type'])) {
            echo MsgBox($r['subj'] . ' - successfully sent');
        } else {
            echo MsgBox($r['subj'] . ' - sent failed');
        }
    }
    echo "<h2>Send email</h2>";
    foreach ($a as $k => $r) {
        echo '<a href="samples/email.php?send=' . $k . '">' . $r['title'] . '</a><br />';
    }
    return DesignBoxContent("Send Email Example", ob_get_clean(), BX_DB_PADDING_DEF);
}
开发者ID:blas-dmx,项目名称:trident,代码行数:34,代码来源:email.php


示例16: init

/**
 * Init function of API.
 */
function init()
{
    if ($paramArr = getParam()) {
        $repeat = $paramArr[0];
        for ($i = 1; $i < 101; $i++) {
            $halfNum = $i / 100;
            for ($j = 4; $j < 29; $j++) {
                $ogListArr = getRandOgList(1, 29, $j, $repeat);
                $total = 0;
                foreach ($ogListArr as $ogList) {
                    $statics = execute($ogList, $halfNum);
                    $total += $statics['count'];
                }
                $avgNumber = $total / $repeat;
                echo $avgNumber;
                if ($j < 28) {
                    echo ',';
                }
            }
            echo '<br>';
        }
    } else {
        printParamErr();
    }
}
开发者ID:ycduan,项目名称:UESTC_Software2015,代码行数:28,代码来源:compareHalfNumWithNumber.php


示例17: __construct

 protected function __construct($aObject, $oStorage)
 {
     parent::__construct($aObject, $oStorage);
     $this->_sQueueStorage = getParam('sys_transcoder_queue_storage') ? 'sys_transcoder_queue_files' : '';
     $this->_oDb = new BxDolTranscoderVideoQuery($aObject);
     $this->_sQueueTable = $this->_oDb->getQueueTable();
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:7,代码来源:BxDolTranscoderVideo.php


示例18: getRateFile

 function getRateFile(&$aData)
 {
     $aImg = $this->oMedia->serviceGetPhotoArray($aData[0]['id'], 'file');
     $iImgWidth = (int) getParam($this->sType . '_file_width');
     $aFile = array('fileBody' => $aImg['file'], 'infoWidth' => $iImgWidth > 0 ? $iImgWidth + 2 : '');
     return $this->oMedia->oTemplate->parseHtmlByName('rate_object_file.html', $aFile);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:7,代码来源:BxPhotosRate.php


示例19: BxDolBrowse

 /**
  * @description : class constructor ;
  */
 function BxDolBrowse()
 {
     global $aPreValues;
     // read data from cache file ;
     $oCache = $GLOBALS['MySQL']->getDbCacheObject();
     $this->aMembersInfo = $oCache->getData($GLOBALS['MySQL']->genDbCacheKey('sys_browse_people'));
     if (null === $this->aMembersInfo) {
         $this->aMembersInfo = array();
     }
     // fill aDateBirthRange array ;
     $iStartDate = getParam('search_start_age');
     $iLastDate = getParam('search_end_age');
     // fill date of birth array
     while ($iStartDate <= $iLastDate) {
         $this->aDateBirthRange[$iStartDate . '-' . ($iStartDate + 2)] = 0;
         $iStartDate += 3;
     }
     // check permalink mode ;
     $this->bPermalinkMode = getParam('permalinks_browse') ? true : false;
     // check member on line time ;
     $this->iMemberOnlineTime = getParam("member_online_time");
     // fill sex array ;
     ksort($aPreValues['Sex'], SORT_STRING);
     foreach ($aPreValues['Sex'] as $sKey => $aItems) {
         $this->aSexRange[$sKey] = 0;
     }
     // fill country array ;
     ksort($aPreValues['Country'], SORT_STRING);
     foreach ($aPreValues['Country'] as $sKey => $aItems) {
         $this->aCountryRange[$sKey] = 0;
     }
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:35,代码来源:BxDolBrowse.php


示例20: dispatch

function dispatch()
{
    $p = getParam('p');
    $q = getParam('q');
    global $action, $pageTitle;
    $pageTitle = null;
    $action = 'home';
    switch ($p) {
        case "album":
            $action = 'album';
            actionAlbum($q);
            break;
        case "panorama":
            $action = 'panorama';
            actionPanorama($q);
            break;
        case "contact":
            $action = 'contact';
            actionContact();
            break;
        default:
            $action = 'home';
            actionHome();
            break;
    }
}
开发者ID:jaspermeijaard,项目名称:visual-portfolio,代码行数:26,代码来源:logic.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getParameter函数代码示例发布时间:2022-05-15
下一篇:
PHP getParaInfo函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap