[Release] DarksWeb 0.3 [09.12.2016]

Status
Not open for further replies.

Backo

Well-Known Member
Joined
Jan 17, 2009
Messages
1,212
Reaction score
976
Features:
Code:
[CENTER]Website menu:
- News (News System)
- [SIZE=1][COLOR=Red]New[/COLOR][/SIZE] User Area (Modified & Secured)
- Registration (Modified & Secured)
- Downloads (Modified)
- [SIZE=1][COLOR=Red]New[/COLOR][/SIZE] Ranking (Modified & Secured)
- Black List (Modified)
- Statistics (Modified)
- Forum (Modified)
- Vote Reward  (Modified)
- Contact (Modified)

[SIZE=1][COLOR=Red]New[/COLOR][/SIZE] User Control Panel:
- Stats Adder (Modified & Secured)
- Change Password(Modified & Secured)
- Reset Character (Modified & Secured)
- PK Clear (Modified & Secured)
- Clear Stats Point (Modified & Secured)
- Clear Magic List (Modified & Secured)
- Clear Inventory (Modified & Secured)
[/CENTER]
What's new?
Code:
[CENTER]- New desing
- New core
- Maximum secure
- Use MD5 mode on/off[/CENTER]
Code:
[CENTER][B][COLOR=Red]Update 3:[/COLOR][/B]
- Add Blood Castle ranking
- Add Devil Square ranking
- Add Castle Siege statistic
- [SIZE=1][COLOR=Red]New[/COLOR][/SIZE]User Panel vision and fixed all bug's ;)
[SIZE=1][COLOR=Red]New[/COLOR][/SIZE] Best secure method
[/CENTER]
Code:
[CENTER][COLOR=Red][B]Update 4:[/B][/COLOR]
- Security improvements[/CENTER]
  • Site has nothing to do with MuWeb and MuWeb DataBase and Settings please read the post and install DarkWeb 0.3 correct
  • Website work on all muonline versions and web servers.


Configure and Install:
- Configure
SQL settings - config.php and inc/sqlcfg.php
Reset settings - modules/clear_reset_do.php
PK settings - modules/clear_pk_do.php
Advertisment's - advertisment.php
News - News - Stay Informed - YourHost.com (user: admin, password: 1234)
- Instalation
First open config.php and inc/sqlcfg.php and change ip and sql password
Second open your browser and open Page Not Found - YourHost.com
Chouse MD5 on/off
Chouse your server version


Website Credit's:
Web Desing - FCV2005 & Backo
Web Coding - Backo
Contact system - EvoLuTioN & ReaL
 

Attachments

  • 1.png
    1.png
    529.6 KB · Views: 5,817
  • 2.png
    2.png
    285.5 KB · Views: 3,722
  • 3.png
    3.png
    489.1 KB · Views: 3,368
  • DarksWeb_0.3.rar
    2.1 MB · Views: 5,476
Last edited:
I mean why Valve is in the last place if he is stronger than the most of the players, he should be in 3rd place not in 9th
Go to index.php and replace this line

$query = mssql_query("SELECT TOP 25 Name,Class,Resets,cLevel from Character order by Resets desc");

With...

$query = mssql_query("SELECT TOP 25 Name,Class,Resets,cLevel from Character order by Resets desc, cLevel desc");
 
Resolution from reset ;)

in clear_reset_do.php
change :

elseif ($row['$Money'] < $resmoney) { echo "<td><br><font size=2><b>$char</b> need [<b>$resmoney</b>] zen to Reset!</font><br><br></td>"; $error=1; }

to
elseif ($row['Money'] < $resmoney) { echo "<td><br><font size=2><b>$char</b> need [<b>$resmoney</b>] zen to Reset!</font><br><br></td>"; $error=1; }
__________________
'$Money' not correct 'Money' :)
_________________
i find sum.jpg in folder /images/sum.jpg :*

it helped click thanks.
 
