[Release] Linkos MU Online Vote Reward System

Diyan

Well-Known Member
Joined
Nov 21, 2012
Messages
332
Reaction score
252
БЪЛГАРСКИ ЕЗИК

Здрвейте. Реших да споделя системата за възнаградено гласуване, която използвам за "Linkos MU Online". Във "Vote Reward" системата няма дупки, нито шелове и сигурността и е гарантирана. Надявам се да е полезна на много хора.

Инсталация:

Копирате текста, намиращ се в текстовия документ, изпълнявате "Query"-то в "Query Analyzer" и готово - насладете се на приятно изглеждаща и надеждна система за възнаградено гласуване (a.k.a. Vote Reward System).

Как да добавите банери за гласуване:

Отваряте базата данни "MuOnline" с "SQL Enterprise Manager", след това таблиците (Tables) и в дъното най-долу ще видите таблица с име "Votes". С десен клик избирате опцията "Return all rows" след което ще Ви се отворят следните полета:

* id - Тук се попълва номера на дадения бутон за гласуване - "1", "2", "3" и така нататък в зависимост от броя на бутоните за гласуване, които сте поставил.
* link - Тук се попълва линка за гласуване.
* banner - Тук се попълва връзката към банера/изображението.
* credits - Тук се попълва наградата като кредити за едно гласуване - "5" или "10" или стойност по Ваш избор.
* vote_time - Тук се попълва времето през което може да се гласува в секунди. Стойността за 12 часа е "43200".
* show - Тук се слага "1" за да се показва дадената връзка а за да се скрие се слага "0".

ENGLISH - TO BE UPDATED

Credits: WebZen, K2 Network, Mephisto, mi7aka, AnonOps (Linkos MU Online Owner [Собственика на Linkos MU Online])
 

Attachments

  • Linkos MU Online Vote Reward System.rar
    173.6 KB · Views: 348

Ivaylo99

Kiwi
Joined
Feb 17, 2011
Messages
388
Reaction score
377
ENGLISH GUIDE WITH PICTURES

Installation:

Copy the text from install.txt and paste it in "Query Analyzer"
Edit your 'SQL' password in config.php

How to add banners for vote:


Open database "MuOnline" with "SQL Enterprise Manager", after that click on (Tables) and at the bottom you will see a table with name "Votes". Right Click on it and select option "Return all rows" then you open the following fields:

6ocb.jpg

n73z.jpg

op85.jpg




* id - Here you must add number for selected button - "1", "2", "3"
and so on depending on the number of voting buttons that you set.

* link - Here you must add the link for vote.

* banner - Here you must add the link for your banner or image.

* credits - Here you must config how much credits to give for 1 vote

* vote_time - It fills time during you can vote in seconds. The value for 12 hours is "43200" | 24 hours = "86400"

* show - Here you put "1" to show connection or "0" to hide.

oi0n.jpg

3zdh.jpg

5hzz.jpg





Sorry about bad translate :D
 
Last edited:
  • Like
Reactions: Deleted member 3583

DemonuMu

Well-Known Member
Joined
May 26, 2011
Messages
1,053
Reaction score
220
it's nothing,but here I do not understand a thing [* link - Here you must add the link for vote.] how fix?

[you can make a tutorial with pictures so we can understand]-[would be helpful]
 
Last edited:

Ivaylo99

Kiwi
Joined
Feb 17, 2011
Messages
388
Reaction score
377
it's nothing,but here I do not understand a thing [* link - Here you must add the link for vote.] how fix?

[you can make a tutorial with pictures so we can understand]-[would be helpful]

After few hours i will add guide with pictures :)


[* link - Here you must add the link for vote.] here is the linke for vote (like for xtremetop100 or any other site) i hope you can understand me :D
 

DemonuMu

Well-Known Member
Joined
May 26, 2011
Messages
1,053
Reaction score
220
I said thank you, kid,learn to talk nicely
-------------------------------------
if you do not know English not my fault
-------------------------------------
 

