[Release] Dekaron Vote Script

08/28/2009 14:24 janvier123#1
With help of some other scripts i found a way to do it, vote ;)
Its a little tricky but it should be easy

Name: Vote Script (php)
Download: [Only registered and activated users can see links. Click Here To Register...]
Scan: Found nothing
Scan URL: [Only registered and activated users can see links. Click Here To Register...]


You will need:

mysql server ([Only registered and activated users can see links. Click Here To Register...])
mssql server ([Only registered and activated users can see links. Click Here To Register...])
apache server ([Only registered and activated users can see links. Click Here To Register...])
(Xampp may have mysql installed, but there is a bug, read below)

OK little tutorial: ;)

Make sure you have MYSQL (not mssql) (it should come with XAMPP)

1. Open your database manager for mysql (not mssql !)

----- There are many ways to use MySQL but if you installed XAMPP you will use "phpmyadmin"

2. Create a new database called "vote"
3. Open phpmyadmin
4. At the top you will see "import"
5. Select your vote.sql file
6. Press "GO"


----- Now you should have 2 tables in your vote database
----- Called: "Log" and "users"

If that is done, go to your "vote.php"
Open it with your editor

Edit the following:

PHP Code:
//----------------------------------------------------------
$coins 25//25 coins
$webpage "YOURLINK";

// mssql 
    
$mssql = array(
    
'host' => "localhost",
    
'user' => "sa",
    
'pass' => "YOURPASSWORD"
    
);
    
// mysql
    
$mysql = array(
    
'host' => "localhost",
    
'user' => "root",
    
'pass' => "YOURPASSWORD",
    
'db'   => "vote"
    
);
    
//---------------------------------------------------------- 
NOTE: Webpage:

Example:
PHP Code:
$webpage "http://www.xtremetop100.com/in.php?site=1132286514"
NOTE: do not change 'db' => "vote" unless you created a mysql database for your vote script with a other name

Save your "vote.php"
Upload vote.php"
Upload "votenow.php"

TIP: can be a small popup (not recommended)

go to your site and look for "votenow.php"
or: [Only registered and activated users can see links. Click Here To Register...]

Enter your ACCOUNT NAME! (not character name!)


Have fun !!!!!!!!!!!!!!

Bugs, errors, comments, complaints, .... POST IT HERE, DONT MAKE A NEW TOPIC !

[Only registered and activated users can see links. Click Here To Register...]

-------------------------------------------------------------------------------------

Bugs:


mssql_connect Bug:
Error msg: Fatal error: Call to undefined function mssql_connect()

Fix:
Open php.ini file
Find ;extension=php_mssql.dll
Delete prefix ";"




Cant enter password for mysql:(Xampp)
Its seems you cant enter or modify your mysql password, here is how to:

Fix:

How I can set a "root" password in MySQL? (method 1)
The easiest way is to use the security console, which you can access at [Only registered and activated users can see links. Click Here To Register...].

This "console" creates a password for the MySQL user "root" and is adjusting the phpMyAdmin configuration.


How I can set a "root" password in MySQL? (method 2)
With the"XAMPP Shell" (command prompt) you can also change the password. Open the shell and execute this command:
mysqladmin.exe -u root password secret

Of course, your password should not be "secret", too. In the next step you must adjust the phpMyAdmin configuration for this new password. In the file "\xampp\phpMyAdmin\config.inc.php" change the lines:
PHP Code:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = ''
to:
PHP Code:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'secret'
Instead in the XAMPP Shell, you can also change the password with phpMyAdmin, and then adjust the phpMyAdmin configuration.
08/28/2009 15:23 Krops#2
nice
08/28/2009 15:26 theoners#3
WOW tnx its help for some ppl
08/28/2009 18:47 badboyfuck#4
i got error on line 84 and 85

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\xampplite\htdocs\server\vote.php on line 84

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampplite\htdocs\server\vote.php on line 85
08/28/2009 20:22 janvier123#5
Quote:
Originally Posted by badboyfuck View Post
i got error on line 84 and 85

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\xampplite\htdocs\server\vote.php on line 84

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampplite\htdocs\server\vote.php on line 85
duh ..... did you fill in the mssql line ?
08/29/2009 01:17 lelothebest#6
Error :
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\Vote\vote.php on line 73

anyhelp ?
08/29/2009 01:29 kwazy123#7
Fatal error: Call to undefined function mssql_connect()
thats the error i get
08/29/2009 01:33 NicoBlacktir#8
HeHeHe ^^ i think you must make a Video for understand this guys it :D

^^ Good Luck ^^
08/29/2009 03:12 janvier123#9
mssql_connect()
did anyone fill in the mssql - mysql ?
08/29/2009 03:20 ItsNobody#10
I havent even tested it but its an easy script. Read before copy and pasting. Theres more then that involved people:rtfm:.

BTW ...:handsdown: NJ janvier
08/29/2009 03:41 badboyfuck#11
yes i filled in the mssql line
08/29/2009 11:36 lelothebest#12
any chance for help ?
08/29/2009 13:50 janvier123#13
send your teamviewer id and passw, ill have a look, cuz its working here normal
08/29/2009 14:54 hayspat#14
Quote:
Originally Posted by lelothebest View Post
Error :
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\Vote\vote.php on line 73

anyhelp ?
Open php.ini file
Find ;php_mssql.dll
Delete prefix ";"
08/29/2009 16:20 janvier123#15
nice, ill hope that woks,

i use apache and mysql, php (not xampp)