Ejemplo n.º 1
0
<?php

require_once '../functions.php';
$App = GET_appdetails();
$Urls = GET_urls();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=0, initial-scale = 1.0,maximum-scale = 1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<head>
	<title>MTLARABAIS - Concours 1 an de resto gratuit !</title>

	<style type="text/css">
		html, body {margin:0;}
	</style>

</head>
<body>
	<div id="fb-root"></div>
	<script src="http://connect.facebook.com/fr_FR/sdk.js"></script>
	<script type="application/x-javascript">
		addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);

		function hideURLbar(){
			window.scrollTo(0,1);
		};

		window.fbAsyncInit = function() {
			FB.init({
Ejemplo n.º 2
0
<?php

require "../functions.php";
require_once "../../../../smarty/libs/Smarty.class.php";
$DB = DB_info();
$URLs = GET_urls();
$table = $DB['db_table'];
$skipped = false;
$mySmarty = new Smarty();
//initizize smarty template
$mySmarty->setTemplateDir("templates");
//select template directory
$mySmarty->setCompileDir("templates_c");
//select compile directory
if (!isset($_POST["email"])) {
    $valid_forum = "no";
    $skipped = true;
    $mySmarty->assign('skipped', $skipped);
    $mySmarty->display("nonfb_index.html");
    exit;
}
$send = isset($_GET['send']) ? $_GET['send'] : "";
$incomplet_last_name = "";
$incomplet_first_name = "";
$incomplet_email = "";
$valid_forum = "no";
if ($send == "yes") {
    $last_name = $_POST["last_name"];
    $first_name = $_POST["first_name"];
    $email = $_POST["email"];
    if (GET_telephone()) {