Системка за новини специално за darksweb 0.3 (happy)









Глезотии:

1. Добавяне на новини с BBcode (записва ги в db) и поддържа Български език.
2. Добавяне на коментари.
3. Триене на коментари
4. Триене на новини.

ИНСТАЛАЦИЯ:
Отивате в Index.php и добавяте...
PHP:
					case "newsadd":
						include("modules/newsadd.php");
						break;
					case "delnews":
						include("modules/delnews.php");
						break;
					case "view":
						include("modules/view.php");
						break;
					case "delcomment":
						include("modules/delcomment.php");
						break;
След
PHP:
					case "messages":
						include("modules/messages/messages.php");
						break;
Заменята и целият case "home" с...
PHP:
					case "home":
						include("modules/news.php");
						break;

Отивате в config.php и преди ?> добавяте това

PHP:
$arraynews=array(newguy); // За да добавите повече изреждайте с запетаи. Например array(newguy,joro,pe6o); ...

Сваляте архива и копирате папката modules.

За да използвате системата отивате на http://вашиятсайт/?id=newsadd

Там ще ви поиска акаунт и парола. За да си добавите вашият акаунт и още акаунти вижте стъпката в която се слага 1 код в config.php. Там има описание какво да направите. Щом сте си написал акаунта тогава можете да се логнете с акаунта и паролата от MU-то.

Това се добавя в Query analizer> MuOnline

Code:
CREATE TABLE [newssystem] (
	[zaglavie] [varchar] (50) COLLATE Cyrillic_General_BIN NULL ,
	[descript] [text] COLLATE Cyrillic_General_BIN NULL ,
	[id] [int] NOT NULL ,
	[auth] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	CONSTRAINT [PK_newssystem] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

Code:
CREATE TABLE [comsys] (
	[avtor] [varchar] (50) COLLATE Cyrillic_General_BIN NULL ,
	[sudurjanie] [text] COLLATE Cyrillic_General_BIN NULL ,
	[id] [int] NOT NULL ,
	[idpost] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

Готови сте! Ако на някой му се занимава да го превежда на английски... (nod)

Може да стане и за други сайтове ако имате елментарни познания.
 

Attachments

  • modules.rar
    4.4 KB · Views: 255
Last edited:
i found problem in instalation files...

install/index.php

FIX

Old
Code:
<?php
ob_start();
include("../[COLOR="Red"]configuration.php[/COLOR]");
error_reporting(0);

New
Code:
<?php
ob_start();
include("../[COLOR="red"]config.php[/COLOR]");
error_reporting(0);
 
Code:
$username = $_SESSION['member_username'];
$password = $_SESSION['member_password'];
$character = secure($_POST['character']);
include("../inc/sqlcfg.php");
include("../config.php");

with

Code:
include("../inc/sqlcfg.php");
include("../config.php");
$username = $_SESSION['member_username'];
$password = $_SESSION['member_password'];
$character = secure($_POST['character']);

missing picture ;) here it is ;)


P.S link update with correct errors
 

Attachments

  • sum.jpg
    sum.jpg
    34.4 KB · Views: 293
Last edited:
Ето Traffic Load Script специално направен за DarksWeb 0.3

1. Правите един файл с име "load.php" и в него слагате следното:

Code:
<center>Server Load</center>
<center><table border=0 width=402><tr><td style='padding: 0px; background-image: url("./pic/loadbarbg.gif"); background-repeat: repeat-x'>
<? 
$percent = min(100, round(exec('ps ax | grep -c apache') / 256 * 100));
if ($percent <= 70) $pic = "loadbargreen.gif";
elseif ($percent <= 90) $pic = "loadbaryellow.gif";
else $pic = "loadbarred.gif";
$width = $percent * 4;
print("<img height=15 width=$width src=\"{./pic/}{$pic}\" alt='$percent%'>");
?>
</td></tr></table>

2. Отивате в "index.php" и след:

Code:
<tr>
<td><img src="images/bot.gif" alt="" width="1024" height="106"></td>
</tr>

Добавяте това:
Code:
<table width="160" border="0" align="center" bgcolor="BLACK">
<tr>
<td><br><br><?php include 'load.php'; ?></td>
</tr>
</table>

Вземете pics от Attach :) .... Нека с добро да го ползвате!
 

Attachments

  • pic.rar
    571 bytes · Views: 205
Ето и моя repack на този сайт :) ... Аднал съм допълнителни екстри към сайта има даже и Vote System писан от мене който при вот дава кредити :).... Моля, редактирайте си config.php след това "/modules/rules.php", "/modules/vote.php" , "/modules/vote_done.php" -> там са кредитите (колко да дава аз съм го направил на 80 което е нормално)... После редактирайте и "/modules/list.txt".... Това е за сега... добавил съм и Server Load който пак е писан от мене :)... Дано ви хареса този repack :p

P.S1: Забравих да ви кажа, че трябва да редактирате и "/inc/sqlcfg.php"
P.S2: Vote System е на 24 часа, но трябва да триете от "/log/потребителите" пример:
--> Ако е гласувал test --> той се записва в папката "log" като папка test, но в него има info.php файл... трий те цялата папка всеки ден! Иначе няма да позволи на потребителя да гласува във ТЕМА!!!
P.S3: Vote System работи без проблем, но трябва първо да сте си влезли в ACC-то иначе ще дава: "Sorry dude, we have your vote!".... И може да гласувате от "Vote Reward" горе в менюто :)...

А така дано ви хареса ... :) скоро още :p

P.S4: Вземете и Vote.rar, че редактирах малко ^^
 

Attachments

  • DarksWeb 0.3 Edited by killar4eto.rar
    3 MB · Views: 668
  • vote.rar
    867 bytes · Views: 201
Last edited:
Така... намерих начин да спираме мулти пинга към вашият сайт ^^.... При мен работи 100%, но не се надявайте всичко да е "страхорно" това спира само request повече от 2 секунди!! Може да си го препработите... найстина работи

Code:
// anti flood protection
if($_SESSION['last_session_request'] > time() - 2){
// users will be redirected to this page if it makes requests faster than 2 seconds
header("location: /flood.html");
exit;
}
$_SESSION['last_session_request'] = time();

този код го слагате във index.php под:
Code:
function number_select_all($variable, $table)
{
$variable = mssql_query("SELECT * FROM $table");
$variable = mssql_num_rows($variable);
echo $variable;
}

После правите един flood.html файл и в него пишете:
Code:
<center>
Please stop to SPAM!
<br>
<br>
Your request is more than 2 secounds. Please refresh site again!
<br>
<br>
</center>

Дано да съм помогнал :) ... Това е само временно решение!!
 
FOR FIX RESET CHARACHTER:

find this:
Code:
$reset_points = "UPDATE character SET [LevelUpPoint]='$newstats',[Money]='$money',[MapNumber]='0',[MapPosX]='125',[MapPosY]='128',[Resets]='$resetup' WHERE Name='$char'";

you need to edit to look like this:
Code:
$reset_points = "UPDATE character SET [LevelUpPoint]='$newstats',[Money]='$money',cLevel='1',[MapNumber]='0',[MapPosX]='125',[MapPosY]='128',[Resets]='$resetup' WHERE Name='$char'";

Have FUN :)
 
Last edited by a moderator:
  • Like
Reactions: NEMES1S
Ето ви една лесна News System :D

1. Създайте файл с името news.phpи в него сложете това:

