First of all, execute this query in your "CabalCash" database:
Then, download the "votereward.rar" in the attachments.
Place the files in the "modules" directory of your website (that is for it can include the adodb5 files properly. If you know php a little you can change the adodb5 include path in the vote_do.php file, but in cabaltoolz the path is correct when the files are put into the backend site "modules" directory)
Open vote_do.php and edit "$server, $user, $pass" variables accordingly to your db server, db username and db password.
Open "votereward.php" and modify the window.open link in the function 'vote()' to your xtremetop link, and modify the index page link as well.
Open "votereward.php" in your browser and enjoy!
Note: If someone can make a better design for votereward.php, I would appreciate it.
Usage
1. Click the link "Vote for us from here." and vote for the server.
2. Enter your CABAL Account Username and Password, and press "Receive Reward."
Everyone can receive reward once in every 12 Hours, and the reward is 1 CC.
If you find any bugs, post them here, I will do my best to fix them.
System works perfect on Microsoft Server 2003, and XAMPP WebServer.(PHP 5)
Code:
CREATE TABLE VoteReward(
UserID VARCHAR(50) NULL,
VoteDate INT NULL
)
Then, download the "votereward.rar" in the attachments.
Place the files in the "modules" directory of your website (that is for it can include the adodb5 files properly. If you know php a little you can change the adodb5 include path in the vote_do.php file, but in cabaltoolz the path is correct when the files are put into the backend site "modules" directory)
Open vote_do.php and edit "$server, $user, $pass" variables accordingly to your db server, db username and db password.
Open "votereward.php" and modify the window.open link in the function 'vote()' to your xtremetop link, and modify the index page link as well.
Open "votereward.php" in your browser and enjoy!
Note: If someone can make a better design for votereward.php, I would appreciate it.
Usage
1. Click the link "Vote for us from here." and vote for the server.
2. Enter your CABAL Account Username and Password, and press "Receive Reward."
Everyone can receive reward once in every 12 Hours, and the reward is 1 CC.
If you find any bugs, post them here, I will do my best to fix them.
System works perfect on Microsoft Server 2003, and XAMPP WebServer.(PHP 5)
Attachments
You must be registered for see attachments list
Last edited: