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

PHP vf函数代码示例

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

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



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


示例16: wf_PlPingerOptionsForm

 function wf_PlPingerOptionsForm()
 {
     //previous setting
     if (wf_CheckPost(array('packet'))) {
         $currentpack = vf($_POST['packet'], 3);
     } else {
         $currentpack = '';
     }
     if (wf_CheckPost(array('count'))) {
         $getCount = vf($_POST['count'], 3);
         if ($getCount <= 10000) {
             $currentcount = $getCount;
         } else {
             $currentcount = '';
         }
     } else {
         $currentcount = '';
     }
     $inputs = wf_TextInput('packet', __('Packet size'), $currentpack, false, 5);
     $inputs .= wf_TextInput('count', __('Count'), $currentcount, false, 5);
     $inputs .= wf_Submit(__('Save'));
     $result = wf_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php


示例17: migrate_UploadFile

 function migrate_UploadFile()
 {
     //путь сохранения
     $uploaddir = 'exports/';
     //белый лист расширений
     $allowedExtensions = array("txt", "csv");
     //по умолчанию надеемся на худшее
     $result = false;
     //проверяем точно ли текстовку нам подсовывают
     foreach ($_FILES as $file) {
         if ($file['tmp_name'] > '') {
             if (@(!in_array(end(explode(".", strtolower($file['name']))), $allowedExtensions))) {
                 $errormessage = 'Wrong file type';
                 die($errormessage);
             }
         }
     }
     $filename = vf($_FILES['uluserbase']['name']);
     $uploadfile = $uploaddir . $filename;
     if (move_uploaded_file($_FILES['uluserbase']['tmp_name'], $uploadfile)) {
         $result = $filename;
     }
     return $result;
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php


示例18: la_tag

             $url = $customRules[1];
         }
     }
     if (!empty($url)) {
         $show_pdf = la_tag('iframe src="' . $url . '" width="600px" height="800px"');
         $show_pdf .= la_tag('iframe', true);
         $inputs = la_CheckInput('custom_agreement', __('I have read text above and agree with terms of use'), FALSE, FALSE);
         $inputs .= la_delimiter();
         $inputs .= la_Submit(__('Order'));
         $show_pdf .= la_Form("", "POST", $inputs);
         show_window(__("You must accept license agreement"), $show_pdf);
     }
     if (isset($_POST['custom_agreement'])) {
         $date = GetFullApplyDate();
         $action = 'tagadd';
         $param = vf($_GET['service'], 3);
         $param = preg_replace('/\\0/s', '', $param);
         $param = strip_tags($param);
         $param = mysql_real_escape_string($param);
         $note = 'Order from userstats';
         if (checkTask($user_login, $action, $param)) {
             createTask($date, $user_login, $action, $param, $note);
         }
         rcms_redirect('?module=adservice&action=add&wait=true');
     }
 }
 if (!isset($_GET['accept'])) {
     show_window(__('Aditional services'), __('You can order aditional services. Available services - listed below.'));
     show_window(__('Aditional services cost'), AdServicesList($serviceCost, $us_config['currency']));
     show_window(__('Order aditional service'), AdServicesSelector($availableServices, $user_login));
     show_window(__('Activated services'), ShowAllOrderedServices($availableServices, $user_login));
开发者ID:nightflyza,项目名称:Ubilling,代码行数:31,代码来源:index.php


示例19: switch

     break;
 case 'document':
     switch ($action) {
         case 'download':
             if (wf_CheckGet(array('id'))) {
                 $id = vf($_GET['id'], 3);
                 if (method_exists($obj, $runtime['METHOD']['DCMNTSDWNLD'])) {
                     $obj->{$runtime}['METHOD']['DCMNTSDWNLD']($id);
                 }
             } else {
                 rcms_redirect($obj::URL_HOME);
             }
             break;
         case 'delete':
             if (wf_CheckGet(array('id'))) {
                 $id = vf($_GET['id'], 3);
                 if (method_exists($obj, $runtime['METHOD']['DCMNTSDLT'])) {
                     $obj->{$runtime}['METHOD']['DCMNTSDLT']($id);
                 }
             } else {
                 rcms_redirect($obj::URL_HOME);
             }
             break;
         default:
             // Переадресация на главную стр. модуля при попытке доступа
             // к несуществующему обработчику $_GET['action']:
             rcms_redirect($obj::URL_HOME);
             break;
     }
     break;
 default:
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php


示例20: zb_UserGetNotes

/**
 * Returns user notes database field for some user
 * 
 * @param string $login existing user login
 * @return string
 */
function zb_UserGetNotes($login)
{
    $login = vf($login);
    $query = "SELECT `note` from `notes` WHERE `login`='" . $login . "'";
    $result = simple_query($query);
    $result = $result['note'];
    return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:14,代码来源:api.userdata.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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