Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_PHPBB', true);
- $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
- $phpEx = substr(strrchr(__FILE__, '.'), 1);
- include($phpbb_root_path . 'common.' . $phpEx);
- // Start session management
- $user->session_begin();
- $auth->acl($user->data);
- $admin_acl = $auth->acl_get('a_');
- $loop = $loop2 = 0;
- $time1 = microtime(true);
- while ($loop < 1000)
- {
- if ( $auth->acl_get('a_') )
- {
- $loop++;
- }
- else
- {
- $loop++;
- }
- }
- $final_time1 = (microtime(true) - $time1);
- $time2 = microtime(true);
- while ($loop2 < 1000)
- {
- if ( $admin_acl )
- {
- $loop2++;
- }
- else
- {
- $loop2++;
- }
- }
- $final_time2 = (microtime(true) - $time2);
- $result = 'While acl(method) time:' . $final_time1 . 's<br />' . 'While acl(var) time:' . $final_time2 . 's';
- trigger_error($result);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement