本文整理汇总了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
示例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 Since:
</td>
<td>
<?php
echo date("F j, Y", strtotime($profile->retrieve('registerdate')));
?>
</td>
</tr>
<tr>
<td>
示例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>
示例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>";
}
示例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>
示例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);
示例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">