Ejemplo n.º 1
0
        $method_dropbox = fs_get_archive_method_dropbox();
        $num_dropbox = fs_get_archive_dropbox();
        ?>
		<div style="padding-left:10px;padding-right:10px">
			<?php 
        echo sprintf(fs_r('%s compact data older than %s'), $method_dropbox, $num_dropbox);
        ?>
		&nbsp;&nbsp;&nbsp;
		<button class="button" id="fs_archive_button" onclick="toggleArchiveOldData()">
			<?php 
        fs_e('Compact now');
        ?>
</button>
		<div style="padding-top:10px;padding-left:10px;padding-right:10px;">
		<span id="fs_archive_status"><?php 
        echo sprintf(fs_r("%s days can be compacted, database size %s"), fs_get_num_old_days(), sprintf("%.1f MB", fs_get_database_size() / (1024 * 1024)));
        ?>
</span>
		</div>
		<?php 
    } else {
        echo "<b>" . fs_r('MySQL 4.1.14 or newer is required for data compacting support') . "</b>";
    }
    ?>
		</div>
		</td>
	</tr>
	<tr>
		<td class="config_cell" colspan="2">
			<h3><?php 
    fs_e('Automatic version check');
Ejemplo n.º 2
0
function fs_ajax_getNextUserMessage(&$response)
{
    require_once FS_ABS_PATH . '/php/html-utils.php';
    require_once FS_ABS_PATH . '/php/utils.php';
    // currently we don't show any user messages in demo mode.
    if (fs_is_demo()) {
        return;
    }
    if (fs_is_admin() && fs_get_system_option("user_agreed_to_send_system_information", '') == '') {
        fs_ajax_get_window($response, 'ask_to_send_sysinfo');
    } else {
        if (fs_time_to_nag()) {
            fs_ajax_get_window($response, 'ask_for_donation');
        } else {
            if (fs_is_admin() && fs_mysql_newer_than("4.1.14") && fs_get_system_option('archive_method') == null && fs_get_num_old_days() > 0) {
                // if the user never selected archive method
                fs_ajax_get_window($response, 'notify_about_archive');
            }
        }
    }
}