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


PHP GetDomain函数代码示例

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


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

示例1: embed

 /**
  * Function display embed pin popup page
  * @param  : <Int> $boardId,$pinId
  * @author : Anup
  * @return
  */
 public function embed($boardId, $pinId)
 {
     $data['title'] = "Action";
     $data['pinId'] = $pinId;
     $data['boardId'] = $boardId;
     $pinDetails = getPinDetails($pinId);
     $data['pin_url'] = $pinDetails->pin_url;
     $data['source_url'] = $pinDetails->source_url;
     $data['pin_link'] = site_url('board/pins/' . $boardId . '/' . $pinId);
     $data['site_link'] = site_url();
     $userDetails = userDetails($pinDetails->user_id);
     $data['user'] = $userDetails['name'];
     $data['user_link'] = site_url('user/index/' . $pinDetails->user_id);
     $data['source_name'] = GetDomain($pinDetails->source_url);
     $this->load->view('embedPin_view', $data);
 }
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:22,代码来源:verification.php

示例2: ajaxEmbed

 public function ajaxEmbed()
 {
     $data['title'] = "Action";
     $data['pinId'] = $pinId = $this->input->post('pin_id');
     $data['boardId'] = $boardId = $this->input->post('board_id');
     $pinDetails = getPinDetails($pinId);
     $data['pin_url'] = $pinDetails->pin_url;
     $data['source_url'] = $pinDetails->source_url;
     $data['pin_link'] = site_url('board/pins/' . $boardId . '/' . $pinId);
     $data['site_link'] = site_url();
     $userDetails = userDetails($pinDetails->user_id);
     $data['user'] = $userDetails['name'];
     $data['user_link'] = site_url('user/index/' . $pinDetails->user_id);
     $data['source_name'] = GetDomain($pinDetails->source_url);
     $value = $this->load->view('embedPin_view', $data, true);
     echo json_encode($value);
 }
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:17,代码来源:action.php

示例3: userDetails

                                <div class="convo_blk attribution">
                                    <?php 
                $userDetails = userDetails($boardPinValue->user_id);
                ?>
                                    <a href="<?php 
                echo site_url('user/index/' . $boardPinValue->user_id);
                ?>
" class="convo_img">
                                        <img src="<?php 
                echo $userDetails['image'];
                ?>
" alt="user" />
                                    </a>
                                    <p>
                                        <?php 
                $source = GetDomain($boardPinValue->source_url);
                ?>
                                        <?php 
                $boardDetails = getBoardDetails($boardPinValue->board_id);
                ?>
                                        <a href="<?php 
                echo site_url('user/index/' . $boardPinValue->user_id);
                ?>
"><?php 
                echo $userDetails['name'];
                ?>
