Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 11:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Hilfe bei Vote.php

Discussion on [Help] Hilfe bei Vote.php within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 11
Received Thanks: 4
[Help] Hilfe bei Vote.php

Hey kann mir wer helfen mein Votescript auf folgende Tabelle anzupassen?

__________________________________________________ _______________

<?php
// Einstellungen

$dbhost = 'localhost'; //mySQL IP
$dbuser = 'xtrun'; //mySQL Username
$dbpassword = '1234'; //mySQL Passwort
$database = 'xtrun'; //mySQL Datenbank

$coins = '5'; //Menge an Coins pro Vote
$wartezeit = '12'; //Wartezeit in Stunden


$s1 = 'www.google.de/1'; //Vote Seite 1




// Einstellungen Ende


//Ab hier NICHTS mehr verändern!

$conn = mysql_connect($dbhost, $dbuser, $dbpassword) or die ('mySQL Connecting Error');
mysql_select_db($database);
$ip = $_SERVER['REMOTE_ADDR'];
$site = $_POST['site'];

$website = array(1, $s1, $s2, $s3, $s4, $s5);


if($site) {
$wartezeit = $wartezeit * 3600;
$time = time();
$earnedpoints = false;
$account = $_POST['username'];
$account = mysql_real_escape_string($account);



if ($username == "") {
echo 'Enter your AccountID!';
exit();
}


$query = mysql_query("SELECT *, SUM(`times`) as amount FROM accounts WHERE account='$username' OR ip='$ip'");
$lasttime = mysql_fetch_array($query);
$amount = $lasttime['amount'];
$insertnew = false;
if ($amount == "") {
$insertnew = true;
}
$timecalc = $time - $lasttime['Site' . $site];
if (!$insertnew) {
if ($timecalc < $wartezeit) {

echo '<html>
<head>
<title>Vote for Coins</title>
</head>
<body background="bg.jpg" text="grey" link="#0000CC" vlink="#000066" alink="#000000">
<h1>Vote for Us!</h1>';
echo ' Hallo '. $account .' Du hast bereits mit diesem Account: ('. $username .') oder deiner IP: ('. $ip .') in den letzten ' . $wartezeit / 3600 . ' Stunden bereits gevotet.!';
echo ' <br><br>Letzter Vote am: '. date('M d\, h:i:s A', $lasttime['Site' . $site]) .'';
echo '<html>';
echo '<head>';
echo '</head>';
echo '<body>';
echo '</body>';
echo '</html>';
exit();
} else {
$update = mysql_query("UPDATE accounts SET account='$account', Site" . $site . "='$time', times=times+1 WHERE ip='$ip'");
if (!$update) {
$message = 'Invalid query: ' . mysql_error() . "\n";
$message .= 'Whole query: ' . $update;
die($message);
} else {
$earnedpoints = true;
}
}
} else {
$success = mysql_query("INSERT INTO accounts (`account`, `ip`, `Site" . $site . "`, `times`) VALUES ('$account', '$ip', '$time', 1)");
if (!$success) {
$message = 'Invalid query: ' . mysql_error() . "\n";
$message .= 'Whole query: ' . $success;
die($message);
} else {
$earnedpoints = true;
}
}




if ($earnedpoints) {
$points = mysql_query("UPDATE account.account SET coins = coins + " . $coins . " WHERE login='$username'");
if (!$points) {

$message = 'Invalid query: ' . mysql_error() . "\n";
$message .= 'Whole query: ' . $query;
die($message);
}
mysql_close($conn);
header("Location: http://" . $website[$site] . "");
exit();

} else {
echo 'There was an error processing your request.';
exit();
}

}
?>



<html>
<head>
<title>Vote for Coins</title>
</head>
<body background="bg.jpg" text="grey" link="#0000CC" vlink="#000066" alink="#000000">
<h1>Vote for Us!</h1>
<center>
<font color="grey"><i>Du bekommst Pro Vote: <?php echo $coins; ?> Coins und du kannst alle <?php echo $wartezeit;?> Stunden voten.<br>
<br>Du kannst pro Tag 2 mal Voten! </i><br /> </font>
<form action="" method="POST">
<table cellspacing=1 cellpadding=5>
<tr>
<td class=list><input type="radio" name="site" value="1"> Vote 1</td>
</tr>
</table>


<table cellspacing=1 cellpadding=5>
<tr><td class=list align=right><font size="5"><b>AccountID:</b></font></td><td class=list><input type=text name=name maxlength="15"></td></tr>
<tr><td class=listtitle align=center colspan=2><input type="image" src="vote.png" alt="Absenden"></td></tr>
</form>
</table>
</center>
</body>
</html>

__________________________________________________ _______________

-- Tabellenstruktur für Tabelle `accounts`
--


`id` int(255) NOT NULL,
`username` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`accesslevel` int(3) NOT NULL,
`logged_in` int(1) NOT NULL,
`channelnum` int(255) NOT NULL,
`bankpassword` int(4) NOT NULL,
`bankpenya1` int(9) NOT NULL,
`bankpenya2` int(9) NOT NULL,
`bankpenya3` int(9) NOT NULL,
`lastvote` datetime DEFAULT NULL,
`vote` datetime DEFAULT NULL,
`times` datetime DEFAULT NULL,
`Site1` datetime DEFAULT NULL,
`ip` datetime DEFAULT NULL

__________________________________________________ _______________

Wäre echt nett

edit: ist es möglich das die vote punkte bei vote angezeigt werden?

Gruß BIFFI
biffi99 is offline  
Reply


Similar Threads Similar Threads
[B] Vote 4 Coins Script (IP & Account Abfrage) bis zu 5 Vote Seiten! (Eigenständig)
10/11/2011 - Metin2 Trading - 2 Replies
Ich habe ein Vote System programmiert, bei dem Spieler für Coins voten können. Bis zu 5 Seiten können eingetragen werden (Kann ich beliebig erweitern) Es wird in einer Datenbank die IP & AccountID gespeichert, somit kann man mit einer IP auch nur einmal Voten und pro Account auch nur einmal auch wenn man die IP resetten sollte. Somit ist ein Betrug vollkommen ausgeschlossen. Das Script ist eigenständig und passt somit zu jeder Website!
[ Suche ] Hilfe: Trick um das Vote-Zeit ändern o.ä. [ Biete ] eg
09/15/2011 - elite*gold Trading - 19 Replies
Hey Com, ich bin auf einem Metin2 pSever angemeldet, und die haben da so ein Vote-System, pro 24h kann ich dann voten. Und nachdem voten bekomme ich pro 24h 20Coins. Jetzt frage ich euch, ob man es irgendwie ändern kann, dass ich nicht mehr 24h warten muss oder ähliches. Gibt es so was?
[Guide] Vote abuse for any private server with vote reward system
08/12/2011 - Off Topic - 3 Replies
I do not know if this is the right place to post this @_@ Source : http://tachael.vacau.com/Thread-Vote-abuse-for-any -private-server?pid=59#pid59 What you need: Lots of account http://fileace.com/h0l0a First step: Register accounts in the private server you want to vote abuse.
Vote- Hilfe.
05/03/2009 - World of Warcraft - 2 Replies
#edit



All times are GMT +1. The time now is 11:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.