Beispiel #1
0
function insert_cform($no = '', $custom = '', $c = '')
{
    global $post;
    $pid = cfget_pid();
    if (!$pid) {
        echo cforms($custom, $no . $c);
    } else {
        echo check_for_taf($no, $pid) ? cforms($custom, $no . $c) : '';
    }
}
Beispiel #2
0
function insert_cform($no = '', $custom = '', $c = '')
{
    global $post;
    $no = $no == '1' ? '' : $no;
    ### safety net
    $no = check_form_name($no);
    if (isset($_GET['pid'])) {
        $pid = $_GET['pid'];
    } else {
        if ($post->ID == 0) {
            $pid = false;
        } else {
            $pid = $post->ID;
        }
    }
    if (!$pid) {
        echo cforms($custom, $no . $c);
    } else {
        echo check_for_taf($no, $pid) ? cforms($custom, $no . $c) : '';
    }
}
Beispiel #3
0
function insert_custom_cform($fields = '', $no = '')
{
    global $post;
    if (isset($_GET['pid'])) {
        $pid = $_GET['pid'];
    } else {
        if ($post->ID == 0) {
            $pid = false;
        } else {
            $pid = $post->ID;
        }
    }
    if (!$pid) {
        cforms($fields, $no . '+');
    } else {
        echo check_for_taf($no, $pid) ? cforms($fields, $no . '+') : '';
    }
}