当前位置: 首页>>代码示例>>PHP>>正文


PHP ifcheck函数代码示例

本文整理汇总了PHP中ifcheck函数的典型用法代码示例。如果您正苦于以下问题:PHP ifcheck函数的具体用法?PHP ifcheck怎么用?PHP ifcheck使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ifcheck函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ObHeader

<?php

/**
 * 云搜索后台管理
 * @author L.IuHu.I@2011 developer.liuhui@gmail.com
 */
require_once R_P . 'lib/cloudwind/cloudwind.class.php';
$_service = CloudWind::getPlatformCheckServerService();
if ($_service->checkCloudWind() < 9) {
    ObHeader($admin_file . '?adminjob=yunbasic');
}
if (!$_service->getSiteScale()) {
    Showmsg('亲,您的站点现在没有搜索负载压力,过段时间再开启云搜索吧亲~');
}
if (!$db_yunsearch_search) {
    if ($_POST['step'] == 2) {
        CLOUDWIND_SECURITY_SERVICE::gp(array('db_yunsearch_search'), 'P', 2);
        setConfig('db_yunsearch_search', $db_yunsearch_search);
        updatecache_c();
        Showmsg('云搜索设置成功 ');
    }
    ifcheck($db_yunsearch_search, 'yunsearch_search');
}
$yunManageUrl = $_service->getYunSearchManageUrl();
include PrintEot('yunsearch');
开发者ID:jechiy,项目名称:PHPWind,代码行数:25,代码来源:yunsearch.php

示例2: exit

<?php

!function_exists('adminmsg') && exit('Forbidden');
$basename = "{$admin_file}?adminjob=ipban&job=ipstates";
if ($action != 'submit' && $action != 'ipIndex') {
    ifcheck($db_ipstates, 'ipstates');
    include PrintEot('ipstates');
} elseif ($_POST['action'] == "submit") {
    S::gp(array('ipstates'), 'P');
    setConfig('db_ipstates', $ipstates);
    updatecache_c();
    $navConfigService = L::loadClass('navconfig', 'site');
    $navConfigService->controlShowByKey('sort_ipstate', $ipstates);
    adminmsg('operate_success');
} elseif ($action == "ipIndex") {
    $ipTable = L::loadClass('IPTable', 'utility');
    $ipTable->createIpIndex();
    adminmsg('operate_success');
}
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:19,代码来源:ipstates.php

