本文整理汇总了PHP中sms::get_supported_countries方法的典型用法代码示例。如果您正苦于以下问题:PHP sms::get_supported_countries方法的具体用法?PHP sms::get_supported_countries怎么用?PHP sms::get_supported_countries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sms
的用法示例。
在下文中一共展示了sms::get_supported_countries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
$sms->params['sugartalk_url'] = trim($_POST['sugartalk_url']);
$sms->params['sender'] = trim($_POST['sender']);
if (empty($_POST['domain_name'])) {
$sms->params['domain_name'] = '123';
} else {
$sms->params['domain_name'] = trim($_POST['domain_name']);
}
$sms->params['default_country_code'] = trim($_POST['default_country_code']);
$sms->params['local_prefix'] = trim($_POST['local_prefix']);
$sms->save_settings();
}
include_once "modules/Administration/sugartalk_smsPhone/smsPhone.js.php";
$sms->retrieve_settings();
if (empty($sms->params['sms_instance_id']) or empty($sms->params['domain_name'])) {
// show registration form
$country_list = $sms->get_supported_countries();
//GET USER IP AND COUNTRY INFO
$ipAddr = $_SERVER["REMOTE_ADDR"];
$country1 = file_get_contents("http://api.hostip.info/get_html.php?ip=" . $ipAddr);
$ip_country = substr($country1, stripos($country1, "Country:") + 8, strpos($country1, "City") - stripos($country1, "Country:") - 8) . "<br>";
$ip_country = substr($ip_country, 0, strpos($ip_country, "(") - 1);
?>
<!--script type="text/javascript" src="js/ajax.js?s=777d45bbbcdf50d49c42c70ad7acf5fe"></script-->
<div class='moduleTitle'><h2><?php
echo $parent_link;
?>
Registration for Trial Account</h2></div>
<form method="post" name="WebToLeadForm" id="WebToLeadForm">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">