Commit d0dcf6ec authored by Hiob's avatar Hiob

Remove web folder

parent 5e38acff
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//FR" "https://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Tableau des mécènes</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="/obole/mecenes-style.css"/>
<!--<link rel="stylesheet" type="text/css" href="/chestshop/chestshop-style.css"/>-->
</head>
<?php
include('obole/config.php');
//create MySQL connection
$Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password)
or die("Couldn't connect to MySQL:<br>" . mysql_error() . "<br>" . mysql_errno());
//select database
$Db = @mysql_select_db($DB_DBName, $Connect)
or die("Couldn't select database:<br>" . mysql_error(). "<br>" . mysql_errno());
//execute query
$strQuery="SELECT * FROM `donations`";
$result=mysql_query($strQuery);
?>
<body>
<div class="container">
<div class="starter-template">
<h1>Tableau des mécènes</h1>
<h4 class="green"><b>Merci à tous nos mécènes!</b> </h4>
<p>Votre geste et votre confiance compte énormément pour nous &#9786;</p>
<p>Vous souhaitez figurer sur ce tableau? <a href="https://nefald.fr/mecenat.php">C'est par ici!</a></p>
<table class="table table-striped">
<thead>
<tr>
<th>mécène</th><th>date</th><th>rang</th>
</tr>
</thead>
<tbody>
<?php
function getRank($price)
{
if($price==50.00) return '<span style="color:#00ED00;">Patriarche</span>';
if($price==25.00) return '<span style="color:#467EFF";">Grand Mécène</span>';
if($price==15.00) return '<span style="color:#6699CC;">Mécène</span>';
if($price==10.00) return '<span style="color:#6699CC;">Donateur</span>';
if($price==5.00) return '<span style="color:#6699CC;">Sympathisant</span>';
return 'Sympathisant';
}
$total=0;
while($line=mysql_fetch_array($result))
{
if(strlen($line['username'])>0)
{
echo '<tr>';
$time = strtotime($line['date']);
$monthFrench = array('', 'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre');
$date = date("d", $time)." ".$monthFrench[date("n", $time)]." ".date("Y", $time);
echo '<td>'.$line['username'].'</td><td>'.$date.'</td><td>'.getRank($line['amount']).'</td>';
echo '</tr>';
$total+=$line['amount'];
}
}
echo '<tr class="total">';
echo '<td>Total <span style="font-size:0.8em;color:red;">*</span></td><td></td><td>'.$total.'€</td>';
echo '</tr>';
?>
</tbody>
</table>
<p style="font-size:0.8em;text-align:right;"><span style="color:red;">*</span> depuis le 14 janvier 2013</p>
<a href="http://nefald.fr"><h4>Retourner sur <b>Nefald.fr</b></h4></a>
<p><small>Nefald.fr n'est en aucun cas affilié à <a href="https://mojang.com/" target="_blank">Mojang AB</a></small></p>
</div>
</div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//FR" "https://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Devenir Mécène - Nefald.fr</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="/obole/donate-style.css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<!-- Author: Monnier Antoine <3 -->
<?php
if(empty($_GET['value']))
{
$prix=5;
}
else
{
$prix=$_GET['value'];
}
?>
<script type="text/javascript">
var testconnection= function(nom,init){
// vous êtes mauvais pas le bon id
var msg1="Indiquez votre pseudo Nefald";
// bravo vous n'êtes pas qu'un robot idiot
var msg2="Pseudo trouvé";
if(!init)
{
$('.loadInfo').addClass('loading');
}
var jqxhr = $.get('https://nefald.fr/forum/checkuser.php?un='+nom, function(data) {
if(data.indexOf("false")<0)
{
if(!init)
{
$('.loadInfo').removeClass('loading');
}
$('.messageInfo').html(msg2).removeClass('error');
}
else
{
$('.messageInfo').html(msg1).addClass('error');
}
})
.error(function() { $('.messageInfo').html(msg1).addClass('error'); });
};
$(function(){
$('.punchLine').hide();
$('.punchLine[value=<?php echo $prix;?>]').show();
$('option[value=<?php echo $prix;?>]').attr('selected','selected');
$('select[name=os0]').change(function(event){
var valeur=$(event.target).val();
$(".punchLine").hide();
$(".punchLine").css('opacity',0);
$(".punchLine[value="+valeur+"]").show();
$(".punchLine[value="+valeur+"]").animate({opacity:1},300);
});
testconnection($('.username').val(),true);
$('.checkUser').click(function() {
testconnection($('.username').val(),true);
});
$('.username').each(function() {
var elem=$(event.target);
// Save current value of element
$(this).data('oldVal', $(this));
// Look for changes in the value
$(this).bind("change propertychange keyup input paste keypress keydown", function(event){
// If value has changed...
if ($(this).data('oldVal') != $(this).val())
{
// Updated stored value
$(this).data('oldVal', $(this).val());
// Do action
testconnection($(this).val(),false);
}
});
});
$('#formulaire').submit(function(event){
if($('.messageInfo').hasClass('error'))
{
event.preventDefault();
}
});
});
</script>
</head>
<body>
<a href="http://nefald.fr/" class="accueil">&larr; Accueil</a>
<h1>Devenir Mécène</h1>
<h3>Soutenez-nous !</h3>
<p>Nous avons fondé et nous entretenons Nefald.fr par plaisir et par passion, nous le faisons de bonne grâce et les heures consacrées au bon fonctionnement du serveur ne sont pas monnayables. Cependant le serveur en lui même a un coût. Si le cœur vous dit, <b>soutenez-nous</b> en contribuant au financement du serveur! Vous pouvez choisir entre 5 packs différents selon <b>5 montants possibles</b>, influents sur la durée de votre statut de mécène et les récompenses qui vous seront octroyées.
</p>
<p class="chart"><b>Sympathisant</b> : 5 € | <b>Donateur</b>: 10 € | <b>Mécène</b> : 15 € | <b>Grand Mécène</b> : 25 € | <b>Patriarche</b> : 50 € </p>
<center>
<form id="formulaire" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Specify the details (user input). -->
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="W7NE5857Q2T5L">
<input type="hidden" name="notify_url" value="https://nefald.fr/obole/ipn.php">
<table>
<tr><td><input type="hidden" name="on0" value="Type de Mecenat">Type de Mécenat</td></tr><tr><td><select name="os0">
<option value="5" <?php if($prix==5) {echo 'selected="selected"';} ?>>5,00 EUR</option>
<option value="10 <?php if($prix==10) {echo 'selected="selected"';} ?>">10,00 EUR</option>
<option value="15" <?php if($prix==15) {echo 'selected="selected"';} ?>>15,00 EUR</option>
<option value="25" <?php if($prix==25) {echo 'selected="selected"';} ?>>25,00 EUR</option>
<option value="50" <?php if($prix==50) {echo 'selected="selected"';} ?>>50,00 EUR</option>
</select> </td></tr>
</table>
<br />
<div class="messageInfo error">Indiquez votre pseudo Nefald</div><br />
<input class="username" type="text" size="60" name="custom" onkeyup="sync()" id="name"><img class="loadInfo" title="Jeb_ réfléchit"></span><span class="checkUser" title="lancer une recherche"></span><br /><br />
<br />
<div id="PunchLines">
<div class="punchLine" value="5">5 € - Sympathisant - 1 mois</div>
<div class="punchLine" value="10">10 € - Donateur - 1 mois</div>
<div class="punchLine" value="15">15 € - Mécène - 2 mois </div>
<div class="punchLine" value="25">25 € - Grand Mécène - 3 mois</div>
<div class="punchLine" value="50">50 € - Patriarche - 6 mois</div>
</div>
<br />
<input type="hidden" name="currency_code" value="EUR">
<input type="image" class="BoutonDon" src="https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - la solution de paiement en ligne la plus simple et la plus sécurisée !">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</body>
</html>
<?php
$DB_Server = ""; // MySQL host.
$DB_Username = "; // MySQL username.
$DB_Password = ""; // MySQL password.
$DB_DBName = ""; // MySQL database name.
$DBsandbox = false;
$notify_email = "";
$currency = "US";
?>
body {
font: 14px/1.6em 'Open Sans',Helvetica,Arial,sans-serif;
text-align: center;
margin-left: auto;
margin-right: auto;
width:900px;
}
h1 {
margin-top: 50px;
}
h3 {
opacity: 0.7;
}
.green {
color: green;
}
a, a:hover,a:visited,a:active { color: rgb(10, 124, 200); text-decoration: none;}
p {
text-decoration: italic;
opacity: 0.6;
padding-bottom: 0;
margin-bottom: 0;
text-align: center;
}
.chart {
margin-bottom: 25px;
opacity: 0.7;
text-align:center;
}
.chart b {
color: green;
}
/* Messages d'infos */
.messageInfo {
color: #4E8DAF;
}
.error {
color: red;
font-weight: bold;
}
.msg1 {
color: red;
}
.msg2 {
color: #4E8DAF;
}
/* -- Recherche du pseudo -- */
.loadInfo
{
width: 20px;
height: 20px;
display:inline-block;
background-image: url(http://nefald.fr/dons/img/jebfixe.png);
background-repeat:no-repeat;
margin: 5px 6px -7px 5px;
}
.loading
{
width: 20px;
height: 20px;
display:inline-block;
background-image: url(http://nefald.fr/dons/img/jeb16.gif);
background-repeat:no-repeat;
margin: 5px 6px -7px 5px;
}
.checkUser
{
width: 20px;
height: 20px;
background-image: url(http://nefald.fr/dons/img/loupe.png);
background-repeat:no-repeat;
display:inline-block;
margin: 0 0 -7px 5px;
}
/* */
.punchLine { opacity: 0.7;}
.username,.coupon {
box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px rgba(0, 0, 0, 0.05);
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 4px;
background: #F5F5F5;
}
.btn {
display: inline-block;
padding: 4px 10px;
margin-bottom: 30px;
font-size: 13px;
line-height: 18px;
color: rgb(255, 255, 255);
vertical-align: middle;
border-radius: 4px 4px 4px 4px;
box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px rgba(0, 0, 0, 0.05);
cursor: pointer;
text-decoration: none;
background: #4fa3c7;
background: -moz-linear-gradient(top, #4fa3c7 0%, #3b7b96 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #4fa3c7), color-stop(100%, #3b7b96));
background: -webkit-linear-gradient(top, #4fa3c7 0%, #3b7b96 100%);
background: -o-linear-gradient(top, #4fa3c7 0%, #3b7b96 100%);
background: -ms-linear-gradient(top, #4fa3c7 0%, #3b7b96 100%);
background: linear-gradient(top, #4fa3c7 0%, #3b7b96 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4fa3c7', endColorstr='#3b7b96', GradientType=0 );
border: 1px solid #375d6f;
}
.btn:hover {
color:#fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
background: #60accc;
background: -moz-linear-gradient(top, #60accc 0%, #5391ac 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #60accc), color-stop(100%, #5391ac));
background: -webkit-linear-gradient(top, #60accc 0%, #5391ac 100%);
background: -o-linear-gradient(top, #60accc 0%, #5391ac 100%);
background: -ms-linear-gradient(top, #60accc 0%, #5391ac 100%);
background: linear-gradient(top, #60accc 0%, #5391ac 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#60accc', endColorstr='#5391ac', GradientType=0 );
}
.accueil, .accueil a {
text-transform: uppercase;
font-family: 'Open Sans', sans-serif!important;
font-size:14px;
font-weight:600;
padding-top: 10px;
padding-right:8px;
padding-bottom: 10px;
padding-left: 40px;
text-align:left;
display:block;
background: #fff;
text-decoration: none;
color: #4a869f;
z-index:10;
top:15px;
}
\ No newline at end of file
<?php
// Author: Monnier Antoine
// Revision Notes
// 11/04/11 - changed post back url from https://www.paypal.com/cgi-bin/webscr to https://ipnpb.paypal.com/cgi-bin/webscr
// For more info see below:
// https://www.x.com/content/bulletin-ip-address-expansion-paypal-services
// "ACTION REQUIRED: if you are using IPN (Instant Payment Notification) for Order Management and your IPN listener script is behind a firewall that uses ACL (Access Control List) rules which restrict outbound traffic to a limited number of IP addresses, then you may need to do one of the following:
// To continue posting back to https://www.paypal.com to perform IPN validation you will need to update your firewall ACL to allow outbound access to *any* IP address for the servers that host your IPN script
// OR Alternatively, you will need to modify your IPN script to post back IPNs to the newly created URL https://ipnpb.paypal.com using HTTPS (port 443) and update firewall ACL rules to allow outbound access to the ipnpb.paypal.com IP ranges (see end of message)."
/////////////////////////////////////////////////
/////////////Begin Script below./////////////////
/////////////////////////////////////////////////
include('config.php');
// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
// post back to PayPal system to validate
$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: www.sandbox.paypal.com\r\n"; // www.paypal.com for a live site
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Connection: close\r\n\r\n";
// If testing on Sandbox use:
if($DBsandbox)
{
$fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30);
}
else
{
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
}
// assign posted variables to local variables
$item_name = $_POST['item_name'];
$business = $_POST['business'];
$item_number = $_POST['item_number'];
$payment_status = $_POST['payment_status'];
$mc_gross = $_POST['mc_gross'];
$payment_currency = $_POST['mc_currency'];
$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$receiver_id = $_POST['receiver_id'];
$quantity = $_POST['quantity'];
$num_cart_items = $_POST['num_cart_items'];
$payment_date = $_POST['payment_date'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$payment_type = $_POST['payment_type'];
$payment_status = $_POST['payment_status'];
$payment_gross = $_POST['payment_gross'];
$payment_fee = $_POST['payment_fee'];
$settle_amount = $_POST['settle_amount'];
$memo = $_POST['memo'];
$payer_email = $_POST['payer_email'];
$txn_type = $_POST['txn_type'];
$payer_status = $_POST['payer_status'];
$address_street = $_POST['address_street'];
$address_city = $_POST['address_city'];
$address_state = $_POST['address_state'];
$address_zip = $_POST['address_zip'];
$address_country = $_POST['address_country'];
$address_status = $_POST['address_status'];
$item_number = $_POST['item_number'];
$tax = $_POST['tax'];
$option_name1 = $_POST['option_name1'];
$option_selection1 = $_POST['option_selection1'];
$option_name2 = $_POST['option_name2'];
$option_selection2 = $_POST['option_selection2'];
$for_auction = $_POST['for_auction'];
$invoice = $_POST['invoice'];
$custom = $_POST['custom'];
$notify_version = $_POST['notify_version'];
$verify_sign = $_POST['verify_sign'];
$payer_business_name = $_POST['payer_business_name'];
$payer_id =$_POST['payer_id'];
$mc_currency = $_POST['mc_currency'];
$mc_fee = $_POST['mc_fee'];
$exchange_rate = $_POST['exchange_rate'];
$settle_currency = $_POST['settle_currency'];
$parent_txn_id = $_POST['parent_txn_id'];
$pending_reason = $_POST['pending_reason'];
$reason_code = $_POST['reason_code'];
// subscription specific vars
$subscr_id = $_POST['subscr_id'];
$subscr_date = $_POST['subscr_date'];
$subscr_effective = $_POST['subscr_effective'];
$period1 = $_POST['period1'];
$period2 = $_POST['period2'];
$period3 = $_POST['period3'];
$amount1 = $_POST['amount1'];
$amount2 = $_POST['amount2'];
$amount3 = $_POST['amount3'];
$mc_amount1 = $_POST['mc_amount1'];
$mc_amount2 = $_POST['mc_amount2'];
$mc_amount3 = $_POST['mcamount3'];
$recurring = $_POST['recurring'];
$reattempt = $_POST['reattempt'];
$retry_at = $_POST['retry_at'];
$recur_times = $_POST['recur_times'];
$username = $_POST['username'];
$password = $_POST['password'];
//auction specific vars
$for_auction = $_POST['for_auction'];
$auction_closing_date = $_POST['auction_closing_date'];
$auction_multi_item = $_POST['auction_multi_item'];
$auction_buyer_id = $_POST['auction_buyer_id'];
if (!$fp)
{
}
else
{
fputs ($fp, $header . $req);
$found=false;
while (!feof($fp) && !$found)
{
$res = fgets ($fp, 1024);
if (stripos($res, "VERIFIED") !== false)
{
$found=true;
//create MySQL connection
$Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password)
or die("Couldn't connect to MySQL:<br>" . mysql_error() . "<br>" . mysql_errno());
//select database
$Db = @mysql_select_db($DB_DBName, $Connect)
or die("Couldn't select database:<br>" . mysql_error(). "<br>" . mysql_errno());
$fecha = date("m")."/".date("d")."/".date("Y");
$fecha = date("Y").date("m").date("d");
//execute query
if ($txn_type == "cart")
{
}
else
{
$sandbox="true";
if($DBsandbox)
{
$sandbox="true";
}
else
{
$sandbox="false";
}
$strQuery="INSERT INTO donations (username, amount, date, processed, sandbox, first_name, last_name, payer_email, expires, expired, canGet)";
$strQuery.=" VALUES ('".$custom."','".$mc_gross."','".$payment_date."','false','".$sandbox."','".$first_name."','".$last_name."','".$payer_email."','null','false',1);";
$result=mysql_query($strQuery);
}
// send an email in any case
echo "Verified";
mail($notify_email, "VERIFIED IPN", "$res\n $req\n $strQuery\n $struery\n $strQuery2");
}
// if the IPN POST was 'INVALID'...do this
else if (stripos($res, "INVALID") !== false)
{
$found=true;
// log for manual investigation
mail($notify_email, "INVALID IPN", "$res\n $req");
}
}
fclose ($fp);
}
?>
body {
font: 14px/1.6em 'Open Sans',Helvetica,Arial,sans-serif;
text-align: center;
}
h1 {
margin-top: 30px;
}
h3 {
opacity: 0.7;
}
h4 {
opacity: 0.7;
margin-top:30px;
font-size:1.2em;
}
.green {
color: green;
}
a, a:hover { color: rgb(10, 124, 200); text-decoration: none;}
p {
text-decoration: italic;
opacity: 0.6;
padding-bottom: 0;
margin-bottom: 0;
text-align: center;
}
code {
background-color:#DFF0D8;
color: #468847;
}
/* -- tableau --*/
tr th {}
.table > thead > tr > th {padding:16px;text-align:center;}
#tablesorter {margin-top:30px;}
table.tablesorter thead tr .header {
background-image: url(img/bg.gif);
background-repeat: no-repeat;
background-position: center right;
cursor: pointer;
}
table.tablesorter thead tr .headerSortUp {
background-image: url(img/asc.gif);
}
table.tablesorter thead tr .headerSortDown {
background-image: url(img/desc.gif);
}
tr.total {
background:#eee;
color:#2D2D2D;
font-size:1.3em;
font-weight:bold;
}
#Grid { border-collapse:collapse; font: normal 12px "Lucida Sans Unicode", "Lucida Grande", sans-serif; margin:0 auto; }
#Grid td,#Grid th { text-align:center; padding:5px; border:1px solid #333;border-width:0 0 1px 0;}
#Grid tfoot td { background:#fff; border:0}
#Grid td img{vertical-align:middle}
#Grid .GridDescription {
background: #666; color:#fff; text-align:left; padding-right:20px; font-weight:bold;border-right: 1px solid #000;
}
#Grid thead .GridDescription {
background:none;
}
#Grid tfoot .GridDescription {
background:none;
}