Changeset 8841
- Timestamp:
- Jan 22, 2011, 6:14:15 PM (14 years ago)
- Location:
- extensions/NBC_UserAdvManager/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php
r8092 r8841 105 105 case 'global': 106 106 107 if (isset($_POST['submit']) and !is_adviser() andisset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']))107 if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto'])) 108 108 { 109 109 … … 215 215 216 216 //Testing password enforcement 217 if (isset($_POST['PasswordTest']) and !is_adviser() andisset($_POST['UAM_Password_Test']) and !empty($_POST['UAM_Password_Test']))217 if (isset($_POST['PasswordTest']) and isset($_POST['UAM_Password_Test']) and !empty($_POST['UAM_Password_Test'])) 218 218 { 219 219 $UAM_Password_Test_Score = testpassword($_POST['UAM_Password_Test']); 220 220 } 221 else if (isset($_POST['PasswordTest']) and !is_adviser() andempty($_POST['UAM_Password_Test']))221 else if (isset($_POST['PasswordTest']) and empty($_POST['UAM_Password_Test'])) 222 222 { 223 223 array_push($page['errors'], l10n('reg_err_login3')); … … 1002 1002 } 1003 1003 1004 //Hide radio-button if not allow to assign adviser1005 if ($conf['allow_adviser'])1006 {1007 $template->assign('adviser', true);1008 }1009 1010 1004 // +-----------------------------------------------------------------------+ 1011 1005 // | user list | … … 1086 1080 ? '<BR>['.l10n('is_the_default').']' : ''), 1087 1081 'STATUS' => l10n('user_status_' 1088 .$local_user['status']).(($local_user['adviser'] == 'true') 1089 ? '<BR>['.l10n('adviser').']' : ''), 1082 .$local_user['status']), 1090 1083 'EMAIL' => get_email_address_as_display_text($local_user['email']), 1091 1084 'GROUPS' => $groups_string, … … 1344 1337 { 1345 1338 //Reset is only allowed for admins ! 1346 if (is_admin() and !is_adviser())1339 if (is_admin()) 1347 1340 { 1348 1341 $query1 = ' … … 1412 1405 } 1413 1406 1414 //Hide radio-button if not allow to assign adviser1415 if ($conf['allow_adviser'])1416 {1417 $template->assign('adviser', true);1418 }1419 1420 1407 // +-----------------------------------------------------------------------+ 1421 1408 // | user list | -
extensions/NBC_UserAdvManager/trunk/admin/template/ghosttracker.tpl
r6783 r8841 1 { known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}2 { known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}3 { known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"}4 { known_script id="jquery.tablesorter.pager" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"}1 {combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"} 2 {combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {combine_script id="jquery.tablesorter" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {combine_script id="jquery.tablesorter.pager" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 5 5 6 6 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} … … 21 21 .tablesorter({ldelim}sortList:[[4,1]], headers: {ldelim} 0: {ldelim} sorter: false {rdelim}{rdelim}{rdelim}) 22 22 .tablesorterPager({ldelim}container: $("#pager"), positionFixed: false, size: 20, totalPages: 0{rdelim}); 23 {rdelim} 24 ); 23 {rdelim}); 25 24 </script> 26 25 … … 42 41 <fieldset> 43 42 <legend class="cluetip" title="{'UAM_gtTitle'|translate}|{'UAM_gtTitle_d'|translate}">{'GhostTracker_Title'|@translate}</legend> 44 45 46 47 48 49 50 51 52 53 54 55 43 <table id="sorting" class="table2" width="97%" summary=""> 44 <thead> 45 <tr class="throw"> 46 <th> </th> 47 <th>{'Username'|@translate}</th> 48 <th>{'Profile'|@translate}</th> 49 <th>{'Email address'|@translate}</th> 50 <th>{'LastVisit_Date'|@translate}</th> 51 <th>{'Reminder'|@translate}</th> 52 </tr> 53 </thead> 54 <tbody> 56 55 {foreach from=$users item=user name=users_loop} 57 56 <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}"> … … 73 72 {/foreach} 74 73 </tbody> 75 74 </table> 76 75 <div id="pager" class="pager"> 77 76 <form> -
extensions/NBC_UserAdvManager/trunk/admin/template/global.tpl
r8092 r8841 1 { known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}2 { known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}1 {combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"} 2 {combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 3 4 4 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} -
extensions/NBC_UserAdvManager/trunk/admin/template/userlist.tpl
r6783 r8841 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {known_script id="jquery.tablesorter.pager" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 5 1 {combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"} 2 {combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {combine_script id="jquery.tablesorter" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {combine_script id="jquery.tablesorter.pager" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 6 5 7 6 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} … … 25 24 ); 26 25 </script> 27 28 26 29 27 <div class="titrePage"> -
extensions/NBC_UserAdvManager/trunk/admin/template/usermanager.tpl
r6783 r8841 1 { known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}2 { known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}3 { known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"}4 { known_script id="jquery.tablesorter.pager" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"}1 {combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"} 2 {combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 {combine_script id="jquery.tablesorter" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 4 {combine_script id="jquery.tablesorter.pager" path=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 5 5 6 6 {html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head} -
extensions/NBC_UserAdvManager/trunk/include/functions.inc.php
r8092 r8841 1769 1769 u.'.$conf['user_fields']['email'].' AS email, 1770 1770 ui.status, 1771 ui.adviser,1772 1771 ui.enabled_high, 1773 1772 ui.level,
Note: See TracChangeset
for help on using the changeset viewer.