1 <?php include("header.phtml"); ?>
3 <style type="text/css">
12 #fetch-form input[name=url] {
16 #paste-form textarea {
23 border-top: 1px solid #aaa;
26 margin: 10px 0 20px 0;
41 <div id="text-content">
45 <p><strong>Please note:</strong></p>
48 <li><p>Any games you upload will be publicly viewable.</p></li>
49 <li><p>Copyright laws on game records vary from country to country.
50 It is your responsibility to upload only SGF
51 files that are legal for you to upload. Games with commentary are generally
52 copyrighted and you should not upload them without the owner's permission.
53 Copyrighted games uploaded without permission will be removed.</p></li>
56 <h3>SGF File Upload</h3>
58 <form id="upload-form" action="php/upload.php" method="post" enctype="multipart/form-data">
59 <input type="hidden" name="type" value="file">
60 <input type="file" name="sgf_file">
61 <input type="submit" value="Upload">
64 <h3>Fetch SGF from a URL</h3>
66 <form id="fetch-form">
68 <input type="submit" value="Fetch">
71 <h3>Paste Raw SGF</h3>
73 <form id="paste-form" action="php/upload.php" method="post">
74 <input type="hidden" name="type" value="paste">
75 <textarea name="sgf"></textarea>
76 <input type="submit" value="Upload">
81 <script type="text/javascript">
82 eidogo.util.addEvent(eidogo.util.byId('fetch-form'), "submit", function(evt) {
83 if (!(/http:\/\//.test(this.url.value))) {
84 this.url.value = "http://" + this.url.value;
86 location.href = "/#url:" + this.url.value;
87 eidogo.util.stopEvent(evt);
91 <?php include("footer.phtml"); ?>