[Release] Vote in User Panel For Credits [Fixed by LiskO]

NikeR

New Member
Joined
Apr 8, 2008
Messages
927
Reaction score
318
Първо си правите една таблица:
Code:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[vote_credits]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[vote_credits]
GO

CREATE TABLE [dbo].[vote_credits] (
 [account] [varchar] (255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
 [time] [bigint] NOT NULL 
) ON [PRIMARY]
GO

После правите файл в папката с модулите ви, с име примерно vote.php.
Файла е следния:

Code:
<?php 
if (isset($_SESSION['user'])){
require("config.php");
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
$id = (int)$_GET['id'];
$credits = '10'; [COLOR="green"]// kolko krediti da dava[/COLOR]
$link = '[COLOR="Blue"]http://yourvotelink.net [/COLOR]'; [COLOR="green"]// edit this [Linka za glasuvane][/COLOR]
echo "
<form method='post' action='' >
<table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<thead>
<tr><td> Гласувай за нас и вземи кредити за Уеб Магазина </td></tr>
</thead>
<tbody>
<tr><td><br />
- Въведи коректно посоченият код и гласувай за сървъра.<br />
- При всяко гласуване получавате $credits кредита. <br />
- Може да гласувате само веднъж на всеки 12 часа.<br /></td></tr>
<tr><td>&nbsp;</td></tr>
</tbody>
</table>
</form>";

$time = time();
$timeup = $time - 43200; 
$query = mssql_query("SELECT * from vote_credits WHERE account='$account_id' and time>'$timeup'");
$check = mssql_num_rows($query);
if ($check == "0") {
$insert = mssql_query("INSERT INTO vote_credits (account, time) VALUES ('$account_id','$time')");
$update = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account_id'");
echo "<meta http-equiv=\"refresh\" content=\"0;url=$link\" />";
}
else
{
echo "<br /><table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<tr><td><font color=red>Вече сте гласували за последните 24 часа.</font></td></tr>
</table>";
}
}
else { 
echo "<table class='sort-table' width='450' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>&nbsp;</td></tr><tr><td class='center'><a href='$link' target='_blank'>Please Vote For Us</a></td></tr><tr><td>&nbsp;</td></tr></table><br />";
}
?>

После в усъз пан адвате линк с : http://yoursite.com/index.php?op=vote
 
Last edited:
хихихи втори сам го тествал след лиско евала баце ;)
 
  • Like
Reactions: sa6ko21
стари скриптове ама... толкоз докато завърша новия уеб на дерйка.
после ще релейсна и един уеб от мене...;)ама немам време
 
