Example #1
0
/**
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.google.com
#
#	$Id: groups.inc.php 121 2014-03-04 12:38:05Z along $
#
#	Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved.
#
*/
if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) {
    exit('[PHPDisk] Access Denied');
}
$remote_server_url = remote_server_url();
admin_no_power($task, 4, $pd_uid);
switch ($action) {
    case 'group_create':
        if ($task == 'group_create') {
            form_auth(gpc('formhash', 'P', ''), formhash());
            $group_name = trim(gpc('group_name', 'P', ''));
            if ($settings['online_demo']) {
                $error = true;
                $sysmsg[] = __('online_demo_deny');
            }
            if (checklength($group_name, 2, 100)) {
                $error = true;
                $sysmsg[] = __('group_name_error');
            }
            $rs = $db->fetch_one_array("select count(*) as total from {$tpf}groups where group_name='{$group_name}'");
Example #2
0
	<?php 
echo __('current_admin');
?>
: <span class="txtred"><?php 
echo $pd_username;
?>
</span>[<?php 
if (super_admin()) {
    echo __('super_admin');
} else {
    echo __('common_admin');
}
?>
]&nbsp;
	<a href="javascript:;" onclick="open_box('<?php 
echo remote_server_url();
?>
',400,200);"><?php 
echo __('update_remote_config');
?>
</a>&nbsp;
	<?php 
if (super_admin()) {
    ?>
	<a href="<?php 
    echo urr(ADMINCP, "item=sitemap");
    ?>
" title="<?php 
    echo __('sitemap_tips');
    ?>
">【SiteMap】</a>&nbsp;&nbsp;