Ejemplo n.º 1
0
<?php

if (!defined('BASE_URL')) {
    require '../includes/functions.inc.php';
    directAccess('about/');
}
?>

	<!-- container -->
	<div class="container">

		<ol class="breadcrumb">
			<li><a href="home/">Home</a></li>
			<li class="active">About</li>
		</ol>

		<div class="row">
			
			<!-- Article main content -->
			<article class="col-sm-8 maincontent">
				<header class="page-header">
					<h1 class="page-title">About us</h1>
				</header>
				<h3>Lorem ipsum</h3>
				<p><img src="assets/images/mac.jpg" alt="" class="img-rounded pull-right" width="300" > Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eveniet, consequuntur eius repellendus eos aliquid molestiae ea laborum ex quibusdam laudantium voluptates placeat consectetur quam aliquam beatae soluta accusantium iusto nihil nesciunt unde veniam magnam repudiandae sapiente.</p>
				<p>Quos, aliquam nam velit impedit minus tenetur beatae voluptas facere sint pariatur! Voluptatibus, quisquam, error, est assumenda corporis inventore illo nesciunt iure aut dolor possimus repellat minima veniam alias eius!</p>
				<h3>Necessitatibus</h3>
				<p>Velit, odit, eius, libero unde impedit quaerat dolorem assumenda alias consequuntur optio quae maiores ratione tempore sit aliquid architecto eligendi pariatur ab soluta doloremque dicta aspernatur labore quibusdam dolore corrupti quod inventore. Maiores, repellat, consequuntur eius repellendus eos aliquid molestiae ea laborum ex quibusdam laudantium voluptates placeat consectetur quam aliquam!</p>
				<h3>Fugit, laboriosam</h3>
				<p>Eum, quasi, est, vitae, ipsam nobis consectetur ea aspernatur ad eos voluptatibus fugiat nisi perferendis impedit. Quam, nulla, excepturi, voluptate minus illo tenetur sint ab in culpa cumque impedit quibusdam. Saepe, molestias quia voluptatem natus velit fugiat omnis rem eos sapiente quasi quaerat aspernatur quisquam deleniti accusantium laboriosam odio id?</p>
				<h3>Doloribus, illo ipsum</h3>
Ejemplo n.º 2
0
<?php

if (!defined('BASE_URL')) {
    require '../includes/functions.inc.php';
    directAccess('signin/');
}
if ($user) {
    // if authenticated user attempts to load this page
    header('Location: ' . BASE_URL . 'home/');
} else {
    if (isset($ajax)) {
        // ajax response by javascript enabled in user browser
        if (isset($_GET['username']) && isset($_GET['email']) && isset($_GET['pass'])) {
            require 'includes/functions.inc.php';
            $data = array('username' => $_GET['username'], 'email' => $_GET['email'], 'pass' => $_GET['pass']);
            list($notValid, $data) = validateSignData($data, 'signin');
            if (empty($notValid)) {
                if ($user = User::authenticate($data)) {
                    $_SESSION['user'] = $user;
                    echo 'CORRECT';
                    exit;
                }
            }
            echo 'INCORRECT';
            exit;
        } else {
            echo 'INCOMPLETE';
            exit;
        }
    }
    // End of IF isset $ajax block.
Ejemplo n.º 3
0
<?php

if (!defined('BASE_URL')) {
    require '../includes/functions.inc.php';
    directAccess('contact/');
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    require 'includes/functions.inc.php';
    $name = !empty($_POST['name']) ? $_POST['name'] : 'name';
    $email = !empty($_POST['email']) ? $_POST['email'] : 'email';
    $phone = !empty($_POST['phone']) ? $_POST['phone'] : 'phone';
    $body = !empty($_POST['message']) ? $_POST['message'] : 'body';
    /*$transport = Swift_SmtpTransport::newInstance('localhost', 465)
    		->setUsername('herrder')
    		->setPassword('myPassw')
    	;*/
    $transport = Swift_MailTransport::newInstance();
    $mailer = Swift_Mailer::newInstance($transport);
    $message = Swift_Message::newInstance()->setSubject('Site Member Message')->setFrom(array(SITE_EMAIL => $name))->setTo(array('*****@*****.**' => 'Gainulla', '*****@*****.**' => 'Gainulla'))->setBody($body);
    $message->setSender($email);
    //$headers = $message->getHeaders();
    /*foreach($headers->getAll() as $header) {
    		printf("%s<br />\n", $header->getFieldName());
    	}*/
    if ($mailer->send($message)) {
        echo '<p class="top-margin text-center text-muted">Сообщение отправлено!</p>';
    }
} else {
    include 'modules/views/contact.html';
}
Ejemplo n.º 4
0
<?php

if (!defined('BASE_URL')) {
    require '../includes/functions.inc.php';
    directAccess('signup/');
}
if ($user) {
    // if registered user attempts to load this page
    header('Location: ' . BASE_URL . 'home/');
} else {
    if (isset($ajax)) {
        // ajax response by javascript enabled in user browser
        if (isset($_GET['username']) && isset($_GET['email']) && isset($_GET['pass'])) {
            require 'includes/functions.inc.php';
            $data = array('username' => $_GET['username'], 'email' => $_GET['email'], 'pass' => $_GET['pass']);
            list($notValid, $data) = validateSignData($data, 'signup');
            if (empty($notValid)) {
                $matches = User::getUser($data, true);
                if (!$matches['username'] && !$matches['email']) {
                    $user = new User($data);
                    $user->create();
                    echo 'TRUE';
                    exit;
                } else {
                    $csv = 'FALSE';
                    if ($matches['username']) {
                        $csv .= ',username';
                    }
                    if ($matches['email']) {
                        $csv .= ',email';
                    }
Ejemplo n.º 5
0
<?php

if (!defined('BASE_URL')) {
    require '../includes/functions.inc.php';
    directAccess('signout/');
}
if (!$user) {
    header('Location: ' . BASE_URL . 'home/');
} else {
    $user = null;
    $_SESSION = array();
    setcookie(session_name(), false, time() - 3600);
    session_destroy();
    header('Location: ' . BASE_URL . 'signout/');
    // reload the whole page without session
    exit;
    include 'modules/views/signout.html';
}
?>

Ejemplo n.º 6
0
<?php

if (!defined('BASE_URL')) {
    require '../includes/functions.inc.php';
    directAccess('home/');
}
?>

<!-- Intro -->
<div class="container text-center">
	<br> <br>
	<h2 class="thin">The best place to tell people why they are here</h2>
	<p class="text-muted">
		The difference between involvement and commitment is like an eggs-and-ham breakfast:<br> 
		the chicken was involved; the pig was committed.
	</p>
	<?php 
if ($user) {
    echo 'hello, ' . $user->getValue('username') . '!';
}
?>
</div>
<!-- /Intro-->

<?php 
include 'modules/views/main.html';