All pastes #734146 Raw Edit

Mine

public php v1 · immutable
·published 2007-10-12 12:59 UTC
rendered paste body
<?php/*ini_set('display_errors','1');ini_set('display_startup_errors','1');ini_set('error_reporting', E_ALL);error_reporting (E_ALL); error_log("You messed up!", 0);echo "we are in";                 *//*if (isset($_REQUEST['mockfbmltext'])) {  echo $_REQUEST['mockfbmltext'];  exit;}*/require_once 'dbappinclude.php';echo "<p>hello $user</p>";$rs = query("select count from counter");if ($row = mysql_fetch_assoc($rs)) {  $count = $row['count'];  query("update counter set count=count+1");} else {  query("insert into counter values (1)");  $count = 1;}//sending data straight to the profileif (isset($_REQUEST['profiletext'])) {   $office = $_REQUEST['profiletext'];   echo "The current office you are registered to work at is :  $office ";    $fbml = <<<EndHereDoc    <table width="150" height="128" border="0">      <tr>        <td width="144"><div align="center"><strong>This user is/was an EF Staff Member @ $office</strong></div></td>      </tr>      <tr>        <td><div align="center"><a href="http://yancho.freehyperspace.com/"><img src="http://effacebook.solutions-lab.net/ef.jpg" alt="EF Logo" width="108" height="113" /></a></div></td>      </tr>      <tr>        <td><div align="center">Currenty there are $count users who added this application</div></td>      </tr>    </table>EndHereDoc;  $facebook->api_client->profile_setFBML($fbml, $user);  $story = "{actor} is listed as an EF Staff Member @ $office";  $facebook->api_client->Feed_publishStoryToUser($story, $user);  //$facebook->redirect($facebook->get_facebook_url() . '/profile.php');}echo '<br><br><form action="" method="get">';echo '<input name="profiletext" type="text" size="30" value=""><br>Please include which Office you work/ed with<br><br><br>';echo '<input name="submit" type="submit" value="Press Submit to confirm you are / were an EF Member">';echo '</form>';$fbml2 = "this is a testing";$facebook->api_client->profile_setFBML($fbml2, $user);echo "<p>the following form was added to the profile box: $fbml</p>";//echo $fbml;?>