
Originally Posted by
Lautaro
If I remember correctly, yea, I managed to get the site working with that decrypted source code shared by Young. I have it buried somewhere in my external hdd's, i'll look for it when i have some time i guess.
But it's fairly simple to do, all you have to do it run that decrypted source code and check your PHP error log, fix all the syntax errors that you get and that's pretty much it. The php errors will tell you exactly which file and line is the error, so those syntax errors are very easy to spot.
Hi, i can add items into the market and can see it in the latest market items:

But if i go into the market it is not listing anything so i can't purchase anything:

This part seems doing the job and seems cannot pull out in array information but if i add the decrypted class to test it further my page turns plain white:
PHP Code:
$page = $_GET['page'];
$name_filter = $_GET['search'];
$category_filter = $_GET['cat'];
$token = time();
$_SESSION['token'] = $token;
$items = $Market->getMarketItems($page, $name_filter, $category_filter);
if (is_array($items)) {
echo '<ul class="items">';
foreach ($items as $thisItem) {
$itemData = $Items->ItemInfo($thisItem['item']);
$price = $Market->showStyledPrice($thisItem['price_type'], $thisItem['price']);
$itemDb = $Market->getItemInfo($itemData['type'], $itemData['id'], $thisItem['sticklevel']);
$seller = $thisItem['seller'];
if (0 < $itemDb['exc']) {
$level = '+'.$itemData['level'].'';
} else {
$level = '';
}
if ($itemData['level']) {
$itemData['level'] = ' +'.$itemData['level'];
} else {
$itemData['level'] = null;
}
if ($itemData['luck']) {
$luck = '<br><font color=#9aadd5>'.$itemData['luck'].'</font>';
} else {
$luck = '';
}
if ($itemData['skill']) {
$skill = '<br><font color=#9aadd5>'.$itemData['skill'].'</font>';
} else {
$skill = '';
}
if ($itemData['opt']) {
$option = '<font color=#9aadd5>'.$itemData['opt'].'</font>';
} else {
$option = '';
}
if ($itemData['exl']) {
$exl = '<font color=#4d668d>'.str_replace('^^', '<br>', $itemData['exl']).'</font>';
} else {
$exl = '';
}
if ($itemData['ancsetopt']) {
$ancsetopt = '<font color=#9aadd5>'.str_replace('^^', '<br>', $itemData['ancsetopt']).'</font>';
} else {
$ancsetopt = '';
}
$exl = str_replace("'", "\\'", $exl);
echo "\r\n <li class=\"item\">\r\n <div id=\"hover\"></div>\r\n <span onmouseover=\"Tip('<center><img src=".$itemData['thumb'].'><br /><font color=yellow><br>'.lang('market_txt_100', true).' '.$itemData['sn2'].$itemData['sn'].'</font><br><font color=white><br>'.lang('market_txt_101', true).' '.$itemData['dur'].'</font><br><font color=#FF99CC>'.$itemData['jog'].'</font><font color=FFCC00>'.$itemData['harm'].'</font><br>'.$option.' '.$luck.' '.$skill.' '.$exl.' <br>'.$ancsetopt.'<br><font color=#4d668d>'.$itemData['socket'].'</font><br><br><span class=itemTooltipClassReq>'.$itemInfo['classReq']."</span></center>', TITLEFONTCOLOR, '".$itemData['color']."',TITLE,'".addslashes($itemData['name']).$itemData['level']."',TITLEBGCOLOR,'".$itemData['anco']."')\" onmouseout=\"UnTip()\">\r\n <img id=\"icon\" class=\"q4\" src=\"".$itemData['thumb']."\">\r\n </span>\r\n <div id=\"middle\"> \r\n <span style=\"color:".$itemData['color'].';background-color:'.$itemData['anco'].'; padding: 2px 2px 2px 2px;">'.$itemData['name'].' '.$level.'</span> | '.$price;
if (mconfig('hide_author')) {
echo '<p>'.sprintf(lang('market_txt_198', true), date($config['time_date_format'], strtotime($thisItem['start_date']))).'</p>';
} else {
echo '<p>'.sprintf(lang('market_txt_189', true), $thisItem['seller'], date($config['time_date_format'], strtotime($thisItem['start_date']))).'</p>';
}
echo "\r\n </div>\r\n <form name=\"item\" method=\"post\">\r\n <input type=\"hidden\" name=\"".Encode('id').'" value="'.Encode($thisItem['id'])."\">\r\n <input type=\"hidden\" name=\"token\" value=\"".$token.'">';
if ($_SESSION['username'] === $seller) {
echo '<input type="submit" name="buyitem" value="'.lang('market_txt_190', true)."\" onclick=\"javascript:if(!confirm('".lang('market_txt_200', true)."')){ return false; }\"/ class=\"simple_button purchase_button\">";
} else {
echo '<input type="submit" name="buyitem" value="'.lang('market_txt_191', true)."\" onclick=\"javascript:if(!confirm('".lang('market_txt_199', true)."')){ return false; }\"/ class=\"simple_button purchase_button\">";
}
echo "\r\n </form>\r\n <div class=\"clear\"></div>\r\n </li>";
}
echo '</ul>';
} else {
message('info', lang('market_txt_192', true));
}
Any input guys?
@Young
...Update...
Ok Lol hahaha i fixed it....
I was using sql server 2008, and some sql syntax are not allowed on that version... so i moved into a higher one and got it fixed...
and now my fcking problem is i can't buy the item hahahhaha....
...Update...
ok lol so i fixed that aswell, i just put back the encrypted one for usercp/market... market system is working fine now :)