当前位置: 首页>>代码示例>>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;未经允许,请勿转载。