コード例 #1
0
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;
}
コード例 #2
0
ファイル: physical.php プロジェクト: Jesuslagliva12/OpenAPI
     if (is_dir('../../../' . $val[1])) {
         deldir('../../../' . $val[1]);
         echo $lang_physicaldelok;
     } else {
         unlink('../../../' . $val[1]);
         echo $lang_physicaldelok;
     }
     break;
 case 2:
     $adminfile = $url_array[count($url_array) - 2];
     $strsvalto = readmin($val[1], $adminfile, 1);
     filetest('../../../' . $val[1]);
     deldir('../../../' . $val[1]);
     $dlappfile = parse_ini_file('dlappfile.php', true);
     if ($dlappfile[$strsvalto]['dlfile']) {
         $return = varcodeb('app');
         $checksum = $return['md5'];
         $met_file = '/dl/app_curl.php';
         $stringfile = dlfile($dlappfile[$strsvalto]['dlfile'], "../../../{$val['1']}");
     } else {
         $met_file = '/dl/olupdate_curl.php';
         $stringfile = dlfile("v{$metcms_v}/{$strsvalto}", "../../../{$val['1']}");
     }
     if ($stringfile == 1) {
         echo $lang_physicalupdatesuc;
     } else {
         echo dlerror($stringfile);
         die;
     }
     break;
 case 3:
コード例 #3
0
ファイル: authcode.php プロジェクト: Jesuslagliva12/OpenAPI
$authurlself = $met_weburl;
$authcode = trim($authcode);
$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);