Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by cgfgf ( 12 years ago )
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_web_include.php
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if ($profile_method == "input") {
 echo "<tr>\n";
 echo "<td class='tbl'>".$locale['uf_facebook'].":</td>\n";
  echo "<td class='tbl'><input type='text' name='user_facebook' value='".(isset($user_data['user_facebook']) ? $user_data['user_facebook'] : "")."' maxlength='50' class='textbox'  /></td>\n";
 echo "</tr>\n";
} elseif ($profile_method == "display") {
 if ($user_data['user_facebook']) {
  echo "<tr>\n";
   echo "<td width='1%' class='tbl1' >".$locale['uf_facebook']."</td>\n";
  echo "<td align='right' class='tbl1'>";
  if (!strstr($user_data['user_facebook'], "http://www.facebook.com/profile.php?id=") && !strstr($user_data['user_facebook'], "http://www.facebook.com/profile.php?id=")) {
   $urlprefix = "http://www.facebook.com/profile.php?id=";
  } else {
   $urlprefix = "http://www.facebook.com/profile.php?id=";
  }
  echo "<a href='".$urlprefix.$user_data[' title='".$urlprefix.$user_data[' target='_blank'><img src='".IMAGES."fb.png'></a>\n";
  echo "</td>\n</tr>\n";
 }
} elseif ($profile_method == "validate_insert") {
 $db_fields .= ", user_facebook";
 $db_values .= ", '".(isset($_POST['user_facebook']) ? stripinput(trim($_POST['user_facebook'])) : "")."'";
} elseif ($profile_method == "validate_update") {
 $db_values .= ", user_facebook='".(isset($_POST['user_facebook']) ? stripinput(trim($_POST['user_facebook'])) : "")."'";
}
?>

 

Revise this Paste

Your Name: Code Language: