techker Posted October 13, 2009 Share Posted October 13, 2009 hey guys i recently had to re upload all my index files on my servers cause the got hacked! what a piss off!lol so i had to download an old script that was install..webcalendar 1.2 but know i get an error Fatal error: Call to undefined function access_can_view_page() in /home/soul3438/public_html/GYMSOFT/Calendar/index.php on line 9 <?php /* $Id: index.php,v 1.16.2.2 2007/08/06 02:28:30 cknudsen Exp $ */ include_once 'includes/init.php'; // If not yet logged in, you will be redirected to login.php before // we get to this point (by init.php included above). if ( ! empty ( $STARTVIEW ) ) { $page = get_preferred_view (); if ( access_can_view_page ( $page ) ) send_to_preferred_view (); else { // User's preferences need to be updated to their preferred view. if ( access_can_access_function ( ACCESS_PREFERENCES ) ) do_redirect ( 'pref.php' ); // User does not have access to preferences... // So, we need to pick another page. if ( access_can_access_function ( ACCESS_WEEK ) ) do_redirect ( 'week.php' ); elseif ( access_can_access_function ( ACCESS_MONTH ) ) do_redirect ( 'month.php' ); elseif ( access_can_access_function ( ACCESS_DAY ) ) do_redirect ( 'day.php' ); elseif ( access_can_access_function ( ACCESS_YEAR ) ) do_redirect ( 'year.php' ); // At this point, this user cannot view the preferred view in their // preferences (and they cannot update their preferences), and they cannot // view any of the standard day/week/month/year pages. All that's left is a // custom view that is either created by them or a global view. if ( count ( $views ) > 0 ) do_redirect ( $views[0]['url'] ); // No views either? You gotta be kidding me! ;-) } } else do_redirect ( 'month.php' ); ?> Link to comment https://forums.phpfreaks.com/topic/177572-webcalendar/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.