Code:
<?
if (eregi("modules/news.php", $_SERVER['SCRIPT_NAME'])) { header("Location: ../index.php"); }
?>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<?php
$news = mssql_query("Select news,wdate,autor,title FROM DarksNews");
for($i=0;$i < mssql_num_rows($news);++$i){
$row = mssql_fetch_row($news);
$rank = $i+1;
echo "<table align='center' width='400' border='1'><tr><th>[News]: $row[3]</th></tr><br><tr><th>$row[0]<br><br><div align='right'>Posted Date: $row[1]<br>Autor: $row[2]</div></th></tr><br>";
}
?>
</table><br></table>

2. Отидете в index.php и намерете това
Code:
case "home":
include("modules/news/news.php");
break;
и го заместете с това:
Code:
case "home":
include("modules/news.php");
break;

3. Отидете в SQL Manager и направете нова таблица в MuOnline->DarksNews и сложете в нея:
news,wdate,autor,title
като всичките трябва да са varchar | 50 , само на news varchar | 350!!!

4. За добавяне на новина само от SQL :)

Ето радвайте се!
 
  • Like
Reactions: bogodux and NEMES1S
лешо не те знам, но при мен всичко си бачка както каза Васко след като го инсталнах уеб-а в статистик сложих </table>, най-отдолу и нямам проблем

но има и една подробност която забелязах в Index.php има нещо което е объркано !

Code:
<area shape="rect" coords="555,52,665,75" href="?op=statistics">
това е един от последните редове на Index.php, този ред трябва да стане ето така:
Code:
<area shape="rect" coords="555,52,665,75" href="?id=statistics">

:) Това е от мен. (nqh)
 
Here is Repack 2 of DarksWeb with fix!
http://filebeam.com/c580571946155486df916cc7840977c1

If you have this problem again go to: clear_inventory_do and change this:
Code:
$clear_inventory = "UPDATE Character SET [inventory]=CONVERT(varbinary(1560), null) WHERE Name='$char'";
with this:
Code:
$clear_inventory = "UPDATE Character SET [inventory]=CONVERT(varbinary(1728), null) WHERE Name='$char'";
!!
 
  • Like
Reactions: Deleted member 3583
@Bupyc, killar4eto: как при ресет да направя така, че точките на героите да се изчистват?

Ако си изтеглил моя репак трябва да върви без проблеми иначе се прави така:

1. Отивам в clear_reset_do.php
2. Отваряш и редактираш:
Code:
$reset_points = "UPDATE character SET [LevelUpPoint]='0',[Money]='$money',cLevel='1',Experience='0',[MapNumber]='0',[MapPosX]='125',[MapPosY]='128',[Resets]='$resetup' WHERE Name='$char'";
[CODE]
 
Тоест LevelUpPoint да е равно на 0, но преди това си оправи:
[code]
$respoints = '0';
Трябва да е равно на 0!
Аре успех :)
 
Понеже много хора ми пишат как да си направят на определен рес да дава определен брой точки.... Ето как става:

1. Влизате в "clear_reset_do.php" и добавяте:
Code:
$reset1 = "300";
$reset2 = "500";

2. След това добавяте:
Code:
if($row['Resets'] == "5"){
$up1 = "UPDATE character SET [LevelUpPoint]='0',[Money]='$money',cLevel='1',Experience='0',[MapNumber]='0',[MapPosX]='125',[MapPosY]='128',[Resets]='$reset1' WHERE Name='$char'";
$reset_results = mssql_query($reset_points);
}
Копите същото под него и само променяте [Resets] = '$reset2';

Не е кой знае какво философия :) ... ЗАДЪЛЖИТЕЛНО РЕДАКТИРАЙТЕ ПО СОБСТВЕН ИЗБОР СКРИПТА!
 
killar4eto
i build code check jewel of chaos in inventory with code muweb, but code not check jewel of chaos, you can fix for me, thank so much.

you need to
Code:
<?php
$result88 =mssql_query("Select inventory From Character where Name='$char'");
$inventory_result = mssql_fetch_array($result88);

$inventory = $inventory_result[0];
$inventory = bin2hex(substr($inventory));
$inventory = strtoupper($inventory);

$chaos = 0;
$joc = 0;
$blue = 0;
for($x=0; $x<1920; ++$x)
{
$item = substr($inventory,$x*32,32);
$code = substr($item, 0, 4);
$code2 = substr($item, 18, 1);
if($code == "0F00" AND $code2 =="C")
++$chaos;
if($code == "1600" AND $code2 =="E")
++$joc;
if($code == "0E00" AND $code2 =="D")
++$blue;
} 
 
echo $inventory;
?>
 
kilar4eto имам проблем с bc класация и ds класация не работят server version 97d от кфо може да е

от дб-то е защото записва bc и ds в много таблици.... сега мисля да намеря начин да го оправя

Малка поправка в BANK System.... понеже снощи в 12 часа правих промени и забелязах, че съм опуснал няколко важни неща в таблицата BANK....

Ето ви точният сорс на BANK System:

Code:
<?php include 'config.php'; ?>
<?php
include 'antisql.php';
?>
<table width="450" bgcolor="RED">
<tr>
<th>You must register first in BANK and than you can deposit or withdraw!<br>WARNING: DO IT ONLY ONE TIME!</th>
</tr>
<form action="" method="POST">
<table width="450" bgcolor="GREEN">
<tr>
<th><center><font size="2"><i>AlchemistMU National Bank</i></font><br><br></center></th>
</tr>
<tr>
<th>
<?php
$login = $_SESSION['member_username'];
$select1=mssql_query("SELECT AccountID,Name,Money FROM Character WHERE AccountID='$login'");
$row = mssql_fetch_row($select1);
echo "Accound Name: &nbsp; $row[0]";
echo "<br><br>";
echo "You have: &nbsp; $row[2] zen";
echo "<br><br>";
?>
</th>
<tr>
<th><input type="submit" name="reg" value="Register"> or <input type="submit" name="submit" value="Deposit"> or <input type="submit" name="tegli" value="Withdraw"></th>
</form>
</tr>
</table></table>
<?php
if(isset($_POST['reg']))
{
$login = $_SESSION['member_username'];
$select2=mssql_query("SELECT AccountID,Name,Money FROM Character WHERE AccountID='$login'");
$row = mssql_fetch_row($select2);
$char = $row[0];
$zen = "1";
$wdate = date("H:m:s");
$upd1 = "INSERT INTO BANK(geroi,zen,wdate) VALUES ('$char','$zen','$wdate')";
$save = mssql_query($upd1);
}
?>
<?php
if(isset($_POST['submit']))
{
echo "<br><br>";
echo "<form action='' method='POST'>";
echo "<table width='450' bgcolor='green'>";
echo "<tr><th>How much will you deposit: &nbsp; <input type='text' size='15' name='zen'></th></tr>";
echo "<tr><th><input type='submit' name='depozirai' value='OK'></th></tr>";
echo "</form>";
echo "</table>";
}
?>
<?php
if(isset($_POST['depozirai']))
{
$login = $_SESSION['member_username'];
$select1=mssql_query("SELECT AccountID,Name,Money FROM Character WHERE AccountID='$login'");
$row = mssql_fetch_row($select1);
$geroi = $login;
$wdate = date("H:m:s");
$zen = $_POST['zen'];
if($zen == " "){
echo "You can't use space";
}
else
{
$vzemi = mssql_query("UPDATE Character set Money=Money-$zen WHERE AccountID='$row[0]'");
$up = mssql_query("UPDATE BANK set geroi='$geroi',zen=$zen + zen,wdate='$wdate' WHERE geroi='$row[0]'");
$row1 = mssql_fetch_row($up);
echo "<br><br>";
echo "<table width='450' bgcolor='green'>";
echo "<tr><th>You deposit $zen zen in AlchemistMu BANK.<br>Thank you for using AlchemistMU National BANK!</th></tr>";
echo "</table>";
}
}
?>
<?php
echo "<form action='' method='POST'>";
if(isset($_POST['tegli']))
{
$login = $_SESSION['member_username'];
$getzen = mssql_query("SELECT geroi,zen,wdate FROM BANK WHERE geroi='$login'");
$row = mssql_fetch_row($getzen);
if($row[1] <= "0")
{
echo "0";
}
echo "<br><br>";
echo "<table width='450' bgcolor='green'>";
echo "<tr><th>You have $row[1] deposit zen in AlchemistMu BANK</th></tr>";
echo "<tr><th>Who much to withdraw: &nbsp;<input type='text' size='15' name='iztzen'></th></tr>";
echo "<tr><th><input type='submit' name='iztegli' value='Withdraw'></th></tr>";
echo "</table></form>";
}
?>
<?php
if(isset($_POST['iztegli']))
{
$login = $_SESSION['member_username'];
$select3=mssql_query("SELECT AccountID,Name,Money FROM Character WHERE AccountID='$login'");
$row = mssql_fetch_row($select3);
$zen = $_POST['iztzen'];
$iztegli = mssql_query("UPDATE BANK set zen=zen-$zen[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] WHERE geroi='$row[0]'[/SIZE][/FONT][/SIZE][/FONT][SIZE=2]");[/SIZE]
[SIZE=2]$sloji = mssql_query("UPDATE Character set Money=Money+$zen WHERE AccountID='$row[0]'");[/SIZE]
[SIZE=2]echo "<table width='450' bgcolor='GREEN'>";[/SIZE]
[SIZE=2]echo "<tr><th>Your transfer is complete</th></tr>";[/SIZE]
[SIZE=2]echo "</table>";[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]?>[/SIZE]

Извинявам се, но виждате, че съм опитал всичко да е в 1 файл.... и е малко объркващо :) абе направо Chaos :)
 