DemonuMu

Well-Known Member
Joined
May 26, 2011
Messages
1,053
Reaction score
220
what security have this votes reward/works hack credits ?
 

Diyan

Well-Known Member
Joined
Nov 21, 2012
Messages
332
Reaction score
252
what security have this votes reward/works hack credits ?

The vote reward system is very well secured. In other words - no, you can't hack it to get credits.
 

FlamingArm

Member
Joined
Jan 3, 2012
Messages
56
Reaction score
3
and if in my database passwords are MD5 how to make so users will log in?

$user = mssql_fetch_array(mssql_query("SELECT * FROM MEMB_INFO WHERE memb___id='$_POST[username]' AND memb__pwd='$_POST[password]'"));
if(empty($_POST['username']) OR empty($_POST['password'])) { echo "Please complete all fields."; $error=true; }
elseif(!$user) { echo "There is no such username or password is wrong"; $error=true; }
 

DarkMaster

Administrator
Staff member
Joined
Apr 8, 2008
Messages
2,463
Reaction score
11,146
$user = mssql_fetch_array(mssql_query("SELECT * FROM MEMB_INFO WHERE memb___id='$_POST[username]' AND memb__pwd='$_POST[password]'"));
Becomes:
$user = mssql_fetch_array(mssql_query("SELECT * FROM MEMB_INFO WHERE memb___id='$_POST[username]' AND memb__pwd=[dbo].[fn_md5]('$_POST[password]','$_POST[username]')"));
 

FlamingArm

Member
Joined
Jan 3, 2012
Messages
56
Reaction score
3
so like i see the votesystem doesn't check if the used voted?
I just press the button (the 12h countdown appears) and i get for free+10 credits?

how to make that every image of the votebutton will have a new lane, i got 5 buttons and if vote for 2 the one is gone missing, vote for 3 the last 2 appears...
 

FlamingArm

Member
Joined
Jan 3, 2012
Messages
56
Reaction score
3
for the images to be from new lane just add:
else { $vi += 1; echo "<b>You can vote again after: </b><span id='bxx$vi' title='".($voted['voteend']-time())."'>--</span>&nbsp;&nbsp; | &nbsp;&nbsp; <br />"; }

