HypnoticStory - v75
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome to V75 HypnoticStory!!
Please check out our Revisions section,
And frequently check for updates and announcements.
Thank you & have fun!
 
HomeSearchLatest imagesVote HypnoticRegisterLog in

 

 Question if answered = PRIZE

Go down 
AuthorMessage
Randy
Owner || Awesomeness :]
Owner || Awesomeness :]
Randy


Posts : 202
Points : 53165
Join date : 2009-11-23
Age : 27
Location : Behind You.

Question if answered = PRIZE Empty
PostSubject: Question if answered = PRIZE   Question if answered = PRIZE I_icon_minitimeSat Dec 12, 2009 3:30 pm

Hey HypnoticStory.
Can you help me with this Vote script?
If you do ill give you a PRIZEE!!


I Found this is Cype2nd.
I want to use it for voting points but what do i have to add to make it timed, cause people right now could just keep clicking and getting points without voting.


Code:
<?php
include("nxconfig.php");
if (array_key_exists('reset', $_POST)) {

  $username = trim($_POST['username']);
  $password = trim($_POST['password']);
  $username = mysql_real_escape_string($username);
  $char = trim($_POST['char']);
  $mesocheck = mysql_query('SELECT * FROM meso FROM characters');
  $result = mysql_query("SELECT meso, accountid FROM characters WHERE name = '$char' LIMIT 1");
  list($meso, $accountid) = mysql_fetch_row($result);

  $result = mysql_query("SELECT id, password, salt FROM accounts WHERE name = '$username' LIMIT 1");
  list($id, $realpass, $salt) = mysql_fetch_row($result);

  $sql = "SELECT * FROM accounts WHERE name = '$username'";
  $result = mysql_query($sql);
  $row = mysql_fetch_assoc($result);
   
if($realpass == hash('sha512',$password.$salt) && $accountid == $id) {
    mysql_query("UPDATE accounts SET points = points + 1 WHERE name = '$username' LIMIT 1");
    echo '<html><frameset rows="*,0" framespacing="0" border="0" frameborder="NO"><frame src="http://www.gtop100.com/in.php?site=41245" scrolling="auto" noresize></frameset><noframes><body></body></noframes></html>';
    } else {
    echo "<center>Please Type Your Info Correctly..</center>";    }
    }
?>
      <div align="center">Vote for Hypnotic Points! Please Be Logged Off Before doing this.</div>
<br>
          <div align="center">
          <div class="display">
<?php
if (isset($message)) {
  echo '<ul>';
  foreach ($message as $item) {
    echo "<li>$item</li>";
    }
  echo '</ul>';
  }
?>
          </div>
              <form id="form1" name="form1" method="post" action="">
                    <table cellspacing="0" cellpadding="5" width="100%">
                  <tr>
                            <td width="50%" align="right" class="list">Account :</td>
                          <td class="list"><input id="username" type="text" name="username" maxlength="12"></td>
                        </tr>
                        <tr>
                          <td width="50%" align="right" class="list">Password :</td>
                          <td class="list"><input id="password" type="password" name="password" maxlength="20" /></td>
                        </tr>
                        <tr>
                            <td width="50%" align="right" class="list">Character:</td>
                          <td align="left" class="list"><input id="char" type="text" name="char" maxlength="12"></td>
                        </tr>
                        <tr>
                          <td align="center" colspan="2"><input id="reset" name="reset" type="submit" value="Vote!" /></td>
                        </tr>
                    </table>
            </form>
            </div>
Back to top Go down
http://hypnoticstory.no-ip.biz/
 
Question if answered = PRIZE
Back to top 
Page 1 of 1
 Similar topics
-
» Another Question.
» Uhm Question?
» noob question
» ~A Question For Randy
» FM Monster Question

Permissions in this forum:You cannot reply to topics in this forum
HypnoticStory - v75 :: Support :: Q & A-
Jump to: