~ubuntu-branches/debian/sid/ampache/sid

« back to all changes in this revision

Viewing changes to templates/show_user_row.inc.php

  • Committer: Package Import Robot
  • Author(s): Charlie Smotherman
  • Date: 2013-08-27 13:19:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130827131948-1czew0zxn6u70dtv
Tags: 3.6-rzb2752+dfsg-1
* New upsteam snapshot.  Contains important bug fixes to the installer.
* Correct typo in ampache-common.postrm.
* Remove courtousy copy of php-getid3, during repack.  Closes: #701526
* Update package to use dh_linktree to make the needed sym links to the
  needed system libs that were removed during repack.
* Update debian/rules to reflect upstreams removing/moving of modules.
* Update debian/ampache-common.install to reflect upstreams removal of files.
* Updated to use new apache2.4 API. Closes: #669756
* Updated /debian/po/de.po thx David Prévot for the patch.  Closes:  #691963
* M3U import is now ordered, fixed upstream.  Closes: #684984
* Text input area has been resized so IPv6 addresses will now fit, fixed
  upstream.  Closes:  #716230
* Added ampache-common.preinst to make sure that the courtousy copies of code
  dirs are empty so dh_linktree can do it's magic on upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
 
2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
3
3
/**
4
 
 * Show User Row
5
 
 *
6
4
 *
7
5
 * LICENSE: GNU General Public License, version 2 (GPLv2)
8
 
 * Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
 
6
 * Copyright 2001 - 2013 Ampache.org
9
7
 *
10
8
 * This program is free software; you can redistribute it and/or
11
9
 * modify it under the terms of the GNU General Public License v2
20
18
 * along with this program; if not, write to the Free Software
21
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
20
 *
23
 
 * @package     Ampache
24
 
 * @copyright   2001 - 2011 Ampache.org
25
 
 * @license     http://opensource.org/licenses/gpl-2.0 GPLv2
26
 
 * @link        http://www.ampache.org/
27
21
 */
28
 
 
29
22
?>
30
 
        <td class="cel_username">
31
 
                <a href="<?php echo $web_path; ?>/stats.php?action=show_user&amp;user_id=<?php echo $client->id; ?>">
32
 
                        <?php echo $client->fullname; ?> (<?php echo $client->username; ?>)
33
 
                </a>
34
 
        </td>
 
23
    <td class="cel_username">
 
24
        <a href="<?php echo $web_path; ?>/stats.php?action=show_user&amp;user_id=<?php echo $client->id; ?>">
 
25
            <?php echo $client->fullname; ?> (<?php echo $client->username; ?>)
 
26
        </a>
 
27
    </td>
35
28
  <td class="cel_lastseen"><?php echo $last_seen; ?></td>
36
29
  <td class="cel_registrationdate"><?php echo $create_date; ?></td>
37
30
  <td class="cel_activity"><?php echo $client->f_useage; ?></td>
38
 
        <?php if (Config::get('track_user_ip')) { ?>
39
 
                <td class="cel_lastip">
40
 
                <a href="<?php echo $web_path; ?>/admin/users.php?action=show_ip_history&amp;user_id=<?php echo $client->id; ?>">
41
 
                        <?php echo $client->ip_history; ?>
42
 
                </a>
43
 
                </td>
44
 
        <?php } ?>
45
 
        <td class="cel_action">
46
 
                <a href="<?php echo $web_path; ?>/admin/users.php?action=show_edit&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('edit', T_('Edit')); ?></a>
47
 
                <a href="<?php echo $web_path; ?>/admin/users.php?action=show_preferences&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('preferences', T_('Preferences')); ?></a>
48
 
        <?php
49
 
        //FIXME: Fix this for the extra permission levels
50
 
        if ($client->disabled == '1') {
51
 
                echo "<a href=\"".$web_path."/admin/users.php?action=enable&amp;user_id=$client->id\">" . get_user_icon('enable', T_('Enable')) . "</a>";
52
 
        }
53
 
        else {
54
 
                echo "<a href=\"".$web_path."/admin/users.php?action=disable&amp;user_id=$client->id\">" . get_user_icon('disable', T_('Disable')) ."</a>";
55
 
        }
56
 
        ?>
57
 
                <a href="<?php echo $web_path; ?>/admin/users.php?action=delete&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('delete', T_('Delete')); ?></a>
58
 
        </td>
 
31
    <?php if (Config::get('track_user_ip')) { ?>
 
32
        <td class="cel_lastip">
 
33
        <a href="<?php echo $web_path; ?>/admin/users.php?action=show_ip_history&amp;user_id=<?php echo $client->id; ?>">
 
34
            <?php echo $client->ip_history; ?>
 
35
        </a>
 
36
        </td>
 
37
    <?php } ?>
 
38
    <td class="cel_action">
 
39
        <a href="<?php echo $web_path; ?>/admin/users.php?action=show_edit&amp;user_id=<?php echo $client->id; ?>"><?php echo UI::get_icon('edit', T_('Edit')); ?></a>
 
40
        <a href="<?php echo $web_path; ?>/admin/users.php?action=show_preferences&amp;user_id=<?php echo $client->id; ?>"><?php echo UI::get_icon('preferences', T_('Preferences')); ?></a>
 
41
    <?php
 
42
    //FIXME: Fix this for the extra permission levels
 
43
    if ($client->disabled == '1') {
 
44
        echo "<a href=\"".$web_path."/admin/users.php?action=enable&amp;user_id=$client->id\">" . UI::get_icon('enable', T_('Enable')) . "</a>";
 
45
    }
 
46
    else {
 
47
        echo "<a href=\"".$web_path."/admin/users.php?action=disable&amp;user_id=$client->id\">" . UI::get_icon('disable', T_('Disable')) ."</a>";
 
48
    }
 
49
    ?>
 
50
        <a href="<?php echo $web_path; ?>/admin/users.php?action=delete&amp;user_id=<?php echo $client->id; ?>"><?php echo UI::get_icon('delete', T_('Delete')); ?></a>
 
51
    </td>
59
52
       <?php
60
 
        if (($client->is_logged_in()) AND ($client->is_online())) {
61
 
                echo "<td class=\"cel_online user_online\"> &nbsp; </td>";
62
 
        } elseif ($client->disabled == 1) {
63
 
                echo "<td class=\"cel_online user_disabled\"> &nbsp; </td>";
64
 
        } else {
65
 
                echo "<td class=\"cel_online user_offline\"> &nbsp; </td>";
66
 
        }
 
53
    if (($client->is_logged_in()) AND ($client->is_online())) {
 
54
        echo "<td class=\"cel_online user_online\"> &nbsp; </td>";
 
55
    } elseif ($client->disabled == 1) {
 
56
        echo "<td class=\"cel_online user_disabled\"> &nbsp; </td>";
 
57
    } else {
 
58
        echo "<td class=\"cel_online user_offline\"> &nbsp; </td>";
 
59
    }
67
60
?>