本文整理匯總了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">