function checksumdel($typedel) { global $checksum, $met_host, $met_file; if ($typedel == 2) { delcodeb($checksum); } }
function smspreice() { global $met_file; $varcode = varcodeb('sms'); $code = $varcode['re']; $varcode = $varcode['re'] == 'SUC' ? $varcode['md5'] : ''; $met_file = '/sms/smsprice.php'; $post = array('code' => $code, 'varcode' => $varcode); $re = curl_post($post, 30); $res = explode('|', $re); $re = ''; $re['re'] = $res[0]; $re['price'] = $res[1]; delcodeb($varcode); return $re; }
$authpass = trim($authpass); $cs = isset($cs) ? $cs : 1; $listclass[$cs] = 'class="now"'; $rurls = '../system/authcode.php?anyid=' . $anyid . '&cs=' . $cs . '&lang=' . $lang; if ($sysadmin) { $rurls = '../system/sysadmin.php?anyid=' . $anyid . '&cs=' . $cs . '&lang=' . $lang; } if ($action == "modify") { $authurl = authcode($authcode, 'DECODE', $authpass); $authurl = explode("|", $authurl); foreach ($authurl as $val) { if (strstr($met_weburl, $val)) { $db->query("update {$met_otherinfo} set authpass='******',authcode='{$authcode}' where id=1"); $re = varcodeb('sys'); if ($re['md5']) { delcodeb($re['md5']); } if ($re['re'] == 'SUC') { $query = "update {$met_otherinfo} set \n\t\t\t\t\t authpass ='******',\n\t\t\t\t\t authcode ='{$authcode}',\n\t\t\t\t\t authtext ='{$lang_authTip3}'\n\t\t\t\t\t where id='1'"; $db->query($query); $db->query("update {$met_config} set value='0.06' where name='met_smsprice'"); $db->query("update {$met_otherinfo} set info1='',info2='' where id=1"); $db->query("update {$met_config} set value='0' where name='met_apptime'"); echo "<script type=\"text/javascript\">location.href='{$rurls}';parent.window.location.reload();</script>"; die; } else { $db->query("update {$met_otherinfo} set info1='',info2='',authpass='',authcode='',authtext='' where id=1"); if ($re['re'] == 'DISREAD') { metsave($rurls, $lang_updaterr18); } if ($re['re'] == 'FAIL') {