~eventum-developers/eventum/trunk

3858 by Elan Ruusamäe
- restructured
1
#!/usr/bin/php
1065 by mysql.com!jpm
(Logical change 1.382)
2
<?php
3172 by glen
Set utf-8 encoding for vim
3
/* vim: set expandtab tabstop=4 shiftwidth=4 encoding=utf-8: */
1065 by mysql.com!jpm
(Logical change 1.382)
4
// +----------------------------------------------------------------------+
5
// | Eventum - Issue Tracking System                                      |
6
// +----------------------------------------------------------------------+
3776 by glen
- copyright notice update
7
// | Copyright (c) 2003 - 2008 MySQL AB                                   |
8
// | Copyright (c) 2008 - 2009 Sun Microsystem Inc.                       |
1065 by mysql.com!jpm
(Logical change 1.382)
9
// |                                                                      |
10
// | This program is free software; you can redistribute it and/or modify |
11
// | it under the terms of the GNU General Public License as published by |
12
// | the Free Software Foundation; either version 2 of the License, or    |
13
// | (at your option) any later version.                                  |
14
// |                                                                      |
15
// | This program is distributed in the hope that it will be useful,      |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
18
// | GNU General Public License for more details.                         |
19
// |                                                                      |
20
// | You should have received a copy of the GNU General Public License    |
21
// | along with this program; if not, write to:                           |
22
// |                                                                      |
23
// | Free Software Foundation, Inc.                                       |
24
// | 59 Temple Place - Suite 330                                          |
25
// | Boston, MA 02111-1307, USA.                                          |
26
// +----------------------------------------------------------------------+
3017 by jesushatesjava.com!bryan/balsdorf
Charset change
27
// | Authors: João Prado Maia <jpm@mysql.com>                             |
1065 by mysql.com!jpm
(Logical change 1.382)
28
// +----------------------------------------------------------------------+
29
//
3776 by glen
- copyright notice update
30
// @(#) $Id: route_drafts.php 3823 2009-02-10 06:46:03Z glen $
3237 by glen
- keep newline between header and code to avoid silly indenting in vim
31
3858 by Elan Ruusamäe
- restructured
32
require_once 'init.php';
1065 by mysql.com!jpm
(Logical change 1.382)
33
34
$full_message = Misc::getInput();
1705 by mysql.com!bryan
Moved logic to class.
35
$return = Routing::route_drafts($full_message);
36
if (is_array($return)) {
37
    echo $return[1];
38
    exit($return[0]);
39
}