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


PHP FS函数代码示例

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


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

示例1: getHomeNav

/**
 * 右侧会员空间导航模块
 * @param $uid
 */
function getHomeNav($args)
{
    list($uid, $active) = explode(',', $args);
    unset($args);
    $args = array('uid' => $uid, 'active' => $active, 'user' => FS('User')->getUserById($uid), 'user_show_name' => FS('User')->getUserShowName($uid));
    return tplFetch('inc/u/home_nav', $args);
}
开发者ID:dalinhuang,项目名称:concourse,代码行数:11,代码来源:u.dynamic.php

示例2: getImageServer

 public function getImageServer($server = '', $request = array())
 {
     global $_FANWE;
     $result = array();
     $result['status'] = 0;
     if ($_FANWE['uid'] == 0) {
         return $result;
     }
     $type = $request['type'];
     switch ($type) {
         case 'uploadphoto':
             $server = FS("Image")->formatServer($server, 'DE');
             break;
         case 'uploadavatar':
             $server = FS("Image")->getServer($_FANWE['user']['server_code']);
             break;
     }
     $server = FS("Image")->getImageUrlToken($request['args'], $server);
     if ($server === false) {
         return $result;
     }
     switch ($type) {
         case 'uploadphoto':
             $cache_file = getTplCache('services/image/pic_item');
             $args = array();
             $result['html'] = base64_encode(tplFetch("services/image/pic_item", $args, '', $cache_file));
             break;
     }
     $result['status'] = 1;
     $result['max_upload'] = (int) $_FANWE['setting']['max_upload'];
     $result['url'] = $server['url'];
     $result['token'] = $server['token'];
     $result['image_server'] = $server['image_server'];
     return $result;
 }
开发者ID:BGCX261,项目名称:zhubao-tupu-svn-to-git,代码行数:35,代码来源:fanwe.service.php

示例3: templetsave

 public function templetsave()
 {
     FS("emailtxt", $_POST['email'], "Webconfig/");
     FS("smstxt", $_POST['sms'], "Webconfig/");
     FS("msgtxt", $_POST['msg'], "Webconfig/");
     $this->success("操作成功", __URL__ . "/templet/");
 }
开发者ID:hutao1004,项目名称:yintt,代码行数:7,代码来源:MsgonlineAction.class.php

示例4: save

 /**
  * 保存参数
  * 
  */
 public function save()
 {
     FS("loanconfig", $_POST['loan'], "Webconfig/");
     alogs("Age", 0, 1, '托管设置操作成功!');
     //管理员操作日志
     $this->success("操作成功", __URL__ . "/index/");
 }
开发者ID:GStepOne,项目名称:CI,代码行数:11,代码来源:TrustAction.class.php

示例5: run

 public function run()
 {
     global $_FANWE;
     $root = array();
     $root['return'] = 1;
     //未登陆直接退出
     if ($_FANWE['uid'] == 0) {
         $root['status'] = -1;
         m_display($root);
     }
     $uid = (int) $_FANWE['requestData']['uid'];
     //没有关注的会员编号直接退出
     if ($uid == 0) {
         $root['status'] = -2;
         m_display($root);
     }
     //没有会员直接退出
     if (!FS('User')->getUserExists($uid)) {
         $root['status'] = -3;
         m_display($root);
     }
     if (FS('User')->followUser($uid)) {
         $root['is_follow'] = 1;
     } else {
         $root['is_follow'] = 0;
     }
     $root['status'] = 1;
     m_display($root);
 }
开发者ID:BGCX261,项目名称:zhubao-tupu-svn-to-git,代码行数:29,代码来源:followuser.mapi.php