i cant do it .. idk how it will works ;( it dont works by me

Error: Module Could Not Be Found By MuWeb!
 
Last edited:
what you do :D where you put the file.
Must put it in modules/ folder.

look what i done .

i Created a editor.txt named vote.php than i put the 2nd code.

than i gone to query analyzer wrote the first code in and pressed F5. than i put my vote link into the vote.php and than i go into http://instamu.zapto.org/index.php?op=vote and got the error ..

so its dont works..


should i reinstall my muWeb?
 
Last edited:
look what i done .

i Created a editor.txt named vote.php than i put the 2nd code.

than i gone to query analyzer wrote the first code in and pressed F5. than i put my vote link into the vote.php and than i go into http://instamu.zapto.org/index.php?op=vote and got the error ..

so its dont works..


should i reinstall my muWeb?

it` deasn`t read module
Btw Go Windows Explorer(not Internet explorer)--> tools --> folder optiosn --> View --> And Untick = Hide Extensions for known file types
And rename the file to .php then i think
now your file is vote.php.txt for that, but not sure :D

Becouse ddn`t read your module :)
 
оф лиско просто му напрай файла и го ъплоадни някаде тоя е малумен явно ^^
 
no, no must be vote.php
but do that what i say over :D

now there isnt a error .. but this one

ÿþ<�?�p�h�p� � � �r�e�q�u�i�r�e�(�"�c�o�n�f�i�g�.�p�h�p�"�)�;� � �$�a�c�c�o�u�n�t�_�i�d� �=� �s�t�r�i�p�s�l�a�s�h�e�s�(�$�_�S�E�S�S�I�O�N�[�'�u�s�e�r�'�]�)�;� � �$�a�c�c�o�u�n�t�_�i�d� �=� �c�l�e�a�n�_�v�a�r�(�$�a�c�c�o�u�n�t�_�i�d�)�;� � �$�i�d� �=� �(�i�n�t�)�$�_�G�E�T�[�'�i�d�'�]�;� � �$�c�r�e�d�i�t�s� �=� �'�1�0�'�;� �/�/� �k�o�l�k�o� �k�r�e�d�i�t�i� �d�a� �d�a�v�a� � �$�l�i�n�k� �=� �'�h�t�t�p�:�/�/�w�w�w�.�m�m�o�r�p�g�t�o�p�l�i�s�t�.�c�o�m�/�i�n�.�p�h�p�?�s�i�t�e�=�2�1�7�9�5� �'�;� �/�/� �e�d�i�t� �t�h�i�s� �[�L�i�n�k�a� �z�a� �g�l�a�s�u�v�a�n�e�]� � �i�f�(�$�a�c�c�o�u�n�t�_�i�d� �=�=� �N�U�L�L�)�{�D�i�e� �(�"�<�t�a�b�l�e� �c�l�a�s�s�=�'�s�o�r�t�-�t�a�b�l�e�'� �w�i�d�t�h�=�'�4�5�0�'� �b�o�r�d�e�r�=�'�0�'� �c�e�l�l�p�a�d�d�i�n�g�=�'�0�'� �c�e�l�l�s�p�a�c�i�n�g�=�'�0�'� �a�l�i�g�n�=�'�c�e�n�t�e�r�'�>�<�t�r�>�<�t�d�>�&�n�b�s�p�;�<�/�t�d�>�<�/�t�r�>�<�t�r�>�<�t�d� �c�l�a�s�s�=�'�c�e�n�t�e�r�'�>�<�a� �h�r�e�f�=�'�$�l�i�n�k�'� �t�a�r�g�e�t�=�'�_�b�l�a�n�k�'�>�P�l�e�a�s�e� �V�o�t�e� �F�o�r� �U�s�<�/�a�>�<�/�t�d�>�<�/�t�r�>�<�t�r�>�<�t�d�>�&�n�b�s�p�;�<�/�t�d�>�<�/�t�r�>�<�/�t�a�b�l�e�>�<�b�r� �/�>�"�)�;�}� � �e�c�h�o� �"� � �<�f�o�r�m� �m�e�t�h�o�d�=�'�p�o�s�t�'� �a�c�t�i�o�n�=�'�'� �>� � �<�t�a�b�l�e� �c�l�a�s�s�=�'�s�o�r�t�-�t�a�b�l�e�'� �w�i�d�t�h�=�'�3�5�0�'� �b�o�r�d�e�r�=�'�0�'� �c�e�l�l�s�p�a�c�i�n�g�=�'�0�'� �c�e�l�l�p�a�d�d�i�n�g�=�'�0�'� �a�l�i�g�n�=�'�c�e�n�t�e�r�'�>� � � � � � � � � � � � � �<�t�h�e�a�d�>� � �<�t�r�>�<�t�d�>� �;0AC209 �70 �=0A �8 �275<8 �:@548B8 �70 �#51 �03078=0 �<�/�t�d�>�<�/�t�r�>� � �<�/�t�h�e�a�d�>� � �<�t�b�o�d�y�>� � �<�t�r�>�<�t�d�>�<�b�r� �/�>� � �-� �J2548 �:>@5:B=> �?>A>G5=8OB �:>4 �8 �3;0AC209 �70 �AJ@2J@0.�<�b�r� �/�>� � �-� �@8 �2AO:> �3;0AC20=5 �?>;CG020B5 �$�c�r�e�d�i�t�s� �:@548B0.� �<�b�r� �/�>� � �-� �>65 �40 �3;0AC20B5 �A0<> �254=J6 �=0 �2A5:8 �1�2� �G0A0.�<�b�r� �/�>�<�/�t�d�>�<�/�t�r�>� � �<�t�r�>�<�t�d�>�&�n�b�s�p�;�<�/�t�d�>�<�/�t�r�>� � �<�/�t�b�o�d�y�>� � �<�/�t�a�b�l�e�>� � �<�/�f�o�r�m�>�"�;� � � � �$�t�i�m�e� �=� �t�i�m�e�(�)�;� � �$�t�i�m�e�u�p� �=� �$�t�i�m�e� �-� �4�3�2�0�0�;� � � �$�q�u�e�r�y� �=� �m�s�s�q�l�_�q�u�e�r�y�(�"�S�E�L�E�C�T� �*� �f�r�o�m� �v�o�t�e�_�c�r�e�d�i�t�s� �W�H�E�R�E� �a�c�c�o�u�n�t�=�'�$�a�c�c�o�u�n�t�_�i�d�'� �a�n�d� �t�i�m�e�>�'�$�t�i�m�e�u�p�'�"�)�;� � �$�c�h�e�c�k� �=� �m�s�s�q�l�_�n�u�m�_�r�o�w�s�(�$�q�u�e�r�y�)�;� � �i�f� �(�$�c�h�e�c�k� �=�=� �"�0�"�)� �{� � �$�i�n�s�e�r�t� �=� �m�s�s�q�l�_�q�u�e�r�y�(�"�I�N�S�E�R�T� �I�N�T�O� �v�o�t�e�_�c�r�e�d�i�t�s� �(�a�c�c�o�u�n�t�,� �t�i�m�e�)� �V�A�L�U�E�S� �(�'�$�a�c�c�o�u�n�t�_�i�d�'�,�'�$�t�i�m�e�'�)�"�)�;� � �$�u�p�d�a�t�e� �=� �m�s�s�q�l�_�q�u�e�r�y�(�"�U�p�d�a�t�e� �M�E�M�B�_�C�R�E�D�I�T�S� �s�e�t� �c�r�e�d�i�t�s� �=� �c�r�e�d�i�t�s�+�$�c�r�e�d�i�t�s� �W�H�E�R�E� �m�e�m�b�_�_�_�i�d�=�'�$�a�c�c�o�u�n�t�_�i�d�'�"�)�;� � �e�c�h�o� �"�<�m�e�t�a� �h�t�t�p�-�e�q�u�i�v�=�\�"�r�e�f�r�e�s�h�\�"� �c�o�n�t�e�n�t�=�\�"�0�;�u�r�l�=�$�l�i�n�k�\�"� �/�>�"�;� � �}� � �e�l�s�e� � �{� � �e�c�h�o� �"�<�b�r� �/�>�<�t�a�b�l�e� �c�l�a�s�s�=�'�s�o�r�t�-�t�a�b�l�e�'� �w�i�d�t�h�=�'�3�5�0�'� �b�o�r�d�e�r�=�'�0�'� �c�e�l�l�s�p�a�c�i�n�g�=�'�0�'� �c�e�l�l�p�a�d�d�i�n�g�=�'�0�'� �a�l�i�g�n�=�'�c�e�n�t�e�r�'�>� � � � � � � � � � � � � �<�t�r�>�<�t�d�>�<�f�o�n�t� �c�o�l�o�r�=�r�e�d�>�5G5 �AB5 �3;0AC20;8 �70 �?>A;54=8B5 �2�4� �G0A0.�<�/�f�o�n�t�>�<�/�t�d�>�<�/�t�r�>� � �<�/�t�a�b�l�e�>�"�;� � �}� � �?�>�
 
би ли направил още 1 пост ако може да обясниш как става не със кредити а със зен ?
 
Code:
<?php 
if (isset($_SESSION['user'])){
require("config.php");
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);
$id = (int)$_GET['id'];

$creditson = '1'; // credits off(0)/On(1)
$zenon = '1'; // zen off(0)/On(1)
$zen = 100000000'; // kolko zen da dava
$credits = '10'; // kolko krediti da dava
$link = 'http://yourvotelink.net '; // edit this [Linka za glasuvane]
echo "
<form method='post' action='' >
<table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<thead>
<tr><td> Гласувай за нас и вземи кредити за Уеб Магазина </td></tr>
</thead>
<tbody>
<tr><td><br />
- Въведи коректно посоченият код и гласувай за сървъра.<br />
- При всяко гласуване получавате $credits кредита. <br />
- Може да гласувате само веднъж на всеки 12 часа.<br /></td></tr>
<tr><td>&nbsp;</td></tr>
</tbody>
</table>
</form>";

$time = time();
$timeup = $time - 43200; 
$query = mssql_query("SELECT * from vote_credits WHERE account='$account_id' and time>'$timeup'");
$check = mssql_num_rows($query);
if ($check == "0") {
$insert = mssql_query("INSERT INTO vote_credits (account, time) VALUES ('$account_id','$time')");
if ($creditson == "1") {
$update = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account_id'");
}
if ($zenon == "1") {
$updatez = mssql_query("Update warehouse set Money = Money+$zen WHERE AccountID='$account_id'");
}
echo "<meta http-equiv=\"refresh\" content=\"0;url=$link\" />";
}
else
{
echo "<br /><table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<tr><td><font color=red>Вече сте гласували за последните 24 часа.</font></td></tr>
</table>";
}
}
else { 
echo "<table class='sort-table' width='450' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>&nbsp;</td></tr><tr><td class='center'><a href='$link' target='_blank'>Please Vote For Us</a></td></tr><tr><td>&nbsp;</td></tr></table><br />";
}

?>


Ето го кода с zen/credits --> onn/off

Не съм го тествал, направо в форума го писах, би трябвало да бачка
 
Last edited:
  • Like
Reactions: natumno
Here Your file:
http:/drakemu.net/vote.rar
just download and put it in modules folder(think)

YESSS IT WORKS ! NIEC ! but only thing i dont like is the its a white window ... can i change it to black?
 
Ето и с въвеждане на акаунт, например за x-tyling web
RQ by: AirwaveS

Code:
<?php 
require("config.php");
$account_id = stripslashes($_POST['account']);
$account_id = clean_var($account_id);
$id = (int)$_GET['id'];
$creditson = '1'; // credits off(0)/On(1)
$zenon = '1'; // zen off(0)/On(1)
$zen = 100000000'; // kolko zen da dava
$credits = '10'; // kolko krediti da dava
$link = 'http://yourvotelink.net '; // edit this [Linka za glasuvane]
if (empty($account_id) {Die ("<table class='sort-table' width='450' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>&nbsp;</td></tr><tr><td class='center'>Please Enter Account And Then Vote For Us</td></tr><tr><td>&nbsp;</td></tr></table><br />");}
echo "
<form method='post' action='' >
<table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<thead>
<tr><td> Гласувай за нас и вземи кредити за Уеб Магазина </td></tr>
</thead>
<tbody>
<tr><td><br />
- Въведи коректно посоченият код и гласувай за сървъра.<br />
- При всяко гласуване получавате $credits кредита. <br />
- Може да гласувате само веднъж на всеки 12 часа.<br /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center">Твоят акаунт: <input name='account' type='account' class='input' maxlength='10'></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center"><input name=submit type=submit value='Get Credits' class='button'></td></tr>
</tbody>
</table>
</form>";

$time = time();
$timeup = $time - 43200; 
$query = mssql_query("SELECT * from vote_credits WHERE account='$account_id' and time>'$timeup'");
$check = mssql_num_rows($query);
if ($check == "0") {
$insert = mssql_query("INSERT INTO vote_credits (account, time) VALUES ('$account_id','$time')");
if ($creditson == "1") {
$update = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account_id'");
}
if ($zenon == "1") {
$updatez = mssql_query("Update warehouse set Money = Money+$zen WHERE AccountID='$account_id'");
}
echo "<meta http-equiv=\"refresh\" content=\"0;url=$link\" />";
}
else
{
echo "<br /><table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<tr><td><font color=red>Вече сте гласували за последните 24 часа.</font></td></tr>
</table>";
}
?>
 
is this only for Muweb ?

here the code with, writing the account

Code:
<?php 
require("config.php");
$account_id = stripslashes($_POST['account']);
$account_id = clean_var($account_id);
$id = (int)$_GET['id'];
$creditson = '1'; // credits off(0)/On(1)
$zenon = '1'; // zen off(0)/On(1)
$zen = 100000000'; // kolko zen da dava
$credits = '10'; // kolko krediti da dava
$link = 'http://yourvotelink.net '; // edit this [Linka za glasuvane]
if (empty($account_id) {Die ("<table class='sort-table' width='450' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>&nbsp;</td></tr><tr><td class='center'>Please Enter Account And Then Vote For Us</td></tr><tr><td>&nbsp;</td></tr></table><br />");}
echo "
<form method='post' action='' >
<table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<thead>
<tr><td> Гласувай за нас и вземи кредити за Уеб Магазина </td></tr>
</thead>
<tbody>
<tr><td><br />
- Въведи коректно посоченият код и гласувай за сървъра.<br />
- При всяко гласуване получавате $credits кредита. <br />
- Може да гласувате само веднъж на всеки 12 часа.<br /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center">Твоят акаунт: <input name='account' type='account' class='input' maxlength='10'></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center"><input name=submit type=submit value='Get Credits' class='button'></td></tr>
</tbody>
</table>
</form>";

$time = time();
$timeup = $time - 43200; 
$query = mssql_query("SELECT * from vote_credits WHERE account='$account_id' and time>'$timeup'");
$check = mssql_num_rows($query);
if ($check == "0") {
$insert = mssql_query("INSERT INTO vote_credits (account, time) VALUES ('$account_id','$time')");
if ($creditson == "1") {
$update = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account_id'");
}
if ($zenon == "1") {
$updatez = mssql_query("Update warehouse set Money = Money+$zen WHERE AccountID='$account_id'");
}
echo "<meta http-equiv=\"refresh\" content=\"0;url=$link\" />";
}
else
{
echo "<br /><table class='sort-table' width='350' border='0' cellspacing='0' cellpadding='0' align='center'>           
<tr><td><font color=red>Вече сте гласували за последните 24 часа.</font></td></tr>
</table>";
}
?>