<!--print_r($posts); --> <?php echo $post['content']; ?> <form action="/posts/p_delete/<?php echo $post['post_id']; ?> " method="post"> <input type="submit" name="delete" value="<?php echo $post['post_id']; ?> "/> </form> <?php echo Time::display($post['created'], 'Y-m-d G:i'); ?> <?php echo $post['first_name']; ?> <?php echo $post['content']; ?> <?php } ?> -->
<?php # Report information about our environment if (!IN_PRODUCTION && !Utils::is_ajax()) { echo "<div onClick='this.style.display = \"none\";' style='cursor:pointer; position:fixed; z-index:999; background-color:yellow; padding:3px; bottom:0px; left:0px;'>"; echo Time::display(Time::now()); if (ENABLE_OUTGOING_EMAIL) { echo "OUTGOING EMAILS ENABLED"; } else { echo " No outgoing emails"; } if (REMOTE_DB) { echo " <span style='color:red; font-weight:bold'>LIVE DB</span> "; } else { echo " Local DB;"; } echo "</div>"; }
public function test_time() { $full_moon = 1326119760; # Jan 9, 2012 07:30 GMT # Shows the time in your app's timezone echo "<br>App TZ: " . Time::display($full_moon); # Hard code in the timezone you want to display echo "<br>Los Angeles TZ: " . Time::display($full_moon, '', 'America/Los_Angeles'); # Or, assuming you know your user's timezone, pass it in as a variable //echo "<br>User's TZ: ".Time::display($full_moon, '', $this->user->timezone); }