admapprove_avatar.php

来自「eGroupWare is a multi-user, web-based gr」· PHP 代码 · 共 47 行

PHP
47
字号
<?php/**************************************************************************** copyright            : (C) 2001-2003 Advanced Internet Designs Inc.* email                : forum@prohost.org* $Id: admapprove_avatar.php,v 1.2 2003/12/18 16:42:31 iliaa Exp $** This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or * (at your option) any later version.***************************************************************************/	define('no_inline', 1);	require('./GLOBALS.php'); fud_egw();	fud_use('adm.inc', true);	fud_use('users_adm.inc', true);	fud_use('ssu.inc');	if (isset($_GET['usr_id'])) {		usr_adm_avatar((int)$_GET['usr_id'], 0);	} else if (isset($_GET['del'])) {		usr_adm_avatar((int)$_GET['del'], 1);	}	require($WWW_ROOT_DISK . 'adm/admpanel.php');?><h2>Avatar Approval System</h2><table class="datatable solidtable"><?php	$a = 0;	$c = uq('SELECT id, avatar_loc, alias FROM '.$GLOBALS['DBHOST_TBL_PREFIX'].'users WHERE users_opt>=16777216 AND (users_opt & 16777216) > 0 ORDER BY id');	while ($r = db_rowarr($c)) {		$a = 1;		echo '<tr class="field"><td>'.$r[2].'</td><td>[<a href="admapprove_avatar.php?usr_id='.$r[0].'&'._rsidl.'">Approve</a>] [<a href="admapprove_avatar.php?del='.$r[0].'&'._rsidl.'">Delete</a>]</td></tr>';		echo '<tr class="field"><td align="center" colspan=2>'.$r[1].'</td></tr>';	}?></table><?php	if (!$a) {		echo 'There are no avatars pending approval.';	}	require($WWW_ROOT_DISK . 'adm/admclose.php');?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?