Habe mal auf ..... Da ich Name nicht sagen darf sage ich auf nem
Forum ein Voting Script gedownloadet und die Configs bereits eingeschrieben.
Wenn ich dann
[Only registered and activated users can see links. Click Here To Register...] eingebe kommt nur ein weißes Bild kann mir einer helfen? ;3.
Config.php
Code:
<?php
/*
* Etunia Voting System Lite
* Copyright 2009, Kimmy Andersson.
* Edited by TCxAlexsh
*
*/
//The itemName must be the EXACT same name as the item in-game. itemId is the ID of the item, amount is how many they will be getting.
$voteReward = array("itemId" => "penya", "itemId" => 0, "itemAmount" => 3000000);
$vote_allow = '1'
$mssqlServer = "***\SQLEXPRESS";
$mssqlUser = "sa";
$mssqlPass = "***";
$mssqlAccountDBF = "ACCOUNT_DBF";
$mssqlCharacterDBF = "CHARACTER_01_DBF";
?>
Vote.php
Code:
<?php
/*
* Etunia Voting System Lite
* Copyright 2009, Kimmy Andersson.
*
*/
if(isset($_POST['doVote']))
{
include_once("class/class.vote.php");
include_once("inc/inc.class_initiate.php");
include_once("inc/inc.config.php");
$mssqlcon = mssql_connect($mssqlServer, $mssqlUser, $mssqlPass);
$eVoteHEAD = "Error!";
if($_POST['etCharacter'] && $eVote->checkIP() && $eVote->checkCharacter($_POST['etCharacter']))
{
$eVote->removeLog($_POST['etCharacter']);
$itemSendResult = $eVote->sendItem($_POST['etCharacter']);
if($itemSendResult)
{
$eVoteHEAD = "Link generated!";
$eVoteMSG = "Click <a href=\"javascript:etOpenVoteWindow()\">here</a> to open the vote window.<br/>The reward will be sent to you after you voted.<br/>If it doesn't appear however, try relogging.";
}
else
$eVoteMSG = "The character doesn't exist!<br/>Please refresh the browser and try again.";
}
else
$eVoteMSG = "Either you left the character field blank, or you are trying to vote from the same character more than once within 12 hours.<br/>Please refresh the browser and try again.";
echo("<p>{$eVoteHEAD}</p>{$eVoteMSG}");
}
else
{
include_once("class/class.vote.php");
include_once("inc/inc.class_initiate.php");
include_once("inc/inc.config.php");
$mssqlcon = mssql_connect($mssqlServer, $mssqlUser, $mssqlPass);
if($eVote->checkIP())
{
?>
<script type="text/javascript" src="vote/js/jquery.js"></script>
<script type="text/javascript" src="vote/js/vote.js"></script>
<div id="et_vbutton" onclick="etLiteGetVoteDialog();" style="background-image: url('vote/images/votenow.png'); text-align: center; width: 250px; height: 150px; position: absolute; top: 0px; right: 20px; cursor: pointer;">
<div id="et_vcharenter" style="background-color: #F8F8F8; margin: 10px auto; width: 200px; height: 70px; text-align: center; display: none;">
Character Name:<br/>
<input type="text" id="etCharField"/><br/>
<input type="submit" id="etCharSubmit" onclick="etLiteDoVoteDialog();" value="Vote!"/>
</div>
</div>
<?php
}
}
?>
Vote_TBL hab ich auch in meine DB [:
Hoffe jemand kann mir helfen :DD