Ejemplo n.º 1
0
function mobile_shop_license()
{
    $sql = 'SELECT `id`,`value` FROM  ' . $GLOBALS['ecs']->table('shop_config') . " WHERE `code`='m_certificate_id' or `code`='m_token'";
    $result = $GLOBALS['db']->getAll($sql);
    if (!empty($result)) {
        if ($result['0']['m_certificate_id'] != 0) {
        } else {
            m_license_reg();
        }
    } else {
        shop_config_update('m_certificate_id', '0');
        shop_config_update('m_token', '0');
        m_license_reg();
        //注册
    }
}
Ejemplo n.º 2
0
Archivo: sms.php Proyecto: cjjmem/lywj
             $data = array();
             $data['shopexid'] = $_CFG['ent_id'];
             $data['passwd'] = $_CFG['ent_ac'];
             $extend_no = $_POST['extend_no'];
             $sms_sign_default = $sms_sign[$_CFG[ent_id]][$extend_no];
             if (!empty($sms_sign_default)) {
                 shop_config_update('default_sms_sign', $sms_sign_default);
                 /* 清除缓存 */
                 clear_all_files();
                 sys_msg($_LANG['default_succ'], 1, array(), false);
             } else {
                 sys_msg($_LANG['no_default'], 1, array(), false);
             }
         } else {
             shop_config_update('default_sms_sign', $content_y);
             shop_config_update('sms_sign', '');
             /* 清除缓存 */
             clear_all_files();
             sys_msg($_LANG['error_smg'], 1, array(), false);
         }
     } else {
         $smarty->assign('ur_here', $_LANG['register_sms']);
         $smarty->assign('sms_site_info', $sms->get_site_info());
         assign_query_info();
         $smarty->display('sms_register_ui.htm');
     }
     break;
     /* 发送短信 */
 /* 发送短信 */
 case 'send_sms':
     $send_num = isset($_POST['send_num']) ? $_POST['send_num'] : '';