Пример #1
0
    }
} else {
    echo '<li><a href="login.php" style="float:right;">SE CONNECTER</a></li>
		        <li><a href="register.php" style="float:right;">S\'INSCRIRE</a></li>';
}
?>
        <div class="clearfix"></div>
		  </ul>
    </div>
    <div id="fastlinks">
      <a id="linkcurrent" href="rules.php">Règlement</a>
    </div>
    <div id="nav">
      <div id="news">
        <div id="header">Règlement</div></br>
        <?php 
$filename = "rules.txt";
$fp = fopen($filename, "r");
$content = fread($fp, filesize($filename));
$lines = explode("\n", $content);
fclose($fp);
echo getHTMLfromBB($content);
?>
      </div>
    </div>
		<div id="footer">
			Site crée par xBlurrrr, contact : azared601 (skype)
		</div>
  </body>
</html>
Пример #2
0
        <div id="container1">
          <table style="width:100%;">
            <?php 
$db = new PDO('mysql:host=' . $mysql_hostname . ';dbname=' . $mysql_database, $mysql_username, $mysql_password);
$sql = "SELECT * FROM `web_task` ORDER BY `task_level` DESC";
$req = $db->prepare($sql);
$req->execute();
$req->setFetchMode(PDO::FETCH_ASSOC);
while ($row = $req->fetch()) {
    echo '<div class="cnt">';
    echo '<div id="title">' . utf8_encode(stripslashes($row['task_name'])) . '</div>';
    echo '<div id="status">' . getTranslation($row['task_level'] . "_tlevel") . '</div>';
    echo '<div style="clear:both;"></div>';
    echo '<div id="more">';
    echo '<div id="creator">Tache créée par : ' . $dev->getName($row['uuid_creator']) . '</div>';
    echo '<div id="date">' . dateFR($row['date_created']) . '</div>';
    echo '<div style="clear:both;"></div>';
    echo '</br>';
    echo '<div id="desc">' . getHTMLfromBB($row['task_desc']) . '</div>';
    echo '</div>';
    echo '</div>';
}
?>
          </table>
        </div>
        <div id="container2"></div>
      </div>
    </div>
  </body>
</html>
Пример #3
0
<html>
<head>
<title>xii | Riid</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>

<div class="container">
<br><br>
<a href="/" class="glyphicon glyphicon-home" aria-hidden="true" style="font-size:26px; color:black;margin-right:10px;"></a>
There could be your date, but no, there's post's id : <?php 
echo $post->id;
?>
<hr>
<?php 
echo getHTMLfromBB($post->text);
?>
 <hr>

<?php 
if ($allowEdit) {
    ?>
	<a href="/<?php 
    echo $post->id;
    ?>
/edit" class="btn btn-primary">Edit</a>
	<a href="/<?php 
    echo $post->id;
    ?>
/delete" class="btn btn-danger">Delete</a>
<?php 
Пример #4
0
            echo '<img src="./uploads/avatars/default.png" style="width:90%; margin:2.5%;"/>';
        }
        echo '
                            </div>
                            <div id="user">
													    <span id="username">' . utf8_encode($dev->getName($key['uuid'])) . '</span></br>
													    <span id="rank">' . getTranslation($dev->getAdminLevel($key['uuid']) . '_level') . '</span>
                            </div>
                            <div id="desc">
                              <div id="row">Posté le:</div>
                              <div id="value">' . getDate2($key['date']) . '</div>
                            </div>
                          </div>
												</td>
												<td style="vertical-align:top; padding:10px;padding-top:0;">
													' . nl2br(getHTMLfromBB(utf8_encode(stripslashes($key['content'])))) . '
												</td>
												</tr>
											</table>
									</div>';
    }
} else {
    echo '<div style="margin:8px; padding:5px;  border: 1px solid #e8e8e8; box-shadow: inset 0 0 0 1px #fefefe, 0 1px 0 #dadada; width:350px;font-family:Tahoma, sans-serif; font-size:0.5em;">
									<h1>Aucun commentaire :(</h1>
								</div>';
}
?>

            <?php 
if (isset($_SESSION['user'])) {
    if ($dev->isConnected($_SESSION['user']['username'], $_SESSION['user']['password'], $_SESSION['user']['session_id'])) {
Пример #5
0
                <div id="month">' . getMonth($row["date"]) . '</div>
                <div id="day">' . getDay($row["date"]) . '</div>
              </div>
							<div id="header">' . stripslashes(utf8_encode($row["title"])) . '</div>
							<div id="content">
								<div id="detail">
									<div style="float:left;">Par <a id="link" href="/profiles/?id=' . $row["uuid_author"] . '">' . $dev->getName($row["uuid_author"]) . '</a></div>';
        $db_2 = new PDO('mysql:host=' . $mysql_hostname . ';dbname=' . $mysql_database, $mysql_username, $mysql_password);
        $sql_2 = "SELECT * FROM web_news_comments WHERE `news_id`= " . $row['id'] . ";";
        $req_res = $db_2->prepare($sql_2);
        $req_res->execute();
        $req_res->setFetchMode(PDO::FETCH_ASSOC);
        echo '<div style="float:right;"><a id="link" href="news.php?id=' . $row['id'] . '">' . $req_res->rowCount() . ' Commentaires</a></div>
									<div class="clearfix"></div>
								</div></br>
							' . utf8_encode(getHTMLfromBB($row["content"])) . '
							</div>
						</div>';
    }
} else {
    ?>
			<div id="news">
				<div id="header">Aucune news</div>
					Revenez plus tard!</br>
					peut etre qu'on auras changé des trucs héhé</br>
					Staff
				<div class="details">
					<div style="float:right;">
						Pl4SmA - 04/06/15
					</div>
					<div style="clear:both"></div>