</a>
                                        <?php 
                if ($boardPinValue->source_url != "") {
                    ?>
                                            Via <a target="_blank" href="<?php 
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:31,代码来源:allpins_view.php

示例4: userDetails

                        <div class="convo_blk attribution">
                            <?php 
        $userDetails = userDetails($searchResultValue->user_id);
        ?>
                            <a href="<?php 
        echo site_url('user/index/' . $searchResultValue->user_id);
        ?>
" class="convo_img">
                                <img src="<?php 
        echo $userDetails['image'];
        ?>
" alt="cogzidel" />
                            </a>
                            <p>
                                <?php 
        $gift = GetDomain($searchResultValue->pin_url);
        ?>
                                <?php 
        $boardDetails = getBoardDetails($searchResultValue->board_id);
        ?>
                                <a href="<?php 
        echo site_url('user/index/' . $searchResultValue->user_id);
        ?>
"><?php 
        echo $userDetails['name'];
        ?>
</a>
                                Via <a target="_blank" href="<?php 
        echo $searchResultValue->pin_url;
        ?>
"><?php 
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:31,代码来源:search_pin_view.php

示例5: userDetails

                            <div class="convo_blk attribution">
                                <?php 
                $userDetails = userDetails($activityValue->user_id);
                ?>
                                <a href="<?php 
                echo site_url('user/index/' . $activityValue->user_id);
                ?>
" class="convo_img">
                                    <img src="<?php 
                echo $userDetails['image'];
                ?>
" alt="cogzidel" />
                                </a>
                                <p>
                                    <?php 
                $source = GetDomain($activityValue->source_url);
                ?>
                                    <?php 
                $boardDetails = getBoardDetails($activityValue->board_id);
                ?>
                                    <a href="<?php 
                echo site_url('user/index/' . $activityValue->user_id);
                ?>
"><?php 
                echo $userDetails['name'];
                ?>
</a>
                                     <?php 
                if ($activityValue->source_url != "") {
                    ?>
                                        Via <a target="_blank" href="<?php 
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:31,代码来源:activity_view.php

示例6: userDetails

                        <div class="convo_blk attribution">
                            <?php 
        $userDetails = userDetails($sourcePinValue->user_id);
        ?>
                            <a href="<?php 
        echo site_url('user/index/' . $sourcePinValue->user_id);
        ?>
" class="convo_img">
                                <img src="<?php 
        echo $userDetails['image'];
        ?>
" alt="cogzidel" />
                            </a>
                            <p>
                                <?php 
        $source = GetDomain($sourcePinValue->source_url);
        ?>
                                <?php 
        $boardDetails = getBoardDetails($sourcePinValue->board_id);
        ?>
                                <a href="<?php 
        echo site_url('user/index/' . $sourcePinValue->user_id);
        ?>
"><?php 
        echo $userDetails['name'];
        ?>
</a>
                                Via <a target="_blank" href="<?php 
        echo $sourcePinValue->source_url;
        ?>
"><?php 
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:31,代码来源:videopins_view.php

示例7: userDetails

            <div class="convo_blk attribution">
                <?php 
    $userDetails = userDetails($value->user_id);
    ?>
                <a href="<?php 
    echo site_url('user/index/' . $value->user_id);
    ?>
" class="convo_img">
                    <img src="<?php 
    echo $userDetails['image'];
    ?>
" alt="cogzidel" />
                </a>
                <p>
                    <?php 
    $source = GetDomain($value->source_url);
    ?>
                    <?php 
    $boardDetails = getBoardDetails($value->board_id);
    ?>
                    <a href="<?php 
    echo site_url('user/index/' . $value->user_id);
    ?>
"><?php 
    echo $userDetails['name'];
    ?>
</a>
                    Via <a href="<?php 
    echo $value->source_url;
    ?>
"><?php 
开发者ID:selbachgra,项目名称:http-localhost-42675,代码行数:31,代码来源:board_view_pinfull.php

示例8: base_url

?>
application/ui/css/style1.css" rel="stylesheet" type="text/css" />
<link href="<?php 
echo base_url();
?>
application/ui/css/popup.css" rel="stylesheet" type="text/css" />
<?php 
$pinDetails = getPinDetails($pinId, $boardId);
$userDetails = userDetails($pinDetails->user_id);
$data['userDetails'] = $userDetails;
$data['id'] = $userDetails['userId'];
$source = GetDomain($pinDetails->source_url);
if ($pinDetails->source_url != "") {
    ?>
    <?php 
    $source = $sourceName = GetDomain($pinDetails->source_url);
} else {
    ?>
    <?php 
    $sourceName = 'User uploaded pin';
    $source = false;
}
$sourcePins = getPinsBySource($source, $random = true);
?>
 <?php 
$encode_source = base64_encode($source);
?>

<div class="inside_midd_wrap" >
    <div class="inside_left_items_box" id="inside_left_items_box" style="height: auto;">
            <div class="insde_pin_topbox">
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:31,代码来源:pinpage_view.php

示例9: userDetails

                        <div class="convo_blk attribution">
                            <?php 
        $userDetails = userDetails($giftPinValue->user_id);
        ?>
                            <a href="<?php 
        echo site_url('user/index/' . $giftPinValue->user_id);
        ?>
" class="convo_img">
                                <img src="<?php 
        echo $userDetails['image'];
        ?>
" alt="cogzidel" />
                            </a>
                            <p>
                                <?php 
        $gift = GetDomain($giftPinValue->source_url);
        ?>
                                <?php 
        $boardDetails = getBoardDetails($giftPinValue->board_id);
        ?>
                                <a href="<?php 
        echo site_url('user/index/' . $giftPinValue->user_id);
        ?>
"><?php 
        echo $userDetails['name'];
        ?>
</a>
                                <?php 
        if ($giftPinValue->source_url != "") {
            ?>
                                    Via <a target="_blank" href="<?php 
开发者ID:selbachgra,项目名称:http-localhost-42675,代码行数:31,代码来源:gift_view.php

示例10: userDetails

                            <div class="convo_blk attribution">
                                <?php 
            $userDetails = userDetails($likeValue->user_id);
            ?>
                                <a href="<?php 
            echo site_url('user/index/' . $likeValue->user_id);
            ?>
" class="convo_img">
                                    <img src="<?php 
            echo $userDetails['image'];
            ?>
" alt="cogzidel" />
                                </a>
                                <p>
                                    <?php 
            $source = GetDomain($likeValue->source_url);
            ?>
                                    <?php 
            $boardDetails = getBoardDetails($likeValue->board_id);
            ?>
                                    <a href="<?php 
            echo site_url('user/index/' . $likeValue->user_id);
            ?>
"><?php 
            echo $userDetails['name'];
            ?>
</a>
                                    <?php 
            if ($likeValue->source_url != "") {
                ?>
                                        Via <a target="_blank" href="<?php 
开发者ID:alokthakur142,项目名称:CMPE-203-Pinterest-Like-WebApplication,代码行数:31,代码来源:like_view.php


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