PHP short-open-tags fixed
This commit is contained in:
parent
74fa8136d2
commit
2679cd9e4a
12 changed files with 21 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
|
||||
$r = redisLink();
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@
|
|||
<div id="page">
|
||||
<div id="header">
|
||||
<a href="/"><img style="border:none" src="logo.png" width="192" height="85" alt="Retwis"></a>
|
||||
<? include("navbar.php") ?>
|
||||
<?php include("navbar.php") ?>
|
||||
</div>
|
||||
|
|
|
|||
10
home.php
10
home.php
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
if (!isLoggedIn()) {
|
||||
header("Location: index.php");
|
||||
|
|
@ -9,7 +9,7 @@ $r = redisLink();
|
|||
?>
|
||||
<div id="postform">
|
||||
<form method="POST" action="post.php">
|
||||
<?=utf8entities($User['username'])?>, what you are doing?
|
||||
<?php echo utf8entities($User['username']) ?>, what you are doing?
|
||||
<br>
|
||||
<table>
|
||||
<tr><td><textarea cols="70" rows="3" name="status"></textarea></td></tr>
|
||||
|
|
@ -17,11 +17,11 @@ $r = redisLink();
|
|||
</table>
|
||||
</form>
|
||||
<div id="homeinfobox">
|
||||
<?=$r->zcard("followers:".$User['id'])?> followers<br>
|
||||
<?=$r->zcard("following:".$User['id'])?> following<br>
|
||||
<?php echo $r->zcard("followers:".$User['id'])?> followers<br>
|
||||
<?php echo $r->zcard("following:".$User['id'])?> following<br>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
$start = gt("start") === false ? 0 : intval(gt("start"));
|
||||
showUserPostsWithPagination(false,$User['id'],$start,10);
|
||||
include("footer.php")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
|
||||
if (!isLoggedIn()) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
|
||||
# Form sanity checks
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
|
||||
if (!isLoggedIn()) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<div id="navbar">
|
||||
<a href="index.php">home</a>
|
||||
| <a href="timeline.php">timeline</a>
|
||||
<?if(isLoggedIn()) {?>
|
||||
<?php if(isLoggedIn()) { ?>
|
||||
| <a href="logout.php">logout</a>
|
||||
<?}?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
|
|
|||
2
post.php
2
post.php
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
|
||||
if (!isLoggedIn() || !gt("status")) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
include("header.php");
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ if (isLoggedIn() && $User['id'] != $userid) {
|
|||
}
|
||||
}
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
$start = gt("start") === false ? 0 : intval(gt("start"));
|
||||
showUserPostsWithPagination(gt("u"),$userid,$start,10);
|
||||
include("footer.php")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
|
||||
# Form sanity checks
|
||||
|
|
@ -33,6 +33,6 @@ include("header.php");
|
|||
?>
|
||||
<h2>Welcome aboard!</h2>
|
||||
Hey <?=utf8entities($username)?>, now you have an account, <a href="index.php">a good start is to write your first message!</a>.
|
||||
<?
|
||||
<?php
|
||||
include("footer.php")
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
require 'Predis/Autoloader.php';
|
||||
Predis\Autoloader::register();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?
|
||||
<?php
|
||||
include("retwis.php");
|
||||
include("header.php");
|
||||
?>
|
||||
<h2>Timeline</h2>
|
||||
<i>Latest registered users (an example of sorted sets)</i><br>
|
||||
<?
|
||||
<?php
|
||||
showLastUsers();
|
||||
?>
|
||||
<i>Latest 50 messages from users aroud the world!</i><br>
|
||||
<?
|
||||
<?php
|
||||
showUserPosts(-1,0,50);
|
||||
include("footer.php")
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue