Hacked By AnonymousFox

Current Path : /home/missmand/public_html/js/lightbox/
Upload File :
Current File : /home/missmand/public_html/js/lightbox/sujet.php.tar

home/missmand/public_html/learning/forum/sujet.php000064400000007646152002045620016414 0ustar00<?php

	include '../lib/init.php';
	Utilisateur::verif_connect();

	$themeId = Tool::getId($_GET['theme'],'forum.php');
	Auth::themeAuth($bdd,$themeId); /* Verifier l'accès au thème */

    /* Recherche */
    if(isset($_POST['add'])){
        Recherche::postRecherche('sujet');
    }
    extract(Recherche::getRecherche('sujet',array('recherche')));

    /* Récupération des informations */
	$sql = $bdd->query("SELECT themeNom, themeForum, forumNom FROM forum_theme
						INNER JOIN forum ON themeForum = forumId
						WHERE themeId = $themeId ");
	$data = $sql->fetchObject();

	$forumId = $data->themeForum;
	$nom = $data->themeNom;
	$forumNom = $data->forumNom;
	
?>
<!doctype html>
<html lang="fr">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=320">
	<meta name="viewport" content="width=device-width; initial-scale=0.8; maximum-scale=0.8;">
	<title><?php echo $nom ?></title>
	<link rel="icon" type="image/png" href="<?php echo BASEFRONT ?>img/favicon.png" />
	<link href="<?php echo BASEFRONT ?>css/reset.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo BASEFRONT ?>css/template.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo BASEFRONT ?>css/sujet.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo BASEFRONT ?>css/mobile.css" rel="stylesheet" type="text/css" />
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
	<!--[if lt IE 9]>
		<script src="<?php echo BASEFRONT ?>js/html5.js"></script>
	<![endif]-->
</head>

<body>

	<div id="main">

		<?php
			/* Menu principal */
			include '../include/menu.php';
		?>

		<div id="conteneur">
			
			<header id="header">
				<div id="btnMenu"></div>
				<ul id="retour">
					<li><a href="<?php echo BASEFRONT ?>forum/theme.php?forum=<?php echo $forumId ?>"><?php echo sujetRetourRevenir.$forumNom ?></a></li>
					<li class="separation"> | </li>
					<li><?php echo $nom ?></li>
				</ul>
				<?php
					include '../include/portrait.php';
				?>
			</header>

			<div id="action">

				<a href="<?php echo BASEFRONT ?>forum/ajoutSujet.php?theme=<?php echo $themeId ?>" id="btnAjout"><?php echo sujetAjoutSujet ?></a>

				<form action="#" method="post">
					<input type="text" name="recherche" id="recherche" value="<?php echo $recherche ?>" placeholder="<?php echo sujetRecherchePlaceholder ?>"/>
					<input type="submit" name="add" value="" id="btnRecherche"/>
				</form>

			</div>

			<div id="contenu">

				<h2><?php echo sujetTitre ?></h2>

				<div id="sujet">
					
					<?php

						$requete = "SELECT * FROM forum_sujet
								    WHERE sujetTheme = $themeId ";
								    if(!empty($recherche))
								   		 $requete .= " AND sujetNom LIKE '%$recherche%' ";
								    $requete .= " AND sujetEtat = 1
								    			  ORDER BY sujetId DESC ";
						$sql = $bdd->query($requete);

						if($sql->rowCount() == 0){
							echo '<p class="empty">'.sujetEmpty.strtolower($nom).'</p>';
						}

						$count = 1;
							
						while($data = $sql->fetchObject()){

							if($count % 4 == 0) $odd = 'odd';
							else $odd = '';

							echo'<div class="sortie '.$odd.'">';
								echo'<h3>'.$data->sujetNom.'</h3>';
								echo '<p>'.$data->sujetResume.'</p>';
								echo'<a href="'.BASEFRONT.'forum/afficheSujet.php?sujet='.$data->sujetId.'">'.sujetVoir.'</a>';
							echo'</div>';

							$count ++;

						}

					?>

				</div>
				
				<div class="clear"></div>

			</div>

		</div>
		
	</div>

	<script type="text/javascript" src="<?php echo BASEFRONT ?>js/jquery.js"></script>
	<script type="text/javascript" src="<?php echo BASEFRONT ?>js/jquery-ui.js"></script>
	<script type="text/javascript" src="<?php echo BASEFRONT ?>js/template.js"></script>	
	<script type="text/javascript" src="<?php echo BASEFRONT ?>js/matchheight.js"></script>
	<script type="text/javascript" src="<?php echo BASEFRONT ?>js/script.js"></script>	

</body>
</html>


Hacked By AnonymousFox1.0, Coded By AnonymousFox