当前位置: 首页>>代码示例>>PHP>>正文


PHP ForceIncomingBool函数代码示例

本文整理汇总了PHP中ForceIncomingBool函数的典型用法代码示例。如果您正苦于以下问题:PHP ForceIncomingBool函数的具体用法?PHP ForceIncomingBool怎么用?PHP ForceIncomingBool使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ForceIncomingBool函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: FTForm

 function FTForm(&$Context)
 {
     $this->Name = 'FTForm';
     $this->ValidActions = array('FeedThis', 'ProcessFeedThis');
     $this->Constructor($Context);
     if ($this->IsPostBack) {
         $SettingsFile = $this->Context->Configuration['APPLICATION_PATH'] . 'conf/settings.php';
         $this->ConfigurationManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'ConfigurationManager');
         if ($this->PostBackAction == 'ProcessFeedThis') {
             $this->ConfigurationManager->GetSettingsFromForm($SettingsFile);
             $this->ConfigurationManager->DefineSetting('FT_BLOG_FEED', ForceIncomingBool('FT_BLOG_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_BLOG_FEED_EVERY', ForceIncomingBool('FT_BLOG_FEED_EVERY', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_ALLDISCUSSIONS_FEED', ForceIncomingBool('FT_ALLDISCUSSIONS_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_ALLDISCUSSIONS_FEED_EVERY', ForceIncomingBool('FT_ALLDISCUSSIONS_FEED_EVERY', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_DISCUSSION_FEED', ForceIncomingBool('FT_DISCUSSION_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_CATEGORY_FEED', ForceIncomingBool('FT_CATEGORY_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_SEARCHRESULTS_FEED', ForceIncomingBool('FT_SEARCHRESULTS_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_USERBLOG_FEED', ForceIncomingBool('FT_USERBLOG_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_USERCOMMENTS_FEED', ForceIncomingBool('FT_USERCOMMENTS_FEED', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_PANEL_POSITION', ForceIncomingInt('FT_PANEL_POSITION', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_FEED_ITEMS', ForceIncomingInt('FT_FEED_ITEMS', 0), 0);
             $this->ConfigurationManager->DefineSetting('FT_WORD_LIMIT', ForceIncomingInt('FT_WORD_LIMIT', 0), 0);
             $this->DelegateParameters['ConfigurationManager'] =& $this->ConfigurationManager;
             // And save everything
             if ($this->ConfigurationManager->SaveSettingsToFile($SettingsFile)) {
                 header('location: ' . GetUrl($this->Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=FeedThis&Success=1'));
             } else {
                 $this->PostBackAction = 'FeedThis';
             }
         }
     }
 }
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:32,代码来源:PostBackControl.FeedThis.php

示例2: NotifiForm

 function NotifiForm(&$Context)
 {
     $this->Name = 'NotifiForm';
     $this->ValidActions = array('Notifi', 'ProcessNotifi');
     $this->Constructor($Context);
     if (!$this->Context->Session->User->Permission('PERMISSION_MANAGE_EXTENSIONS')) {
         $this->IsPostBack = 0;
     } elseif ($this->IsPostBack) {
         $SettingsFile = $this->Context->Configuration['APPLICATION_PATH'] . 'conf/settings.php';
         $this->ConfigurationManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'ConfigurationManager');
         if ($this->PostBackAction == 'ProcessNotifi') {
             $this->ConfigurationManager->GetSettingsFromForm($SettingsFile);
             $this->ConfigurationManager->DefineSetting('NOTIFI_ALLOW_ALL', ForceIncomingBool('NOTIFI_ALLOW_ALL', 0), 0);
             $this->ConfigurationManager->DefineSetting('NOTIFI_ALLOW_CATEGORY', ForceIncomingBool('NOTIFI_ALLOW_CATEGORY', 0), 0);
             $this->ConfigurationManager->DefineSetting('NOTIFI_ALLOW_DISCUSSION', ForceIncomingBool('NOTIFI_ALLOW_DISCUSSION', 0), 0);
             $this->ConfigurationManager->DefineSetting('NOTIFI_ALLOW_BBCODE', ForceIncomingBool('NOTIFI_ALLOW_BBCODE', 0), 0);
             $this->ConfigurationManager->DefineSetting('NOTIFI_FORMAT_PLAINTEXT', ForceIncomingBool('NOTIFI_FORMAT_PLAINTEXT', 0), 0);
             $this->ConfigurationManager->DefineSetting('NOTIFI_AUTO_ALL', ForceIncomingBool('NOTIFI_AUTO_ALL', 0), 0);
             if ($this->ConfigurationManager->SaveSettingsToFile($SettingsFile)) {
                 header('Location: ' . GetUrl($this->Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=Notifi&Success=1'));
             } else {
                 $this->PostBackAction = 'Notifi';
             }
         }
     }
     $this->CallDelegate('Constructor');
 }
开发者ID:avital,项目名称:vanilla-thewe,代码行数:27,代码来源:adminsettings.php

示例3: GlobalsForm

 function GlobalsForm(&$Context)
 {
     $this->ValidActions = array("Globals", "ProcessGlobals");
     $this->Constructor($Context);
     if (!$this->Context->Session->User->MasterAdmin) {
         $this->IsPostBack = 0;
     } elseif ($this->IsPostBack) {
         $ConstantsFile = agAPPLICATION_PATH . "appg/settings.php";
         $this->ConstantManager = $this->Context->ObjectFactory->NewContextObject($this->Context, "ConstantManager");
         if ($this->PostBackAction == "ProcessGlobals") {
             $this->ConstantManager->GetConstantsFromForm($ConstantsFile);
             // Checkboxes aren't posted back if unchecked, so make sure that they are saved properly
             $this->ConstantManager->SetConstant("agALLOW_NAME_CHANGE", ForceIncomingBool("agALLOW_NAME_CHANGE", 0), 0);
             $this->ConstantManager->SetConstant("agPUBLIC_BROWSING", ForceIncomingBool("agPUBLIC_BROWSING", 0), 0);
             $this->ConstantManager->SetConstant("agUSE_CATEGORIES", ForceIncomingBool("agUSE_CATEGORIES", 0), 0);
             $this->ConstantManager->SetConstant("agLOG_ALL_IPS", ForceIncomingBool("agLOG_ALL_IPS", 0), 0);
             // And save everything
             if ($this->ConstantManager->SaveConstantsToFile($ConstantsFile)) {
                 $this->PostBackValidated = 1;
             } else {
                 $this->PostBackAction = "Globals";
             }
         } else {
             $this->ConstantManager->DefineConstantsFromFile($ConstantsFile);
         }
     }
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:27,代码来源:settings.php

示例4: GlobalsForm

 function GlobalsForm(&$Context)
 {
     $this->Name = 'GlobalsForm';
     $this->ValidActions = array('Globals', 'ProcessGlobals');
     $this->Constructor($Context);
     if (!$this->Context->Session->User->Permission('PERMISSION_CHANGE_APPLICATION_SETTINGS')) {
         $this->IsPostBack = 0;
     } elseif ($this->IsPostBack) {
         $this->Context->PageTitle = $this->Context->GetDefinition('ApplicationSettings');
         $SettingsFile = $this->Context->Configuration['APPLICATION_PATH'] . 'conf/settings.php';
         $this->ConfigurationManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'ConfigurationManager');
         if ($this->PostBackAction == 'ProcessGlobals' && $this->IsValidFormPostBack()) {
             $this->ConfigurationManager->GetSettingsFromForm($SettingsFile);
             // Checkboxes aren't posted back if unchecked, so make sure that they are saved properly
             $this->ConfigurationManager->DefineSetting('ENABLE_WHISPERS', ForceIncomingBool('ENABLE_WHISPERS', 0), 0);
             $this->ConfigurationManager->DefineSetting('ALLOW_NAME_CHANGE', ForceIncomingBool('ALLOW_NAME_CHANGE', 0), 0);
             $this->ConfigurationManager->DefineSetting('PUBLIC_BROWSING', ForceIncomingBool('PUBLIC_BROWSING', 0), 0);
             $this->ConfigurationManager->DefineSetting('USE_CATEGORIES', ForceIncomingBool('USE_CATEGORIES', 0), 0);
             $this->ConfigurationManager->DefineSetting('LOG_ALL_IPS', ForceIncomingBool('LOG_ALL_IPS', 0), 0);
             //Validate cookie domain.
             //The pattern is loose; eg, It won't stop  "domain.tld" or ".co.uk" to be saved
             //(the "domain.tld" can be set by the browser, the 2nd won't).
             Validate($this->Context->GetDefinition('CookieDomain'), 0, ForceIncomingString('COOKIE_DOMAIN', ''), 255, '^[\\.-_~a-zA-Z0-9]*\\.?[-_~a-zA-Z0-9]+\\.[-_~a-zA-Z0-9]+$', $this->Context);
             // And save everything
             if ($this->ConfigurationManager->SaveSettingsToFile($SettingsFile)) {
                 header('Location: ' . GetUrl($this->Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=Globals&Success=1'));
             } else {
                 $this->PostBackAction = 'Globals';
             }
         }
     }
     $this->CallDelegate('Constructor');
 }
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:33,代码来源:Vanilla.Control.GlobalsForm.php

示例5: GlobalsForm

 function GlobalsForm(&$Context)
 {
     $this->Name = 'GlobalsForm';
     $this->ValidActions = array('Globals', 'ProcessGlobals');
     $this->Constructor($Context);
     if (!$this->Context->Session->User->Permission('PERMISSION_CHANGE_APPLICATION_SETTINGS')) {
         $this->IsPostBack = 0;
     } elseif ($this->IsPostBack) {
         $this->Context->PageTitle = $this->Context->GetDefinition('ApplicationSettings');
         $SettingsFile = $this->Context->Configuration['APPLICATION_PATH'] . 'conf/settings.php';
         $this->ConfigurationManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'ConfigurationManager');
         if ($this->PostBackAction == 'ProcessGlobals' && $this->IsValidFormPostBack()) {
             $this->ConfigurationManager->GetSettingsFromForm($SettingsFile);
             // Checkboxes aren't posted back if unchecked, so make sure that they are saved properly
             $this->ConfigurationManager->DefineSetting('ENABLE_WHISPERS', ForceIncomingBool('ENABLE_WHISPERS', 0), 0);
             $this->ConfigurationManager->DefineSetting('ALLOW_NAME_CHANGE', ForceIncomingBool('ALLOW_NAME_CHANGE', 0), 0);
             $this->ConfigurationManager->DefineSetting('PUBLIC_BROWSING', ForceIncomingBool('PUBLIC_BROWSING', 0), 0);
             $this->ConfigurationManager->DefineSetting('USE_CATEGORIES', ForceIncomingBool('USE_CATEGORIES', 0), 0);
             $this->ConfigurationManager->DefineSetting('LOG_ALL_IPS', ForceIncomingBool('LOG_ALL_IPS', 0), 0);
             // And save everything
             if ($this->ConfigurationManager->SaveSettingsToFile($SettingsFile)) {
                 header('location: ' . GetUrl($this->Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=Globals&Success=1'));
             } else {
                 $this->PostBackAction = 'Globals';
             }
         }
     }
     $this->CallDelegate('Constructor');
 }
开发者ID:jaran,项目名称:opencongress,代码行数:29,代码来源:Vanilla.Control.GlobalsForm.php

示例6: SignInForm

 function SignInForm(&$Context, $FormName)
 {
     $this->Name = 'SignInForm';
     $this->ValidActions = array('SignIn');
     $this->Constructor($Context);
     if ($this->PostBackAction == '') {
         $this->IsPostBack = 1;
     }
     if ($this->IsPostBack) {
         $this->FormName = $FormName;
         $this->ReturnUrl = urldecode(ForceIncomingString('ReturnUrl', ''));
         $ValidateReturnUrl = strstr($this->ReturnUrl, $this->Context->Configuration['COOKIE_DOMAIN'] . $this->Context->Configuration['COOKIE_PATH']);
         if ($this->ReturnUrl != '') {
             $this->PostBackParams->Add('ReturnUrl', $this->ReturnUrl);
         }
         $this->Username = ForceIncomingString('Username', '');
         $this->Password = ForceIncomingString('Password', '', false);
         $this->RememberMe = ForceIncomingBool('RememberMe', 0);
         // Set up the page
         global $Banner, $Foot;
         $Banner->Properties['CssClass'] = 'SignIn';
         $Foot->CssClass = 'SignIn';
         $this->Context->PageTitle = $this->Context->GetDefinition('SignIn');
         if ($this->PostBackAction == 'SignIn') {
             $UserManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'UserManager');
             // Check for an already active session
             if ($this->Context->Session->UserID != 0) {
                 $this->PostBackValidated = 1;
             } else {
                 // Attempt to create a new session for the user
                 if ($UserManager->ValidateUserCredentials($this->Username, $this->Password, $this->RememberMe)) {
                     $this->PostBackValidated = 1;
                     //Automatically redirect if this user isn't a user administrator or there aren't any new applicants
                     $AutoRedirect = 1;
                     if ($this->Context->Session->User->Permission('PERMISSION_APPROVE_APPLICANTS')) {
                         $this->ApplicantCount = $UserManager->GetApplicantCount();
                         if ($this->ApplicantCount > 0) {
                             $AutoRedirect = 0;
                         }
                     }
                     if ($this->ReturnUrl == '' || empty($ValidateReturnUrl)) {
                         $this->ReturnUrl = $this->Context->Configuration['FORWARD_VALIDATED_USER_URL'];
                     } else {
                         $this->ReturnUrl = str_replace('&', '&', $this->ReturnUrl);
                     }
                     if ($AutoRedirect && $this->ReturnUrl != '') {
                         //@todo: Should the the process die here?
                         Redirect($this->ReturnUrl, '302', '', 0);
                     }
                 }
             }
         }
         $this->Context->BodyAttributes = " onload=\"Focus('txtUsername');\"";
     }
     $this->CallDelegate('Constructor');
 }
开发者ID:laiello,项目名称:lussumo-vanilla,代码行数:56,代码来源:People.Control.SignInForm.php

示例7: Render_NoPostBack

 function Render_NoPostBack()
 {
     $this->Username = FormatStringForDisplay($this->Username, 1);
     $this->PostBackParams->Add("PostBackAction", "SignIn");
     $this->PostBackParams->Add("ReturnUrl", $this->ReturnUrl);
     $this->Render_Warnings();
     $this->Context->Writer->Add("<div class=\"About\">\r\n\t\t\t" . $this->Context->GetDefinition("AboutVanilla") . "\r\n\t\t</div>\r\n\t\t<div class=\"Form\">\r\n\t\t\t" . $this->Context->GetDefinition("MemberSignIn"));
     $this->Render_PostBackForm($this->FormName);
     $this->Context->Writer->Write("<dl class=\"InputBlock SignInInputs\">\r\n\t\t\t\t<dt>" . $this->Context->GetDefinition("Username") . "</dt>\r\n\t\t\t\t<dd><input type=\"text\" name=\"Username\" value=\"" . $this->Username . "\" class=\"Input\" maxlength=\"20\" /></dd>\r\n\t\t\t\t<dt>" . $this->Context->GetDefinition("Password") . "</dt>\r\n\t\t\t\t<dd><input type=\"password\" name=\"Password\" value=\"\" class=\"Input\" /></dd>\r\n\t\t\t</dl>\r\n\t\t\t<div class=\"InputBlock RememberMe\">" . GetDynamicCheckBox("RememberMe", 1, ForceIncomingBool("RememberMe", 0), "", $this->Context->GetDefinition("RememberMe")) . "</div>\r\n\t\t\t<a class=\"ForgotPasswordLink\" href=\"passwordrequest.php\">" . $this->Context->GetDefinition("ForgotYourPassword") . "</a>\r\n\t\t\t<div class=\"FormButtons\"><input type=\"submit\" name=\"btnSignIn\" value=\"" . $this->Context->GetDefinition("Proceed") . "\" class=\"Button\" /></div>\r\n\t\t\t</form>\r\n\t\t</div>");
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:10,代码来源:signin.php

示例8: GetPropertiesFromForm

 function GetPropertiesFromForm()
 {
     $this->RoleID = ForceIncomingInt("RoleID", 0);
     $this->Name = ForceIncomingString("Name", "");
     $this->Icon = ForceIncomingString("Icon", "");
     $this->Description = ForceIncomingString("Description", "");
     $this->CanLogin = ForceIncomingBool("CanLogin", 0);
     $this->CanPostDiscussion = ForceIncomingBool("CanPostDiscussion", 0);
     $this->CanPostComment = ForceIncomingBool("CanPostComment", 0);
     $this->CanPostHTML = ForceIncomingBool("CanPostHTML", 0);
     $this->CanViewIps = ForceIncomingBool("CanViewIps", 0);
     $this->AdminUsers = ForceIncomingBool("AdminUsers", 0);
     $this->AdminCategories = ForceIncomingBool("AdminCategories", 0);
     $this->MasterAdmin = ForceIncomingBool("MasterAdmin", 0);
     $this->ShowAllWhispers = ForceIncomingBool("ShowAllWhispers", 0);
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:16,代码来源:Vanilla.Role.class.php

示例9: LanguageForm

 function LanguageForm(&$Context)
 {
     $this->Name = "LanguageForm";
     $this->ValidActions = array("LanguageChange", "ProcessLanguageChange");
     $this->Constructor($Context);
     if (!$this->Context->Session->User->Permission("PERMISSION_MANAGE_LANGUAGE")) {
         $this->IsPostBack = 0;
     } elseif ($this->IsPostBack) {
         $this->Context->PageTitle = $this->Context->GetDefinition('LanguageManagement');
         $this->DefineLanguages();
         $this->LanguageSelect = $this->Context->ObjectFactory->NewObject($Context, "Select");
         $this->LanguageSelect->Name = "LanguageKey";
         $this->LanguageSelect->Attributes = ' id="ddLanguage"';
         for ($i = 0; $i < count($this->Languages); $i++) {
             $this->LanguageSelect->AddOption($i, $this->Languages[$i]);
             if ($this->Languages[$i] == $this->Context->Configuration['LANGUAGE']) {
                 $this->LanguageSelect->SelectedValue = $i;
             }
         }
         if ($this->PostBackAction == "ProcessLanguageChange" && $this->IsValidFormPostBack()) {
             $LanguageKey = ForceIncomingInt("LanguageKey", 0);
             // Grab that language from the languages array
             $Language = $this->Languages[$LanguageKey];
             if ($Language) {
                 // Set the language configuration option
                 $ConfigurationManager = $this->Context->ObjectFactory->NewContextObject($this->Context, "ConfigurationManager");
                 $ConfigurationManager->DefineSetting('LANGUAGE', $Language, 1);
                 $SettingsFile = $this->Context->Configuration['APPLICATION_PATH'] . 'conf/settings.php';
                 if ($ConfigurationManager->SaveSettingsToFile($SettingsFile)) {
                     // If everything was successful, mark the postback as validated
                     if ($this->Context->WarningCollector->Iif()) {
                         $Url = GetUrl($this->Context->Configuration, $this->Context->SelfUrl, "", "", "", "", "PostBackAction=LanguageChange&Saved=1");
                         Redirect($Url);
                     }
                 }
             }
         } elseif ($this->PostBackAction == "LanguageChange" && ForceIncomingBool("Saved", 0) == 1) {
             $this->PostBackValidated = 1;
         }
     }
     $this->CallDelegate("Constructor");
 }
开发者ID:laiello,项目名称:lussumo-vanilla,代码行数:42,代码来源:Framework.Control.LanguageForm.php

示例10: GetPropertiesFromForm

 function GetPropertiesFromForm()
 {
     $this->SearchID = ForceIncomingInt('SearchID', 0);
     $this->Label = ForceIncomingString('Label', '');
     $this->Type = $this->DefineType(ForceIncomingString('Type', ''));
     $this->Keywords = urldecode(ForceIncomingString('Keywords', ''));
     // Parse out the keywords differently based on the type of search
     $Advanced = ForceIncomingBool('Advanced', 0);
     if ($Advanced) {
         // Load all of the search variables from the form
         $this->Categories = ForceIncomingString('Categories', '');
         $this->AuthUsername = ForceIncomingString('AuthUsername', '');
         $this->Roles = ForceIncomingString('Roles', '');
         $this->UserOrder = ForceIncomingString('UserOrder', '');
         $this->Query = $this->Keywords;
         // Build the keyword definition
         $KeyDef = '';
         if ($this->Type == 'Users') {
             if ($this->Roles != '') {
                 $KeyDef = 'roles:' . $this->Roles . ';';
             }
             if ($this->UserOrder != '') {
                 $KeyDef .= 'sort:' . $this->UserOrder . ';';
             }
             $this->Keywords = $KeyDef . $this->Keywords;
         } else {
             if ($this->Categories != '') {
                 $KeyDef = 'cats:' . $this->Categories . ';';
             }
             if ($this->AuthUsername != '') {
                 $KeyDef .= $this->AuthUsername . ':';
             }
             $this->Keywords = $KeyDef . $this->Keywords;
         }
     } else {
         // Load all of the search variables from the keyword definition
         $this->ParseKeywords($this->Type, $this->Keywords);
     }
 }
开发者ID:jaran,项目名称:opencongress,代码行数:39,代码来源:Vanilla.Class.Search.php

示例11: GetPropertiesFromForm

 function GetPropertiesFromForm()
 {
     $this->SearchID = ForceIncomingInt("SearchID", 0);
     $this->Label = ForceIncomingString("Label", "");
     $this->Type = $this->DefineType(ForceIncomingString("Type", ""));
     $this->Keywords = urldecode(ForceIncomingString("Keywords", ""));
     // Parse out the keywords differently based on the type of search
     $Advanced = ForceIncomingBool("Advanced", 0);
     if ($Advanced) {
         // Load all of the search variables from the form
         $this->Categories = ForceIncomingString("Categories", "");
         $this->AuthUsername = ForceIncomingString("AuthUsername", "");
         $this->Roles = ForceIncomingString("Roles", "");
         $this->UserOrder = ForceIncomingString("UserOrder", "");
         $this->Query = $this->Keywords;
         // Build the keyword definition
         $KeyDef = "";
         if ($this->Type == "Users") {
             if ($this->Roles != "") {
                 $KeyDef = "roles:" . $this->Roles . ";";
             }
             if ($this->UserOrder != "") {
                 $KeyDef .= "sort:" . $this->UserOrder . ";";
             }
             $this->Keywords = $KeyDef . $this->Keywords;
         } else {
             if ($this->Categories != "") {
                 $KeyDef = "cats:" . $this->Categories . ";";
             }
             if ($this->AuthUsername != "") {
                 $KeyDef .= $this->AuthUsername . ":";
             }
             $this->Keywords = $KeyDef . $this->Keywords;
         }
     } else {
         // Load all of the search variables from the keyword definition
         $this->ParseKeywords($this->Type, $this->Keywords);
     }
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:39,代码来源:Vanilla.Search.class.php

示例12: str_replace

        }
        if ($ShowUpdateMessage) {
            $Message = '';
            if ($Days == 0) {
                $Message = $Context->GetDefinition('NeverCheckedForUpdates');
            } else {
                $Message = str_replace('//1', $Days, $Context->GetDefinition('XDaysSinceUpdateCheck'));
            }
            $NoticeCollector->AddNotice($Message . ' <a href="' . GetUrl($Configuration, 'settings.php', '', '', '', '', 'PostBackAction=UpdateCheck') . '">' . $Context->GetDefinition('CheckForUpdatesNow') . '</a>');
        }
    }
}
// Remind them to get addons if this is a new install
if ($Configuration['ADDON_NOTICE']) {
    if ($Context->Session->User && $Context->Session->User->Permission('PERMISSION_MANAGE_EXTENSIONS')) {
        $HideNotice = ForceIncomingBool('TurnOffAddonNotice', 0);
        if ($HideNotice) {
            $SettingsFile = $Configuration['APPLICATION_PATH'] . 'conf/settings.php';
            $SettingsManager = $Context->ObjectFactory->NewContextObject($Context, 'ConfigurationManager');
            $SettingsManager->DefineSetting("ADDON_NOTICE", '0', 1);
            $SettingsManager->SaveSettingsToFile($SettingsFile);
        } else {
            $NoticeCollector->AddNotice('<span><a href="' . GetUrl($Configuration, 'index.php', '', '', '', '', 'TurnOffAddonNotice=1') . '">' . $Context->GetDefinition('RemoveThisNotice') . '</a></span>
					' . $Context->GetDefinition('WelcomeToVanillaGetSomeAddons'));
        }
    }
}
// 3. ADD CONTROLS TO THE PAGE
$Page->AddRenderControl($Head, $Configuration['CONTROL_POSITION_HEAD']);
$Page->AddRenderControl($Menu, $Configuration['CONTROL_POSITION_MENU']);
$Page->AddRenderControl($Panel, $Configuration['CONTROL_POSITION_PANEL']);
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:31,代码来源:index.php

示例13: GetPropertiesFromForm

 function GetPropertiesFromForm($Configuration)
 {
     $this->RoleID = ForceIncomingInt('RoleID', 0);
     $this->RoleName = ForceIncomingString('RoleName', '');
     $this->Icon = ForceIncomingString('Icon', '');
     $this->Description = ForceIncomingString('Description', '');
     $this->Unauthenticated = ForceIncomingBool('Unauthenticated', 0);
     $this->PERMISSION_SIGN_IN = ForceIncomingBool('PERMISSION_SIGN_IN', 0);
     $this->PERMISSION_HTML_ALLOWED = ForceIncomingBool('PERMISSION_HTML_ALLOWED', 0);
     $this->PERMISSION_RECEIVE_APPLICATION_NOTIFICATION = ForceIncomingBool('PERMISSION_RECEIVE_APPLICATION_NOTIFICATION', 0);
     while (list($Key, $Permission) = each($this->Permissions)) {
         $this->Permissions[$Key] = ForceIncomingBool($Key, 0);
     }
 }
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:14,代码来源:People.Class.Role.php

示例14:

<?php

// Note: This file is included from the library/Vanilla/Vanilla.Control.GlobalsForm.php control.
echo '<div id="Form" class="Account GlobalsForm">';
if (ForceIncomingBool('Success', 0)) {
    echo '<div id="Success">' . $this->Context->GetDefinition('GlobalApplicationChangesSaved') . '</div>';
}
echo '<fieldset>
		<legend>' . $this->Context->GetDefinition('GlobalApplicationSettings') . '</legend>
		' . $this->Get_Warnings() . '
		' . $this->Get_PostBackForm('frmApplicationGlobals') . '
		<h2>' . $this->Context->GetDefinition('Warning') . '</h2>
		<p>
			' . $this->Context->GetDefinition('GlobalApplicationSettingsNotes') . '
		</p>

		<h2>' . $this->Context->GetDefinition('ApplicationTitles') . '</h2>
		<ul>
			<li>
				<label for="txtApplicationTitle">' . $this->Context->GetDefinition('ApplicationTitle') . '</label>
				<input type="text" name="APPLICATION_TITLE" value="' . $this->ConfigurationManager->GetSetting('APPLICATION_TITLE') . '" maxlength="50" class="SmallInput" id="txtApplicationTitle" />
			</li>
			<li>
				<label for="txtBannerTitle">' . $this->Context->GetDefinition('BannerTitle') . '</label>
				<input type="text" name="BANNER_TITLE" value="' . $this->ConfigurationManager->GetSetting('BANNER_TITLE') . '" class="SmallInput" id="txtBannerTitle" />
				<p class="Description">' . $this->Context->GetDefinition('ApplicationTitlesNotes') . '</p>
			</li>
		</ul>

		<h2>' . $this->Context->GetDefinition('ForumOptions') . '</h2>
		<ul>
开发者ID:laiello,项目名称:lussumo-vanilla,代码行数:31,代码来源:settings_globals_form.php

示例15: GetPropertiesFromForm

 function GetPropertiesFromForm()
 {
     $this->UserID = ForceIncomingInt('u', 0);
     $this->RoleID = ForceIncomingInt('RoleID', 0);
     $this->StyleID = ForceIncomingInt('StyleID', 0);
     $this->CustomStyle = ForceIncomingString('CustomStyle', '');
     $this->Name = ForceIncomingString('Name', '');
     $this->FirstName = ForceIncomingString('FirstName', '');
     $this->LastName = ForceIncomingString('LastName', '');
     $this->ShowName = ForceIncomingBool('ShowName', 0);
     $this->Email = ForceIncomingString('Email', '');
     $this->UtilizeEmail = ForceIncomingBool('UtilizeEmail', 0);
     $this->Password = ForceIncomingString('Password', '');
     $this->Icon = PrependString(array('http://', 'https://'), ForceIncomingString('Icon', ''));
     $this->Picture = PrependString(array('http://', 'https://'), ForceIncomingString('Picture', ''));
     $this->AgreeToTerms = ForceIncomingBool('AgreeToTerms', 0);
     $this->ReadTerms = ForceIncomingBool('ReadTerms', 0);
     $this->Discovery = ForceIncomingString('Discovery', '');
     $this->OldPassword = ForceIncomingString('OldPassword', '');
     $this->NewPassword = ForceIncomingString('NewPassword', '');
     $this->ConfirmPassword = ForceIncomingString('ConfirmPassword', '');
     // Retrieve attributes from the form
     $AttributeCount = ForceIncomingInt('LabelValuePairCount', 0);
     $Label = '';
     $Value = '';
     for ($i = 0; $i < $AttributeCount; $i++) {
         $Label = ForceIncomingString('Label' . ($i + 1), '');
         $Label = strip_tags($Label);
         $Label = str_replace("\\\"", "", $Label);
         $Value = ForceIncomingString("Value" . ($i + 1), "");
         $Value = strip_tags($Value);
         $Value = str_replace("\\\"", "", $Value);
         if ($Label != '' && $Value != '') {
             $this->Attributes[] = array('Label' => $Label, 'Value' => $Value);
         }
     }
 }
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:37,代码来源:People.Class.User.php


注:本文中的ForceIncomingBool函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。