コード例 #1
0
ファイル: register.php プロジェクト: sdev1/CloudStockEnquiry
 $strCategoryControl = $pageObject->getMainLookupFieldNameForDependant($fName);
 if ($strCategoryControl !== "" && in_array($strCategoryControl, $regFields)) {
     $vals = array($fName => @$values[$fName], $strCategoryControl => @$values[$strCategoryControl]);
 } else {
     $vals = array($fName => @$values[$fName]);
 }
 $preload = $pageObject->fillPreload($fName, $vals);
 if ($preload !== false) {
     $controls["controls"]['preloadData'] = $preload;
 }
 $pageObject->fillControlsMap($controls);
 if ($pageObject->pSet->getEditFormat($fName) == 'Time') {
     $pageObject->fillTimePickSettings($fName, @$values[$fName]);
 }
 // Confirm field for re-enter password
 if ($fName == GetPasswordField() && GetPasswordField() != GetUserNameField()) {
     $parameters = array();
     $parameters["id"] = $id;
     $parameters["mode"] = "add";
     $parameters["field"] = "confirm";
     $parameters["format"] = "Password";
     $parameters["suggest"] = true;
     $parameters["pageObj"] = $pageObject;
     $parameters["validate"]['basicValidate'] = array('IsRequired');
     $parameters["extraParams"] = array();
     $parameters["extraParams"]["isConfirm"] = true;
     $parameters["extraParams"]["getConrirmFieldCtrl"] = true;
     $control1['confirm'] = array();
     AssignFunction($control1['confirm'], "xt_buildeditcontrol", $parameters);
     $controls = array('controls' => array());
     $controls["controls"]['id'] = $id;
コード例 #2
0
ファイル: commonfunctions.php プロジェクト: aagusti/padl-tng
function inFacebook()
{
    global $conn, $cCharset, $cUserNameField, $cPasswordField;
    $facebook = new facebookWrapper();
    $signed_request = $facebook->FBgetSignedRequest();
    if ($signed_request) {
        $strUsername = "******" . (string) $signed_request['user_id'];
        $strSQL = "select * from " . AddTableWrappers("") . " where " . AddFieldWrappers(GetUserNameField()) . "='" . $strUsername . "'";
        $rs = db_query($strSQL, $conn);
        $data = db_fetch_array($rs);
        if ($data) {
            AfterFBLogIn($data[$cUserNameField], $data[$cPasswordField]);
            return true;
        }
    }
    return false;
}