ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
2026-09-12 19:15:07
Editing: index.php
Cancel
Save Changes
<?php /* #====================================================== | Trellis Desk | ===================================== | By DJ Tarazona (dj@accord5.com) | (c) 2010 ACCORD5 | http://www.trellisdesk.com/ | ===================================== | Email: sales@accord5.com #====================================================== | @ Version: v1.0.4 Final Build 10440094 | @ Version Int: 104.4.0.094 | @ Version Num: 10440094 | @ Build: 0094 #====================================================== | | Upgrade 10240108 #====================================================== */ class up_10240108 { var $u_ver_id = 10240108; var $u_ver_human = 'v1.0.2 Final'; function auto_run() { $steps = array( 1 => 'Information', 2 => 'Run SQL Queries', 3 => 'Update Cache', 4 => 'Finish' ); set_steps( 'Upgrade Trellis Desk', $steps ); set_titles( $steps ); switch( $this->ifthd->input['step'] ) { case 4: $this->step_4(); break; case 3: $this->step_3(); break; case 2: $this->step_2(); break; default: $this->step_1(); break; } } function step_1() { $content = "<div class='groupbox'>Upgrade to ". $this->u_ver_human ."</div> <div class='option1'> Please review the information below. When you are ready to upgrade to Trellis Desk ". $this->u_ver_human .", click Continue.<br /><br /> What's New? (Overview)<br /> › New Piping (and POP3) Features<br /> › Improved Piping (and POP3) Support<br /> › Various Bugs Fixes and Other Minor Features </div> <div class='option2'>Warning: To use email piping or POP3, you must have the <a href='http://pear.php.net/package/Mail_mimeDecode' target='_blank'>PEAR MIME Decode</a> package installed.</div> <div class='option1'>Don't forget to backup your files and databases.</div> <div class='formtail'><div class='fb_pad'><a href='index.php?do=". $this->u_ver_id ."&step=2' class='fake_button'>Continue</a></div></div>"; do_output( $content, 1 ); } function step_2($error='') { $content = "<div class='groupbox'>Update SQL Database</div> <div class='option1'>Click Continue to run the required SQL queries for the upgrade.</div> <div class='formtail'><div class='fb_pad'><a href='index.php?do=". $this->u_ver_id ."&step=3' class='fake_button'>Continue</a></div></div>"; do_output( $content, 2 ); } function step_3() { $this->ukey = md5( $this->u_ver_id . time() . $this->m['id'] . uniqid( rand(), true ) ); require_once "./up_". $this->u_ver_id ."/sql_queries.php"; while ( list( , $sql_query ) = each( $SQL ) ) { if ( ! mysql_query($sql_query) ) { $this->step_3( "An error encountered while trying to run the following SQL Query.<br /><br />". $sql_query ."<br /><br />MySQL returned the following error.<br /><br />". mysql_error() ."<br /><br />". mysql_errno() ); } } $this->ifthd->core->add_cache( 'upgrade', array( '10240108' => array( 'updated_old' => 0, 'new_skin_id' => 0) ) ); $content = "<div class='groupbox'>Update Cache</div> <div class='option1'>All SQL queries have been run successfully. Click Continue to rebuild the necessary cache.</div> <div class='formtail'><div class='fb_pad'><a href='index.php?do=". $this->u_ver_id ."&step=4' class='fake_button'>Continue</a></div></div>"; do_output( $content, 3 ); } function step_4() { $this->ifthd->rebuild_dprt_cache(); $this->ifthd->core->add_cache( 'temp', array( 'vercheck_time' => 0 ) ); $content = "<div class='groupbox'>Upgrade Complete</div> <div class='option1'>Congratulations, Trellis Desk has been successfully upgraded to ". $this->u_ver_human .". Click the link below to return to Trellis Desk.</div> <div class='option2'><a href='http://docs.accord5.com/Whats_New' target='_blank'>To learn more about this upgrade, such as where new features are located and how to configure them, click here.</a></div> <div class='formtail'><div class='fb_pad'><a href='../index.php' class='fake_button'>Finish</a></div></div>"; do_output( $content, 4 ); } } ?>
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete