PHP short-open-tags fixed

This commit is contained in:
Frank Agerholm 2018-12-27 16:00:48 +01:00
commit 2679cd9e4a
12 changed files with 21 additions and 21 deletions

View file

@ -1,4 +1,4 @@
<?
<?php
include("retwis.php");
$r = redisLink();

View file

@ -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>

View file

@ -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")

View file

@ -1,4 +1,4 @@
<?
<?php
include("retwis.php");
if (!isLoggedIn()) {

View file

@ -1,4 +1,4 @@
<?
<?php
include("retwis.php");
# Form sanity checks

View file

@ -1,4 +1,4 @@
<?
<?php
include("retwis.php");
if (!isLoggedIn()) {

View file

@ -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>

View file

@ -1,4 +1,4 @@
<?
<?php
include("retwis.php");
if (!isLoggedIn() || !gt("status")) {

View file

@ -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")

View file

@ -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")
?>

View file

@ -1,4 +1,4 @@
<?
<?php
require 'Predis/Autoloader.php';
Predis\Autoloader::register();

View file

@ -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")
?>