<?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'])) { $facebook->api_client->profile_setFBML($fbml, $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>';$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 @ </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;echo "<p>the following form was added to the profile box:</p>";echo $fbml;$facebook->api_client->profile_setFBML($fbml, $user);?>