<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); aheader(); backallow('lang') || amessage('no_apermission'); $types = array('email' => lang('Email'), 'pm' => lang('insitepm')); $url_type = 'langs'; include 'urlsarr.inc.php'; url_nav(lang('lanpackmanage'), $urlsarr, 'email'); if ($action == 'splangsedit') { $ftype = empty($ftype) ? '' : $ftype; $splangs = fetch_arr($ftype); if (!submitcheck('bsplangsedit')) { /* $ftypearr = array('' => lang('nolimittype')) + $types; $filterbox = lang('filtersplang').' '; $filterbox .= "<select style=\"vertical-align: middle;\" name=\"ftype\" onchange=\"redirect('?entry=splangs&action=splangsedit&ftype=' + this.options[this.selectedIndex].value);\">"; foreach($ftypearr as $k => $v){ $filterbox .= "<option value=\"$k\"".($ftype == $k ? ' selected' : '').">$v</option>"; } $filterbox .= "</select>"; tabheader($filterbox); tabfooter(); */ tabheader(lang('spltemadmin'), '', '', '7'); trcategory(array(lang('sn'), lang('splangcname'), lang('type'), lang('detail'))); $sn = 0; foreach ($splangs as $slid => $splang) { if (empty($ftype) || $ftype == $splang['type']) { $sn++; echo "<tr class=\"txt\">" . "<td class=\"txtC w40\">{$sn}</td>\n" . "<td class=\"txtL\">" . $splang['cname'] . "</td>\n" . "<td class=\"txtC w120\">" . $types[$splang['type']] . "</td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=splangs&action=splangdetail&slid={$slid}\">" . lang('edit') . "</a></td></tr>\n"; }
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); aheader(); backallow('cfmcommu') || amessage('no_apermission'); load_cache('grouptypes,currencys,rprojects,channels,permissions'); sys_cache('fieldwords'); load_cache('mtpls', $sid); include_once M_ROOT . "./include/fields.fun.php"; $cclassarr = array('score' => lang('score'), 'friend' => lang('friend'), 'flink' => lang('flink'), 'comment' => lang('comment'), 'reply' => lang('reply'), 'report' => lang('pickbug'), 'favorite' => lang('favorite')); $action = empty($action) ? 'mcommusedit' : $action; $url_type = 'mcufield'; include 'urlsarr.inc.php'; if ($action == 'mcommusedit') { $mcommus = fetch_arr(); if (!submitcheck('bmcommusedit')) { url_nav(lang('memberinterconfig'), $urlsarr, 'mcommu'); tabheader(lang('memcomitad'), 'mcommusedit', "?entry=mcommus&action=mcommusedit", '7'); trcategory(array(lang('delete'), lang('enable'), array(lang('item_name'), 'txtL'), lang('type'), array(lang('pick_url_style'), 'txtL'), lang('copy'), lang('edit'))); foreach ($mcommus as $cuid => $mcommu) { $cclass = $cclassarr[$mcommu['cclass']]; $pickurl = '{$mspaceurl}' . $mcommu['cclass'] . '.php?mid={mid}'; if ($mcommu['cclass'] == 'score') { $pickurl .= '&score=xx (xx-' . lang('score_amount') . ')'; } echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$cuid}]\" value=\"{$cuid}\"" . ($mcommu['issystem'] || $sid ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"mcommusnew[{$cuid}][available]\" value=\"1\"" . (empty($mcommu['available']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtL w200\"><input type=\"text\" size=\"30\" maxlength=\"30\" name=\"mcommusnew[{$cuid}][cname]\" value=\"{$mcommu['cname']}\"></td>\n" . "<td class=\"txtC w60\">{$cclass}</td>\n" . "<td class=\"txtL\">{$pickurl}</td>\n" . "<td class=\"txtC w30\">" . ($mcommu['ch'] ? "<a href=\"?entry=mcommus&action=mcommucopy&cuid={$cuid}\" onclick=\"return floatwin('open_mcommusedit',this)\">" . lang('copy') . "</a>" : '-') . "</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=mcommus&action=mcommudetail&cuid={$cuid}\" onclick=\"return floatwin('open_mcommusedit',this)\">" . lang('detail') . "</a></td></tr>\n"; } tabfooter('bmcommusedit', lang('modify')); a_guide('mcommusedit'); } else { if (!empty($delete)) {
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); aheader(); backallow('mcconfig') || amessage('no_apermission'); load_cache('acatalogs,channels,cotypes,commus,mcommus,matypes,inmurls,ucotypes'); $uclassarr = array('archives' => lang('archive_admin'), 'albums' => lang('openalbum'), 'comments' => lang('commentadmin'), 'replys' => lang('replyadmin'), 'areplys' => lang('areplyadmin'), 'answers' => lang('answeradmin'), 'offers' => lang('offeradmin'), 'arcadd' => lang('issuearchive'), 'mdetail' => lang('memberdetail'), 'farchives' => lang('freeinfo'), 'farcadd' => lang('issue_freeinfo'), 'mcomments' => lang('membercomment'), 'mreplys' => lang('memberreply'), 'amreplys' => lang('memberareply'), 'custom' => lang('customphp')); if (empty($uclass)) { $uclass = ''; } $uclass && ($param_suffix .= "&uclass={$uclass}"); $url_type = 'mcenter'; include 'urlsarr.inc.php'; if ($action == 'murlsedit') { url_nav(lang('mcenterconfig'), $urlsarr, 'mu', 10); $murls = fetch_arr($uclass); if (!submitcheck('bmurlsedit')) { $arr = array(); $uclassarr = array('' => lang('alltype')) + $uclassarr; foreach ($uclassarr as $k => $v) { $arr[] = $uclass == $k ? "<b>-{$v}-</b>" : "<a href=\"?entry=murls&action=murlsedit&uclass={$k}\">{$v}</a>"; } echo tab_list($arr, 10, 0); tabheader(lang('murl_admin') . " <a href=\"?entry=murls&action=murladd{$param_suffix}\">>>" . lang('add') . "</a>", 'murlsedit', "?entry=murls&action=murlsedit{$param_suffix}", '7'); trcategory(array(lang('delete'), lang('enable'), lang('cname'), lang('type'), lang('remark'), lang('order'), lang('url'), lang('copy'), lang('edit'))); foreach ($murls as $muid => $murl) { echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$muid}]\" value=\"{$muid}\"" . ($murl['issys'] ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"murlsnew[{$muid}][available]\" value=\"1\"" . ($murl['available'] ? ' checked' : '') . "></td>\n" . "<td class=\"txtC w100\"><input type=\"text\" size=\"10\" name=\"murlsnew[{$muid}][cname]\" value=\"{$murl['cname']}\"></td>\n" . "<td class=\"txtC w80\">" . @$uclassarr[$murl['uclass']] . "</td>\n" . "<td class=\"txtC w160\"><input type=\"text\" size=\"25\" name=\"murlsnew[{$muid}][remark]\" value=\"{$murl['remark']}\"></td>\n" . "<td class=\"txtC w60\"><input type=\"text\" size=\"4\" name=\"murlsnew[{$muid}][vieworder]\" value=\"{$murl['vieworder']}\"></td>\n" . "<td class=\"txtL\">{$murl['url']}</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=murls&action=murlcopy&muid={$muid}\" onclick=\"return floatwin('open_murlsedit',this)\">" . lang('copy') . "</a></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=murls&action=murldetail&muid={$muid}\" onclick=\"return floatwin('open_murlsedit',this)\">" . lang('detail') . "</a></td></tr>\n"; } tabfooter('bmurlsedit', lang('modify')); a_guide('murlsedit'); } else {
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); aheader(); backallow('tpl') || amessage('no_apermission'); load_cache('bnames'); load_cache('sptpls', $sid); include_once M_ROOT . "./include/template.fun.php"; $dbtpls = fetch_arr(); $true_tpldir = M_ROOT . "./template/{$templatedir}"; mmkdir($true_tpldir); $url_type = 'tpl'; include 'urlsarr.inc.php'; if ($action == 'sptplsedit') { url_nav(lang('tplallconfig'), $urlsarr, 'futpl', 12); if (!submitcheck('bsptplsedit')) { tabheader(lang('sppagemana'), 'sptplsedit', "?entry=sptpls&action=sptplsedit{$param_suffix}", '5'); trcategory(array(lang('sn'), lang('pagecname'), lang('pick_url_style'), lang('templatefile'), lang('content'))); $no = 0; foreach ($dbtpls as $k => $v) { $no++; echo "<tr class=\"txt\">" . "<td class=\"txtC w30\">{$no}</td>\n" . "<td class=\"txtL\">{$v['cname']}</td>\n" . "<td class=\"txtL\">{$v['link']}</td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"20\" name=\"sptplsnew[{$k}][tplname]\" value=\"" . (empty($sptpls[$k]) ? '' : $sptpls[$k]) . "\"></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=sptpls&action=sptpldetail&spid={$k}{$param_suffix}\" onclick=\"return floatwin('open_sptplsedit',this)\">" . lang('edit') . "</a></td></tr>\n"; } tabfooter('bsptplsedit', lang('modify')); a_guide('sptplsedit'); } else { foreach ($dbtpls as $k => $v) { $sptplsnew[$k]['tplname'] = trim($sptplsnew[$k]['tplname']); if (preg_match("/[^a-z_A-Z0-9\\.]+/", $sptplsnew[$k]['tplname'])) { $sptplsnew[$k]['tplname'] = ''; }
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); aheader(); backallow('sitemap') || amessage('no_apermission'); load_cache('catalogs,cotypes,channels'); if ($action == 'sitemapsedit') { $sitemaps = fetch_arr(); if (!submitcheck('bsitemapsedit')) { tabheader(lang('sitepageadmin'), 'sitemapsedit', "?entry=sitemaps&action=sitemapsedit", '8'); trcategory(array(lang('available'), lang('sitemapcname'), lang('dynamicurl'), lang('xmlurl'), lang('setting'), lang('create'))); foreach ($sitemaps as $ename => $sitemap) { echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"sitemapsnew[{$ename}][available]\" value=\"1\"" . (empty($sitemap['available']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtL\">" . mhtmlspecialchars($sitemap['cname']) . "</td>\n" . "<td class=\"txtL\">" . ($cms_abs . $sitemap['d_url']) . "</td>\n" . "<td class=\"txtL\">" . ($cms_abs . $sitemap['xml_url']) . "</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=sitemaps&action=sitemapdetail&ename={$ename}\">" . lang('setting') . "</a></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=sitemaps&action=sitemapcreate&ename={$ename}\">" . lang('create') . "</a></td></tr>\n"; } tabfooter('bsitemapsedit'); a_guide('sitemapsedit'); } else { foreach ($sitemaps as $ename => $sitemap) { $sitemap['available'] = empty($sitemapsnew[$ename]['available']) ? 0 : 1; $db->query("UPDATE {$tblprefix}sitemaps SET available='{$sitemap['available']}' WHERE ename='{$ename}'"); } updatecache('sitemaps'); amessage('sitmodfin', "?entry=sitemaps&action=sitemapsedit"); } } elseif ($action == 'sitemapdetail' && $ename) { $sitemap = fetch_one($ename); empty($sitemap) && amessage('choosesite', '?entry=sitemaps&action=sitemapsedit'); if ($ename == 'baidu') { $chids = array(); foreach ($channels as $chid => $channel) { $channel['baidu'] && ($chids[$chid] = $channel['cname']);
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); aheader(); backallow('channel') || amessage('no_apermission'); load_cache('initfields,rprojects,commus,cotypes,permissions,inurls,inmurls'); $channels = fetch_arr(); sys_cache('fieldwords'); load_cache('mtpls', $sid); cache_merge($channels, 'channels', $sid); include_once M_ROOT . "./include/fields.fun.php"; include_once M_ROOT . "./include/commu.fun.php"; if ($action == 'channeledit') { if (!$sid) { $url_type = 'channel'; include 'urlsarr.inc.php'; url_nav(lang('achannel'), $urlsarr, 'channel'); } if (!submitcheck('bchanneledit')) { $cuidsarr = cuidsarr('answer') + cuidsarr('purchase'); tabheader(lang('channel_manager') . ($sid ? '' : " >><a href=\"?entry=channels&action=channeladd\">" . lang('add') . "</a>"), 'channeledit', "?entry=channels&action=channeledit{$param_suffix}", '10'); trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('id'), array(lang('channel_name'), 'txtL'), array(lang('remark'), 'txtL'), lang('available'), lang('order'), lang('ut_commu'), lang('admin'), lang('album'), lang('delete'), lang('copy'), lang('edit'))); foreach ($channels as $k => $channel) { $cuidstr = empty($cuidsarr[$channel['cuid']]) ? '-' : $cuidsarr[$channel['cuid']]; echo "<tr class=\"txt\">" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$k}]\" value=\"{$k}\">") . "</td>\n" . "<td class=\"txtC w30\">{$k}</td>\n" . "<td class=\"txtL\">" . ($sid ? "{$channel['cname']}" : "<input type=\"text\" size=\"15\" maxlength=\"30\" name=\"channelnew[{$k}][cname]\" value=\"{$channel['cname']}\">") . "</td>\n" . "<td class=\"txtL\">" . ($sid ? "{$channel['remark']}" : "<input type=\"text\" size=\"30\" maxlength=\"30\" name=\"channelnew[{$k}][remark]\" value=\"{$channel['remark']}\">") . "</td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"channelnew[{$k}][available]\" value=\"1\"" . ($channel['available'] ? " checked" : "") . "></td>\n" . "<td class=\"txtC w40\">" . ($sid ? "{$channel['vieworder']}" : "<input type=\"text\" size=\"4\" maxlength=\"4\" name=\"channelnew[{$k}][vieworder]\" value=\"{$channel['vieworder']}\">") . "</td>\n" . "<td class=\"txtC\">{$cuidstr}</td>\n" . "<td class=\"txtC w30\">" . (empty($channel['userforbidadd']) ? '-' : 'Y') . "</td>\n" . "<td class=\"txtC w30\">" . (empty($channel['isalbum']) ? '-' : 'Y') . "</td>\n" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<a href=\"?entry=channels&action=channeldel&chid={$channel['chid']}\">" . lang('delete') . "</a>") . "</td>\n" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<a href=\"?entry=channels&action=channelcopy&chid={$channel['chid']}\" onclick=\"return floatwin('open_channeledit',this)\">" . lang('copy') . "</a>") . "</td>\n" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<a href=\"?entry=channels&action=channeldetail&chid={$channel['chid']}{$param_suffix}\" onclick=\"return floatwin('open_channeledit',this)\">" . lang('detail') . "</a>") . "</td>\n" . "</tr>\n"; } if (!$sid) { tabfooter(); tabheader(lang('operate_item') . viewcheck('viewdetail', 0, $actionid . 'tbodyfilter')); echo "<tbody id=\"{$actionid}tbodyfilter\" style=\"display:none\">"; $itemsarr = array();