View Single Post
  #1  
Old 28th January 2009, 20:27
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile Love check - funny addon
Hello all
here also once a another type mod
nice addon to your site
The loves chek
fill in 2 names and let you loves chance calculate

Pay attention this is based on real bullshit

:bubble:

Make a new file named love.php

PHP Code:
<?php
require "include/bittorrent.php";

loggedinorreturn();



stdhead("Love Calculator");


function 
add_link($url$title$description "")
{
  
$text "<a class=altlink href=$url>$title</a>";
  if (
$description)
    
$text "$text - $description";
  print(
"<li>$text</li>\n");
}

?>

<html>
<head>
<title>Love Calculator</title>
<style type="text/css">
body {
    background-color: pink;
}
body, p {
    font-family: Verdana, Arial;
    font-size: 12px;
    color: black;
}
a {
    color: black;
}
h1 {
    font-size: 16px;
}
</style>
</head>

<body>
<?

// Your name
$arnaam[] = "Edgein middelnaam achternaam";
$arnaam[] = "Edgein achternaam";
$arnaam[] = "Edgein";
$arnaam[] = "Edgeined";

// Girlfriend name
$arnaam2[] = "wengein middelnaam achternaam";
$arnaam2[] = "wengein achternaam";
$arnaam2[] = "wengein";
$arnaam2[] = "wengeinwen";

if (
$_POST && $_POST['naam'] && $_POST['naam2'])
{
    echo 
"<h1>Love results</h1>";

    if (
in_array(strtolower($_POST['naam']), $arnaam) && in_array(strtolower($_POST['naam2']), $arnaam2) || in_array(strtolower($_POST['naam2']), $arnaam) && in_array(strtolower($_POST['naam']), $arnaam2))
    {
        echo 
"Love is see in abundance. You radiate <b>" stripslashes(htmlentities($_POST['naam'])) . "</b> and <b>" stripslashes(htmlentities($_POST['naam2'])) . "</b>!<p>";
    
        echo 
"<p>There is <b><span style=\"font-size: 14px;\">100%</font></b> love!</p>";
    
        echo 
"<p>Chek <a href=\"" $_SERVER['PHP_SELF'] . "\" title=\"Chek again\">chek</a> The love..<p>";
    }
    else
    {
        echo 
"<p>Love is present but the chance on a successful relation is small <b>" stripslashes(htmlentities($_POST['naam'])) . "</b> and <b>" stripslashes(htmlentities($_POST['naam2'])) . "</b>!</p>";
    
        echo 
"<p>There is <b><span style=\"font-size: 14px;\">" rand(050) . "%</font></b> love!</p>";
    
        echo 
"<p>Chek <a href=\"" $_SERVER['PHP_SELF'] . "\" title=\"Chek the love again\">chek</a> The love..</p>";
    }
}
else
{
    echo 
"<h1>Love Calculator</h1>";
    
    echo 
"<p>How much percent chance has you on a successful relation? You fills in and your partners name and discovers sometimes what bitter truth.</p>";

    echo 
"<form method=post action=\"" $_SERVER['PHP_SELF'] . "\">";
    echo 
"<p>";
    echo 
"<input type=\"text\" name=\"naam\" value=\"" stripslashes(htmlentities($_POST['naam'])) . "\"> luvs ";
    echo 
"<input type=\"text\" name=\"naam2\" value=\"" stripslashes(htmlentities($_POST['naam2'])) . "\"> ";
    echo 
"<input type=\"submit\" name=\"submit\" value=\"Chek!\">";
    echo 
"</p>";
    echo 
"</form>";
}
?>

<p style="font-size: 10px; color: #FF6E87;">source: <a href="http://www.nl-edgein.org" title="nl-edgein" style="color: #FF6E87;">Nl-edgein</a></p>

</body>
</html>

<?php
stdfoot
();

?>

Last edited by Edgein; 28th January 2009 at 20:36.
Reply With Quote