本文整理汇总了PHP中sms::authenticate方法的典型用法代码示例。如果您正苦于以下问题:PHP sms::authenticate方法的具体用法?PHP sms::authenticate怎么用?PHP sms::authenticate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sms
的用法示例。
在下文中一共展示了sms::authenticate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo "<td>{$val['description']}</td>";
echo "<td>{$val['amount']}</td></tr>";
}
echo "</table>";
echo "</div><div class='mr'></div></div></div>";
echo "<div class='ft'><div class='bl'></div><div class='ft-center'></div><div class='br'></div></div></div>";
}
break;
case "smsBalance":
$sms->retrieve_settings();
if (empty($sms->params['sms_instance_id'])) {
echo "<div style='background-color:#fff;padding:10px;text-align:center;'>You have not specified an SMS gateway for this purpose. ";
echo "Click <a href='./index.php?module=Administration&action=smsProvider'>here</a> to setup your gateway account.</div>";
break;
}
$res = $sms->authenticate($sms->params['sms_instance_id']);
echo "<div class='moduleTitle'><h2>{$parent_link}SMS Credit Balance</h2></div>";
echo "<table class='edit view small' width='100%' border='0' cellspacing='1' cellpadding='0' ><tr><td>";
echo "<div style='text-align:center; font-size:14px;padding:50px;'>";
if ($res == 'ERROR') {
echo MSG_UNVERIFIED;
} else {
if ($res == "POSTPAID") {
echo "You are subscribed to a postpaid account.";
} else {
$res = (empty($res) or $res == 0) ? "0.00" : $res;
echo "You have <strong>{$res}</strong> sms credits in your account.";
}
}
echo "</div>";
echo '</td></tr></table>';