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


PHP vf函数代码示例

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


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

示例1: renderForm

/**
 * Renders JS payment form
 * 
 * @param int $amount
 * 
 * @return string
 */
function renderForm($amount)
{
    global $conf_fondy, $customer_id;
    $amount = vf($amount, 3);
    $result = $conf_fondy['LOCALE_SUM'] . ': ' . $amount . ' ' . $conf_fondy['MERCHANT_CURRENCY'] . ' ';
    $result .= '
<script src="https://api.fondy.eu/static_common/v1/checkout/oplata.js"></script>
<script>
	var button = $ipsp.get(\'button\');
	button.setMerchantId(' . $conf_fondy['MERCHANT_ID'] . ');
	button.setAmount(' . $amount . ', \'' . $conf_fondy['FONDY_CURRENCY'] . '\', true);
	button.setResponseUrl(\'' . $conf_fondy['RESPONSE_URL'] . '\');
        button.addParam(\'server_callback_url\',\'' . $conf_fondy['FRONTEND_URL'] . '\');
	button.setHost(\'api.fondy.eu\');
	button.addField({
		label: \'Payment ID\',
		name: \'paymentid\',
                value: \'' . $customer_id . '\',
                readonly :true,
		required: true
	});
</script>
<button onclick="location.href=button.getUrl()">' . $conf_fondy['LOCALE_SUBMIT'] . '</button>
';
    return $result;
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:33,代码来源:index.php

示例2: zb_GetAllEvents

 /**
  * Returns all events with some count limit
  * 
  * @param int $limit
  * @return array
  */
 function zb_GetAllEvents($limit = 0)
 {
     $limit = vf($limit, 3);
     $query = "SELECT * from `weblogs` ORDER BY `id` DESC LIMIT " . $limit;
     $allevents = simple_queryall($query);
     return $allevents;
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:13,代码来源:index.php

示例3: zbs_ContrAhentGetData

function zbs_ContrAhentGetData($id)
{
    $id = vf($id);
    $query = "SELECT * from `contrahens` WHERE `id`='" . $id . "'";
    $result = simple_query($query);
    return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:7,代码来源:api.agents.php

示例4: ra_NasDeteleTemplate

function ra_NasDeteleTemplate($id)
{
    $id = vf($id, 3);
    $query = "DELETE from `nastemplates` WHERE `id`='" . $id . "'";
    nr_query($query);
    log_register('RADIUSTEMPLATE DELETE ' . $id);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:7,代码来源:api.radius.php

示例5: web_CardShowDateForm

 /**
  * Renders year-month search interface
  * 
  * @return void
  */
 function web_CardShowDateForm()
 {
     $curmonth = wf_CheckPost(array('monthsel')) ? vf($_POST['monthsel'], 3) : date("m");
     $curyear = wf_CheckPost(array('yearsel')) ? vf($_POST['yearsel'], 3) : date("Y");
     $inputs = wf_YearSelectorPreset('yearsel', __('Year'), false, $curyear) . ' ';
     $inputs .= wf_MonthSelector('monthsel', 'Month', $curmonth, false);
     $inputs .= wf_Submit('Show');
     $form = wf_Form("", 'POST', $inputs, 'glamour');
     show_window(__('Date'), $form);
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:15,代码来源:index.php

示例6: zbs_CatvGetUserPayments

 function zbs_CatvGetUserPayments($catv_userid)
 {
     $catv_userid = vf($catv_userid, 3);
     $query = "SELECT * from `catv_payments` WHERE `userid`='" . $catv_userid . "'";
     $allpayments = simple_queryall($query);
     if (!empty($allpayments)) {
         return $allpayments;
     } else {
         return false;
     }
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:11,代码来源:index.php

示例7: ep_GetTransactionTime

function ep_GetTransactionTime($id)
{
    $id = vf($id, 3);
    $query = "SELECT `date` from `op_transactions` WHERE `id`='" . $id . "'";
    $data = simple_query($query);
    if (!empty($data)) {
        return $data['date'];
    } else {
        return false;
    }
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:11,代码来源:index.php

示例8: web_plchecker

 function web_plchecker($login)
 {
     $login = vf($login);
     $result = '<table width="100%" border="0">';
     $emails = zb_plcheckfield('emails', $login);
     $contracts = zb_plcheckfield('contracts', $login);
     $phones = zb_plcheckfield('phones', $login);
     $realname = zb_plcheckfield('realname', $login);
     $userspeeds = zb_plcheckfield('userspeeds', $login);
     $nethosts = zb_plchecknethost($login);
     $result .= '
         <tr class="row1">
             <td>' . __('Current value') . '</td>
             <td>' . __('Parameter') . '</td>
             <td>' . __('Actions') . '</td>
         <tr>
          ';
     $result .= '
         <tr class="row3">
             <td>' . web_bool_led($emails) . '</td>
             <td>' . __('Email') . '</td>
             <td>' . web_plfixerform($login, 'emails', $emails) . '</td>
         </tr>
          <tr class="row3">
             <td>' . web_bool_led($contracts) . '</td>
             <td>' . __('Contract') . '</td>
             <td>' . web_plfixerform($login, 'contracts', $contracts) . '</td>
          </tr>
             <tr class="row3">
             <td>' . web_bool_led($phones) . '</td>
             <td>' . __('Phone') . '/' . __('Mobile') . '</td>
             <td>' . web_plfixerform($login, 'phones', $phones) . '</td>
         </tr>
         <tr class="row3">
             <td>' . web_bool_led($realname) . '</td>
             <td>' . __('Real Name') . '</td>
             <td>' . web_plfixerform($login, 'realname', $realname) . '</td>
         </tr>
         <tr class="row3">
             <td>' . web_bool_led($userspeeds) . '</td>
             <td>' . __('Speed override') . '</td>
             <td>' . web_plfixerform($login, 'userspeeds', $userspeeds) . '</td>
         </tr>
         <tr class="row3">
             <td>' . web_bool_led($nethosts) . '</td>
             <td>' . __('Network') . '</td>
             <td>' . web_plfixerform($login, 'nethosts', $nethosts) . '</td>
         </tr>
         ';
     $result .= '</table>';
     $result .= web_UserControls($login);
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:53,代码来源:index.php

示例9: setDateFilters

 /**
  * Sets required year/month filter properties
  * 
  * @return void
  */
 protected function setDateFilters()
 {
     if (wf_CheckPost(array('yearsel'))) {
         $this->year = vf($_POST['yearsel']);
     } else {
         $this->year = date("Y");
     }
     if (wf_CheckPost(array('monthsel'))) {
         $this->month = vf($_POST['monthsel']);
     } else {
         $this->month = date("m");
     }
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:18,代码来源:index.php

示例10: zbs_PaycardUse

/**
 * Marks payment card ad used in database and pushes its price to user account
 * 
 * @global string $user_ip
 * @global string $user_login
 * @param string $cardnumber
 */
function zbs_PaycardUse($cardnumber)
{
    global $user_ip;
    global $user_login;
    $cardnumber = vf($cardnumber);
    $us_config = zbs_LoadConfig();
    $carddata = zbs_PaycardGetParams($cardnumber);
    $cardcash = $carddata['cash'];
    $ctime = curdatetime();
    $carduse_q = "UPDATE `cardbank` SET\n        `usedlogin` = '" . $user_login . "',\n        `usedip` = '" . $user_ip . "',\n        `usedate`= '" . $ctime . "',\n        `used`='1'\n         WHERE `serial` ='" . $cardnumber . "';\n        ";
    nr_query($carduse_q);
    zbs_PaymentLog($user_login, $cardcash, $us_config['PC_CASHTYPEID'], "CARD:" . $cardnumber);
    billing_addcash($user_login, $cardcash);
    rcms_redirect("index.php");
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:22,代码来源:index.php

示例11: sn_LoadLang

function sn_LoadLang($language)
{
    $language = vf($language);
    $language = preg_replace('/\\0/s', '', $language);
    if (file_exists('languages/' . $language . '/lang.php')) {
        include 'languages/' . $language . '/lang.php';
        //additional locale
        if (file_exists('languages/' . $language . '/addons.php')) {
            include 'languages/' . $language . '/addons.php';
        }
    } else {
        include 'languages/english/lang.php';
    }
    return $lang;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:15,代码来源:api.compat.php

示例12: web_HelpIconShow

/**
 *  Shows help icon if context chapter available for current language
 *  
 *  @return  string
 */
function web_HelpIconShow()
{
    $lang = curlang();
    $result = '';
    if (cfr('HELP')) {
        if (isset($_GET['module'])) {
            $modulename = vf($_GET['module']);
            if (file_exists(DATA_PATH . "help/" . $lang . "/" . $modulename)) {
                $help_chapter = web_HelpChapterGet($modulename);
                $result = wf_modal(wf_img_sized("skins/help.gif", __('Context help'), 20), __('Context help'), $help_chapter, '', '600', '300');
            }
        }
    }
    return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:20,代码来源:api.help.php

示例13: im_IsMineMessage

/**
 * Check is message created by me?
 * 
 * @param int $msgid   message id from `ub_im`
 * 
 * @return bool
 */
function im_IsMineMessage($msgid)
{
    $msgid = vf($msgid, 3);
    $me = whoami();
    $query = "SELECT `from` FROM `ub_im` WHERE `id`='" . $msgid . "'";
    $data = simple_query($query);
    if (!empty($data)) {
        if ($data['from'] == $me) {
            //message created by me
            return true;
        } else {
            //or not
            return false;
        }
    } else {
        //message not exists
        return false;
    }
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:26,代码来源:api.ubim.php

示例14: web_SignupsGraphYear

 /**
  * Shows user signups by year with funny bars
  * 
  * @global object $ubillingConfig
  * @param int $year
  * 
  * @return void
  */
 function web_SignupsGraphYear($year)
 {
     global $ubillingConfig;
     $altCfg = $ubillingConfig->getAlter();
     $cemeteryEnabled = @$altCfg['CEMETERY_ENABLED'] ? true : false;
     if ($cemeteryEnabled) {
         $cemetery = new Cemetery();
     }
     $year = vf($year);
     $yearcount = zb_SignupsGetCountYear($year);
     $maxsignups = max($yearcount);
     $allmonths = months_array();
     $totalcount = 0;
     $tablecells = wf_TableCell('');
     $tablecells .= wf_TableCell(__('Month'));
     $tablecells .= wf_TableCell(__('Signups'));
     if ($cemeteryEnabled) {
         $tablecells .= wf_TableCell(__('Dead souls'));
         $tablecells .= wf_TableCell('', '10%');
     }
     $tablecells .= wf_TableCell(__('Visual'), '50%');
     $tablerows = wf_TableRow($tablecells, 'row1');
     foreach ($yearcount as $eachmonth => $count) {
         $totalcount = $totalcount + $count;
         $tablecells = wf_TableCell($eachmonth);
         $tablecells .= wf_TableCell(wf_Link('?module=report_signup&month=' . $year . '-' . $eachmonth, rcms_date_localise($allmonths[$eachmonth])));
         $tablecells .= wf_TableCell($count);
         if ($cemeteryEnabled) {
             $deadDateMask = $year . '-' . $eachmonth . '-';
             $deadCount = $cemetery->getDeadDateCount($deadDateMask);
             $deadBar = web_barTariffs($count, $deadCount);
             $tablecells .= wf_TableCell($deadCount);
             $tablecells .= wf_TableCell($deadBar);
         }
         $tablecells .= wf_TableCell(web_bar($count, $maxsignups), '', '', 'sorttable_customkey="' . $count . '"');
         $tablerows .= wf_TableRow($tablecells, 'row3');
     }
     $result = wf_TableBody($tablerows, '100%', '0', 'sortable');
     $result .= wf_tag('b', false) . __('Total') . ': ' . $totalcount . wf_tag('b', true);
     show_window(__('User signups by year') . ' ' . $year, $result);
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:49,代码来源:index.php

示例15: build_task

 function build_task($right, $link, $icon, $text)
 {
     global $system;
     global $billing_config;
     global $altconf;
     $icon_path = CUR_SKIN_PATH . 'taskbar/';
     if (cfr($right)) {
         $task_link = $link;
         $task_icon = $icon_path . $icon;
         if (!file_exists($task_icon)) {
             $task_icon = 'skins/taskbar/' . $icon;
         }
         $task_text = $text;
         if (isset($_COOKIE['tb_iconsize'])) {
             //is icon customize enabled?
             if ($altconf['TB_ICONCUSTOMSIZE']) {
                 $tbiconsize = vf($_COOKIE['tb_iconsize'], 3);
             } else {
                 $tbiconsize = $billing_config['TASKBAR_ICON_SIZE'];
             }
         } else {
             $tbiconsize = $billing_config['TASKBAR_ICON_SIZE'];
         }
         if ($altconf['TB_LABELED']) {
             if ($tbiconsize > 63) {
                 $template = '<div class="dashtask" style="height:' . ($tbiconsize + 30) . 'px; width:' . ($tbiconsize + 30) . 'px;"> <a href="' . $task_link . '"><img  src="' . $task_icon . '" border="0" width="' . $tbiconsize . '"  height="' . $tbiconsize . '" alt="' . $task_text . '" title="' . $task_text . '"></a> <br><br>' . $task_text . ' </div>';
             } else {
                 $template = '<a href="' . $task_link . '"><img  src="' . $task_icon . '" border="0" width="' . $tbiconsize . '"  height="' . $tbiconsize . '" alt="' . $task_text . '" title="' . $task_text . '"></a><img src="' . $icon_path . 'spacer.gif">  ';
             }
         } else {
             $template = '<a href="' . $task_link . '"><img  src="' . $task_icon . '" border="0" width="' . $tbiconsize . '"  height="' . $tbiconsize . '" alt="' . $task_text . '" title="' . $task_text . '"></a><img src="' . $icon_path . 'spacer.gif">  ';
         }
     } else {
         $template = '';
     }
     return $template;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:37,代码来源:index.php


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