本文整理汇总了PHP中getuserdiydata函数的典型用法代码示例。如果您正苦于以下问题:PHP getuserdiydata函数的具体用法?PHP getuserdiydata怎么用?PHP getuserdiydata使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getuserdiydata函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: space_merge
space_merge($space, 'field_home');
if (submitcheck('savespaceinfosubmit')) {
$spacename = getstr($_POST['spacename'], 30, 1, 1);
$spacedescription = getstr($_POST['spacedescription'], 135, 1, 1);
$setarr = array();
$setarr['spacename'] = $spacename;
$setarr['spacedescription'] = $spacedescription;
DB::update('common_member_field_home', $setarr, "uid = {$_G['uid']}");
$space['spacename'] = $spacename;
$space['spacedescription'] = $spacedescription;
}
} elseif ($op == 'getspaceinfo') {
space_merge($space, 'field_home');
} elseif ($op == 'getpersonalnv') {
space_merge($space, 'field_home');
getuserdiydata($space);
$personalnv = isset($_G['blockposition']['nv']) ? $_G['blockposition']['nv'] : '';
if ($personalnv && !empty($_GET['show'])) {
$personalnv['nvhidden'] = 0;
}
}
if (submitcheck('blocksubmit')) {
$blockname = getstr($_GET['blockname'], 15, 0, 1);
if (check_ban_block($blockname, $space)) {
space_merge($space, 'field_home');
$blockdata = unserialize($space['blockposition']);
$title = getstr($_POST['blocktitle'], 50, 1, 1);
$blockdata['parameters'][$blockname]['title'] = $title;
if (in_array($blockname, array('block1', 'block2', 'block3', 'block4', 'block5'))) {
$content = censor(getstr($_POST['content'], 1000, 1, 0, 0, 1));
$blockdata['parameters'][$blockname]['content'] = stripslashes($content);
示例2: if
<div class="y">
<a href="member.php?mod=<?php echo $_G['setting']['regname'];?>"><?php echo $_G['setting']['reglinkname'];?></a>
<a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">登录</a>
</div>
<?php } ?>
<div class="z">
<a href="./" title="<?php echo $_G['setting']['bbname'];?>" class="xw1"><?php echo $_G['setting']['bbname'];?></a>
<a href="home.php?mod=space&do=home" id="navs" class="showmenu" onmouseover="showMenu(this.id);">返回首页</a>
</div>
</div>
<?php if($space['status'] == -1 && $_G['adminid'] == 1 ) { ?>
<p class="ptw xw1 xi1 hm"><img src="<?php echo IMGDIR;?>/locked.gif" alt="Locked" class="vm" /> 提示: 作者被禁止或删除 内容自动屏蔽,只有管理员可见</p>
<?php } ?>
<div id="hd" class="wp cl">
<h2 id="spaceinfoshow"><?php space_merge($space, 'field_home'); $space[domainurl] = space_domain($space);getuserdiydata($space);$personalnv = isset($_G['blockposition']['nv']) ? $_G['blockposition']['nv'] : '';?><strong id="spacename" class="mbn">
<?php if($space['spacename']) { ?><?php echo $space['spacename'];?><?php } else { ?><?php echo $space['username'];?>的个人空间<?php } ?>
</strong>
<span class="xs0 xw0">
<a id="domainurl" href="<?php echo $space['domainurl'];?>" onclick="setCopy('<?php echo $space['domainurl'];?>', '空间地址复制成功');return false;"><?php echo $space['domainurl'];?></a>
<a href="javascript:;" onclick="addFavorite(location.href, document.title)">[收藏]</a>
<a id="domainurl" href="<?php echo $space['domainurl'];?>" onclick="setCopy('<?php echo $space['domainurl'];?>', '空间地址复制成功');return false;">[复制]</a>
<?php if(!$space['self']) { if(helper_access::check_module('share')) { ?>
<a id="share_space" href="home.php?mod=spacecp&ac=share&type=space&id=<?php echo $space['uid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">[分享]</a>
<?php } ?>
<a href="home.php?mod=rss&uid=<?php echo $space['uid'];?>">[RSS]</a>
<?php } ?>
</span>
<span id="spacedescription" class="xs1 xw0 mtn"><?php echo $space['spacedescription'];?></span>
</h2><?php if($_G['adminid'] == 1 && empty($space['self'])) { $personalnv['items'] = array(); $personalnv['banitems'] = array(); $personalnv['nvhidden'] = 0;?><?php } $nvclass = !empty($personalnv['nvhidden']) ? ' class="mininv"' : '';?><div id="nv">
<ul<?php echo $nvclass;?>>