Example #1
0
<?php

if (!empty($_POST['login'])) {
    require_once 'matrix.php';
    $handler = new twitterCollageMaker('3640917323-H24Nio9DdFqr0IvC0bCtndbgVYbpWFSo0V7bSqy', '4ErCcdUFH9nD7HoY3qY9KNzXwdTpV34lBPpTmzbXjJPOz', $_POST['login']);
    $collage = $handler->createCollage($handler->getMust());
    echo $collage;
} else {
    ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Twitter</title>
	<link rel="stylesheet" href="twitterstyle/style.css">
	<link rel="stylesheet" href="fancybox/jquery.fancybox.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
	<script src="fancybox/jquery.fancybox.pack.js"></script>
</head>
<body>
	<div class="form_wrapper">
		<form action="" method="POST" name="form" id="form">
			<span class="input input--kuro">
				<input type="text" class="input__field input__field--kuro" name="login" id="login" required>
				<label for="login" class="input__label input__label--kuro">
					<span class="input__label-content input__label-content--kuro">Enter your name</span>
				</label>
			</span>
			<span class="input input--kuro">
				<input type="text" class="input__field input__field--kuro" name="option" id="option">
				<label for="option" class="input__label input__label--kuro">