本文整理匯總了PHP中CI_Email::valid_email方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI_Email::valid_email方法的具體用法?PHP CI_Email::valid_email怎麽用?PHP CI_Email::valid_email使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CI_Email
的用法示例。
在下文中一共展示了CI_Email::valid_email方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
* modules. Package maintainers should set AMPEXTERNPACKAGES to true in /etc/amportal.conf.
* Optionally, the other way is to remove the below lines, and instead just define
* EXTERNAL_PACKAGE_MANAGEMENT as 1. This prevents changing the setting from amportal.conf.
*/
if (!isset($amp_conf['AMPEXTERNPACKAGES']) || $amp_conf['AMPEXTERNPACKAGES'] != 'true') {
define('EXTERNAL_PACKAGE_MANAGEMENT', 0);
} else {
define('EXTERNAL_PACKAGE_MANAGEMENT', 1);
}
$modulef = module_functions::create();
// Handle the ajax post back of an update online updates email array and status
//
if ($quietmode && isset($_REQUEST['update_email'])) {
$update_email = $_REQUEST['update_email'];
$ci = new CI_Email();
if (!$ci->valid_email($update_email) && $update_email) {
$json_array['status'] = _("Invalid email address") . ' : ' . $update_email;
} else {
$cm = cronmanager::create($db);
$cm->save_email($update_email);
$cm->set_machineid($_REQUEST['machine_id']);
$json_array['status'] = true;
}
header("Content-type: application/json");
echo json_encode($json_array);
exit;
}
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
global $active_repos;
$loc_domain = 'amp';
if (isset($_REQUEST['check_online'])) {