Last edited:
  • Like
Reactions: bogodux
)
Syntaxis error in install/add_stats_do_k.php
Line : 59

if ((eregi("[^a-zA-Z0-9_-]", $name)) ||
(eregi("[^a-zA-Z0-9_-]", $login)) ||
(eregi("[^a-zA-Z0-9_-]", $oldpwd)) ||
(eregi("[^0-9_-]", $vitality)) ||
(eregi("[^0-9_-]", $strength)) ||
(eregi("[^0-9_-]", $energy)) ||
(eregi("[^0-9_-]", $dexterity)) )


add_stats_do.php
make problems in version 97d+99i
here is fix :
Code:
<?php
$name = secure($_POST['name']);
$name = clean_var($name);
$login = secure($_SESSION['member_username']);
$oldpwd = secure($_SESSION['member_password']);
$vitality = secure($_POST['vitality']);
$strength = secure($_POST['strength']);
$energy = secure($_POST['energy']);
$dexterity = secure($_POST['dexterity']);
if ((eregi("[^a-zA-Z0-9_-]", $oldpwd)) || (eregi("[^a-zA-Z0-9_-]", $login)) || (eregi("[^0-9_-]", $vitality)) || (eregi("[^0-9_-]", $strength)) || (eregi("[^0-9_-]", $energy)) || (eregi("[^0-9_-]", $dexterity))) 
 {
 echo("SQL Injection Detected");
        exit();
 }

  require("./config.php");
include("inc/sql_check2.php");

check_inject2();




$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$login'"); 
$username_check = mssql_num_rows($sql_username_check); 

$sql_name_check = mssql_query("SELECT Name FROM Character WHERE Name='$name' and AccountID='$login'"); 
$name_check = mssql_num_rows($sql_name_check);

$md5 = mssql_query("SELECT * FROM misc WHERE id=4");
$md5 = mssql_fetch_array($md5);
$md5 = $md5['misc'];
if($md5 == 1)
	{
	$check = mssql_query("SELECT * FROM MEMB_INFO WHERE memb___id='$login' AND memb__pwd=[dbo].[fn_md5]('$oldpwd','$login')");
	}
else
	{
	$check = mssql_query("SELECT * FROM MEMB_INFO WHERE memb___id='$login' AND memb__pwd='$oldpwd'");
	}
$pw_check = mssql_num_rows($check); 

$query = "select Vitality,Strength,Energy,Dexterity,LevelUpPoint from Character WHERE Name='$name'";
$result = mssql_query( $query );
$row = mssql_fetch_row($result);

$new_vit = $row[0] + $vitality;
$new_str = $row[1] + $strength;
$new_eng = $row[2] + $energy;
$new_agi = $row[3] + $dexterity;
$row[4] = $row[4] - $vitality - $strength - $energy - $dexterity;

if ((eregi("[^a-zA-Z0-9_-]", $name)) || 
(eregi("[^a-zA-Z0-9_-]", $login)) ||
(eregi("[^a-zA-Z0-9_-]", $oldpwd)) ||
(eregi("[^0-9_-]", $vitality)) ||
(eregi("[^0-9_-]", $strength)) ||
(eregi("[^0-9_-]", $energy)) ||
(eregi("[^0-9_-]", $dexterity))) 
	{
	echo "<font color=red ><b>Use only numbers !</font><br>";
        
	}

elseif (empty($login) || empty($oldpwd) || empty($name)) {
    echo "<font color=red ><b>Please select a character.</font><br>";}

elseif ($username_check <= 0){ 
        echo "<font color=red ><b>Account does not exist in the database.</font><br>"; }

elseif ($name_check <= 0){ 
	echo "<font color=red ><b>Character does not exist in the database.</font><br>"; }

elseif ($vitality<0 OR $strength<0 OR $energy<0 OR $dexterity<0){
	echo "<font color=red ><b>Не бачкат бъгове тука !</font><br>"; }

elseif ($new_vit>32767 OR $new_str>32767 OR $new_eng>32767 OR $new_agi>32767){
	echo "<font color=red ><b>You can't add more than 32767 points !</font><br>"; }

elseif ($row[4] < 0){ 
        echo "<font color=red ><b>Нямаш достатъчно точки за вдигане: ($row[4])!</font><br>"; }

elseif ($pw_check <= 0){ 
        echo "<font color=red ><b>Password is incorrect.</font><br>"; }

else {	$msconnect=mssql_connect("$dbhost","$dbuser","$dbpassword");
$msdb=mssql_select_db("MuOnline",$msconnect);
$msquery = "
UPDATE dbo.Character SET Vitality = '$new_vit'
WHERE Name = '$name'
AND AccountID = '$login'
UPDATE dbo.Character SET Strength = '$new_str'
WHERE Name = '$name'
AND AccountID = '$login'
UPDATE dbo.Character SET Energy = '$new_eng'
WHERE Name = '$name'
AND AccountID = '$login'
UPDATE dbo.Character SET Dexterity = '$new_agi'
WHERE Name = '$name'
AND AccountID = '$login'
UPDATE dbo.Character SET LevelUpPoint = '$row[4]'
WHERE Name = '$name'
AND AccountID = '$login'";

$msresults= mssql_query($msquery);
echo "<center>Stats to <b>$name</b> successfully added!<br>Points left to add: <b>$row[4]</b></center>";
}
?>
 
Last edited:
Някой ще добави ли account online check при ресет на герой?

Не е сложно просто добавяш...

Code:
$proveri = mssql_query("SELECT memb___id,ConnectStat FROM MEMB_STAT WHERE ConnectStat='1'");
$row = mssql_fetch_row($proveri);
 
if($row[0] == '1') die("You cannot reset when you are login!");
if($row[0] == '0')
{
SITE CODE
}

Според мене така тря да е.... нямам време да го тест :) .... дано да съм помогнал с нещо ^^
 
Status
Not open for further replies.