Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/profile.edit.details.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; // no direct access defined('_JEXEC') or die('Restricted access'); $validPassword = Text::sprintf( Text::_( 'JLIB_DATABASE_ERROR_VALID_AZ09', true ), Text::_( 'Password', true ), 4 ); ?> <div id="profile-edit-details"> <div class="ctitle"> <h2><?php echo Text::_('COM_COMMUNITY_YOUR_DETAILS');?></h2> </div> <form name="jsforms-profile-editdetails" id="jomsForm" action="" method="POST"> <table class="formtable" cellspacing="1" cellpadding="0" style="width: 98%;"> <tbody> <?php echo $beforeFormDisplay;?> <!-- username --> <tr> <td class="key"><label class="label" for="username"><?php echo Text::_('COM_COMMUNITY_PROFILE_USERNAME'); ?></label></td> <td class="value"> <div><?php echo $this->escape($user->get('username')); ?></div> </td> </tr> <?php if (!$isUseFirstLastName) { ?> <!-- fullname --> <tr> <td class="key"><label class="label" for="name"><?php echo Text::_('COM_COMMUNITY_PROFILE_YOURNAME'); ?></label></td> <td class="value"> <input type="text" id="name" name="name" value="<?php echo $this->escape($user->get('name'));?>" /> </td> </tr> <?php } ?> <!-- email --> <tr> <td class="key"><label class="label" for="jsemail"><?php echo Text::_( 'COM_COMMUNITY_EMAIL' ); ?></label></td> <td class="value"> <input type="text" class="input text halfwidth" id="jsemail" name="jsemail" value="<?php echo $this->escape( $user->get('email') ); ?>" /> <input type="hidden" id="email" name="email" value="<?php echo $user->get('email'); ?>" /> <input type="hidden" id="emailpass" name="emailpass" id="emailpass" value="<?php echo $this->escape( $user->get('email') ); ?>"/> <span id="errjsemailmsg" style="display:none;"> </span> </td> </tr> <?php if ( !$associated ) : ?> <?php if ( $user->get('password') ) : ?> <!-- password --> <tr> <td class="key"><label class="label" for="jspassword"><?php echo Text::_( 'COM_COMMUNITY_PASSWORD' ); ?></label></td> <td class="value"> <input id="jspassword" name="jspassword" class="input password halfwidth" type="password" value="" /> <span id="errjspasswordmsg" style="display: none;"> </span> </td> </tr> <!-- 2nd password --> <tr> <td class="key"><label class="label" for="jspassword2"><?php echo Text::_( 'COM_COMMUNITY_VERIFY_PASSWORD' ); ?></label></td> <td class="value"> <input id="jspassword2" name="jspassword2" class="input password halfwidth" type="password" value="" /> <span id="errjspassword2msg" style="display:none;"> </span> <div style="clear:both;"></div> <span id="errpasswordmsg" style="display:none;"> </span> </td> </tr> <?php endif; ?> <?php endif; ?> </tbody> </table> <?php if(isset($params)) : echo $params->render( 'params' ); endif; ?> <table class="formtable" cellspacing="1" cellpadding="0" style="width: 98%;"> <tbody> <!-- DST --> <tr> <td class="key"> <label class="jomNameTips label" title="<?php echo Text::_('COM_COMMUNITY_DAYLIGHT_SAVING_OFFSET_TOOLTIP');?>" for="daylightsavingoffset"> <?php echo Text::_( 'COM_COMMUNITY_DAYLIGHT_SAVING_OFFSET' ); ?> </label> </td> <td class="value"> <?php echo $offsetList; ?> </td> </tr> <!-- group buttons --> <tr> <td class="key"></td> <td class="value"> <input type="hidden" name="id" value="<?php echo $user->get('id');?>" /> <input type="hidden" name="gid" value="<?php echo $user->get('gid');?>" /> <input type="hidden" name="option" value="com_community" /> <input type="hidden" name="view" value="profile" /> <input type="hidden" name="task" value="save" /> <input type="hidden" id="password" name="password" /> <input type="hidden" id="password2" name="password2" /> <?php echo HTMLHelper::_( 'form.token' ); ?> <input type="submit" name="frmSubmit" onclick="submitbutton(); return false;" class="button" value="<?php echo Text::_('COM_COMMUNITY_SAVE_BUTTON'); ?>" /> </td> </tr> <?php echo $afterFormDisplay;?> </tbody> </table> <?php if( $config->get('fbconnectkey') && $config->get('fbconnectsecret') ) { ?> <div class="ctitle"><h2><?php echo Text::_('COM_COMMUNITY_ASSOCIATE_FACEBOOK_LOGIN' );?></h2></div> <?php if( $isAdmin ) { ?> <div class="small facebook"><?php echo Text::_('COM_COMMUNITY_ADMIN_NOT_ALLOWED_TO_ASSOCIATE_FACEBOOK');?></div> <?php } else { if( $associated ) { ?> <div class="small facebook"><?php echo Text::_('COM_COMMUNITY_ACCOUNT_ALREADY_MERGED');?></div> <!-- <div> <input<?php echo $readPermission ? ' checked="checked" disabled="true"' : '';?> type="checkbox" id="facebookread" name="connectpermission" onclick="FB.Connect.showPermissionDialog('user_posts', function(x){if(!x){ joms.jQuery('#facebookread').attr('checked',false);}}, true );"> <label for="facebookread" style="display: inline;"><?php echo Text::_('COM_COMMUNITY_ALLOW_SITE_TO_READ_UPDATES_FROM_YOUR_FACEBOOK_ACCOUNT');?></label> </div> --> <br/> <div> <input<?php echo !empty($fbPostStatus) ? ' checked="checked"' : '';?> type="checkbox" id="postFacebookStatus" name="postFacebookStatus" class="input checkbox"> <label for="postFacebookStatus" style="display: inline;"><?php echo Text::_('COM_COMMUNITY_ALLOW_SITE_TO_PUBLISH_UPDATES_TO_YOUR_FACEBOOK_ACCOUNT');?></label> </div> <?php } else { echo $fbHtml; echo $googleHtml; echo $twitterHtml; echo $linkedinHtml; } } } ?> </div> </form> <script language="javascript" type="text/javascript"> function submitbutton() { var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i"); //hide all the error messsage span 1st joms.jQuery('#name').removeClass('invalid'); joms.jQuery('#jspassword').removeClass('invalid'); joms.jQuery('#jspassword2').removeClass('invalid'); joms.jQuery('#jsemail').removeClass('invalid'); joms.jQuery('#errnamemsg').hide(); joms.jQuery('#errnamemsg').html(' '); joms.jQuery('#errpasswordmsg').hide(); joms.jQuery('#errpasswordmsg').html(' '); joms.jQuery('#errjsemailmsg').hide(); joms.jQuery('#errjsemailmsg').html(' '); joms.jQuery('#password').val(joms.jQuery('#jspassword').val()); joms.jQuery('#password2').val(joms.jQuery('#jspassword2').val()); // do field validation var isValid = true; if (joms.jQuery('#name').val() == "") { isValid = false; joms.jQuery('#errnamemsg').html('<?php echo addslashes(Text::_( 'COM_COMMUNITY_PLEASE_ENTER_NAME', true ));?>'); joms.jQuery('#errnamemsg').show(); joms.jQuery('#name').addClass('invalid'); } if(joms.jQuery('#jsemail').val() != joms.jQuery('#email').val()) { regex=/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; isValid = regex.test(joms.jQuery('#jsemail').val()); var fieldname = joms.jQuery('#jsemail').attr('name');; if(isValid == false){ cvalidate.setMessage(fieldname, '', 'COM_COMMUNITY_INVALID_EMAIL'); joms.jQuery('#jsemail').addClass('invalid'); } } if(joms.jQuery('#password').val().length > 0 || joms.jQuery('#password2').val().length > 0) { //check the password only when the password is not empty! if(joms.jQuery('#password').val().length < 6 ){ isValid = false; joms.jQuery('#jspassword').addClass('invalid'); alert('<?php echo addslashes(Text::_( 'COM_COMMUNITY_PASSWORD_TOO_SHORT' ));?>'); } else if (((joms.jQuery('#password').val() != "") || (joms.jQuery('#password2').val() != "")) && (joms.jQuery('#password').val() != joms.jQuery('#password2').val())){ isValid = false; joms.jQuery('#jspassword').addClass('invalid'); joms.jQuery('#jspassword2').addClass('invalid'); var err_msg = "<?php echo addslashes(Text::_( 'COM_COMMUNITY_PASSWORD_NOT_SAME' )); ?>"; alert(err_msg); } } if(isValid) { //replace the email value. joms.jQuery('#email').val(joms.jQuery('#jsemail').val()); joms.jQuery('#jomsForm').submit(); } } // Password strenght indicator var password_strength_settings = { 'texts' : { 1 : '<?php echo addslashes(Text::_('COM_COMMUNITY_PASSWORD_STRENGHT_L1')); ?>', 2 : '<?php echo addslashes(Text::_('COM_COMMUNITY_PASSWORD_STRENGHT_L2')); ?>', 3 : '<?php echo addslashes(Text::_('COM_COMMUNITY_PASSWORD_STRENGHT_L3')); ?>', 4 : '<?php echo addslashes(Text::_('COM_COMMUNITY_PASSWORD_STRENGHT_L4')); ?>', 5 : '<?php echo addslashes(Text::_('COM_COMMUNITY_PASSWORD_STRENGHT_L5')); ?>' } } joms.jQuery('#jspassword').password_strength(password_strength_settings); </script>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка