# HG changeset patch # User Dan # Date 1209952668 14400 # Node ID acb7e23b6ffadbc9a14d3eebd2d0e7e08bb19eb4 # Parent 1e4b759da33641fa293299c390ce333673c455d0 Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons. diff -r 1e4b759da336 -r acb7e23b6ffa cron.php --- a/cron.php Sat Apr 26 17:25:28 2008 -0400 +++ b/cron.php Sun May 04 21:57:48 2008 -0400 @@ -29,8 +29,9 @@ foreach ( $cron_tasks as $interval => $tasks ) { + $interval = doubleval($interval); $last_run = intval(getConfig("cron_lastrun_ivl_$interval")); - $last_run_threshold = time() - ( 3600 * $interval ); + $last_run_threshold = doubleval(time()) - ( 3600.0 * $interval ); if ( $last_run_threshold >= $last_run ) { foreach ( $tasks as $task ) diff -r 1e4b759da336 -r acb7e23b6ffa images/prompt-body.png Binary file images/prompt-body.png has changed diff -r 1e4b759da336 -r acb7e23b6ffa includes/clientside/css/enano-shared.css --- a/includes/clientside/css/enano-shared.css Sat Apr 26 17:25:28 2008 -0400 +++ b/includes/clientside/css/enano-shared.css Sun May 04 21:57:48 2008 -0400 @@ -749,6 +749,7 @@ div.miniprompt { position: absolute; + z-index: 999; } div.miniprompt div.mp-top, div.miniprompt div.mp-bottom { diff -r 1e4b759da336 -r acb7e23b6ffa includes/clientside/static/acl.js --- a/includes/clientside/static/acl.js Sat Apr 26 17:25:28 2008 -0400 +++ b/includes/clientside/static/acl.js Sun May 04 21:57:48 2008 -0400 @@ -695,7 +695,35 @@ closer = document.createElement('input'); closer.type = 'button'; closer.value = $lang.get('etc_cancel_changes'); - closer.onclick = function() { if(!confirm($lang.get('acl_msg_closeacl_confirm'))) return false; killACLManager(); return false; } + closer.onclick = function() + { + miniPromptMessage({ + title: $lang.get('acl_msg_closeacl_confirm_title'), + message: $lang.get('acl_msg_closeacl_confirm_body'), + buttons: [ + { + text: $lang.get('acl_btn_close'), + color: 'red', + style: { + fontWeight: 'bold' + }, + onclick: function(e) + { + killACLManager(); + miniPromptDestroy(this); + } + }, + { + text: $lang.get('etc_cancel'), + onclick: function(e) + { + miniPromptDestroy(this); + } + } + ] + }); + return false; + } spacer1 = document.createTextNode(' '); spacer2 = document.createTextNode(' '); diff -r 1e4b759da336 -r acb7e23b6ffa includes/clientside/static/comments.js --- a/includes/clientside/static/comments.js Sat Apr 26 17:25:28 2008 -0400 +++ b/includes/clientside/static/comments.js Sun May 04 21:57:48 2008 -0400 @@ -130,13 +130,13 @@ html+=' ' + $lang.get('comment_postform_blurb_unapp'); html += ' ' + $lang.get('comment_postform_blurb_link') + '

'; html += '