avatar_ekvat

Как убрать код и картинку при добавлении вещей в маркет DEW?

Автор ekvat, 2012 Май 24, 18:48

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Ключевые слова [SEO] dewдобавлениекартинкамодульмаркеткодsellвещей

ekvat

Здравствуйте!!
Подскажите пожалуйста как убрать что-бы когда ложиш вещи в маркете не запрашивало код и картинку? Тоесть где убрать и что именно убрать ?
Скажу спасибо


Profesor08

код маркета в студию.юю.ю.ю.ю.ю.ю.ю.ю.ю.ю.

ekvat

#2
Market.php

Спойлер
<?php

if(!defined('DEW_Engine')) {
Exit;
}

$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '0' and Warning < '3'");
$cat_0_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '1' and Warning < '3'");
$cat_1_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '2' and Warning < '3'");
$cat_2_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '3' and Warning < '3'");
$cat_3_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '4' and Warning < '3'");
$cat_4_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '5' and Warning < '3'");
$cat_5_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '6' and Warning < '3'");
$cat_6_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '7' and Warning < '3'");
$cat_7_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '8' and Warning < '3'");
$cat_8_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '9' and Warning < '3'");
$cat_9_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '10' and Warning < '3'");
$cat_10_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '11' and Warning < '3'");
$cat_11_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '12' and Warning < '3'");
$cat_12_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '13' and Warning < '3'");
$cat_13_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '14' and Warning < '3'");
$cat_14_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and cat_id = '15' and Warning < '3'");
$cat_15_c= $DB->Result($sql, 0, 0);
$sql = $DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' and is_spec_offer = '1' and Warning < '3'");
$spec_c= $DB->Result($sql, 0, 0);
$all_items   = $DB->Result($DB->Query("SELECT count(*) FROM [DEW_market] where end_date > '$Current_Time' AND Warning < '3'"), 0, 0);

?>

<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="top_table">
<thead>
<tr class="top_text_default">
<td width="50%" align="center" colspan="2"><a href="<?=$URL_class->DEW_Crypt('Market');?>"><b>All Items</b> (<?php echo $all_items;?>)</a></td>
<td width="50%" align="center" colspan="2"><a href="<?=$URL_class->DEW_Crypt('Market/Category/Special');?>"><b>Special Offer</b> (<?php echo "$spec_c"; ?>)</a></td>
</tr>
</thead>

<tbody>
<tr class="bgcol2">
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/0');?>">Swords (<?php echo "$cat_0_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/1');?>">Axes (<?php echo "$cat_1_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/2');?>">Maces (<?php echo "$cat_2_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/3');?>">Spears (<?php echo "$cat_3_c"; ?>)</a></td>
</tr>

<tr class="bgcol2">
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/4');?>">Bows (<?php echo "$cat_4_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/5');?>">Staffs (<?php echo "$cat_5_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/6');?>">Shields (<?php echo "$cat_6_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/7');?>">Helms (<?php echo "$cat_7_c"; ?>)</a></td>
</tr>

<tr class="bgcol2">
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/8');?>">Armors (<?php echo "$cat_8_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/9');?>">Pants (<?php echo "$cat_9_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/10');?>">Gloves (<?php echo "$cat_10_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/11');?>">Boots (<?php echo "$cat_11_c"; ?>)</a></td>
</tr>

<tr class="bgcol2">
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/12');?>">Items (<?php echo "$cat_12_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/13');?>">Jewels (<?php echo "$cat_13_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/14');?>">Wings/Orbs (<?php echo "$cat_14_c"; ?>)</a></td>
<td width="25%" align="center"><a href="<?=$URL_class->DEW_Crypt('Market/Category/15');?>">Scrolls (<?php echo "$cat_15_c"; ?>)</a></td>
</tr>
</tbody>
</table>

<table width="100%" cellspacing="0" cellpadding="0" style="margin-top:10px;">
<tr>
<td valign="top">

<?

include_once   "Includes/Warehouse.php";

if ($Web_URL[1] == 'Category') {
$cat_id      = $Security->CheckWord($Web_URL[2]);
if($cat_id == 'Special') {
$cat_id_s   = "and is_spec_offer = '1'";
}
else {
$cat_id_s   = "and cat_id = '$cat_id'";
}
$page_url   = "Category/".$cat_id."/";
$m_page      = $Web_URL[3];
/* if ($Web_URL[3] == 'ID') {
$get_item_id   = $Web_URL[4];
$cat_id_s      = "and cat_id = '$cat_id' and item_id = '$get_item_id'";
} */
}
else {
$page_url   = "";
$m_page      = $Web_URL[1];
}

/* FILTER START
$c   = -1;
while ($c < 15) {
++$c;
$ca   .= "<option value='".$c."'>".GetCategoryName($c)."</option>";
}
echo   "
<form action='' method='post' name='filter'>
<select name='category'>
<option value='all' selected='selected'>Все</option>
$ca
</select>
<select name='pay_type'>
<option value='all' selected='selected'>Все</option>
<option value='Zen'>Zen</option>
<option value='Coins'>Coins</option>
<option value='Imperials'>Imperials</option>
</select>
<select name='sort'>
<option value='date_desc' selected='selected'>По дате</option>
<option value='price_asc'>Цена дешевле</option>
<option value='price_desc'>Цена дороже</option>
</select>
<label><input name='warning' type='checkbox' value='1'>Забаненные</label>
<input name='filter' type='submit' value='Искать'>
</form>";

$category   = $_POST['category'];
$paytype   = $_POST['pay_type'];
$sort      = $_POST['sort'];
if ($category == NULL || $category == 'all') {
$category   = '';
}
else {
#$page_url   = "Category/".$category."/";
$category   = 'AND cat_id = "'.$category.'"';
}
#if ($Web_URL[1] == 'Category') {
#$category   = 'AND cat_id = "'.$Web_URL[2].'"';
#}
if ($paytype == NULL || $paytype == 'all')   {   $paytype   = '';   }
else   {   $paytype   = 'AND pay_type = "'.$paytype.'"';   }
if ($sort == NULL || $sort == 'date_desc')   {   $sort   = 'ORDER BY start_date DESC';   }
if ($sort == 'price_asc') { $sort   = 'ORDER BY cast(price AS int) ASC';   }
if ($sort == 'price_desc') { $sort   = 'ORDER BY cast(price AS int) DESC';   }
if ($_POST['warning'] == 1) { $warning = ''; } else { $warning = 'AND Warning < "3"'; }
$get_market_items   = "SELECT * FROM [DEW_market] WHERE end_date > '$Current_Time' $warning $category $paytype $sort";
FILTER END */

$get_market_items   = "SELECT TOP 10000 * FROM [DEW_market] where end_date > '$Current_Time' and Warning < '3' $cat_id_s order by start_date desc";
$get_market_items_   = $DB->Query($get_market_items);
$all            = $DB->NumRows($get_market_items_);

echo "<center>Найдено <b>$all</b> вещей</center>";

echo "
<table align="center" width="100%" class="top_table" border="0" cellpadding="1" cellspacing="1">
<thead>
<tr class="top_text_default">
<td class="text_default"  align="center">#</td>
<td class="text_default"  align="center"><b>".phrase_m_list_item."</b></td>
<td class="text_default" align="center"><b>".phrase_m_list_cat."</b></td>
<td class="text_default" align="center"><b>".phrase_m_seller."</b></td>
<td class="text_default" align="center"><b>".phrase_m_list_price."</b></td>
</tr>
</thead>
<tbody>";

