#sadtrombone.TDLive.gnu-gpl.1.0.1.php #Copyright 2011 TDLive. Licensed under the GNU GPL. #required app code include "app-basics.php"; $appname = "SadTrombone"; $apppage = "lsadtrombone"; $user = AppUser(); ?> <html> <head> <title>Sad Trombone</title> </head> <body> <div id="widget_sadtrombone"></div><p align="Center"><center><?php AppCreatePost("{$user} just got Trombone'd. :(", "Post to the Feed", $appname); ?> <script type="text/javascript"> //<![CDATA[ // widget width in pixels var sadtrombone_width = 180; //]]> </script> <script type="text/javascript" src="http://www.sadtrombone.com/widget/async-sadtrombone-widget.min.js"></script> <?php
<?php #Set the app name #app.TDLive.gnu-gpl.0.0.0.php #Copyright 2011 TDLive. Licensed under the GNU GPL. #Social Network required code include "app-basics.php"; $appname = "PostButton"; #Get the app user $user = AppUser(); ?> <html> <head> <title>My Special Example App</title> </head> <body> <?php AppCreatePost("I am {$user}. Fear me!", "I am {$user}. Fear me!", $appname); AppCreatePost("I love {$user}.", "I love {$user}.", $appname); AppCreatePost("{$user} is aw'sum.", "{$user} is aw'sum.", $appname); ?> </body> </html>
<?php AppExit(); ?> </body> </html> <?php } else { $is = $_POST['is']; $stringtopost = "{$user} {$is}."; ?> <html> <head> <title>Me! | <?php echo $stringtopost; ?> </title> </head> <body> <p align="center"><center> <?php AppCreatePost($stringtopost, "Ready to post {$stringtopost}?", $appname); ?> </p></center> <?php AppExit(); ?> </body> </html> <?php exit; }