root/dev/mods/xajax/post.php @ 259

Revision 259, 1.7 KB (checked in by exi, 13 years ago)

Including the xajax mod into svn

Line 
1<?php
2require_once('common/includes/class.parser.php');
3require_once('common/includes/class.phpmailer.php');
4require_once('common/includes/class.kill.php');
5$page = new Page('Post killmail');
6$kb = new Killboard(KB_SITE);
7
8/* Setup xajax script */
9$patch_script = $xajax->getJavascript("mods/".$mod."/");
10$patch_script .= "<script>
11                                        xajax.callback.global.onRequest = function() {xajax.$('loading').style.display = 'block';}
12                                        xajax.callback.global.beforeResponseProcessing = function() {xajax.$('loading').style.display='none';}
13                                </script>";
14                               
15$page->setPatch_script($patch_script);
16/* Setup xajax script */
17
18
19if (!config::get('post_forbid'))
20{
21    $html .= "Paste the killmail from your EVEMail inbox into the box below. Make sure you post the <b>ENTIRE</b> mail.<br>Posting fake or otherwise edited mails is not allowed. All posts are logged.
22        <br><br>Remember to post your losses as well.<br><br>
23    <b>Killmail:</b><br>
24    <form id=\"postform\" name=\"postform\" onsubmit=\"return false;\" class=f_killmail>
25    <table>
26                <tr>
27                        <td>
28                                <textarea name=killmail id=killmail class=f_killmail cols=\"70\" rows=\"24\"></textarea>
29                        </td>
30                        <td>
31                                <div id=\"kill-response\" name=\"kill-response\"><br></div>
32                        </td>
33                </tr>
34        </table>
35        ";
36    if (!$page->isAdmin())
37    {
38        $html .= "<br><br><b>Password:</b><br><input id=password name=password type=password></input>";
39    }
40    $html .= "</form>";
41        $html .= "<input id=submit type=\"submit\" onclick=\"xajax_postMail(xajax.getFormValues('postform')); return false;\" \" value=\"Process !\"/>";
42   
43}
44else
45{
46    $html .= 'Posting killmails is disabled<br/>';
47}
48
49$page->setContent($html);
50$page->generate();
51?>
Note: See TracBrowser for help on using the browser.