Esempio n. 1
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
if ($ajaxtype == 'fieldparameter') {
    $fieldclass = getgpc('fieldclass');
    if ($fieldclass == 'num') {
    }
    $ajaxdata = fieldparameterhtml($fieldclass, $data);
}
Esempio n. 2
0
    if ($fieldtype == 'jsz') {
        $count = $sjznum;
    }
    if ($fieldtype == 'chl') {
        $count = $chlnum;
    }
    if ($count) {
        $multi = multi($count, $perpage, $page, $theurl);
    }
} elseif ($subop == 'fieldedit') {
    $fname = dhtmlspecialchars(trim($_GET['fname']));
    if (!submitcheck('submit')) {
        if ($fname) {
            list($fieldtype, $name) = explode("_", $fname);
            $field_info = C::t(GM('cheyouhui_field'))->fetch_all_by_fieldname($fname);
            $fieldparameterhtml = fieldparameterhtml($field_info['fieldclass'], dunserialize($field_info['fieldparameter']));
        }
    } else {
        $fieldname = dhtmlspecialchars(trim($_GET['fieldname']));
        $fieldtitle = dhtmlspecialchars(trim($_GET['fieldtitle']));
        $fieldtype = addslashes($_GET['fieldtype']);
        $fieldtips = dhtmlspecialchars(trim($_GET['fieldtips']));
        $fieldclass = dhtmlspecialchars(trim($_GET['fieldclass']));
        $fieldrequired = intval($_GET['isrequired']);
        $fielddisplayorder = intval($_GET['displayorder']);
        $fieldparameter = serialize($_GET['parameter']);
        if (!$fname) {
            if (!$fieldname) {
                showmessage(lang('plugin/yiqixueba', 'nofieldname'));
            }
            if (!$fieldtitle) {