本文整理匯總了PHP中fs_director::GetCheckboxValue方法的典型用法代碼示例。如果您正苦於以下問題:PHP fs_director::GetCheckboxValue方法的具體用法?PHP fs_director::GetCheckboxValue怎麽用?PHP fs_director::GetCheckboxValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類fs_director
的用法示例。
在下文中一共展示了fs_director::GetCheckboxValue方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: doCreateForwarder
/**
* Webinterface sudo methods.
*/
static function doCreateForwarder()
{
global $controller;
runtime_csfr::Protect();
$currentuser = ctrl_users::GetUserDetail();
$formvars = $controller->GetAllControllerRequests('FORM');
$keepmessage = isset($formvars['inKeepMessage']) ? fs_director::GetCheckboxValue($formvars['inKeepMessage']) : 0;
if (self::ExecuteCreateForwarder($currentuser['userid'], $formvars['inAddress'], $formvars['inDestinationName'], $formvars['inDestinationDomain'], $keepmessage)) {
self::$ok = true;
}
return true;
}
示例2: doUpdatePackage
static function doUpdatePackage()
{
global $controller;
runtime_csfr::Protect();
$currentuser = ctrl_users::GetUserDetail();
$formvars = $controller->GetAllControllerRequests('FORM');
if (isset($formvars['inEnablePHP'])) {
$EnablePHP = fs_director::GetCheckboxValue($formvars['inEnablePHP']);
} else {
$EnablePHP = 0;
}
if (self::ExecuteUpdatePackage($currentuser['userid'], $formvars['inPackageID'], $formvars['inPackageName'], $EnablePHP, $formvars['inNoDomains'], $formvars['inNoSubDomains'], $formvars['inNoParkedDomains'], $formvars['inNoMailboxes'], $formvars['inNoFowarders'], $formvars['inNoDistLists'], $formvars['inNoFTPAccounts'], $formvars['inNoMySQL'], $formvars['inDiskQuota'], $formvars['inBandQuota'])) {
return true;
}
return false;
}
示例3: doUpdateMailbox
static function doUpdateMailbox()
{
global $controller;
runtime_csfr::Protect();
$currentuser = ctrl_users::GetUserDetail();
$formvars = $controller->GetAllControllerRequests('FORM');
$enabled = isset($formvars['inEnabled']) ? fs_director::GetCheckboxValue($formvars['inEnabled']) : 0;
if (self::ExecuteUpdateMailbox($formvars['inSave'], $formvars['inPassword'], $enabled)) {
self::$ok = true;
}
return true;
}
示例4: doSaveVhost
static function doSaveVhost()
{
global $zdbh;
global $controller;
runtime_csfr::Protect();
$port = $controller->GetControllerRequest('FORM', 'vh_custom_port_in');
if (empty($port)) {
$port = NULL;
} else {
$port = $controller->GetControllerRequest('FORM', 'vh_custom_port_in');
}
$ip = $controller->GetControllerRequest('FORM', 'vh_custom_ip_vc');
if (empty($ip)) {
$ip = NULL;
} else {
$ip = $controller->GetControllerRequest('FORM', 'vh_custom_ip_vc');
}
$sql = $zdbh->prepare("UPDATE x_vhosts SET\n\t\t\tvh_enabled_in = ?,\n\t\t\tvh_suhosin_in = ?,\n\t\t\tvh_obasedir_in = ?,\n\t\t\tvh_custom_port_in = ?,\n vh_portforward_in = ?,\n vh_custom_ip_vc = ?,\n\t\t\tvh_custom_tx = ?\n\t\t\tWHERE\n\t\t\tvh_id_pk = ?\n\t\t\tAND vh_deleted_ts IS NULL");
$sql->execute(array(fs_director::GetCheckboxValue($controller->GetControllerRequest('FORM', 'vh_enabled_in')), fs_director::GetCheckboxValue($controller->GetControllerRequest('FORM', 'vh_suhosin_in')), fs_director::GetCheckboxValue($controller->GetControllerRequest('FORM', 'vh_obasedir_in')), $port, fs_director::GetCheckboxValue($controller->GetControllerRequest('FORM', 'vh_portforward_in')), $ip, $controller->GetControllerRequest('FORM', 'vh_custom_tx'), $controller->GetControllerRequest('FORM', 'vh_id_pk')));
self::SetWriteApacheConfigTrue();
self::$ok = true;
return true;
}