示例3: while

     while ($rt = $db->fetch_array($query)) {
         $rt['keyword'] = str_replace($keyword, '<em class="s1">' . $keyword . '</em>', $rt['keyword']);
         $rt['endtime'] = get_date($rt['endtime'], 'Y-m-d');
         $adverts[$rt['id']] = $rt;
     }
 } elseif ($job == 'add') {
     $advert = array('starttime' => get_date($timestamp, 'Y-m-d'), 'endtime' => get_date($timestamp + 31536000, 'Y-m-d'));
     $ifshow_Y = 'checked';
     $advert['orderby'] = 0;
     $showddate = '';
 } elseif ($job == 'edit') {
     s::gp(array('id'));
     $advert = $db->get_one("SELECT * FROM pw_searchadvert WHERE id=" . s::sqlEscape($id));
     !$advert && adminmsg('advert_id_error');
     $advert['skey'] = $advert['keyword'];
     ifcheck($advert['ifshow'], 'ifshow');
     $advert['starttime'] = get_date($advert['starttime'], 'Y-m-d');
     $advert['endtime'] = get_date($advert['endtime'], 'Y-m-d');
     $config = unserialize($advert['config']);
     $config['ddate'] = $config['ddate'] ? str_replace(',', ':true,', $config['ddate']) . ':true' : '';
     $config['dweek'] = $config['dweek'] ? str_replace(',', ':true,', $config['dweek']) . ':true' : '';
     $config['dtime'] = $config['dtime'] ? str_replace(',', ':true,', $config['dtime']) . ':true' : '';
     if ($config['ddate'] || $config['dweek'] || $config['dtime']) {
         $showddate = "{days:{" . $config['ddate'] . "},weeks:{" . $config['dweek'] . "},hours:{" . $config['dtime'] . "}}";
     } else {
         $showddate = '';
     }
 } elseif ($job == 'save') {
     s::gp(array('id', 'advert', 'ddate', 'dweek', 'dtime'));
     $id = intval($id);
     $basename .= $id ? "&job=edit&id={$id}" : "";
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:searcher.php

示例4: empty

     $isDefault = '';
     if ($id) {
         $cate = $db->get_one("SELECT * FROM pw_advert WHERE type=0 AND id=" . S::sqlEscape($id));
         empty($cate) && adminmsg('advert_id_error', "{$basename}&action={$action}");
         $cate['id'] < 100 && ($isDefault = 'disabled');
         list($cate['name'], $cate['descrip']) = explode("~\t~", $cate['descrip']);
         $cate['config'] = unserialize($cate['config']);
         $cate['ifhire'] = $cate['uid'];
     }
     if ($cate['config']['display']) {
         ${'display_' . $cate['config']['display']} = 'checked';
     } else {
         $display_rand = 'checked';
     }
     ifcheck($cate['ifshow'], 'ifshow');
     ifcheck($cate['ifhire'], 'ifhire');
 } elseif ($_POST['step'] == 2) {
     S::gp(array('config', 'id'));
     $id = (int) $id;
     if ((!$id || $id >= 100) && !preg_match('/^([a-zA-Z0-9_.]{1,32})$/i', $config['ckey'])) {
         adminmsg('advert_ckey_error', "{$basename}&action={$action}&job=edit");
     }
     if ($config['ifhire'] && !$credit->check($config['creditype'])) {
         adminmsg('advert_creditype_error');
     }
     if ($id) {
         $rt = $db->get_one("SELECT id,ckey FROM pw_advert WHERE type=0 AND id=" . S::sqlEscape($id));
         empty($rt) && adminmsg('advert_id_error', "{$basename}&action={$action}");
         if ($rt['id'] < 100 && strtolower($rt['ckey']) != strtolower($config['ckey'])) {
             $rt = $db->get_one("SELECT id,ckey FROM pw_advert WHERE type=0 AND ckey=" . S::sqlEscape($config['ckey']));
             !empty($rt) && adminmsg('advert_ckey_exists', "{$basename}&action={$action}");
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:setadvert.php

示例5: elseif

 $replayorder_asc = $replayorder_desc = '';
 if ($forumset['replayorder'] == '1') {
     $replayorder_asc = 'selected';
 } elseif ($forumset['replayorder'] == '2') {
     $replayorder_desc = 'selected';
 } else {
     $replayorder_asc = 'selected';
 }
 $name = str_replace(array('<', '>', '"', "'"), array("&lt;", "&gt;", "&quot;", "&#39;"), $name);
 $descrip = str_replace(array('<', '>'), array("&lt;", "&gt;"), $descrip);
 ifcheck($viewsub, 'viewsub');
 ifcheck($allowhide, 'allowhide');
 ifcheck($allowsell, 'allowsell');
 ifcheck($copyctrl, 'copyctrl');
 ifcheck($showsub, 'showsub');
 ifcheck($ifhide, 'ifhide');
 $logotype = !empty($logo) && strpos($logo, 'http://') === false && file_exists($attachdir . '/' . $logo) ? 'upload' : 'url';
 $logotype == 'upload' ? $logotype_upload = 'checked' : ($logotype_url = 'checked');
 $logotype == 'upload' && ($logo = '');
 ${'check_' . $f_check} = 'checked';
 $ftype[$f_type] = 'selected';
 $fup_forumcache = str_replace("<option value=\"{$fup}\">", "<option value=\"{$fup}\" selected>", $fup_forumcache);
 $usergroup = "<table cellspacing='0' cellpadding='0' border='0' width='100%' align='center'><tr>";
 foreach ($ltitle as $key => $value) {
     if ($key == 1 || $key == 2) {
         continue;
     }
     $htm_tr = '';
     $num++;
     $num % 5 == 0 ? $htm_tr = '</tr><tr>' : '';
     $usergroup .= "<td><input type='checkbox' name='permit[]' value='{$key}' _{$key}_>{$value}</td>{$htm_tr}";
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:setforum.php

示例6: elseif

    }
} elseif ($action == 'edittopic') {
    define('AJAX', 1);
    if (empty($_POST['step'])) {
        $ajax_basename_add = EncodeUrl($basename . "&action=edittopic&");
        $selectmodel = '';
        $topic = $db->get_one("SELECT cateid,name,ifable,vieworder,ifdel FROM pw_topiccate WHERE cateid=" . S::sqlEscape($cateid));
        $query = $db->query("SELECT name,modelid,cateid,ifable FROM pw_topicmodel WHERE cateid=" . S::sqlEscape($cateid));
        while ($rt = $db->fetch_array($query)) {
            $checked = '';
            if ($rt['ifable']) {
                $checked = 'checked';
            }
            $selectmodel .= "<span class=\"mr15 w fl\"><input style=\"vertical-align:middle;\" type=\"checkbox\" name=\"modelid[{$rt['modelid']}]\" value=\"{$rt['ifable']}\" {$checked}>{$rt['name']}</span>";
        }
        ifcheck($topic['ifable'], 'ifable');
        include PrintEot('topiccate');
        ajax_footer();
    } elseif ($_POST['step'] == 2) {
        S::gp(array('name'));
        S::gp(array('ifable', 'vieworder'), 'P', 2);
        $name = trim(ieconvert($name));
        if (!$name || strlen($name) > 14) {
            adminmsg('topic_name');
        }
        $rt = $db->get_one("SELECT cateid FROM pw_topiccate WHERE name=" . S::sqlEscape($name));
        $rt['cateid'] != $cateid && $rt['cateid'] && adminmsg('topic_name_exist');
        $db->update("UPDATE pw_topiccate" . " SET " . S::sqlSingle(array('name' => $name, 'ifable' => $ifable, 'vieworder' => $vieworder)) . " WHERE cateid=" . S::sqlEscape($cateid));
        !is_array($modelid) && ($modelid = array());
        $updatedb = array();
        foreach ($modelid as $key => $value) {
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:topiccate.php

示例7: ObHeader

$_service = CloudWind::getPlatformCheckServerService();
if ($_service->checkCloudWind() < 9) {
    ObHeader($admin_file . '?adminjob=yunbasic');
}
CLOUDWIND_SECURITY_SERVICE::gp(array('action'));
if (empty($action)) {
    if ($_POST['step'] == 2) {
        CLOUDWIND_SECURITY_SERVICE::gp(array('db_yundefend_shield', 'db_yundefend_shieldpost', 'db_yundefend_shielduser'), 'P', 2);
        setConfig('db_yundefend_shield', $db_yundefend_shield);
        setConfig('db_yundefend_shieldpost', $db_yundefend_shieldpost);
        setConfig('db_yundefend_shielduser', $db_yundefend_shielduser);
        updatecache_c();
        Showmsg('云盾设置成功 ');
    }
    ifcheck($db_yundefend_shield, 'yundefend_shield');
    ifcheck($db_yundefend_shieldpost, 'yundefend_shieldpost');
    ${'yundefend_shielduser_' . intval($db_yundefend_shielduser)} = 'checked="checked"';
    $dundescribe = $_service->getDunDescribe();
    $current['config'] = 'current';
} elseif ($action == 'verify') {
    CLOUDWIND_SECURITY_SERVICE::gp(array('page'));
    $page = $page > 1 ? intval($page) : 1;
    $postVerifyService = CloudWind::getDefendPostVerifyService();
    if ($_POST['step'] == 2) {
        CLOUDWIND_SECURITY_SERVICE::gp(array('ids'));
        foreach ($ids as $key => $operate) {
            list($tid, $pid) = explode("_", $key);
            $postVerifyService->verify($operate, $tid, $pid);
        }
        Showmsg('云盾审核成功 ', $basename . "&action=verify&page=" . $page);
    }
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:yundefend.php

示例8: unserialize

 if (empty($_POST['step'])) {
     require_once R_P . 'require/credit.php';
     !is_array($creditset = unserialize($o_weibo_creditset)) && ($creditset = array());
     $creditlog = array();
     !is_array($weibo_creditlog = unserialize($o_weibo_creditlog)) && ($weibo_creditlog = array());
     foreach ($weibo_creditlog as $key => $value) {
         foreach ($value as $k => $v) {
             $creditlog[$key][$k] = 'CHECKED';
         }
     }
     ifcheck($o_weibopost, 'weibopost');
     ifcheck($o_weibophoto, 'weibophoto');
     ifcheck($o_weibourl, 'weibourl');
     ifcheck($o_weibo_hottopicdays, 'weibo_hottopicdays');
     ifcheck($o_weibo_hotcommentdays, 'weibo_hotcommentdays');
     ifcheck($o_weibo_hottransmitdays, 'weibo_hottransmitdays');
     $creategroup = '';
     $num = 0;
     foreach ($ltitle as $key => $value) {
         if ($key != 1 && $key != 2 && $key != '6' && $key != '7' && $key != '3') {
             $num++;
             $htm_tr = $num % 4 == 0 ? '' : '';
             $g_checked = strpos($o_weibo_groups, ",{$key},") !== false ? 'checked' : '';
             $creategroup .= "<li><input type=\"checkbox\" name=\"groups[]\" value=\"{$key}\" {$g_checked}>{$value}</li>{$htm_tr}";
         }
     }
     $creategroup && ($creategroup = "<ul class=\"list_A list_120 cc\">{$creategroup}</ul>");
     require_once PrintApp('admin');
 } else {
     S::gp(array('creditset', 'creditlog', 'weibophoto', 'weibopost', 'weibourl', 'weibotip', 'weibo_hottopicdays', 'weibo_hotcommentdays', 'weibo_hotfansdays', 'weibo_hottransmitdays'), 'GP');
     S::gp(array('groups'), 'GP', 2);
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:admin.php

示例9: exit

<?php

!function_exists('adminmsg') && exit('Forbidden');
if (!$action) {
    ifcheck($db_pptifopen, 'ifopen');
    ifcheck($db_pptcmode, 'cmode');
    ${'type_' . $db_ppttype} = 'checked';
    if ($db_ppttype == 'server') {
        $style_server = "";
        $style_client = "display:none;";
    } else {
        $style_server = "display:none;";
        $style_client = "";
    }
    $credit = array('rvrc' => $db_rvrcname, 'money' => $db_moneyname, 'credit' => $db_creditname, 'currency' => $db_currencyname);
    include PrintHack('admin');
    exit;
} else {
    S::gp(array('config', 'ppt_credit', 'ppturls'), 'P');
    $config['db_pptcredit'] = implode(',', $ppt_credit);
    foreach ($config as $key => $value) {
        setConfig($key, $value);
    }
    updatecache_c();
    adminmsg("operate_success");
}
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:26,代码来源:admin.php

示例10: array

include D_P . 'data/sql_config.php';
!is_array($manager) && ($manager = array());
!is_array($manager_pwd) && ($manager_pwd = array());
$newmanager = $newmngpwd = array();
foreach ($manager as $key => $value) {
    if (!empty($value) && !is_array($value)) {
        $newmanager[$key] = $value;
        $newmngpwd[$key] = $manager_pwd[$key];
    }
}
$manager = $newmanager;
$manager_pwd = $newmngpwd;
unset($newmanager, $newmngpwd);
InitGP(array('oldname', 'username', 'password'));
if (!$action) {
    ifcheck($db_adminrecord, 'adminrecord');
    include PrintEot('manager');
    exit;
} elseif ($action == 'add') {
    if (!$username || !$password) {
        adminmsg('manager_empty');
    }
    if (GetGP('check_pwd') != $password) {
        adminmsg('password_confirm');
    }
    if (str_replace(array('\\', '&', ' ', "'", '"', '/', '*', ',', '<', '>', "\r", "\t", "\n", '#'), '', $username) != $username) {
        adminmsg('manager_errorusername');
    }
    if (str_replace(array('\\', '&', ' ', "'", '"', '/', '*', ',', '<', '>', "\r", "\t", "\n", '#'), '', $password) != $password) {
        adminmsg('manager_errorpassword');
    }
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:manager.php

示例11: updatecache_conf

        }
        $cacheFlag && updatecache_conf('o', true);
        adminmsg('operate_success');
    } else {
        $hot_userGroup = '';
        $num = '';
        foreach ($ltitle as $key => $value) {
            if (!in_array($key, array(1, 2, 6, 7))) {
                $num++;
                $tr = $num % 4 == 0 ? '</tr><tr>' : '';
                $checked = strpos($o_hot_groups, "," . $key . ",") !== false ? 'checked' : '';
                $hot_userGroup .= "<td><input type=\"checkbox\" name=\"hot_userGroup[]\" value=\"{$key}\" " . $checked . " /> {$value} </td>" . $tr;
            }
        }
        $hot_userGroup && ($hot_userGroup = "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" align=\"center\"><tr>{$hot_userGroup}</tr></table>");
        ifcheck($o_hot_open, "hot_open");
    }
} elseif ($action == "hotTypeSet") {
    InitGP(array('updateAll'), 'GP');
    if ($updateAll == "updateAll") {
        InitGP(array('fTime', 'fType', 'active', 'sort', 'type_name', 'display'));
        $query = $db->query("SELECT * FROM pw_modehot ORDER BY id");
        $num = 0;
        while ($rt = $db->fetch_array($query)) {
            $num++;
            $sql = "";
            $flag = false;
            $filterTypeData = (array) unserialize($rt["filter_type"]);
            $filterTimeData = (array) unserialize($rt["filter_time"]);
            if ($sort[$rt["id"]] != "" && !is_numeric($sort[$rt["id"]])) {
                $basename = "javascript:history.go(-1);";
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:admin.php

示例12: implode

        $db_sitemsg['reply'] = implode("\n", $db_sitemsg['reply']);
    }
    if ($admintype == 'wap' || $settingdb['wap']) {
        $showforums = '';
        $num = 0;
        $query = $db->query("SELECT fid,name FROM pw_forums WHERE type<>'category' AND allowvisit='' AND f_type!='hidden' AND cms='0'");
        while ($rt = $db->fetch_array($query, MYSQL_NUM)) {
            $num++;
            $htm_tr = $num % 2 == 0 ? '</tr><tr>' : '';
            $forumscked = strpos(',' . $db_wapfids . ',', ',' . $rt[0] . ',') !== false ? 'CHECKED' : '';
            $showforums .= '<td><input type="checkbox" name="wapfids[]" value="' . $rt[0] . '" ' . $forumscked . '>' . $rt[1] . '</td>' . $htm_tr;
        }
        $showforums && ($showforums = '<table cellspacing="0" cellpadding="0" border="0" width="100%" align="center"><tr>' . $showforums . '</tr></table>');
        $db_waplimit = (int) $db_waplimit;
        ifcheck($db_wapifopen, 'wapifopen');
        ifcheck($db_wapcharset, 'wapcharset');
    }
    $display = '';
    if ($action) {
        ${'cls_' . $action} = 'class="two"';
        $display = 'none';
    }
    //checkemail
    if ($ml_mailifopen == 1) {
        $ajax_basename = EncodeUrl($basename);
    }
    include PrintEot('setting');
    exit;
} else {
    InitGP(array('config'), 'P', 0);
    if (!pwWritable(D_P . 'data/bbscache/config.php') && !chmod(D_P . 'data/bbscache/config.php', 0777)) {
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:settings.php

示例13: exit

<?php

!function_exists('adminmsg') && exit('Forbidden');
@(include_once D_P . 'data/bbscache/o_config.php');
if (empty($_POST['step'])) {
    ifcheck($o_invite, 'invite');
    ifcheck($o_browseopen, 'browseopen');
    for ($i = 0; $i < 10; $i++) {
        ${'browse_' . $i} = $o_browse & pow(2, $i) ? 'CHECKED' : '';
        ${'indexset_' . $i} = $o_indexset & pow(2, $i) ? 'CHECKED' : '';
    }
    require_once PrintMode('global');
} else {
    InitGP(array('config', 'browse', 'indexset'), 'GP', 2);
    $config['browse'] = !empty($browse) ? intval(array_sum($browse)) : 0;
    $config['indexset'] = !empty($indexset) ? intval(array_sum($indexset)) : 0;
    $updatecache = false;
    foreach ($config as $key => $value) {
        if (${'o_' . $key} != $value) {
            $db->pw_update('SELECT hk_name FROM pw_hack WHERE hk_name=' . pwEscape("o_{$key}"), 'UPDATE pw_hack SET ' . pwSqlSingle(array('hk_value' => $value, 'vtype' => 'string')) . ' WHERE hk_name=' . pwEscape("o_{$key}"), 'INSERT INTO pw_hack SET ' . pwSqlSingle(array('hk_name' => "o_{$key}", 'vtype' => 'string', 'hk_value' => $value)));
            $updatecache = true;
        }
    }
    $updatecache && updatecache_conf('o', true);
    adminmsg('operate_success');
}
开发者ID:adi00,项目名称:wumaproject,代码行数:26,代码来源:global.php

示例14: updatecache_conf

        updatecache_conf('nf', false, 'newinfo_config.php');
        adminmsg('operate_success', "{$basename}&action=rebang");
    } elseif ($_POST['job'] == 'config') {
        InitGP(array('newinfoifopen', 'position', 'titlelen', 'shownum'), 'P');
        $newinfoifopen = $newinfoifopen ? '1' : '0';
        $nf_config['position'] = (int) $position ? (int) $position : '1';
        $nf_config['titlelen'] = (int) $titlelen ? (int) $titlelen : '25';
        $nf_config['shownum'] = (int) $shownum ? (int) $shownum : '7';
        setConfig('db_newinfoifopen', $newinfoifopen);
        setConfig('nf_config', $nf_config);
        updatecache_c();
        updatecache_conf('nf', false, 'newinfo_config.php');
        adminmsg('operate_success', "{$basename}&action=rebang");
    } else {
        uasort($nf_order, 'orderCmp');
        ifcheck($db_newinfoifopen, 'newinfoifopen');
        $nf_config['position'] ? ${'position_' . $nf_config['position']} = 'checked' : ($position_1 = 'checked');
        !$nf_config['titlelen'] && ($nf_config['titlelen'] = '25');
        !$nf_config['shownum'] && ($nf_config['shownum'] = '7');
        include PrintEot('rebang');
        exit;
    }
} elseif ($action == 'update') {
    !$nf_config['shownum'] && ($nf_config['shownum'] = '7');
    !$nf_config['titlelen'] && ($nf_config['titlelen'] = '24');
    $t = array('hours' => gmdate('G', $timestamp + $db_timedf * 3600));
    $tdtime = PwStrtoTime(get_date($timestamp, 'Y-m-d'));
    $montime = PwStrtoTime(get_date($timestamp, 'Y-m') . "-1");
    $element = L::loadClass('element');
    $element->setDefaultNum($nf_config['shownum']);
    foreach ($nf_order as $key => $val) {
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:rebang.php

示例15: exit

<?php

!function_exists('adminmsg') && exit('Forbidden');
//* @include_once pwCache::getPath(D_P.'data/bbscache/o_config.php');
pwCache::getData(D_P . 'data/bbscache/o_config.php');
if (empty($action)) {
    if (empty($_POST['step'])) {
        require_once R_P . 'require/credit.php';
        !in_array($o_mkdir, array(1, 2, 3)) && ($o_mkdir = 1);
        ${'mkdir' . $o_mkdir} = 'checked';
        ifcheck($db_phopen, 'phopen');
        ifcheck($o_photos_gdcheck, 'photos_gdcheck');
        ifcheck($o_photos_qcheck, 'photos_qcheck');
        $maxuploadsize = @ini_get('upload_max_filesize');
        $creategroup = '';
        $num = 0;
        foreach ($ltitle as $key => $value) {
            if ($key != 1 && $key != 2 && $key != '6' && $key != '7' && $key != '3') {
                $num++;
                $htm_tr = $num % 4 == 0 ? '' : '';
                $g_checked = strpos($o_photos_groups, ",{$key},") !== false ? 'checked' : '';
                $creategroup .= "<li><input type=\"checkbox\" name=\"groups[]\" value=\"{$key}\" {$g_checked}>{$value}</li>{$htm_tr}";
            }
        }
        $creategroup && ($creategroup = "<ul class=\"list_A list_120 cc\">{$creategroup}</ul>");
        !is_array($creditset = unserialize($o_photos_creditset)) && ($creditset = array());
        $creditlog = array();
        !is_array($photos_creditlog = unserialize($o_photos_creditlog)) && ($photos_creditlog = array());
        foreach ($photos_creditlog as $key => $value) {
            foreach ($value as $k => $v) {
                $creditlog[$key][$k] = 'CHECKED';
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:set.php


注:本文中的ifcheck函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。