Exemple #1
0
?>
			 <div id="trigger"></div>
			<a href="/"> 
            <div class="logo1_header">
				<img src="images/logo_cd84.png" alt="Logo du cd" />
			</div> </a>
			<a href="http://www.tennisdetablepaca.fr/index.php/accueil/general/:infos" target="_blank" class="logo2_header"><img src="images/logo_ligue_paca.png" alt="" /></a>
            
            <section>
			    <aside>
                   <?php 
include "menu-mobile.php";
?>
                </aside>
                <article>
                    <ul id="news">
                        <?php 
displayNews($news);
?>
                    </ul>
                </article>
            </section>
			<?php 
include "forms.php";
?>
		<?php 
include "footer.php";
?>
    </body>
</html>
Exemple #2
0
 if (isset($_GET['getFollowers'])) {
     show_followers($bd);
 } else {
     if (isset($_GET['getSuivi'])) {
         show_whoIFollow($bd);
     } else {
         if (isset($_GET['getTimeline'])) {
             $touitos = gettouitos($bd, $_SESSION['id']);
             show_timeline($touitos, $bd);
         } else {
             if (isset($_POST['acceptRequest'])) {
                 $touitos = gettouitos($bd, $_POST['suiveur']);
                 anwserRequest($bd, $touitos, $_POST['acceptRequest']);
             } else {
                 if (isset($_GET['moreNewsTouite'])) {
                     displayNews($bd, intval($_GET['offset']));
                 } else {
                     if (isset($_GET['moreProfileTouite'])) {
                         getMoreProfileTouite($bd, intval($_GET['offset']), $_GET['id']);
                     } else {
                         if (isset($_POST['deleteAccount'])) {
                             $th = new touitosHandler($bd);
                             $connectedUser = $th->getByAttr("pseudo", $_SESSION['user'], PDO::PARAM_STR);
                             if ($connectedUser->getPWD() != md5($_POST['password'])) {
                                 echo '<div>Mot de Passe incorrect</div>';
                             } else {
                                 echo "OK";
                                 deleteAccount($bd);
                             }
                         } else {
                             if (isset($_GET['discussion'])) {
Exemple #3
0
<?php

include 'nav.php';
?>
	<div id="pageDisplay">

		<div style="width:70%;margin:auto;">
			<img style="width:100%" src="saikyou.jpg">
		</div>

		<?php 
if (isConnected()) {
    $newsAffiche = false;
    echo '<div id="news">';
    $newsAffiche = displayNews($bd, 0);
    echo '</div>';
    if ($newsAffiche) {
        echo '<div id="loadMoreTouiteDiv">
					<button id="loadMoreNewsTouite" next="1">+ de Touites</button>

				</div>';
    }
}
?>
	</div>

</body>
</html>
                }
                if ($link != "" && $title2 != "") {
                    $content .= "<tr><td><a href=\"index.php?url_upload=" . $link . "\"><img src=\"images/download_owner.gif\" width=\"16\" border=\"0\" height=\"16\" title=\"" . $link . "\">" . $title2 . "</a></td><td> " . $pubDate . "</td></tr>\n";
                } else {
                    $content .= "<tr><td  class=\"tiny\"><img src=\"images/download_owner.gif\" width=\"16\" height=\"16\">" . ScrubDescription(str_replace("Torrent: <a href=\"", "Torrent: <a href=\"index.php?url_upload=", html_entity_decode($rs["items"][$i]["description"])), $title2) . "</td><td valign=\"top\">" . $pubDate . "</td></tr>";
                }
            }
        } else {
            // Request timed out, display timeout message
            echo "<br>**** RSS timed out: <a href=\"" . $url . "\" target=\"_blank\">" . $url . "</a>";
        }
        if ($content != "") {
            // Close the content and add a line break
            $content .= "<br>";
        }
        displayNews($title, $pageUrl, $content, $rid);
    }
}
DisplayFoot();
function displayNews($title, $pageUrl, $content, $rid)
{
    global $cfg;
    // Draw the Table
    echo "<a name=\"" . $rid . "\"></a><table width=\"760\" border=1 bordercolor=\"" . $cfg["table_admin_border"] . "\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"" . $cfg["table_data_bg"] . "\">";
    echo "<tr><td colspan=2 bgcolor=\"" . $cfg["table_header_bg"] . "\" background=\"themes/" . $cfg["theme"] . "/images/bar.gif\">";
    echo "<img src=\"images/properties.png\" width=18 height=13 border=0>&nbsp;&nbsp;<strong><a href=\"" . $pageUrl . "\" target=\"_blank\"><font class=\"adminlink\">" . $title . "</font></a>&nbsp;&nbsp;<font class=\"tinywhite\">[<a href=\"#\"><font class=\"tinywhite\">top</font></a>]</font></strong>";
    echo "</td></tr>";
    echo "<tr><td bgcolor=\"" . $cfg["table_header_bg"] . "\"><div align=center class=\"title\">" . _TORRENTFILE . "</div></td>";
    echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\" width=\"33%\"><div align=center class=\"title\">" . _TIMESTAMP . "</div></td>";
    echo $content;
    echo "</table>";
Exemple #5
0
                </ul>
                <h2 id="inter-club" class="scroll-to">Inter clubs</h2>
                <ul class="news">
                    <?php 
displayNews($news2);
?>
                </ul>
                <h2 id="inter-comite" class="scroll-to">Inter comités</h2>
                <ul class="news">
                    <?php 
displayNews($news3);
?>
                </ul>
                <h2 id="autres" class="scroll-to">Autres</h2>
                <ul class="news">
                    <?php 
displayNews($news4);
?>
                </ul>
                   
                </article>
            </section>
            <?php 
include "forms.php";
?>
		<?php 
include "footer.php";
?>
    </body>
</html>