Question: Nonworkin Voting Box rep for assistance menu

User Tag List

Results 1 to 1 of 1
  1. #1
    mastermania's Avatar Member
    Reputation
    22
    Join Date
    Apr 2007
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question: Nonworkin Voting Box rep for assistance

    Hello all i got a voting box configured etc. and its hosted on a wamp server when i enter the info in it is to have an item mailed it doesnt mail to the player or even insert it into the correct table please help i edited out the login info but the login info is right so i dont know how that would be wrong it is linked to an arc-emu server. Thanks.

    Code:
    </head>
    <body>
    <?php
    $user="(edited)";
    $password="(edited)";
    $database="wotlk world"; //Char+login DB

    $nochar=false;
    $voted=false;
    $disp = true;
    if(($_COOKIE['vote']) != '1')
    {
    if(!empty($_POST['name']))
    {
    mysql_connect(localhost,$user,$password);
    @mysql_select_db($database) or die( "Unable to select database");
    $name = strtolower(mysql_real_escape_string($_POST['name']));
    $today = date("mdHi");
    $query="SELECT * FROM characters WHERE name='$name' LIMIT 1";
    $result = mysql_query($query);
    if($row = mysql_fetch_array($result))
    {
    $guid = $row['guid'];
    $acct = $row['acct'];
    $res = mysql_query("SELECT * FROM votewatch WHERE acct='$acct' LIMIT 1");
    if($r2 = mysql_fetch_array($res))
    {
    $ct = $r2['ctime'];
    if($today-$ct < 1200)
    {
    $disp = false;
    mysql_close();
    return;
    }
    else
    {
    mysql_query("DELETE FROM votewatch WHERE acct='$acct' LIMIT 1");
    }
    }
    $reward = mysql_real_escape_string($_POST['reward']);
    if($reward == 0)
    {
    mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack) VALUES (151, $guid, 'Thank you for voting for Pure-Pain Wow!', 'Have this money as a reward', 0, 1000000, 0, 1)");
    }
    else
    {
    mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack) VALUES (151, $guid, 'Thank you for voting for Pure-Pain Wow!', 'Have this item as a reward', 0, 0, $reward, 197069)");
    }
    mysql_query("INSERT INTO votewatch(acct, ctime) VALUES($acct, $today)");
    $voted = true;
    }
    else
    {
    $nochar = true;
    }
    mysql_close();
    }
    }
    else
    {
    $disp = false;
    }

    ?>
    <div id='container' style='-moz-user-select: none; -khtml-user-select: none; user-select: none; cursor:default; padding-bottom:5px; width:320px; border: 4px double red; position: absolute; top:20px; left:20px; background-color:black; color:white;'>
    <div id='header' style='font-family: Arial; margin-bottom: 0.5em; border-bottom: 1px solid red; text-align: center; background-color:gray; color:#ffffff'>
    Please Vote for Pure-Pain WoW to help us Grow!
    <span align='right' style='position:absolute; left: 305px; text-align: right;'>
    <a href='javascript:void();' style='font-size:10px; color:white; text-decoration:none;' onclick='javascript:document.getElementById("container").style.display="none";'>
    [X]
    </a>
    </span>
    </div>
    <div id='text' style='padding: 5px; padding-left: 7px; font-size: 12px; border-bottom: 1px solid red;'>
    Voting for Pure-Pain Wow and help us grow and evolve,
    and eventually become better than before.
    You can vote once every 12 hours, and you'll get a reward for doing so!
    </div>
    <form style='text-align: center; margin-bottom: 2px; margin-top: 5px;' method='post' action='http://www.xtremetop100.com/in.php?site=1132253753'>
    <div style='font-size: 12px; valign:center;'>
    Character Name:&nbsp;&nbsp;

    <input type='text' name='name' style='font-size: 12px; width: 80px; background-color: black; color: white; border: 1px solid red;' />
    <input type='submit' style='font-size: 12px; position:relative; top:1px; color:white; height: 17px; border:1px solid red; background-color:black;' value='Vote!' />
    </div>
    <div style='font-size: 12px; valign:center; margin-top: 5px; padding-top: 3px;'>
    Choose a reward:&nbsp;&nbsp;
    <select name='reward' style='background-color: black; color: white; font-family: Arial; font-size: 12px; border: 1px solid red; height: 17px; font-size: 10px;'>
    <option value='0'>100 Gold</option>
    <option value='197069'>Pure-Pain Wow Coin</option>

    </select>
    </div>
    <?php>

    Question: Nonworkin Voting Box rep for assistance

Similar Threads

  1. [Question] Reg Page. will +rep for help.
    By Zaeoir in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 07-18-2008, 04:32 PM
  2. [Question] How to. will +rep for help.
    By Zaeoir in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-17-2008, 12:26 PM
  3. +++ rep for assistance ;)
    By thera in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-22-2007, 08:53 PM
  4. + rep for assistance
    By thera in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 07-12-2007, 10:38 AM
  5. Human Male -> Gnome Male + rep for assistance
    By Wind in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 05-09-2007, 09:13 AM
All times are GMT -5. The time now is 05:42 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search