public
Fork of economysizegeek/postie
Description: A plugin for WordPress that makes mobloging and blogging by email much much better
Homepage: http://postie.economysizegeek.com/
Clone URL: git://github.com/tedkulp/postie.git
Dirk Elmendorf (author)
Wed Apr 30 05:33:43 -0700 2008
commit  93cc7facaf1abb4f367d2bb6ccbbf151181fc65d
tree    edb304bdf6abe705dc64e0c7214938687623378c
parent  e3d1fcccc5f38eb13d451b1fc94332c3cafac1e1
postie / config_handler.php
100644 40 lines (37 sloc) 1.185 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* This file handles submissions from the config form
*/
    require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR ."postie-functions.php");
 
    if (isset($_POST["action"])) {
        switch($_POST["action"]) {
 
            case "reset":
                ResetPostieConfig();
                $message = 1;
                break;
            case "cronless":
                check_postie();
                $message = 1;
                break;
            case "test":
                $location = get_option('siteurl') . '/wp-admin/options-general.php?page=postie/postie_test.php';
                header("Location: $location\n\n");
                exit;
                break;
            case "config":
                if( UpdatePostieConfig($_POST)) {
                    $message = 1;
                }
                else {
                    $message = 2;
                }
                break;
            default:
                $message = 2;
                break;
        }
        $location = get_option('siteurl') . '/wp-admin/options-general.php?page=postie/postie.php';
        header("Location: $location&message=$message\n\n");
        exit();
    }
?>