and here:
if(!$voted) { echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?id=$vote[id]' OnClick=\"window.open('".($vote['link'])."')\" onmouseover=\"overlib('Vote once on ".($vote['vote_time']/60/60)." hours and win $vote[credits] credits');\" onmouseout=\"return nd();\"><img src='".($vote['banner'])."' alt='".($vote['link'])."'></a> &nbsp;&nbsp;&nbsp;<br />"; }

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

about the vote, i did vote, configured for 50s(revote) and i didnt get a message or CSpoints.

I did change from:
$res = mssql_query("SELECT credits FROM MEMB_CREDITS WHERE memb___id='".($_COOKIE['username'])."'");
if(mssql_num_rows($res)>0) { mssql_query("UPDATE MEMB_CREDITS SET credits=credits+'$vote_id[credits]' WHERE memb___id='".($_COOKIE['username'])."'"); }
else { mssql_query("INSERT INTO MEMB_CREDITS (memb___id, credits) VALUES('".($_COOKIE['username'])."', '$vote_id[credits]')"); }
echo "<font size=2><b>You won $vote_id[credits] credits</b></font><br /><br />";


into:

$res = mssql_query("SELECT CSPoints FROM MEMB_INFO WHERE memb___id='".($_COOKIE['username'])."'");
if(mssql_num_rows($res)>0) { mssql_query("UPDATE MEMB_INFO SET CSPoints=CSPoint+'$vote_id[credits]' WHERE memb___id='".($_COOKIE['username'])."'"); }
else { mssql_query("INSERT INTO MEMB_INFO (memb___id, CSPoints) VALUES('".($_COOKIE['username'])."', '$vote_id[credits]')"); }
echo "<font size=2><b>You won $vote_id[credits] credits</b></font><br /><br />";



$vote_id[credits] - should i change it to $vote_id[CSPoints] ?

[MEMB_INFO table; CSPoints column ] - here are my cspoints

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

"If you going to vote for the first time with your account, you need to enter at least once in our webshop then vote system will start works for you."
on the site, i dont have a webshop, it should work w/o it right?
 
Last edited:

Diyan

Well-Known Member
Joined
Nov 21, 2012
Messages
332
Reaction score
252
for the images to be from new lane just add:
else { $vi += 1; echo "<b>You can vote again after: </b><span id='bxx$vi' title='".($voted['voteend']-time())."'>--</span>&nbsp;&nbsp; | &nbsp;&nbsp; <br />"; }

and here:
if(!$voted) { echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?id=$vote[id]' OnClick=\"window.open('".($vote['link'])."')\" onmouseover=\"overlib('Vote once on ".($vote['vote_time']/60/60)." hours and win $vote[credits] credits');\" onmouseout=\"return nd();\"><img src='".($vote['banner'])."' alt='".($vote['link'])."'></a> &nbsp;&nbsp;&nbsp;<br />"; }

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

about the vote, i did vote, configured for 50s(revote) and i didnt get a message or CSpoints.

I did change from:
$res = mssql_query("SELECT credits FROM MEMB_CREDITS WHERE memb___id='".($_COOKIE['username'])."'");
if(mssql_num_rows($res)>0) { mssql_query("UPDATE MEMB_CREDITS SET credits=credits+'$vote_id[credits]' WHERE memb___id='".($_COOKIE['username'])."'"); }
else { mssql_query("INSERT INTO MEMB_CREDITS (memb___id, credits) VALUES('".($_COOKIE['username'])."', '$vote_id[credits]')"); }
echo "<font size=2><b>You won $vote_id[credits] credits</b></font><br /><br />";


into:

$res = mssql_query("SELECT CSPoints FROM MEMB_INFO WHERE memb___id='".($_COOKIE['username'])."'");
if(mssql_num_rows($res)>0) { mssql_query("UPDATE MEMB_INFO SET CSPoints=CSPoint+'$vote_id[credits]' WHERE memb___id='".($_COOKIE['username'])."'"); }
else { mssql_query("INSERT INTO MEMB_INFO (memb___id, CSPoints) VALUES('".($_COOKIE['username'])."', '$vote_id[credits]')"); }
echo "<font size=2><b>You won $vote_id[credits] credits</b></font><br /><br />";



$vote_id[credits] - should i change it to $vote_id[CSPoints] ?

[MEMB_INFO table; CSPoints column ] - here are my cspoints

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

"If you going to vote for the first time with your account, you need to enter at least once in our webshop then vote system will start works for you."
on the site, i dont have a webshop, it should work w/o it right?

You need to change this:

$res = mssql_query("SELECT CSPoints FROM MEMB_INFO WHERE memb___id='".($_COOKIE['username'])."'");
if(mssql_num_rows($res)>0) { mssql_query("UPDATE MEMB_INFO SET CSPoints=CSPoints+'$vote_id[CSPoints]' WHERE memb___id='".($_COOKIE['username'])."'"); }
else { mssql_query("INSERT INTO MEMB_INFO (memb___id, CSPoints) VALUES('".($_COOKIE['username'])."', '$vote_id[CSPoints]')"); }
echo "<font size=2><b>You won $vote_id[CSPoints] CSPoints</b></font><br /><br />";

Good luck!
 
Last edited:

FlamingArm

Member
Joined
Jan 3, 2012
Messages
56
Reaction score
3
$vote_id[credits] ->> do not change this so this will work if u dont work with a proxy.
 
Last edited:

Opium

New Member
Joined
Mar 21, 2015
Messages
11
Reaction score
0
Can we set this module according to the darksweb 0.3 ? I could not do it compatible. I would appreciate if you can help.