示例6: run

    public function run()
    {
        global $_FANWE;
        $root = array();
        $root['return'] = 1;
        $root['act'] = 'delcomment';
        if ($_FANWE['uid'] == 0) {
            exit;
        }
        $comment_id = intval($_FANWE['requestData']['id']);
        if ($comment_id == 0) {
            exit;
        }
        $share = FDB::fetchFirst('SELECT s.uid,s.share_id  
			FROM ' . FDB::table('share_comment') . ' AS sc 
			INNER JOIN ' . FDB::table('share') . ' AS s ON s.share_id = sc.share_id 
			WHERE sc.comment_id = ' . $comment_id);
        if (empty($share)) {
            exit;
        }
        $uid = intval($share['uid']);
        if ($uid != $_FANWE['uid']) {
            exit;
        }
        FS('Share')->deleteShareComment($comment_id);
        $root['return'] = 1;
        m_display($root);
    }
开发者ID:BGCX261,项目名称:zhubao-tupu-svn-to-git,代码行数:28,代码来源:delcomment.mapi.php

示例7: save

 public function save()
 {
     alogs("Loginonline", 0, 1, '执行了登陆接口管理参数编辑操作!');
     //管理员操作日志
     FS("loginconfig", $_POST['login'], "Webconfig/");
     $this->success("操作成功", __URL__ . "/index/");
 }
开发者ID:kinglong366,项目名称:p2p,代码行数:7,代码来源:LoginonlineController.class.php

示例8: getIndexTodayDaren

    /**  
     * 获取首页今日达人
     * @param int $num 数量
     * @return array
     */
    public function getIndexTodayDaren($num = 1)
    {
        global $_FANWE;
        $today_time = getTodayTime();
        $data = getCache('daren/index/today');
        if ($data === NULL || $data['time'] != $today_time) {
            $sql = 'SELECT uid,index_img,img  
				FROM ' . FDB::table('user_daren') . ' 
				WHERE status = 1 AND is_index = 1 AND index_img <> \'\' AND day_time = ' . $today_time;
            $data['list'] = FDB::fetchAll($sql);
            if (empty($data['list'])) {
                $sql = 'SELECT uid,index_img,img  
					FROM ' . FDB::table('user_daren') . ' 
					WHERE status = 1 AND is_index = 1 AND index_img <> \'\' ORDER BY day_time DESC LIMIT 0,5';
                $data['list'] = FDB::fetchAll($sql);
            }
            $data['time'] = $today_time;
            setCache('daren/index/today', $data);
        }
        if (empty($data['list'])) {
            return false;
        }
        $daren = $data['list'][array_rand($data['list'])];
        $_FANWE['index_today_daren'] = $daren['uid'];
        $daren['user'] = FS('User')->getUserCache($daren['uid']);
        return $daren;
    }
开发者ID:BGCX261,项目名称:zhubao-tupu-svn-to-git,代码行数:32,代码来源:daren.service.php

示例9: run

 public function run()
 {
     global $_FANWE;
     $root = array();
     $root['return'] = 0;
     FanweService::instance()->cache->loadCache(array('mindex', 'madv'));
     $advs = $_FANWE['cache']['madv']['index'];
     if ($advs) {
         foreach ($advs as $adv) {
             $adv['img'] = FS("Image")->getImageUrl($adv['img'], 2);
             if ($adv['type'] == 1) {
                 $tag_count = count($adv['data']['tags']);
                 unset($adv['data']);
                 $adv['data']['count'] = $tag_count;
             } elseif ($adv['type'] != 2 && $adv['type'] != 8) {
                 unset($adv['data']);
             }
             unset($adv['sort'], $adv['status'], $adv['page']);
             $root['advs'][] = $adv;
         }
     }
     foreach ($_FANWE['cache']['mindex'] as $index) {
         $index['img'] = FS("Image")->getImageUrl($index['img'], 2);
         if ($index['type'] == 1) {
             $tag_count = count($index['data']['tags']);
             unset($index['data']);
             $index['data']['count'] = $tag_count;
         } elseif ($index['type'] != 2 && $index['type'] != 8) {
             unset($index['data']);
         }
         unset($index['sort'], $index['status']);
         $root['indexs'][] = $index;
     }
     m_display($root);
 }
开发者ID:BGCX261,项目名称:zhubao-tupu-svn-to-git,代码行数:35,代码来源:index.mapi.php

示例10: offline

 public function offline()
 {
     $this->getPaydetail();
     $this->paydetail['money'] = floatval($_POST['money_off']);
     //本地要保存的信息
     $payimg_arr = $_POST['swfimglist'];
     if (count($payimg_arr)) {
         $this->paydetail['payimg'] = serialize($payimg_arr);
     } else {
         $this->paydetail['payimg'] = '';
     }
     $config = FS("Webconfig/payoff");
     $bank_id = intval($_POST['bank']) - 1;
     $this->paydetail['fee'] = 0;
     $this->paydetail['nid'] = 'offline';
     $this->paydetail['way'] = 'off';
     $this->paydetail['tran_id'] = text($_POST['tran_id']);
     $this->paydetail['off_bank'] = $config['BANK'][$bank_id]['bank'] . ' 开户名:' . $config['BANK'][$bank_id]['payee'];
     $this->paydetail['off_way'] = text($_POST['off_way']);
     $newid = M('member_payonline')->add($this->paydetail);
     if ($newid) {
         $this->success("线下充值提交成功,请等待管理员审核", __APP__ . "/member/charge#fragment-2");
     } else {
         $this->success("线下充值提交失败,请重试");
     }
 }
开发者ID:GStepOne,项目名称:CI,代码行数:26,代码来源:PayAction.class.php

示例11: save

 public function save()
 {
     FS("id5", $_POST['id5'], "Webconfig/");
     alogs("id5", 0, 1, '执行了身份验证接口参数的编辑操作!');
     //管理员操作日志
     $this->success("操作成功", __URL__ . "/index/");
 }
开发者ID:caotieshuan,项目名称:ishoutou,代码行数:7,代码来源:Id5Action.class.php

示例12: offline

 public function offline()
 {
     $this->getPaydetail();
     $this->paydetail['money'] = floatval($_POST['money_off']);
     //本地要保存的信息
     $accept_bank = array(1 => '招商银行', 2 => '工商银行', 3 => '建设银行', 4 => '农业银行', 5 => '中国银行');
     $bank_id = intval($_POST['accept_bank']);
     $payimg_arr = $_POST['swfimglist'];
     if (count($payimg_arr)) {
         $this->paydetail['payimg'] = serialize($payimg_arr);
     } else {
         $this->paydetail['payimg'] = '';
     }
     $config = FS("Webconfig/payoff");
     $this->paydetail['fee'] = 0;
     $this->paydetail['nid'] = 'offline';
     $this->paydetail['way'] = 'off';
     $this->paydetail['tran_id'] = text($_POST['tran_id']);
     $this->paydetail['off_bank'] = $accept_bank[$bank_id];
     $this->paydetail['off_way'] = text($_POST['off_way']);
     $newid = M('member_payonline')->add($this->paydetail);
     if ($newid) {
         $this->success("线下充值提交成功,请等待管理员审核", __APP__ . "/member");
     } else {
         $this->error("线下充值提交失败,请重试");
     }
 }
开发者ID:caotieshuan,项目名称:ishoutou,代码行数:27,代码来源:PayAction.class.php

示例13: wapsave

 public function wapsave()
 {
     FS("wappayconfig", $_POST['pay'], "Webconfig/");
     alogs("Payonline", 0, 1, '执行了wap端第三方支付接口参数的编辑操作!');
     //管理员操作日志
     $this->success("操作成功le", __URL__ . "/wap");
 }
开发者ID:caotieshuan,项目名称:ishoutou,代码行数:7,代码来源:PayonlineAction.class.php

示例14: send

 /**
  * 发送系统通知
  * @return
  */
 public function send($data)
 {
     $data['uid'] = (int) $data['uid'];
     $data['create_time'] = TIME_UTC;
     FDB::insert('sys_notice', $data);
     FS('User')->updateNotice($data['uid'], 5);
 }
开发者ID:dalinhuang,项目名称:concourse,代码行数:11,代码来源:notice.service.php

示例15: __construct

 public function __construct()
 {
     $msgconfig = FS("Webconfig/msgconfig");
     $this->apiKey = $msgconfig['baidu']['apiKey'];
     $this->secretKey = $msgconfig['baidu']['secretKey'];
     parent::__construct();
 }
开发者ID:caotieshuan,项目名称:ishoutou,代码行数:7,代码来源:BaidupushAction.class.php


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