Skip to content

Commit

Permalink
release 1.00-1609191300
Browse files Browse the repository at this point in the history
Update to release 1.00-1609191300.
First stable release.
  • Loading branch information
2mcoffee committed Sep 16, 2019
1 parent 37d18a9 commit 8e5e89c
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 279 deletions.
36 changes: 28 additions & 8 deletions app/index.php
Expand Up @@ -79,19 +79,39 @@
<h1>Shared content!</h1>
<br>
<br>
<!--<form method="post" style="visibility:hidden;">
<form method="post">
<input type="url" name="long_url" class="inputBox" required>
<input type="submit" name="submit" class="cut bouncy" value="Cut it off!" >
<input type="submit" name="submit" class="cut bouncy" value="Cut it off!" >
<br>
<br>
<!--Complete with your own Google site key for recaptcha-->
<div class="g-recaptcha" data-sitekey="SITE_KEY" data-callback="verifyCaptcha"></div>
<div id="g-recaptcha-error"></div>
</form>
<script src="https://www.google.com/recaptcha/api.js"></script>
<script>
function submitUserForm() {
var response = grecaptcha.getResponse();
if(response.length == 0) {
document.getElementById('g-recaptcha-error').innerHTML = '<span style="color:#FE6E41;">Verificar que no eres un robot.</span>';
return false;
}
return true;
}

function verifyCaptcha() {
document.getElementById('g-recaptcha-error').innerHTML = '';
}
</script>
<br>
<h2 class="msg"><?php echo $msg;?></h2>
<br>
<br>-->
<br>
<?php
$servername = "localhost";
$username = "elbaulde_short";
$password = "P@l!7o02";
$dbname = "elbaulde_estore";
$servername = "SERVER"; // Database server name
$username = "USER"; // Database username
$password = "PASSWORD"; // Database password for database user
$dbname = "DATABASE"; // Database name

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
Expand All @@ -112,7 +132,7 @@
WHEN long_url LIKE '%photos.app.goo.gl%' THEN 'photos.png'
ELSE 'chrome.png'
END as Icono,
'2mcoffee' as Usuario
'username' as Usuario -- Insert your own username
FROM url_shortner
ORDER BY date DESC";
$result = $conn->query($sql);
Expand Down
146 changes: 0 additions & 146 deletions app/trim.php

This file was deleted.

