- Enforce minimum elapsed time on registration form
[scuttle] / api / posts_recent.php
index 22fc2bdef04fb60fd6b3a54b48c819cb1f9c8b26..476eecb3133ed89004c6ec3670f89621e593e4ff 100644 (file)
@@ -4,14 +4,14 @@
 
 // Set default and max number of posts
 $countDefault = 15;
-$countMax = 100;
+$countMax     = 100;
 
 // Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
 
 $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice     =& ServiceFactory::getServiceInstance('UserService');
 
 // Check to see if a tag was specified.
 if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
@@ -41,7 +41,7 @@ header('Content-Type: text/xml');
 echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
 echo '<posts tag="'. (is_null($tag) ? '' : filter($tag, 'xml')) .'" user="'. filter($currentusername, 'xml') ."\">\r\n";
 
-foreach($bookmarks['bookmarks'] as $row) {
+foreach ($bookmarks['bookmarks'] as $row) {
     if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))
         $description = '';
     else
@@ -60,4 +60,3 @@ foreach($bookmarks['bookmarks'] as $row) {
 }
 
 echo '</posts>';
-?>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?