當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Installer::iuser_is_valid方法代碼示例

本文整理匯總了PHP中Installer::iuser_is_valid方法的典型用法代碼示例。如果您正苦於以下問題:PHP Installer::iuser_is_valid方法的具體用法?PHP Installer::iuser_is_valid怎麽用?PHP Installer::iuser_is_valid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Installer的用法示例。


在下文中一共展示了Installer::iuser_is_valid方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testIuserIsInvalid

 public function testIuserIsInvalid()
 {
     $post_variables = $this->post_variables;
     $post_variables['iuser'] = 'initial user';
     $installer = new Installer($post_variables, $this->manualPath);
     $this->assertEquals(FALSE, $installer->iuser_is_valid());
 }
開發者ID:jkeairns,項目名稱:openemr,代碼行數:7,代碼來源:InstallerTest.php

示例2:

     }
     echo "<TR VALIGN='TOP' class='noclone'><TD COLSPAN=2><font color='red'>OPENEMR USER:</font></TD></TR>";
     echo "<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='iuser' VALUE='admin'></TD><TD><span class='text'>(This is the login name of user that will be created for you. Limit this to one word.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User Password:</span></TD><TD><INPUT SIZE='30' TYPE='PASSWORD' NAME='iuserpass' VALUE=''></TD><TD><span class='text'>(This is the password for the initial user account above.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User's First Name:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='iufname' VALUE='Administrator'></TD><TD><span class='text'>(This is the First name of the 'initial user'.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User's Last Name:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='iuname' VALUE='Administrator'></TD><TD><span class='text'>(This is the Last name of the 'initial user'.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial Group:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='igroup' VALUE='Default'></TD><TD><span class='text'>(This is the group that will be created for your users.  This should be the name of your practice.)</span></TD></TR>\n";
     echo "<TR VALIGN='TOP'><TD>&nbsp;</TD></TR>";
     echo "</TABLE>\n<br>\n<INPUT TYPE='SUBMIT' VALUE='Continue'><br></FORM><br>";
     break;
 case 3:
     // Form Validation
     //   (applicable if not cloning from another database)
     if (empty($installer->clone_database)) {
         if (!$installer->login_is_valid()) {
             echo "ERROR. Please pick a proper 'Login Name'.<br>\n";
             echo "Click Back in browser to re-enter.<br>\n";
             break;
         }
         if (!$installer->iuser_is_valid()) {
             echo "ERROR. The 'Initial User' field can only contain one word and no spaces.<br>\n";
             echo "Click Back in browser to re-enter.<br>\n";
             break;
         }
         if (!$installer->user_password_is_valid()) {
             echo "ERROR. Please pick a proper 'Initial User Password'.<br>\n";
             echo "Click Back in browser to re-enter.<br>\n";
             break;
         }
     }
     if (!$installer->password_is_valid()) {
         echo "ERROR. Please pick a proper 'Password'.<br>\n";
         echo "Click Back in browser to re-enter.<br>\n";
         break;
     }
開發者ID:katopenzz,項目名稱:openemr,代碼行數:31,代碼來源:setup.php


注:本文中的Installer::iuser_is_valid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。