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


PHP Check::safeArray方法代码示例

本文整理汇总了PHP中Check::safeArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::safeArray方法的具体用法?PHP Check::safeArray怎么用?PHP Check::safeArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Check的用法示例。


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

示例1: array

                $userQ->close();
                $_SESSION = array();
                // deregister all current session variables
                FlashMsg::add(_("Your user account has been suspended. Contact with administrator to resolve this problem."), OPEN_MSG_WARNING);
                header("Location: ../home/index.php");
                exit;
            }
        }
    }
    $userQ->close();
}
/**
 * Redirect back to form if an error occurred
 */
if ($errorFound) {
    Form::setSession(Check::safeArray($_POST), $formError);
    $_SESSION['auth']['last_login'] = $loginSession;
    if (isset($sessLoginAttempts)) {
        $_SESSION['auth']['login_attempts'] = $sessLoginAttempts;
    }
    header("Location: ../auth/login_form.php");
    exit;
}
/**
 * Redirect to index page if suspended
 */
if (!$user->isActived()) {
    $_SESSION = array();
    // deregister all current session variables
    FlashMsg::add(_("Your user account has been suspended. Contact with administrator to resolve this problem."), OPEN_MSG_WARNING);
    header("Location: ../home/index.php");
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:login.php

示例2: _

require_once "../config/i18n.php";
$locale = I18n::languageList();
// end i18n l10n
/**
 * XHTML Start (XML prolog, DOCTYPE, title page and meta data)
 */
$title = _("OpenClinic Install Wizard");
require_once "../layout/xhtml_start.php";
echo HTML::start('link', array('rel' => 'stylesheet', 'href' => '../css/wizard.css', 'type' => 'text/css'), true);
echo HTML::insertScript('wizard.js');
echo HTML::end('head');
echo HTML::start('body');
//echo "<!-- Header -->\n";
echo HTML::start('form', array('method' => 'post', 'action' => $_SERVER['PHP_SELF'], 'onsubmit' => 'return validateInstall();'));
//Error::debug($_POST);
$_POST = Check::safeArray($_POST);
echo Form::hidden("alreadyVisited", 1, array('id' => 'h_alreadyVisited'));
echo Form::hidden("buttonPressed", null, array('id' => 'h_buttonPressed'));
echo Form::hidden("dbHost", preg_replace("/ /", "", $_POST['dbHost']), array('id' => 'h_dbHost'));
echo Form::hidden("dbUser", preg_replace("/ /", "", $_POST['dbUser']), array('id' => 'h_dbUser'));
echo Form::hidden("dbPasswd", $_POST['dbPasswd'], array('id' => 'h_dbPasswd'));
echo Form::hidden("dbName", preg_replace("/ /", "", $_POST['dbName']), array('id' => 'h_dbName'));
echo Form::hidden("clinicLanguage", $_POST['clinicLanguage'], array('id' => 'h_clinicLanguage'));
echo Form::hidden("clinicName", $_POST['clinicName'], array('id' => 'h_clinicName'));
echo Form::hidden("clinicHours", $_POST['clinicHours'], array('id' => 'h_clinicHours'));
echo Form::hidden("clinicAddress", $_POST['clinicAddress'], array('id' => 'h_clinicAddress'));
echo Form::hidden("clinicPhone", $_POST['clinicPhone'], array('id' => 'h_clinicPhone'));
echo Form::hidden("timeout", intval($_POST['timeout']), array('id' => 'h_timeout'));
echo Form::hidden("itemsPage", intval($_POST['itemsPage']), array('id' => 'h_itemsPage'));
echo Form::hidden("clinicTheme", $_POST['clinicTheme'], array('id' => 'h_clinicTheme'));
echo Form::hidden("firstName", $_POST['firstName'], array('id' => 'h_firstName'));
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:wizard.php


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