當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Profile::retrieve方法代碼示例

本文整理匯總了PHP中Profile::retrieve方法的典型用法代碼示例。如果您正苦於以下問題:PHP Profile::retrieve方法的具體用法?PHP Profile::retrieve怎麽用?PHP Profile::retrieve使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Profile的用法示例。


在下文中一共展示了Profile::retrieve方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: explode

        </td></tr>



      </td></tr>

      </table>

      </td><td width=595 style="width:595px" valign=top>

        <table class="bordertable" cellspacing=0 cellpadding=0 border=1 width=100%><tr><td>
					<table cellspacing=0 cellpadding=2 border=0 width=100%> 
							<tr>
								<td class='white' bgcolor=#3B5998 colspan=2>
									Welcome <?php 
$fname = $profile->retrieve('name');
$fname = explode(" ", $fname);
echo $fname[0];
?>
!
								</td>
							</tr>
						</table>


	  <br>
<table cellspacing=0 cellpadding=6 border=0 width=97% align=center valign=top>
	<tr>
		<td width="95%" align=center valign=top>
			
			<center><p class='title'>[ Welcome <?php 
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:31,代碼來源:home.php

示例2: date

											<td>
											<form method="post" action="editprofile.php">
												<table cellspacing=0 cellpadding=2 border=0 width=100%>
													<tr>
														<td colspan=2>
															<b>Account Info:</b>
														</td>
														
													</tr>
													<tr>
														<td style="width:110px">
															Name:
														</td>
														<td style="width:430px">
															<?php 
echo $profile->retrieve('name');
?>
														</td>
													</tr>
													<tr>
														<td>
															Member&nbsp;Since:
														</td>
														<td>
															<?php 
echo date("F j, Y", strtotime($profile->retrieve('registerdate')));
?>
														</td>
													</tr>
													<tr>
														<td>
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:31,代碼來源:editprofile.php

示例3:

						</table>
						<center>
						<table cellspacing=0 cellpadding=2 border=0 width=95%>
							<tr>
								<td>
									<table cellspacing=0 cellpadding=0 border=0 width=100%>
										<tr>
											<td>
												<table cellspacing=0 cellpadding=2 border=0 width=100%>
													<tr>
														<td style="width:110px">
															Name:
														</td>
														<td style="width:430px">
															<?php 
    echo $profile->retrieve('name');
    ?>
<br>
															
														</td>
													</tr>
													<tr>
														<td colspan=2>
															<b>To edit your name, please contact info@thefacebook.us</b>
														</td>
													</tr>

													
												</table>
											
											</td>
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:31,代碼來源:account.php

示例4: strtolower

                $error = "You have too many pending friend requests, please try again later.";
                break;
            case -2:
                $error = "You are already in this relationship.";
                break;
            case -1:
                $error = "You cannot add yourself.";
                break;
            default:
                $error = "An error has occurred, please try again later.";
                $success = FALSE;
                break;
        }
        $error .= "<br>";
    } else {
        $error = "</b></font>A request has been sent to " . $profile->retrieve("name") . " to confirm your request.";
        if ($_REQUEST['confirm'] == "Confirm") {
            $error = "</b></font>Confirmed! <a href='profile.php?id=" . $fid . "'>View their profile</a> or <a href='reqs.php'>Go Back to Pending Requests</a>";
        }
        if ($_REQUEST['deny'] == "Deny") {
            $error = "</b></font>The request has been removed. <a href='reqs.php'>Go Back to Pending Requests</a>";
        }
        $success = true;
    }
}
$yourpending = $relation->pending_requests();
if (in_array($fid, $yourpending)) {
    $success = true;
    $relationshipwanted = strtolower($relation->getname('relationshiptype', $relation->getrelationshiptype($id, $fid)));
    $error = "</b></font><form method=post action=addfriend.php><input type=hidden name=id value='" . $fid . "'><a href='profile.php?id=" . $fid . "'>" . $profile->retrieve("name") . "</a> would like you to confirm that you are " . $relationshipwanted . ". <input class=inputsubmit type=submit name='confirm' value='Confirm'><input class=inputsubmit type=submit name='deny' value='Deny'></form>";
}
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:31,代碼來源:addfriend.php

示例5:

<br>
<table cellspacing=0 cellpadding=6 border=0 width=97% align=center valign=top>
	<tr>


		<td width="100%" valign=top>

			<table class='bordertable' cellspacing=0 cellpadding=0 width=100% valign=top>
				<tr>
					<td>
						<table cellspacing=0 cellpadding=2 border=0 width=100%> 
							<tr>
								<td class='white' bgcolor=#3B5998>
									Remove your connection to <?php 
echo $profile->retrieve("name");
?>
								</td>
								
							</tr>
						</table>
						<?php 
if (!$success) {
    ?>
						<form method=post>
						<input type=hidden name=id value=<?php 
    echo $fid;
    ?>
>
						<table cellspacing=0 cellpadding=2 border=0 width=100%> 
							<tr>
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:30,代碼來源:confirmremove.php

示例6: header

}
if (!$connection && $sess->Retrieve('id') != 3) {
    header('Location: search.php?id=' . $id);
}
$friendarray = $profile->friendsids($uid, 0, 5000);
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$total_time = round($finish - $start, 4);
//echo 'Friend data loaded in: '.$total_time.' seconds.'."\n";
?>
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>TheFacebook | <?php 
echo $profile->retrieve('name');
?>
</title> 
<link rel="stylesheet" href="style.css"> 
<link rel="shortcut icon" href="favicon.ico"> 
</head>
 <body>
  <div id="fb-root"></div>
  <script>
    window.fbAsyncInit = function() {
   FB.Canvas.setAutoResize();
    };
    (function() {
   var e = document.createElement('script'); e.async = true;
   e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
   document.getElementById('fb-root').appendChild(e);
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:31,代碼來源:profile.php

示例7:

						<center>
						<table cellspacing=0 cellpadding=2 border=0 width=95%>
							<tr>
								<td>
									<table cellspacing=0 cellpadding=0 border=0 width=100%>
										<tr>
											<td>
											<form method="post" action="editpicture.php"  enctype="multipart/form-data" >
												<table cellspacing=0 cellpadding=2 border=0 width=100%>
													<tr>
														<td width=100px>
															<b>Your current picture:</b>
														</td>
														<td>
															<?php 
$pic = $profile->retrieve('defaultpicture');
echo "<img src='{$pic}'>";
?>
														</td>
													</tr>
													<tr>
														<td width=100px>
															<b>Select a file:</b>
														</td>
														<td>
															<input class='inputtext' style='width:90%' type=file name='picture'>
														</td>
													</tr>
													<tr>
														<td colspan=2 align=center>
															<input class='inputsubmit' type='submit' value="Upload">
開發者ID:jesobreira,項目名稱:thefacebook.us,代碼行數:31,代碼來源:editpicture.php


注:本文中的Profile::retrieve方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。