Hello. I'm setting login in Cabal Toolz v4, and can login. but in Hero Panel I dont have buttons, only text, how I can fix it?
Attachment 128144
Printable View
Hello. I'm setting login in Cabal Toolz v4, and can login. but in Hero Panel I dont have buttons, only text, how I can fix it?
Attachment 128144
Use firebug and check in console what .png, .jpg is missing and from where.
Dump ! Post @FarmHitman http://forum.ragezone.com/f451/cabal-toolz-v4-925242/
- -
login.php
But, Im use ADODB odbc_mssqlPHP Code:<?PHPif (@$_GET['PHPSESSID']) { session_id($_GET['PHPSESSID']); } session_start(@$_GET['PHPSESSID']);header("Pragma: no-cache");header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
require_once 'config.php';include_once $_config['server_type'].'/functions.php';include_once $_config['server_type'].'/dbconnect.php';include_once $_config['server_type'].'/define.php';
require_once('includes/securelogin.class.php'); if ($_GET['user'] && $_GET['pass']) { $_POST['user'] = $_GET['user']; $_POST['pass'] = $_GET['pass'];}function find_auth($user,$auth) {global $_config; //is admin if (in_array($user,$_config['admins'])) return 4; elseif (in_array($user,$_config['gms'])) return 3; else { return $auth; }}function return_lang() { global $_config; $lang = explode(",", $_config['language']); if (isset($_SESSION['language']) && in_array($_SESSION['language'], $lang)) include 'Lang/'.$_SESSION['language'].'.lang.php'; else include 'Lang/'.$lang[0].'.lang.php'; }function online_check($db,$ac) { $userc = $db->Execute(_ONLINE_CHECK, array($ac)); if ($userc) { return $userc->RowCount() > 0 ? true : false; } else { return false; } }function char_online_check($db,$ac) { echo("check online\n"); $userc = $db->Execute(_CHAR_ONLINE_CHECK, array($ac)); if ($userc) { return $userc->RowCount() > 0 ? true : false; } else { return false; } }
return_lang();$user_auth = new securelogin;$user_auth->handler['checklogin'] = 'user_checklogin';$user_auth->handler['encode'] = 'md5_encrypt';$user_auth->post_index = array( 'user' => 'user' ,'pass' => 'pass' );$user_auth->use_cookie = false;$user_auth->use_session = true;
if ($_GET['debug']==1) {$db->debug=1;
}$db->Execute('SET ANSI_NULLS ON');$db->Execute('SET ANSI_WARNINGS ON');switch (@$_GET['callback']) { default: if ($user_auth->haslogin(false)) { $user_auth->savelogin(); $user_auth->username = trim($user_auth->username); $rs = $db->Execute(_USER_INFO, $user_auth->username); $auth = $rs ->FetchRow(); $rs = $db->Execute(_USER_CASH, $user_auth->username); if ($rs->RecordCount() < 1 ) { $db->Execute(_INSERT_CASH,array($auth['USERNUM'],$user_auth->username)); $rs = $db->Execute(_USER_CASH,$user_auth->username); } $cash = $rs->FetchRow(); if (!is_array($cash)) $cash['CASH'] =0; $auth = array_merge($auth,$cash); // event give vote point if (strtotime($auth['CREATEDATE']) < mktime(0, 0, 0, 10, 8, 2010) && $auth['EVENTTAG'] < 1) { $db->Execute(_VOTE_UPDATE2,array(500,$user_auth->username)); $db->Execute('update '.$_config['DB1'].'.dbo.cabal_auth_table set EventTag = 1 where upper(ID) = ?',$user_auth->username); //$auth['VOTE'] = 500; }
// end event //AUTO CASH if ($auth['CASH'] < 0) { $db->Execute('Update memb_credits set credits = 0 where memb___id =?',array($user_auth->username)); $auth['CASH']=0; } if ($_config['autocash'] == true) { //echo date('Y-m-d h:i:s',time()) .'<br/>'; //echo $auth['OUT__DAYS'] .'<br/>'; //echo (strtotime(date('Y-m-d h:i:s',time()))-strtotime($auth['OUT__DAYS'])) .' - '.($_config['autocash_time']*60); $MU_TIME =(strtotime(date('Y-m-d h:i:s',time()))-strtotime($auth['OUT__DAYS'])); $MU_LIMIT = ($_config['autocash_time']*60); if ($MU_TIME > $MU_LIMIT || $auth['OUT__DAYS'] == '' || $MU_TIME < 0 || $auth['CASH'] == '') { $db->Execute('update MEMB_INFO set out__days = ? where memb___id=?',array(date('Y-m-d h:i:s',time()),$user_auth->username)); if ($auth['CASH'] == '') $db->Execute('INSERT INTO MEMB_CREDITS (memb___id,credits) VALUES (?,?)',array($user_auth->username,$_config['autocash_give'])); else $db->Execute('update MEMB_CREDITS set credits = credits + ? where memb___id=?',array($_config['autocash_give'],$user_auth->username)); $MU_TIME =0; $auth['CASH'] += $_config['autocash_give']; } } if ($auth['CASH'] == '') $auth['CASH']=0;
//END CASH
switch (@$_GET['callback']) {
// blog, comments, news post case 'post': switch (@$_GET['do']) { case 'guildblog':
$rs = $db->Execute('select name, mu_id from character where accountid=?', array($user_auth->username)); foreach ($rs as $row) { $name[] = $row['NAME']; } $rs = $db->Execute('select * from guild g left outer join guildmember gm ON g.G_Name = gm.G_Name where g.Number = ? and gm.G_Status in (64,128,32) and gm.name in(\''.implode("','", $name).'\') order by gm.G_Status',array($_GET['id'])); if ($rs->RecordCount() > 0) { $rs = $rs->GetArray(); $author = $rs[0]['NAME']; $title = $_GET['title']; $content = $_GET['content']; if (strlen($title) > 5) { if (strlen($content) > 5) { $db->Execute('insert into '.$_config['TBL_PRE'].'_Comments VALUES (?,?,?,?,?,getdate())', array('g'.$_GET['id'],$_SERVER['REMOTE_ADDR'],$author,$title,$content)); $notice .= '['.$_GET['id'].'] Blog Has been Posted, Refresh page'; writelog('['.$_GET['id'].'] '.$author.' Posted '.$title,'GuildBlog'); } else $notice .= 'Content Error!'; } else $notice .= 'Title Error!'; } else $notice .= 'Not Enough Permission to Post a Guild Blog.'; break;
} echo 'post({ "data":[{'; echo '"MESSAGE":"'.$notice.'"}'; echo " ] } )";
break;
// comments post
// login case 'login': default: $result = array(); foreach ($_config['user_panel'] as $up => $u) { switch ($up) { case 'info': $u['description'] = (($auth['CONNECTSTAT'] == 1) ? 'ONLINE': 'OFFLINE') . ' ['.date('d.m.y',strtotime($auth['CONNECTTM'])).']'; break; case 'heroes': $rs = $db->Execute(_CHAR_COUNT,array($user_auth->username)); $rs = $rs->FetchRow(); $u['description'] = $rs['COUNT'] .' Heroes'; break; case 'getcash': case 'mucash': $u['description'] = $auth['CASH'] .' Premium Coins'; break; } if ($u[1] == true) $result['data'][] = array("id"=>$up,"name"=>$u[0],"description"=>$u['description'].' <br/> '.$u[2]); } $result['SID'] = array('SID'=>SID); echo 'login('.array2json($result).')'; break; case 'vote': $day = (1800*24); $vote['id']= $_GET['id']; foreach($_config['vote_sites'] as $v =>$v1) { if ($vote['id']==$v1[0]) { $vote['key'] = $v1; $vote['keyid'] = $v; } $vote['code_generic'][$v1[0]] = array('date'=>time()-$day,'votes'=>0); } $vote['code_generic_serial'] = serialize($vote['code_generic']); //generate user vote db $rs = $db->Execute('select * from '.$_config['DB3'].'.dbo.toolz_vote where userid = ?', array($user_auth->username)); $rs = $rs->FetchRow(); if (!$rs) $db->Execute('insert into '.$_config['DB3'].'.dbo.toolz_vote (userid,votedata) values (?,\''.$vote['code_generic_serial'].'\')',array($user_auth->username)); else $vote['code_generic_serial'] = $rs['VOTEDATA']; $vote['code'] = unserialize($vote['code_generic_serial']); //end user vote db //echo '<pre>';print_r($vote); if ($vote['id']) { if ($vote['key']) { $date = $vote['code'][$vote['id']]['date']; $diff = round((time()-$date)/$day,0); $diffH = round((($date+$day)-time())/(3200),0); $diffH = date_formats(time(),$date+$day); if ($diff > 0) { if ($vote['code'][$vote['id']]['votes'] < $vote['key'][2]) { //generate vote code $vote['code'][$vote['id']]['votes']++; $msg = 'Vote Accepted!!! You have been awarded '.$vote['key'][1] .' Vote Points'; if ($vote['code'][$vote['id']]['votes'] == $vote['key'][2]) { $vote['code'][$vote['id']]['date'] = time(); $vote['code'][$vote['id']]['votes'] = 0; } else $msg .= ' You have '.($vote['key'][2]-$vote['code'][$vote['id']]['votes'] ).' more votes for this Vote Rewards.'; $vote['code_serial'] = serialize($vote['code']); $db->Execute(_VOTE_UPDATE2,array($vote['key'][1],$user_auth->username)); $db->Execute('update '.$_config['DB3'].'.dbo.toolz_vote set votedata = \''.$vote['code_serial'].'\' where userid = ?',array($user_auth->username)); //print_r($vote['code']); $go = $vote['key'][3]; } else $msg = 'Vote Limit Reached. Please try again Later. Next vote in '. $diffH; ; } else $msg = 'You already voted today! Next vote in '. $diffH; } else $msg = 'Vote is Invalid! Please try Again!'; } echo 'VoteScript('; //print_r($vote); foreach($_config['vote_sites'] as $v =>$v1) { $_config['vote_sites'][$v][2] = $vote['code'][$v1[0]]['votes'].'/'.$_config['vote_sites'][$v][2]; } $result = array('data'=>$_config['vote_sites']); if ($msg) $result = array('msg'=>$msg,'data'=>$_config['vote_sites']); if ($go) $result = array('go'=>$go,'msg'=>$msg,'data'=>$_config['vote_sites']); echo array2json($result); echo " )"; break; // change pASS case 'edit': if (@$_GET['do']) { if (@$_GET['email'] == $auth['EMAIL'] ) { if ($_config['reg_md5'] == true) $rs = $db->Execute(_USER_LOGIN_MD5, array($user_auth->username,$_GET['oldpass'],$user_auth->username)); else $rs = $db->Execute(_USER_LOGIN, array($user_auth->username,$_GET['oldpass'])); if ($rs->RecordCount() > 0) { if (@$_GET['oldpass'] != @$_GET['newpass'] && ctype_alnum($_GET['newpass']) && strlen($_GET['newpass']) >= 6 && strlen($_GET['newpass']) < 15 ) { if ($_config['reg_md5'] == true) $rs = $db->Execute(_CHANGE_PASS_MD5,array($_GET['newpass'],$user_auth->username,$user_auth->username)); else $rs = $db->Execute(_CHANGE_PASS,array($user_auth->username,$_GET['newpass'])); $msg = 'done'; } else $msg .= _new_pass_error; } else $msg .= _pass_not_match; } else $msg .= _mail_not_match; } else $msg .= 'Change your Password Here'; if ($msg != 'done') { echo 'edit({ "data":[{'; echo '"MESSAGE":"'.$msg.'",'; echo '" ":" "}'; echo " ] } )"; } else { $user_auth->clearlogin(); echo 'edit({ "data":[{'; echo '"MESSAGE":"Password Successfully Changed",'; echo '"LOGOUT":"true"}'; echo " ] } )"; } break; // info page case 'info': //$results = array(); //$rs = $db->Execute("Select ms.* from MEMB_STAT ms where upper(ms.memb___id) = upper(?)", array($user_auth->username)); //$stats = $rs->FetchRow(); //if (is_array($stats)) $auth= array_merge(array_merge($auth,$stats),array('LAST'=>date_formats($auth['LOGOUTTIME'],time()),'SPENT'=>date_formats($auth['LOGINTIME'],strtotime($auth['LOGOUTTIME'])))); //else $auth= array_merge($auth,array('LAST'=>'Never Logined')); foreach ($auth as $a => $a1) { //$a = strtoupper($a); if (in_array($a, array('CASH','VOTE','MEMB_NAME','IP','PLAYTIME','SERVERNAME','CREATEDATE','LAST','SPENT','CONNECTSTAT','VIP','VIP_FREE','EXPIRED','CTL1_CODE'))) { if ($a == 'CTL1_CODE') { $a = 'STATUS'; $a1 = user_status($a1,'ctl'); } $results[] = array('name'=>preg_replace('/_/i',' ',$a),'data'=>$a1); } } //if ($_config['autocash'] == true) echo '"CASHTIME":"'.($MU_LIMIT-$MU_TIME).'",'; echo 'info({"data":'.array2json($results).'})'; break; case 'getcash': include($_config['server_type'].'/user.getcash.php'); break; // Cabal Cash case 'cash': //include($_config['server_type'].'/user.mucash.php'); switch (@$_GET['do']) { case 'customize': require($_config['server_type'].'/parsecsv.lib.php'); $csv = new parseCSV(); $csv->delimiter = ","; $csv->parse($_config['server_type'].'/customshop.csv'); foreach($csv->data as $cv => $c) { if ($c['ID'] == $_GET['itemid']) $item['info'] = $c; } $item['level'] = $_GET['levelbind']; $item['price'] = 0; if (floor($item['level'] /2) >= $_config['bindoptions'][0] && floor($item['level'] /2) <= $_config['bindoptions'][1]) { if ((($item['level'] % 2) == 0 && $_config['bindoptions'][2] == true) || ($item['level'] % 2)) { if ($_GET['itemid'] > 0 && is_array($item['info'])) { $item['serial'] = '00000000'; $item['timelimit'] = 31; $item['id'] = $_GET['itemid']; if (hexdec($item['level']) =='' ) $item['level'] = 0; //serial if (strlen($item['serial'] ) != 8 || preg_match("/[g-zG-Z\_\-]+/i",$item['serial'])) { $item['serial'] = '47000028'; //aprint('serial',$item['serial']); } else $item['serial'] = $item['serial']; $slots = array($_GET['slot1'],$_GET['slot2'],$_GET['slot3'],$_GET['slot4']); $item['slotscount'] = 0; foreach ($slots as $s1 => $s) { if ($s > 0) $item['slotscount']++; } foreach ($slots as $s1 => $s) $slots[$s1] = ($slots[$s1] == null) ? '00' : $slots[$s1]; if (preg_match('/[1-9]/',$slots[0])) { foreach ( array_intersect_key( $slots, array_flip( array_keys( $slots, $slots[0], false))) as $s1 => $s ) { $slot[0] += 10; } $item['slots1'] = $slot[0] + $slots[0]; } else $item['slots1'] = '00'; if ($slots[1] == $slots[0]) $slots[1] = '00'; if (preg_match('/[1-9]/',$slots[1]) && $slots[1] != 00) { foreach ( array_intersect_key( $slots, array_flip( array_keys( $slots, $slots[1], false))) as $s1 => $s ) { $slot[1] += 10; } $item['slots2'] = $slot[1] + $slots[1]; } else $item['slots2'] = '00'; //if ($item['slots2'] == 10) $item['slots2'] = '00'; $item['craft'] = (($_GET['craftlevel'] == null) ? '0' : dechex($_GET['craftlevel'])) . (($_GET['crafttitle'] == null) ? '0' : dechex($_GET['crafttitle'])); $item['slots'] = ($item['slotscount'] == null) ? '00' : str_pad(dechex($item['slotscount'] * 16), 2, 0, STR_PAD_LEFT); $item['option'] = hexdec($item['slots'] . $item['slots2'] . $item['slots1']. $item['craft']); if ($_GET['levelbind'] > 0) $item['id'] = (hexdec(1000) * $_GET['levelbind']) + $item['id']; /* Level Bind price */ if ($item['level'] % 2) $item['price'] += floor($item['level']/2) * $_config['bindoptions'][3] ; else $item['price'] += $item['level'] * $_config['bindoptions'][3]; /* end Level Bind Price */ /* craft price */ $item['price'] += $_GET['craftlevel'] * $_config['craft_price'][0]; $item['price'] += $_GET['crafttitle'] * $_config['craft_price'][1]; /* end craft price */ /* slot price */ $item['price'] += $_config['slot_price'][1] * $item['slotscount']; foreach ($slots as $s1 => $s) { if ($s > 0) $item['price'] +=$_config['slot_price'][2] * $s; } /* end slot price */ /* item price */ $item['price'] += $item['info']['PRICE']; /* end item price */ //$db3->debug=1; if ($auth['CASH'] >= $item['price']) { $db->Execute('INSERT INTO '.$_config['DB3'].'.dbo.MyCashItem ([TranNo],[UserNum],[ServerIdx],[ItemKindIdx],[ItemOpt],[DurationIdx],[RegDate] ,[IsUse]) VALUES (1,?,1,?,?,?,getdate(),0)', array($auth['USERNUM'],$item['id'],$item['option'],$item['timelimit'])); writeLog('Customize to [ '.$user_auth->username.' ] Item [ ItemID: '.$item['id'] . ' Option: '. $item['option'].' Time: '.$item['timelimit'].' ] by '. $user_auth->username,'Admin_Item_Send'); $db->Execute(_CASH_UPDATE,array($item['price']*-1,$item['price'],$user_auth->username)); $notice = $item['info']['ITEM'] .' has been bought and is send to your ingame account. Please Relogin to receive the the item'; $auth['CASH'] -= $item['price']; } else $notice = 'Not enough '.$_config['cash_name'].' in your account'; } else $notice = 'Item Not Selected'; } else $notice = 'None Binding Items are disabled'; } else $notice = 'Level Binding out of bounds';
break; case 'buy': if (ctype_digit($_GET['id'])) { $rs = $db->Execute('Select w.*,c.Category as Cat, c.Access from '.$_config['DB3'].'.dbo.WebShop as w left outer join '.$_config['DB3'].'.dbo.WebShop_Category as c ON w.Category = c.ID where w.ID = ?',array($_GET['id'])); $i= $rs->FetchRow(); if (is_array($i)) { if ($_config['webshop_on'] == true ) { if ($auth['Login'] != 1) { if ($i['AVAILABLE'] > 0) { switch($i['ACCESS']) { case 2: if ($cash['CASH'] >= $i['VALUE']) { $rs = $db->Execute('exec '.$_config['DB3'].'.dbo.up_BuyCashItem ?,?,?,?',array($user_auth->username,$i['VALUE'],$i['ITEMIDX'],$i['ITEMIDX'].$auth['USERNUM'])); if ($rs) { $db->Execute('INSERT INTO '.$_config['DB3'].'.dbo.MyCashItem ([TranNo],[UserNum],[ServerIdx],[ItemKindIdx],[ItemOpt],[DurationIdx],[RegDate] ,[IsUse]) VALUES (1,?,1,?,?,?,getdate(),0)', array($auth['USERNUM'],$i['ITEMIDX'],$i['OPTIONS'],$i['TIMELIMIT'])); $db->Execute('update '.$_config['DB3'].'.dbo.WebShop set Available = Available - 1, Total = Total + 1 where ID = ?',array($i['ID'])); } $notice = 'Item <b>'.$i['NAME'].'</b> has been bought for '.$i['PRICE'] .' Premium Coins'; } else $notice = 'Not enough Premium Coins'; break; case 1: $rs = $db->Execute('select Alz from '.$_config['DB2'].'.dbo.cabal_warehouse_table where UserNum =?',array($auth['USERNUM'])); $rs2 = $rs->FetchRow(); if ($rs2['ALZ'] >= $i['VALUE']) {
$db->Execute('INSERT INTO '.$_config['DB3'].'.dbo.MyCashItem ([TranNo],[UserNum],[ServerIdx],[ItemKindIdx],[ItemOpt],[DurationIdx],[RegDate] ,[IsUse]) VALUES (1,?,1,?,?,?,getdate(),0)', array($auth['USERNUM'],$i['ITEMIDX'],$i['OPTIONS'],$i['TIMELIMIT'])); $db->Execute('Update '.$_config['DB2'].'.dbo.cabal_warehouse_table set Alz = alz - ? where UserNum = ?',array($i['VALUE'],$auth['USERNUM'])); $form .= 'Success item [<b>'.$i['Name'].'</b>] has been sent'; $db->Execute('update WebShop set Available = Available - 1, Total = Total + 1 where ID = ?',array($i['ID'])); $notice = 'Item <b>'.$i['NAME'].'</b> has been bought for '.$i['PRICE'] .' Alz'; } else $notice = 'Not enough money in warehouse'; break; case 3: if ($cash['VOTE'] >= $i['VALUE']) { $db->Execute('INSERT INTO '.$_config['DB3'].'.dbo.MyCashItem ([TranNo],[UserNum],[ServerIdx],[ItemKindIdx],[ItemOpt],[DurationIdx],[RegDate] ,[IsUse]) VALUES (1,?,1,?,?,?,getdate(),0)', array($auth['USERNUM'],$i['ITEMIDX'],$i['OPTIONS'],$i['TIMELIMIT'])); //$db->Execute('exec '.$_config['DB3'].'.dbo.up_BuyCashItem ?,?,?,?',array($user_auth->username,$i['VALUE'],$i['ITEMIDX'],$i['ITEMIDX'].$auth['USERNUM'])); $db->Execute('update '.$_config['DB3'].'.dbo.WebShop set Available = Available - 1, Total = Total + 1 where ID = ?',array($i['ID'])); $db->Execute(_VOTE_UPDATE,array(($i['VALUE']* -1),$i['VALUE'],$user_auth->username)); $notice = 'Item <b>'.$i['NAME'].'</b> has been bought for '.$i['PRICE'] .' Vote Point'; } else $notice = 'Not enough Vote Points'; break; } } else $notice = 'No More Available Item. Come back Again another Time.'; } else $notice = 'Please Logout of the Game Before buying'; } else $notice = 'Webshop is not open please contact admin'; } else $notice = 'Item Not Found in Database'; } else $notice = 'Invalid Item Selected'; break; } $results = array('ID' => $user_auth->username, 'CASH'=>$auth['CASH'],'CN'=>$_config['cash_name']); if ($notice) $results['NOTICE']=$notice; echo 'CashOut('.array2json($results).')'; break; // hero page case 'heroes': include($_config['server_type'].'/user.heroes.php'); break; } } else { if ($user_auth->haslogin()) $_GET['callback'] = 'denied'; echo 'NOT_LOGIN({ "data":['; echo '{"CALLBACK":"'.$_GET['callback'].'", "MESSAGE":"You are currently not Logged In."}'; echo " ] } )";
} break; case 'logout': $user_auth->clearlogin(); echo 'NOT_LOGIN({ "data":['; echo '{"CALLBACK":"logout", "MESSAGE":"This Server is Powered By Mutoolz4"}'; echo " ] } )";
break; case 'recovery': if (isset($_GET['email']) && filter_var($_GET['email'], FILTER_VALIDATE_EMAIL)) { if (ctype_alnum($_GET['user']) && strlen($_GET['user']) < 11) { $rs = $db->Execute('select * from '.$_config['DB1'].'.dbo.cabal_auth_table where ID = ? and EMAIL = ?', array($_GET['user'], $_GET['email'])); $rs = $rs->GetArray(); $notice = 'User Found Reseting Password'; if ($rs[0]['ID'] == $_GET['user']) { $newpass = generatePassword(); if ($_config['reg_md5'] == true) { $db->Execute('update '.$_config['DB1'].'.dbo.cabal_auth_table set password = dbo.fn_md5(?) where id = ?', array($newpass,$_GET['user'],$_GET['user'])); } else { $db->Execute('update '.$_config['DB1'].'.dbo.cabal_auth_table set password = dbo.fn_md5(?) where id = ?', array($newpass,$_GET['user'])); } /*if (ctype_digit($_GET['mailme']) && $_GET['mailme'] == 1) { $notice .= '<br/>Mailing to User Password'; $Name = "Password Recovery"; //senders name $email = "no-reply@msn.com"; //senders e-mail adress $recipient = $_GET['email']; //recipient $mail_body = "Your password has been recovered into: ". $newpass; //mail body $subject = "Password Recovery"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields mail($recipient, $subject, $mail_body, $header); //mail command :) } else */ $notice .= '<br/>New Password: '.$newpass; } else $notice = 'Invalid Recovery'; } else $notice = 'Username is not Valid'; } else $notice = 'E-Mail Address is not Valid'; echo 'passrecovery({ "data":['; echo '{"MESSAGE":"'.$notice.'"}'; echo " ] } )";
break; case 'votelist': echo 'VoteScript('; $result = array('data'=>$_config['vote_sites']); echo array2json($result); echo " )"; break; case 'customizerData': echo 'customizerData('; $result = array('slot_price'=>$_config['slot_price'],'bindoptions'=>$_config['bindoptions'], 'craft_price'=>$_config['craft_price']); echo array2json($result); echo " )"; break; case 'verify': if (ctype_alnum($_GET['username']) && ctype_alnum($_GET['password'])) { //if ($_GET['type'] && in_array($_GET['username'],$_config[$_GET['type']])) { //$pass = strtoupper(substr(md5($_GET['password']),0,19)); $rs = $db->Execute(_USER_LOGIN_MD5,array($_GET['username'],$_GET['password'])); $rs = $rs->FetchRow(); if ($rs) { $rs = $db->Execute(_USER_INFO,array($_GET['username'])); $u = $rs->FetchRow(); $out['notice'] = 'ok'; $out['access'] = $u[$_config['user']['auth']]; $out['id'] = $u[$_config['user']['id']]; } else $out['notice'] = 'Invalid Username/Password'; //} else $out['notice'] = 'You are NOT allowed to do this action.'; } else $out['notice'] = 'Invalid Acccess'; echo json_encode($out);
break;}
?>