4 changes: 2 additions & 2 deletions css/main.css
Expand Up @@ -208,10 +208,10 @@ a.button:hover, .send input[type=button]:hover {
max-width: 480px;
border:0px;
}
.send {
.send, .gallery {
text-align:center;
}
.send h1 {
.send h1, .gallery h1 {
font-family:'Press Start 2P';
}
.send form textarea {
Expand Down
7 changes: 6 additions & 1 deletion ig/index.php
Expand Up @@ -7,10 +7,15 @@
<?php include '../include/bar.php'; ?>
</td>
<td style="width:80%;">
<br>
<br>
<div class="gallery">
<h1 style="font-family:'Press Start 2P';">IG posts!</h1>
</div>
<br>
<br>
<?php
$access_token = "1996905208.ed896b3.e11366fd165e4090882cbb85c75c564d";
$access_token = "ACCESS_TOKEN"; //IG Access Token
$photo_count = 20;
$json_link = "https://api.instagram.com/v1/users/self/media/recent/?";
$json_link .="access_token={$access_token}&count={$photo_count}";
Expand Down
17 changes: 9 additions & 8 deletions include/bar.php
@@ -1,14 +1,14 @@
<br>
<br>
<div class="title">
<h1>@2mcoffee</h1>
<span>Otro inútil experimento</span>
<h1>@Username</h1> <!--Complete here with your username-->
<span>Site Slogan</span> <!--Complete here with your slogan-->
</div>
<br>
<br>
<div class="user">
<?php
$json_string = 'https://api.instagram.com/v1/users/1996905208?access_token=1996905208.ed896b3.e11366fd165e4090882cbb85c75c564d';
$json_string = 'https://api.instagram.com/v1/users/1996905208?access_token=ACCESS_TOKEN'; //IG Access Token
$jsondata = file_get_contents($json_string);
$obj = json_decode($jsondata,true);
$pic = $obj['data']['profile_picture'];
Expand All @@ -22,19 +22,20 @@
<br>
<br>
<div class="networks">
<img src="../icons/facebook.png" alt="facebook"> <a href="http://fb.me/2mcoffee" target="_blank">@2mcoffee</a>
<!--Complete the following links with your own username-->
<img src="../icons/facebook.png" alt="facebook"> <a href="http://fb.me/Username" target="_blank">@Username</a>
<br>
<img src="../icons/instagram.png" alt="instagram"> <a href="http://instagr.am/2mcoffee" target="_blank">@2mcoffee</a>
<img src="../icons/instagram.png" alt="instagram"> <a href="http://instagr.am/Username" target="_blank">@Username</a>
<br>
<img src="../icons/twitter.png" alt="twitter"> <a href="http://twitter.com/2mcoffee" target="_blank">@2mcoffee</a>
<img src="../icons/twitter.png" alt="twitter"> <a href="http://twitter.com/Username" target="_blank">@Username</a>
<br>
<img src="../icons/github.png" alt="github"> <a href="http://github.com/2mcoffee" target="_blank">@2mcoffee</a>
<img src="../icons/github.png" alt="github"> <a href="http://github.com/Username" target="_blank">@Username</a>
</div>
<br>
<div class="release">
<?php include 'release.php'; ?>
<br>
<br>
<a href="http://github.com/2mcoffee/2mcoffee" class="button bouncy" target="_blank">Source Code</a>
<a href="http://github.com/2mcoffee/2mcoffee" class="button bouncy" target="_blank">Source Code</a> <!--Do not remove this line, thanks!-->
</div>

10 changes: 5 additions & 5 deletions include/config.php
@@ -1,11 +1,11 @@
<?php

define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'elbaulde_short');
define('DB_PASSWORD', 'P@l!7o02');
define('DB_DATABASE', 'elbaulde_estore');
define('DB_SERVER', 'SERVER'); // Database server name
define('DB_USERNAME', 'USER'); // Database user
define('DB_PASSWORD', 'PASSWORD'); // Password for database user
define('DB_DATABASE', 'DATABASE_NAME'); // Database name
$db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);

$site = "http://2mcoffee.com/app";
$site = "URL"; // Application url - Example: http://2mcoffee.com/app

?>
6 changes: 1 addition & 5 deletions include/footer.php
@@ -1,7 +1,3 @@
<div class="apu"><img src="../img/apu.gif" alt="Apu limpiando"></div>
<script src="https://static.xenioo.com/webchat/xenioowebchat.js"></script>
<script>
Xenioo("730ab5d5-2c16-4ca0-8eba-6bb318910919");
</script>
<div class="apu"><img src="../img/apu.gif" alt="Apu limpiando"></div> <!-- Include your own gif and enjoy -->
</body>
</html>
9 changes: 5 additions & 4 deletions include/hamburger.php
Expand Up @@ -2,9 +2,10 @@
<input type="checkbox">
<span class="menu"> <span class="hamburger"></span> </span>
<ul>
<li> <a href="http://2mcoffee.com">Home</a> </li>
<li> <a href="http://2mcoffee.com/app">Shared content</a> </li>
<li> <a href="http://2mcoffee.com/tw">Let's tweet!</a> </li>
<li> <a href="http://2mcoffee.com/ig">IG posts</a> </li>
<!--Insert here the links for your site menu-->
<li> <a href="#">Home</a> </li>
<li> <a href="#">Shared content</a> </li>
<li> <a href="#">Let's tweet!</a> </li>
<li> <a href="#">IG posts</a> </li>
</ul>
</label>
44 changes: 4 additions & 40 deletions include/header.php
Expand Up @@ -4,53 +4,17 @@
<head>
<meta charset="utf-8">

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5F3CP3SR48"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-5F3CP3SR48');
</script>

<!--Titulo-->
<?php
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$real_link = str_replace('www.','',$actual_link);
$size_link = strlen($real_link);

if ($size_link == 20) {
echo '<title>@2mcoffee - Otro inutil experimento | Luciano Alfonsin</title>'."\n";
} else {
$section_link = substr($actual_link,-4);

switch ($section_link) {
case '/tw/':
echo '<title>@2mcoffee - Twitter - Otro inutil experimento | Luciano Alfonsin</title>'."\n";
break;
case '/ig/':
echo '<title>@2mcoffee - Instagram - Otro inutil experimento | Luciano Alfonsin</title>'."\n";
break;
case 'app/':
echo '<title>@2mcoffee - Links - Otro inutil experimento | Luciano Alfonsin</title>'."\n";
break;
default:
echo '<title>@2mcoffee - Otro inutil experimento | Luciano Alfonsin</title>'."\n";
};

};
?>
<title>My site</title>

<!--Metadata-->
<meta name="author" content="Luciano Alfonsin">
<meta name="description" content="Otro inutil experimento sobre redes sociales">
<meta name="keywords" content="IA, AI, 2mcoffee,social,redes,instagram,twitter,facebook,youtube">
<meta name="author" content="">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--Hoja de estilos-->
<link rel="stylesheet" href="../css/main.css">
<link rel="stylesheet" href="../css/glitch.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet" type="text/css">

<!--Google Fonts-->
Expand Down
3 changes: 2 additions & 1 deletion include/license.php
@@ -1 +1,2 @@
<div class="license">&copy; <?php echo date("Y"); ?> | Diseño y desarrollo por <a href="http://2mcoffee.com" target="_self">Luciano Alfonsin</a></div>
<div class="license">&copy; <?php echo date("Y"); ?> | Developed by <a href="http://2mcoffee.com" target="_self">Luciano Alfonsin</a></div>
<!--Add here your own copyrigth message-->

0 comments on commit 8e5e89c

Please sign in to comment.