{% extends "base.html" %}
{% block content %}
<div id=psla class=upload>
<h1>Perforce Server Log Analyzer</h1>
<h2>Log File Upload</h2>
<h3>Upload A Log File</h3>
<p class="plain">
Use this form to upload your Perforce server log file.
The log analyzer will parse your data and display commands that have affected
your server performance.
</p>
<p>
Please note that your log data and analysis will be available for <strong>only
{$PslaController->getDaysToKeepLogs()} calendar days</strong>.
</p>
<p>If you have a Support ticket or would like to
<a mailto="support@perforce.com">open a Support ticket</a>
with us, it would be helpful to retain your log file. Can we have permission to
keep your log file until we are finished resolving your Support issue in such cases?
</p>
<!-- <input type="checkbox" name="permission" value=1 />Allow Perforce Software to keep the log file. -->
<div id=terms>
<div id=text>
<p><strong>Assumption of Risk and Release of Liability</strong></p>
<p>We've done our best to ensure that your log data is secure, but the
possibility always exists that even the best security measures can be
unexpectedly countered. If you don't want to risk unauthorized parties
viewing your server log data, you can analyze your log file via
Track2SQL instead. Track2SQL is identical to the Server Log Analyzer,
but runs locally and doesn't transmit any data to Perforce. You can
download Track2SQL by following
<a href="http://public.perforce.com/guest/stewart_lord/track2sql/track2sql.php">this link</a>.
</p>
<p>However, if you choose to upload a log file to the Perforce Server Log
Analyzer instead, you agree to release Perforce Software, Inc. from
liability for any damages resulting from a third party accessing your
log data, whether or not those damages are caused by Perforce's
negligence, and whether or not you have brought any problems with
Perforce's security to Perforce's attention. You assume all risks
associated with unauthorized access to your data, and you agree to hold
Perforce Software, Inc. harmless with respect to all such risks.
</p>
</div>
{% from "_formhelpers.html" import render_field %}
<form action="{{ url_for('uploadLog') }}" method="post" enctype="multipart/form-data" role="form">
{{ form.csrf_token }}
<!-- <p>
{{ form.email.label }}<br>
{{ form.email(size=64) }}
</p>
<p>
{{ form.uploadFile.label }}<br>
{{ form.uploadFile(size=64) }}
</p>
<p>
{{ form.accept_terms.label }}<br>
{{ form.accept_terms }}
</p> -->
<dl>
{{ render_field(form.email, size=64) }}
{{ render_field(form.uploadFile, size=64) }}
{{ render_field(form.accept_terms) }}
</dl>
<p>{{ form.submit() }}</p>
</form>
<ul class="footnote">
<li>› P4D Server Version must be 2005.2 or higher.</li>
<li>› Log file size must be 64MB compressed or less.</li>
<li>› Valid extensions are <code>.txt</code>,
<code>.gz</code>, <code>.zip</code>, <code>.log</code>, or no extension.</li>
</ul>
</div>
{% endblock %}