$yourId = wp_get_current_user()->user_login;
$allowed_users = array( “[email protected]”, “[email protected]”, “[email protected]”, “balajivalmiki”, “nkoka”, “[email protected]”);
if ( (is_user_logged_in() && current_user_can(‘administrator’) ) ||
(is_user_logged_in() && in_array($yourId, $allowed_users) )
)
$authUser = TRUE;
if($authUser == FALSE)
{
wp_redirect( site_url() ); exit;
}
[/insert_php]
[insert_php]
$t = 14;
if (isset($_GET[‘t’]) && !empty($_GET[‘t’]))
$t = $_GET[‘t’];
if( $t > 120)
$t == 120;
if( $t < 1)
$t == 14;
[/insert_php]
Last [insert_php] echo $t;[/insert_php] Days Transactions.
Date | Name | Financial Type | Amount | Status | Source |
---|---|---|---|---|---|
” . ($page->receive_date) . “ | ” . ($page->first_name) . “, ” . ($page->last_name) . “ | ” . str_replace(‘$’, ‘$ ‘, ($page->name)) . “ | $ ” . number_format($page->total_amount) . “ | ” . $status[$page->contribution_status_id] . “ | ” . $page->source . “ |
Totals | $ ” . number_format( $grand_total_amount ) . “ |