if(!$m_page)   {   $m_page   = '1';   }
$total_news      = $all;
$total_pages   = $total_news / $Market['item_per_page'];
$r_pages      = round($total_pages);
if($r_pages > $total_pages) {
$total_pages   = $r_pages;
}
$i_value_s   = $Market['item_per_page'] * $m_page - $Market['item_per_page'];
$i_value_e   = $Market['item_per_page'] * $m_page - 1;
$last_minus_five   = $total_pages - 4;
if($m_page == 1) {
$start_list = 1;
$end_list    = 5;
$pre_last    = $total_pages - 1;
$last_show    = $total_pages;
}
elseif($m_page == $total_pages) {
$start_list      = $total_pages;
$end_list       = $total_pages - 4;
$first_show      = 1;
$after_first   = $first_show + 1;
}
elseif($m_page >= 5 AND $m_page <= $last_minus_five) {
$middle_show   = 1;
$start_list      = $m_page - 2;
$end_list       = $m_page + 2;
$show_first_page= 1;
$show_last_page   = $total_pages;
$show_after_first_page    = 2;
$show_before_last_page   = $total_pages - 1;
}
elseif($m_page >= 1 AND $m_page < 5) {
$start_list   = 1;
$end_list    = 5;
$pre_last    = $total_pages - 1;
$last_show    = $total_pages;
}
elseif($m_page >= $last_minus_five AND $m_page < $total_pages) {
$start_list   = $total_pages;
$end_list    = $total_pages - 4;
$first_show   = 1;
$after_first= $first_show + 1;
}
for($i = 0; $i < $total_pages; ++$i) {
$page_n   = $i + 1;
if($page_n == $m_page) {
$page_list   .= "<a class="pagestyle"><b>$page_n</b></a>&nbsp;";
}
else {
if($last_show) {
if(($page_n >= $start_list AND $page_n <= $end_list) OR $page_n == $last_show) {
$page_list   .= "<a class="pagestyle" href="".$URL_class->DEW_Crypt('Market/'.$page_url.$page_n)."">$page_n</a>&nbsp;";
}
elseif($page_n == $pre_last) {
$page_list   .= "...&nbsp;";
}
}
elseif($first_show) {
if(($page_n <= $start_list AND $page_n >= $end_list) OR $page_n == $first_show) {
$page_list   .= "<a class="pagestyle" href="".$URL_class->DEW_Crypt('Market/'.$page_url.$page_n)."">$page_n</a>&nbsp;";
}
elseif($page_n == $after_first) {
$page_list   .= "...&nbsp;";
}
}
elseif($middle_show) {
if(($page_n >= $start_list AND $page_n <= $end_list) OR $page_n == $show_first_page OR $page_n == $show_last_page) {
$page_list   .= "<a class="pagestyle" href="".$URL_class->DEW_Crypt('Market/'.$page_url.$page_n)."">$page_n</a>&nbsp;";
}
elseif($page_n == $show_after_first_page OR $page_n == $show_before_last_page) {
$page_list   .= "...&nbsp;";
}
}
}
}
$prev_p   = $m_page - 1;
if($prev_p < 1) {
$prev_page   = "<a class="pagestyle">&laquo;</a>&nbsp;";
}
else {
$prev_page   = "<a class="pagestyle" href="".$URL_class->DEW_Crypt('Market/'.$page_url.$prev_p)."">&laquo;</a>&nbsp;";
}
$next_p   = $m_page + 1;
if($m_page >= $total_pages) {
$next_page   = "<a class="pagestyle">&raquo;</a>&nbsp;";
}
else {
$next_page    = "<a class="pagestyle" href="".$URL_class->DEW_Crypt('Market/'.$page_url.$next_p)."">&raquo;</a>&nbsp;";
}

if ($all == 0) {
echo "
<tr class="bgcol2">
<td colspan="5">
".DEW_Message('notice','List is empty!')."
</td>
</tr>
";
}

for($i=0;$i < $all;++$i) {
$market_items = $DB->FetchArray($get_market_items_);
$item_info    = ItemInfo($market_items['item']);

if($market_items['pay_type'] == $Imperials['name']) {
$market_items['pay_type']=$Imperials['name'];
}

if($market_items['pay_type'] == $Currency['name']) {
$market_items['pay_type']=$Currency['name'];
}

if($market_items['pay_type'] == 'zen') {
$market_items['pay_type']='Zen';
}

$tax = "1.".$Market['tax_percent']."";
$price_with_taxa = $market_items['price'] * $tax;
$price_with_taxb = round($price_with_taxa);
$price_with_taxc = zen_format($price_with_taxb);

$cat_id=GetCategoryName($market_items['cat_id']);

if ($Market['tax_percent'] > 0) {
$fullprice = substr($Market['tax_percent'] * 10,0,2);
$taxpricestart = '<a onmouseover="Tip(''.phrase_taxprice1.' <b>'.$fullprice.'%</b> '.phrase_taxprice2.'');" onmouseout="UnTip('');">';
$taxpriceend = '</a>';
}
else {
$taxpricestart = '';
$taxpriceend = '';
}

// SPECIAL OFFER
if ($market_items['is_spec_offer'] == 1) {
$colorstart = '<b>';
$colorend = '</b>';
}
else {
$colorstart = '';
$colorend = '';
}

$tr_color_1 = 'charoffline1';
$tr_color_2 = 'charoffline2';
++$count;
$tr_color = $count % 2 ? $tr_color_1 : $tr_color_2;

if ($market_items['Warning'] > 0) {
$new   = "<img alt='warn' src='Images/Misc/warn.png' onmouseover='Tip("У этой вещи <font color=darkred><b>".$market_items['Warning']."</b></font> предупреждения!");' onmouseout='UnTip();'>";
}
elseif ($market_items['is_spec_offer'] == 1) {
$new   = "<img alt='spec' src='Images/Misc/spec.png'>";
}
elseif (($market_items['start_date'] + 3600) >= $Current_Time) {
$new   = "<img alt='new' src='Images/Misc/new.png'>";
}
else {
$new   = "&nbsp;";
}

if($i >= $i_value_s AND $i <= $i_value_e) {
echo "
<tr class=$tr_color>
<td align='center' style='width:20px; height:20px;'>$new</td>
<td align='center'><a onmouseover="Tip('".$item_info['info_img']."');" onmouseout="UnTip();" href="".$URL_class->DEW_Crypt('Buy/'.$item_info['sn'])."">".$colorstart."<span style="color:".$item_info['color'].";">&nbsp;".$item_info['name'].$item_info['level']."&nbsp;</span>".$colorend."</a></td>
<td align='center'><span class='text_default'>$cat_id</span></td>
<td align='center'><a href="".$URL_class->DEW_Crypt('Char/'.$market_items['seller'])."">".$market_items['seller']."</a></td>
<td align='center'><span class='text_default'>$taxpricestart".$price_with_taxc." ".$market_items['pay_type']."$taxpriceend</span></td>
</tr>";
}
else {}
}

echo "</tbody></table>";
if($all > 0) {
echo "<br><div align="center">";
echo $prev_page.$page_list.$next_page;
echo "</div><br>";
}
echo "</td></tr></table>";

/*   Deathless Engine Web © 2010   */

?>
[свернуть]

Warehouse.php

Спойлер
<?php

if(!defined('DEW_Engine')) {
Exit;
}

if ($Module['Warehouse'] == 1) {
if ($_SESSION['DEW_UserName'] == true) {

include_once   "Includes/Warehouse.php";

if ($Web_URL[1] == 'Web') {
$db_table   = 'DEW_warehouse';
$db_varbin   = 5760;
$db_i_space   = 359;
$db_i_x    = 12;
$db_i_y    = 30;
}
else {
$db_table   = 'warehouse';
$db_varbin    = 1920;
$db_i_space   = 119;
$db_i_x    = 8;
$db_i_y    = 15;
}

$check_vault   = $DB->FetchRow($DB->Query("SELECT AccountID FROM DEW_warehouse WHERE AccountID = '".$username."'"));
if (!$check_vault) {
$empty_wh_item_code   = "0x";
for ($i = 1; $i <= 360; $i++) {
$empty_wh_item_code   .= 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF';
}
$insert_vault      = $DB->Query("INSERT INTO [DEW_warehouse] ([AccountID],[Items],[number]) VALUES ('$username',$empty_wh_item_code,1)");
}

if($Web_URL[1] == 'Move') {
if ($Web_URL[2]    == 'Wh'      )   {
$from_table   = 'warehouse';
$from_money   = 'Money';
$from_var   = 1920;
$from_space   = 119;
}
if ($Web_URL[2]      == 'Web'   )   {
$from_table = 'DEW_warehouse';
$from_money   = 'extMoney';
$from_var   = 5760;
$from_space   = 359;
}
if ($Web_URL[3]      == 'Wh'      )   {
$to_table   = 'warehouse';
$to_var      = 1920;
$to_x      = 8;
$to_y      = 15;
$to_space   = 119;
}
if ($Web_URL[3]      == 'Web'   )   {
$to_table   = 'DEW_warehouse';
$to_var      = 5760;
$to_x      = 12;
$to_y      = 30;
$to_space   = 359;

}
$sqll   = $DB->Query("declare @items varbinary($from_var); set @items = (select [items] from [$from_table] where (charindex (0x".$Web_URL[4].", Items) %16=4)); print @items;");
$sqll   = $DB->GetLastMessage();
$sqll   = substr($sqll,2);
$i      = -1;
while ($i<$from_space) {
$i++;
$item   = ItemInfo(substr($sqll,(32*$i), 32));
if($item['sn'] == $Web_URL[4]) {
$item_code   = substr($sqll,(32*$i), 32);
$i         = $from_space + 30;
$item_sn   = $item['sn'];
}
}
$query         = $DB->Query("select [AccountId] from [$from_table] where (charindex (0x".$Web_URL[4].", Items) %16=4)");
$rez         = $DB->FetchRow($query);
$query         = $DB->Query("declare @it varbinary($to_var); set @it=(select [Items] from [$to_table] where [AccountID]='$username'); print @it");
$to_curr_items   = $DB->GetLastMessage();
$item_info      = ItemInfo($item_code);
$test         = 0;
$slot          = smartsearch($to_curr_items,$item_info['X'],$item_info['Y'],($to_space+1),$to_x,$to_y);
$test         = $slot*32;
$money_move      = $DB->FetchRow($DB->Query("SELECT $from_money FROM Warehouse WHERE AccountID = '$username'"));
$transfer_m      = $money_move[0]-$Warehouse['transfer_zen'];
if (empty($Web_URL[2]) OR empty($Web_URL[3]) OR empty($Web_URL[4])) {
$repair_msg_error   = 'Some parametrs are empty!';
}
elseif ($transfer_m < 0) {
$repair_msg_error   = 'Мало денег!';
}
elseif (strlen($Web_URL[4])!=8) {
//$repair_msg_error   = 'Item serial is invalid!';
}
elseif ($rez[0] != $username) {
$repair_msg_error   = 'This is not your item!';
}
elseif ($slot == 1337) {
$repair_msg_error   = phrase_m_itembuy_dont_have_free_vault_space." [".$item_info['X']." x ".$item_info['Y']."]";
}
elseif ($IsOnline != '0') {
$repair_msg_error   = phrase_login_logout_first;
}
else {
$DB->Query("UPDATE Warehouse SET $from_money = '$transfer_m' WHERE AccountID = '$username'");
$to_news_items   = substr_replace($to_curr_items, $item_code, ($test+2), 32);
$do_add_item   = $DB->Query("update [$to_table] set [Items]=".$to_news_items." where [AccountId]='$username'");
$newitem      = "0x".$item_code;
$query         = "declare @it varbinary($from_var), @it1 varbinary(16), @it2 varbinary(16), @it3 int; set @it = (select [items] from [$from_table] where [accountid]='".$username."'); set @it1 = ".$newitem."; set @it3 = 0; while (@it3<".($from_space+2).") BEGIN set @it2 = substring(@it,16*@it3+1,16); if (@it1 = @it2) BEGIN select @it3 as 'marked'; set @it3 = ".($from_space+1)."; END set @it3 = @it3+1; END";
$res         = $DB->FetchArray($DB->Query($query));
$DB->Query("declare @items varbinary($from_var); set @items = (select [items] from [$from_table] where [AccountId]='".$username."'); print @items;");
$ci          = $DB->GetLastMessage();
$DB->Query("update [$from_table] set [items]=".substr_replace($ci, 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF', $res[0]*32+2, 32)." where [AccountId]='".$username."' and [items]=".$ci."");
$repair_msg_ok   = "Item was successfully moved!";
$server_time = date("H:i:s", time());
$log_content = "[Warehouse][$server_time] $char_name ($username) From: $from_table, To: $to_table, Item: $item_coden";
Security::WriteLog('Char',$log_content);
}
}
if ($repair_msg_ok) {
header("Location: ./".$URL_class->DEW_Crypt('Warehouse'));
}
echo   DEW_Message('error',$repair_msg_error);

?>

<table width="100%">
<tr>
<td class="text_default" style='width:95%; text-align:justify; padding:5px 10px 5px 10px; border:1px dashed #40576a;'>
В этом разделе отображается ваш игровой банк. Здесь вы можете безопасно торговаться вашими вещами или переложить их в Web-сундук. Все продажи на рынке облагаются <? echo substr(($Market['tax_percent']*10),0,2); ?>% комиссионным сбором. Для дальнейших функций выберите вещь нажав на неё левой клавишей мышки.
</td>
</tr>
</table>
<br>

<?php

if(isset($_POST['item_menu'])) {
$item['sn']   = $_POST['item_menu'];

$sqll   = $DB->Query("declare @items varbinary($db_varbin); set @items = (select [items] from [$db_table] where (charindex (0x".$_POST['item_menu'].", Items) %16=4));print @items;");
$sqll   = $DB->GetLastMessage();
$sqll   = substr($sqll,2);
$i      = -1;
while ($i < $db_i_space) {
$i++;
$item      = ItemInfo(substr($sqll,(32*$i), 32));
if($item['sn'] == $_POST['item_menu']) {
$item_code   = substr($sqll,(32*$i), 32);
$i         = $db_i_space + 30;
$item_sn   = $item['sn'];
}
}

if ($db_table == 'DEW_warehouse') {
$move_code      = $URL_class->DEW_Crypt('Warehouse/Move/Web/Wh/'.$item['sn']);
$move_text      = "Переложить в сундук";
$sell_code      = $URL_class->DEW_Crypt('Sell/Accept/'.$item['sn'].'/Web');
}
else {
$move_code      = $URL_class->DEW_Crypt('Warehouse/Move/Wh/Web/'.$item['sn']);
$move_text      = "Переложить в Web-сундук";
$sell_code      = $URL_class->DEW_Crypt('Sell/Accept/'.$item['sn']);
#sellitem=1&serial=
#Sell/Web/Item/Confirm
#Sell/Item/Confirm
#$Web_URL[1]/$Web_URL[2]/$Web_URL[3]
}

//if($_POST['item_menu'] != NULL) {

?>

<table align="center" style="border: 1px solid #11161a;">
<tr>
<td colspan="3">
<div align="center" style="border: 1px solid #11161a; background-color: #090c0e;">
<img src="<?php echo $item['thumb'];?>"><br><br>
<a onmouseover="Tip('<? echo $item['info']; ?>');" onmouseout="UnTip();"><span style=color:<?php echo $item['color']; ?>;>&nbsp;<?php echo $item['name'].$item['level']; ?>&nbsp;</span></a><br><br>
</div>
</td>
</tr>
<tr>
<td>
<a href="<? echo $sell_code; ?>" onmouseover="Tip('Эта функция предоставляет вам<br>возможность заработать<br>на добытых в игре вещах!');" onmouseout="UnTip();">
<div class="lu">
<table>
<tr>
<td><img width='16' height='16' src='Images/Misc/sell.png'></td>
<td width="5"></td>
<td>Продать вещь в маркет</td>
</tr>
</table>
</div>
</a>
</td>
</tr>
<tr>
<td>
<a href="<? echo $move_code; ?>" onmouseover="Tip('Если у вас в банке мало места,<br>то вы можете положить вещи<br>в дополнительный сундук!');" onmouseout="UnTip();">
<div class="lu">
<table>
<tr>
<td><img width='16' height='16' src='Images/Misc/move.png'></td>
<td width="5"></td>
<td><? echo $move_text; ?></td>
</tr>
</table>
</div>
</a>
</td>
</tr>
</table>
<br>

<?

//}
}
echo   "<table align='center'><tr><td>";
echo   DEW_warehouse_content($username,$db_table,$db_varbin,$db_i_space,$db_i_x,$db_i_y);
echo   "</td></tr></table>";

}
else {
echo   DEW_Message('error',phrase_please_login_first);
}
}
else {
echo   DEW_Message('error',"Sorry, this module is temporarily disabled!");
}

/*   Deathless Engine Web © 2010   */

?>
[свернуть]

Наверно где-то тут надо смотреть !!!

Sky_

Неа, в DEW продажа вещи в маркет модулем Sell.php осуществляется. Его то и нужно смотреть.

ekvat

#4
А смена пороля картинку с кодом и сам код как убрать ?

И ещё я создовал тему по поводу кузницы мне не кто не ответил ! :)

ЦитироватьЗдравствуйте не подскажите как устоновить кузницу на сайт ? Пытался сделать всё но всегда сайт стоновится кревым.. и кузница не работает...
Подскажите по пунктам куда и что прописывать что-бы сделать нормальную кузницу на дев !!! Smithy.php v modules есть куда дальше смотреть и что делать... надеюсь за спасибо поможете

И ещё вопрос как в MMOTOP.php изменить приз что-бы довались империалс ?

Sky_

Ну по кузнице - в Page Manager нужно прописать..
А по призу в MMOTOP.php ищи на форуме мою тему парсера ммотоп голосов там взят код ДЕВ и подбит так, что бы давались кредиты т.е. Imperials. Ну или из ммв репака можешь выдрать - vote_reward.php

ekvat

Кузница прописана !!! Криво работает вобще не очем... бред какойто

Sky_

По кузнице: Исчерпывающее описание проблемы! Сразу понятно в чем дело )) "Криво работает вобще не очем" - куда уж точнее описать проблему, мы же экстрасенсы, нам не к чему.
А по маркету:
В Sell.php удалить:
Спойлер
<td class="text_default" align="right" width="50%">
<b><?php echo phrase_warehouse_code;?>:</b>
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?php echo $secure_img_url;?>" onmouseover="Tip('Click to refresh');" onmouseout="UnTip('');" name='captcha' onclick='refresh_captcha();' alt='Are you human or a bot?'></td>
<td width="10"></td>
<td>
<input type="text" class="text-form" size="7" maxLength="5" name="code_in">
</td>
</tr>
</table>
</td>
[свернуть]
и
Спойлер
if(md5($code_in) != $_SESSION['random']) {
$errormsg= "Wrong Code!<br>Press <a href="java script: history.back()"><b>back</b></a>.";
}
[свернуть]

Похожие темы (5)