} $wallet_last_import = $pony_db->get_last_wallet_date(); if ($wallet_last_import !== false) { $smarty->assign('wallet_last_import', $wallet_last_import); } $pony_db->unlock_all_tables(); } // ------------------------------------------------------------------------------------------- // Page processing code // ------------------------------------------------------------------------------------------- if ($admin_action == 'ftp') { // --------------------------------------------------------------------------------------- // FTP list if ($admin_routine == 'clear_ftp') { if ($pony_db->priv_can_delete()) { $pony_db->clear_table(CPONY_FTP_TABLE, "WHERE url_type='ftp'"); clear_floating_offsets($pony_db); } else { show_smarty_error($smarty, 'ERR_NOT_ENOUGH_PRIVILEGES'); } } elseif ($admin_routine == 'clear_ssh') { if ($pony_db->priv_can_delete()) { $pony_db->clear_table(CPONY_FTP_TABLE, "WHERE url_type='ssh'"); clear_floating_offsets($pony_db); } else { show_smarty_error($smarty, 'ERR_NOT_ENOUGH_PRIVILEGES'); } } $offset_ftp_list = $pony_db->get_multi_option('offset_ftp_list', 1); $ftp_list = array(); $pony_db->get_ftp_list(false, $ftp_list, 10, 'both', $offset_ftp_list[0]);