Upgrade Center
<% TITLE %><% CONTENT %> |
input['do_login'] && $ifthd->core->cache['usessions'] ) { $killed = 0; $to_cache = array(); foreach( $ifthd->core->cache['usessions'] as $usid => $usdata ) { if ( $usdata['s_time'] < ( time() - ( 60 * 60 ) ) ) { $killed = 1; } else { $to_cache[ $usid ] = $usdata; } } $ifthd->core->add_cache( 'usessions', $to_cache, 1 ); } #============================= # The Good Stuff #============================= if ( $ifthd->input['do_login'] ) { $ifthd->member = do_login(); } else { $ifthd->member = load_session(); } if ( $ifthd->input['do'] ) { require_once "./up_". $ifthd->input['do'] ."/index.php"; $run_class = 'up_'. $ifthd->input['do']; $run = new $run_class(); $run->ifthd =& $ifthd; $run->auto_run(); } else { show_main(); } #============================= # Da Functions #============================= function show_main() { global $ifthd; set_steps( 'Upgrade Trellis Desk', array( 0 => 'Introduction' ) ); set_titles( array( 0 => 'Welcome to Trellis Desk' ) ); $content = ""; $remote_check = 0; if ( ini_get('allow_url_fopen') ) { $version_check = file_get_contents( 'http://core.accord5.com/trellis/version_check.php?type=text' ); if ( intval( $version_check ) > VER_NUM ) { $version_txt = "There is a newer version of Trellis Desk available for download. We recommended downloading the latest version before continuing the upgrade."; } else { $version_txt = "It looks like you have the latest version of Trellis Desk downloaded (not installed)."; $remote_check = 1; } } else { $version_txt = "Due to your PHP's security settings, we were unable to check for the latest version of Trellis Desk. We recommend checking the Trellis Desk product page to make sure you have the latest version."; $remote_check = 1; } $content .= "
| ID | Name | Date | User |
|---|---|---|---|
| {$u['verid']} | {$u['verhuman']} | {$u['date']} | {$u['username']} |
Upgrade Center
<% TITLE %><% CONTENT %> |