i have (S-y)AdvancedWebShop_v09c webshop and i get error on change class anyone can give season 6 script for change class webshop
this is my change class code please give me season 6 change class webshop scriptCode:<?php iseedeadpeople(); switch (1) { default: if ($webshop['credits']['classchg']<1) { print phrase_blocked_module; break; } if (($_POST['character']) && ($_POST['class'])) { $query = mssql_query("select [Class] from [Character] where [Name]='".secure($_POST['character'])."' and [AccountID]='".$GLOBALS['mu_user']."'"); $res = mssql_fetch_row($query); switch($_POST['class']){ case 'sm': $_class='1'; break; case 'bk': $_class='17'; break; case 'mg': $_class='48'; break; case 'dl': $_class='64'; break; case 'me': $_class='33'; break; } if ($webshop['misc']['s3classes']==false) { switch($_POST['class']){ case 'gm': print 'err'; break; case 'bm': print 'err'; break; case 'he': print 'err'; break; case 'dm': print 'err'; break; case 'le': print 'err'; break; } } require 'inc/function.checkstatus.php'; switch (2) { case checkstatus($_POST['character']) : $legtitle = "Error"; $content = phrase_offline_rq; break; case (mssql_num_rows($query)!=1): $legtitle = "Error"; $content = phrase_nosuch_char; break; case $webshop['credits']['classchg']>$mycreds: $legtitle = "Error"; $content = phrase_lack_credits; break; case $_class==$res[0]: $legtitle = "Error"; $content = phrase_same_class; break; default : shoplog("Character: ".$_POST['character']." , changed class to ".$_POST['class']." for ".$webshop['credits']['classchg']." credits"); mssql_query("exec XCredits '".$GLOBALS['mu_user']."', ".($webshop['credits']['classchg']*-1)); mssql_query("update [Character] set [Class]='".$_class."' where [Name]='".secure($_POST['character'])."';") or die("Failed to change your class"); $legtitle = "Success"; $content = "You have successfully changed ".htmlspecialchars($_POST['character'])."'s class to ".htmlspecialchars($_POST['class']); } print '<fieldset style="width: 300px"><legend class="mu_style2" style="padding: 0px;font-weight:bold;">'.$legtitle.'</legend><div>'.$content.'</div> </fieldset><br><br>'; } $query = mssql_query("select [Name],[Class] from [Character] where [AccountID]='".$GLOBALS['mu_user']."'"); $i = 0; $mychars= ''; while($i<mssql_num_rows($query)) { $char = mssql_fetch_array($query); $i++; $mychars.="<option class=\"clchg\" value=\"".htmlspecialchars($char['Name'])."\">".$char['Name']."</option>"; } print " <script type=\"text/javascript\"> function amisure() { if (".$mycreds."<".$webshop['credits']['classchg'].") { alert('".phrase_lack_credits."'); return false; } return webshop_confirm_action('Are you sure you want to change '+document.getElementById('character').value+'\'s class to '+document.getElementById('class').value+'?'); } </script> "; print' <fieldset style="width: 300px"> <legend class="mu_style2" style="padding: 0px;font-weight:bold;">Change your class for credits</legend> <form method="post" action="'.$_SERVER['SCRIPT_NAME'].'?sy=classchange"> <table width=100% cellpadding=0 cellspacing=0 border=0> <tr><td align="center"> <select style="color: #000000;" id="character" name="character"> <optgroup label="Select a character"> '.$mychars.' </select></td><td align="center"> <span id="sybrack" name="sybrack"> <select style="color: #000000;" id="class" name="class"> <optgroup label="Change class to"> <option class=clchg value="sm">Soul Master</option> <option class=clchg value="gm">Grand Master</option> <option class=clchg value="bk">Blade knight</option> <option class=clchg value="bm">Blade Master</option> <option class=clchg value="me">Muse Elf</option>'; if ($webshop['misc']['s3classes']) { print '<option class=clchg value="he">High elf</option> <option class=clchg value="mg">Magic gladiator</option> <option class=clchg value="dm">Duel master</option> <option class=clchg value="dl">Dark lord</option> <option class=clchg value="le">Lord emperor</option>'; } print ' </select> </span> </td></tr><tr><td colspan="2" height=15></td></tr><tr> <td colspan="2" align="center" style="padding-top: 10px;border-top: 1px dashed #DDDDDD"><input onClick="return amisure(); " value="Change your class" type="submit"><br>Change costs '.number_format($webshop['credits']['classchg']).' '.phrase_credits.'</td></tr></table> </form> </fieldset><br><br> <fieldset style="width: 300px"> <legend class="mu_style2" style="padding: 0px;font-weight:bold;">Important note</legend> <div align="justify"> '.phrase_class_tip.' </div> </fieldset> '; } ?>




