/** * display_home * This display the module in home page */ public function display_home() { if (@is_readable(AmpConfig::get('prefix') . '/config/motd.php')) { echo '<div id="motd">'; UI::show_box_top(T_('Message of the Day')); require_once AmpConfig::get('prefix') . '/config/motd.php'; UI::show_box_bottom(); echo '</div>'; } }
/** * display_home * This display the module in home page */ public function display_home() { if (AmpConfig::get('sociable')) { $user_id = $GLOBALS['user']->id; if ($user_id) { $activities = Useractivity::get_friends_activities($user_id, $this->maxitems); if (count($activities) > 0) { UI::show_box_top(T_('Friends Timeline')); Useractivity::build_cache($activities); foreach ($activities as $aid) { $activity = new Useractivity($aid); $activity->show(); } UI::show_box_bottom(); } } } }
* modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ $default_rename = "%T - %t"; $default_sort = "%a/%A"; UI::show_box_top(T_('Add a Catalog'), 'box box_add_catalog'); ?> <p><?php echo T_("In the form below enter either a local path (i.e. /data/music) or the URL to a remote Ampache installation (i.e http://theotherampache.com)"); ?> </p> <?php Error::display('general'); ?> <form name="update_catalog" method="post" action="<?php echo AmpConfig::get('web_path'); ?> /admin/catalog.php" enctype="multipart/form-data"> <table class="tabledata" cellpadding="0" cellspacing="0">
/** * show_objects * This takes an array of objects * and requires the correct template based on the * type that we are currently browsing * * @param int[] $object_ids */ public function show_objects($object_ids = null, $argument = null) { if ($this->is_simple() || !is_array($object_ids)) { $object_ids = $this->get_saved(); } else { $this->save_objects($object_ids); } // Limit is based on the user's preferences if this is not a // simple browse because we've got too much here if ($this->get_start() >= 0 && count($object_ids) > $this->get_start() && !$this->is_simple()) { $object_ids = array_slice($object_ids, $this->get_start(), $this->get_offset(), true); } else { if (!count($object_ids)) { $this->set_total(0); } } // Load any additional object we need for this $extra_objects = $this->get_supplemental_objects(); $browse = $this; foreach ($extra_objects as $class_name => $id) { ${$class_name} = new $class_name($id); } $match = ''; // Format any matches we have so we can show them to the masses if ($filter_value = $this->get_filter('alpha_match')) { $match = ' (' . $filter_value . ')'; } elseif ($filter_value = $this->get_filter('starts_with')) { $match = ' (' . $filter_value . ')'; /*} elseif ($filter_value = $this->get_filter('regex_match')) { $match = ' (' . $filter_value . ')'; } elseif ($filter_value = $this->get_filter('regex_not_match')) { $match = ' (' . $filter_value . ')';*/ } elseif ($filter_value = $this->get_filter('catalog')) { // Get the catalog title $catalog = Catalog::create_from_id(intval($filter_value)); $match = ' (' . $catalog->name . ')'; } $type = $this->get_type(); // Update the session value only if it's allowed on the current browser if ($this->get_update_session()) { $_SESSION['browse_current_' . $type]['start'] = $browse->get_start(); } // Set the correct classes based on type $class = "box browse_" . $type; $argument_param = $argument ? '&argument=' . scrub_in($argument) : ''; debug_event('browse', 'Show objects called for type {' . $type . '}', '5'); $limit_threshold = $this->get_threshold(); // Switch on the type of browsing we're doing switch ($type) { case 'song': $box_title = T_('Songs') . $match; Song::build_cache($object_ids, $limit_threshold); $box_req = AmpConfig::get('prefix') . '/templates/show_songs.inc.php'; break; case 'album': Album::build_cache($object_ids); $box_title = T_('Albums') . $match; if (is_array($argument)) { $allow_group_disks = $argument['group_disks']; if ($argument['title']) { $box_title = $argument['title']; } } else { $allow_group_disks = false; } $box_req = AmpConfig::get('prefix') . '/templates/show_albums.inc.php'; break; case 'user': $box_title = T_('Users') . $match; $box_req = AmpConfig::get('prefix') . '/templates/show_users.inc.php'; break; case 'artist': $box_title = T_('Artists') . $match; Artist::build_cache($object_ids, true, $limit_threshold); $box_req = AmpConfig::get('prefix') . '/templates/show_artists.inc.php'; break; case 'live_stream': require_once AmpConfig::get('prefix') . '/templates/show_live_stream.inc.php'; $box_title = T_('Radio Stations') . $match; $box_req = AmpConfig::get('prefix') . '/templates/show_live_streams.inc.php'; break; case 'playlist': Playlist::build_cache($object_ids); $box_title = T_('Playlists') . $match; $box_req = AmpConfig::get('prefix') . '/templates/show_playlists.inc.php'; break; case 'playlist_song': $box_title = T_('Playlist Songs') . $match; $box_req = AmpConfig::get('prefix') . '/templates/show_playlist_songs.inc.php'; break; case 'playlist_localplay': $box_title = T_('Current Playlist'); $box_req = AmpConfig::get('prefix') . '/templates/show_localplay_playlist.inc.php'; UI::show_box_bottom(); break; case 'smartplaylist': $box_title = T_('Smart Playlists') . $match; $box_req = AmpConfig::get('prefix') . '/templates/show_searches.inc.php'; break; case 'catalog': $box_title = T_('Catalogs'); $box_req = AmpConfig::get('prefix') . '/templates/show_catalogs.inc.php'; break; case 'shoutbox': $box_title = T_('Shoutbox Records'); $box_req = AmpConfig::get('prefix') . '/templates/show_manage_shoutbox.inc.php'; break; case 'tag': Tag::build_cache($object_ids); $box_title = T_('Tag Cloud'); $box_req = AmpConfig::get('prefix') . '/templates/show_tagcloud.inc.php'; break; case 'video': Video::build_cache($object_ids); $video_type = 'video'; $box_title = T_('Videos'); $box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php'; break; case 'democratic': $box_title = T_('Democratic Playlist'); $box_req = AmpConfig::get('prefix') . '/templates/show_democratic_playlist.inc.php'; break; case 'wanted': $box_title = T_('Wanted Albums'); $box_req = AmpConfig::get('prefix') . '/templates/show_wanted_albums.inc.php'; break; case 'share': $box_title = T_('Shared Objects'); $box_req = AmpConfig::get('prefix') . '/templates/show_shared_objects.inc.php'; break; case 'song_preview': $box_title = T_('Songs'); $box_req = AmpConfig::get('prefix') . '/templates/show_song_previews.inc.php'; break; case 'channel': $box_title = T_('Channels'); $box_req = AmpConfig::get('prefix') . '/templates/show_channels.inc.php'; break; case 'broadcast': $box_title = T_('Broadcasts'); $box_req = AmpConfig::get('prefix') . '/templates/show_broadcasts.inc.php'; break; case 'license': $box_title = T_('Media Licenses'); $box_req = AmpConfig::get('prefix') . '/templates/show_manage_license.inc.php'; break; case 'tvshow': $box_title = T_('TV Shows'); $box_req = AmpConfig::get('prefix') . '/templates/show_tvshows.inc.php'; break; case 'tvshow_season': $box_title = T_('Seasons'); $box_req = AmpConfig::get('prefix') . '/templates/show_tvshow_seasons.inc.php'; break; case 'tvshow_episode': $box_title = T_('Episodes'); $video_type = $type; $box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php'; break; case 'movie': $box_title = T_('Movies'); $video_type = $type; $box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php'; break; case 'clip': $box_title = T_('Clips'); $video_type = $type; $box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php'; break; case 'personal_video': $box_title = T_('Personal Videos'); $video_type = $type; $box_req = AmpConfig::get('prefix') . '/templates/show_videos.inc.php'; break; case 'label': $box_title = T_('Labels'); $box_req = AmpConfig::get('prefix') . '/templates/show_labels.inc.php'; break; case 'pvmsg': $box_title = T_('Private Messages'); $box_req = AmpConfig::get('prefix') . '/templates/show_pvmsgs.inc.php'; break; default: // Rien a faire break; } // end switch on type Ajax::start_container($this->get_content_div(), 'browse_content'); if ($this->get_show_header()) { if (isset($box_req) && isset($box_title)) { UI::show_box_top($box_title, $class); } } if (isset($box_req)) { require $box_req; } if ($this->get_show_header()) { if (isset($box_req)) { UI::show_box_bottom(); } echo '<script type="text/javascript">'; echo Ajax::action('?page=browse&action=get_filters&browse_id=' . $this->id . $argument_param, ''); echo ';</script>'; } else { if (!$this->get_use_pages()) { $this->show_next_link($argument); } } Ajax::end_container(); }
<?php /* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) * Copyright 2001 - 2014 Ampache.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ UI::show_box_top(T_('Starting New Song Search'), 'box box_adds_catalog'); /* HINT: Catalog Name */ printf(T_('Starting New Song Search on %s catalog'), "<strong>[ {$this->name} ]</strong>"); echo "<br />\n"; echo T_('Found') . ': <span id="add_count_' . $this->id . '">' . T_('None') . '</span><br />'; echo T_('Reading') . ':<span id="add_dir_' . $this->id . '"></span><br />'; UI::show_box_bottom();
* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ $link = AmpConfig::get('use_rss') ? ' ' . Ampache_RSS::get_display('recently_played') : ''; UI::show_box_top(T_('Recently Played') . $link, 'box box_recently_played'); ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <thead> <tr class="th-top"> <th class="cel_play"></th> <th class="cel_song"><?php echo T_('Song'); ?> </th> <th class="cel_add"></th> <th class="cel_album"><?php echo T_('Album'); ?> </th> <th class="cel_artist"><?php
$web_path = AmpConfig::get('web_path'); $album->allow_group_disks = true; // Title for this album $title = scrub_out($album->name) . ' (' . $album->year . ')'; $title .= ' - ' . ($album->f_album_artist_link ? $album->f_album_artist_link : $album->f_artist_link); $show_direct_play_cfg = AmpConfig::get('directplay'); $show_playlist_add = Access::check('interface', '25'); $show_direct_play = $show_direct_play_cfg; $directplay_limit = AmpConfig::get('direct_play_limit'); if ($directplay_limit > 0) { $show_playlist_add = $album->song_count <= $directplay_limit; if ($show_direct_play) { $show_direct_play = $show_playlist_add; } } UI::show_box_top($title, 'info-box'); ?> <div class="item_right_info"> <div class="external_links"> <a href="http://www.google.com/search?q=%22<?php echo rawurlencode($album->f_artist); ?> %22+%22<?php echo rawurlencode($album->f_name); ?> %22" target="_blank"><?php echo UI::get_icon('google', T_('Search on Google ...')); ?> </a> <a href="http://en.wikipedia.org/wiki/Special:Search?search=%22<?php echo rawurlencode($album->f_name);
<?php /* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) * Copyright 2001 - 2015 Ampache.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ UI::show_box_top(T_('Verify Catalog'), 'box box_verify_catalog'); /* HINT: Catalog Name */ printf(T_('Updating the %s catalog'), "<strong>[ {$this->name} ]</strong>"); echo "<br />\n\n"; echo T_('Verified') . ': <span id="verify_count_' . $this->id . '">' . $catalog_verify_found . '</span><br />'; echo T_('Reading') . ': <span id="verify_dir_' . $this->id . '">' . $catalog_verify_directory . '</span>'; UI::show_box_bottom();
* as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ $web_path = AmpConfig::get('web_path'); $browse = new Browse(); $browse->set_type($object_type); UI::show_box_top($season->f_name . ' - ' . $season->f_tvshow_link, 'info-box'); ?> <div class="item_right_info"> <?php Art::display('tvshow_season', $season->id, $season->f_name, 6); ?> </div> <?php if (User::is_registered()) { ?> <?php if (AmpConfig::get('ratings')) { ?> <div id="rating_<?php echo intval($season->id); ?>
* Copyright 2001 - 2015 Ampache.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ UI::show_box_top(T_('Add Access Control List'), 'box box_add_access'); Error::display('general'); ?> <form name="update_access" method="post" enctype="multipart/form-data" action="<?php echo AmpConfig::get('web_path'); ?> /admin/access.php?action=add_host"> <table class="option-tabledata" cellpadding="5" cellspacing="0"> <tr> <td><?php echo T_('Name'); ?> :</td> <td colspan="3"> <input type="text" name="name" value="<?php echo scrub_out($_REQUEST['name']);
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ?> <div> <?php $objects = Stats::get_top('album'); $headers = array('f_link' => T_('Most Popular Albums')); UI::show_box_top('', 'info-box box_popular_albums'); require AmpConfig::get('prefix') . UI::find_template('show_objects.inc.php'); UI::show_box_bottom(); $objects = Stats::get_top('artist'); $headers = array('f_link' => T_('Most Popular Artists')); UI::show_box_top('', 'info-box box_popular_artists'); require AmpConfig::get('prefix') . UI::find_template('show_objects.inc.php'); UI::show_box_bottom(); if (AmpConfig::get('allow_video')) { $objects = Stats::get_top('video'); $headers = array('f_link' => T_('Most Popular Videos')); UI::show_box_top('', 'info-box box_popular_videos'); require AmpConfig::get('prefix') . UI::find_template('show_objects.inc.php'); UI::show_box_bottom(); } ?> </div>
<?php /* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU Affero General Public License, version 3 (AGPLv3) * Copyright 2001 - 2015 Ampache.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ UI::show_box_top(T_('Art Search'), 'box box_gather_art'); echo "<strong>" . T_('Starting Art Search') . ". . .</strong><br />\n"; echo T_('Searched') . ": <span id=\"count_art_" . $catalog_id . "\">" . T_('None') . "</span><br />"; echo T_('Reading') . ":<span id=\"read_art_{$catalog_id}\"></span><br />"; echo "<br />\n"; UI::show_box_bottom();
$logic_operator = strtolower($logic_operator); ?> <script type="text/javascript" src="<?php echo AmpConfig::get('web_path'); ?> /lib/javascript/search.js"></script> <script type="text/javascript" src="<?php echo AmpConfig::get('web_path'); ?> /lib/javascript/search-data.php?type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?> "></script> <?php UI::show_box_top(T_('Rules') . "...", 'box box_rules'); ?> <table class="tabledata" cellpadding="3" cellspacing="0"> <tbody id="searchtable"> <tr id="rules_operator"> <td><?php echo T_('Match'); ?> </td> <td> <select name="operator"> <option value="and" <?php if ($logic_operator == 'and') { echo 'selected="selected"'; } ?>
* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ UI::show_box_top(T_('Adding a New User'), 'box box_add_user'); Error::display('general'); ?> <form name="add_user" enctype="multpart/form-data" method="post" action="<?php echo AmpConfig::get('web_path') . "/admin/users.php?action=add_user"; ?> "> <table class="tabledata" cellspacing="0" cellpadding="0"> <tr> <td> <?php echo T_('Username'); ?> : * </td> <td>
<ul id="tabs"> <li class="tab_active"><a href="#artists"><?php echo T_('Artists'); ?> </a></li> <li><a id="songs_link" href="#songs"><?php echo T_('Songs'); ?> </a></li> </ul> </div> <div id="tabs_content"> <div id="artists" class="tab_content" style="display: block;"> <?php $browse->show_objects($object_ids, true); $browse->store(); ?> </div> <?php echo Ajax::observe('songs_link', 'click', Ajax::action('?page=index&action=songs&label=' . $label->id, 'songs')); ?> <div id="songs" class="tab_content"> <?php UI::show_box_top(T_('Songs'), 'info-box'); echo T_('Loading...'); UI::show_box_bottom(); ?> </div> </div> </div>
/** * display_home * This display the module in home page */ public function display_home() { $xmlstr = file_get_contents($this->feed_url); $xml = simplexml_load_string($xmlstr); if ($xml->channel) { UI::show_box_top($xml->channel->title); $i = 0; echo '<div class="home_plugin"><table class="tabledata">'; foreach ($xml->channel->item as $item) { echo '<tr class="' . ($i % 2 == 0 ? 'even' : 'odd') . '"><td>'; echo '<div>'; echo '<div style="float: left; font-weight: bold;"><a href="' . $item->link . '" target="_blank">' . $item->title . '</a></div>'; echo '<div style="float: right;">' . date("Y/m/d H:i:s", strtotime($item->pubDate)) . '</div>'; echo '</div><br />'; echo '<div style="margin-left: 30px;">'; if (isset($item->image)) { echo '<div style="float: left; margin-right: 20px;"><img src="' . $item->image . '" style="width: auto; max-height: 48px;" /></div>'; } echo '<div>' . $item->description . '</div>'; echo '</div>'; echo '</td></tr>'; $i++; if ($i >= $this->maxitems) { break; } } echo '</table></div>'; UI::show_box_bottom(); } }
</i> <?php } else { ?> <i style="color:red;"><?php echo T_('User is Offline Now'); ?> </i> <?php } ?> </dd> </dl><br /> <?php UI::show_box_bottom(); UI::show_box_top(T_('Active Playlist')); ?> <table cellspacing="0"> <tr> <td valign="top"> <?php $tmp_playlist = new Tmp_Playlist(Tmp_Playlist::get_from_userid($client->id)); $object_ids = $tmp_playlist->get_items(); foreach ($object_ids as $object_data) { $type = array_shift($object_data); $object = new $type(array_shift($object_data)); $object->format(); echo $object->f_link; ?> <br /> <?php
* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ UI::show_box_top(T_('Edit Localplay Instance'), 'box box_localplay_edit_instance'); ?> <form method="post" action="<?php echo AmpConfig::get('web_path'); ?> /localplay.php?action=update_instance&instance=<?php echo intval($_REQUEST['instance']); ?> "> <table cellpadding="3" cellspacing="0" class="tabledata"> <?php foreach ($fields as $key => $field) { ?> <tr> <td><?php echo $field['description'];
<td colspan="<?php echo $thcount; ?> "><span class="nodata"><?php echo T_('No coming events found'); ?> </span></td> </tr> <?php } ?> </tbody> </table> <?php UI::show_box_bottom(); UI::show_box_top(T_('Past Events'), 'info-box'); ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <thead> <tr class="th-top"> <th class="cel_date"><?php echo T_('Date'); ?> </th> <th class="cel_place"><?php echo T_('Place'); ?> </th> <th class="cel_location"><?php echo T_('Location'); ?>
* GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ /** * This is the now playing container, it holds the master div for now playing * and loops through what's current playing as passed and includes * the now_playing_row's This will display regardless, but potentially * goes all ajaxie if you've got javascript on */ if (count($results)) { $link = AmpConfig::get('use_rss') ? ' ' . Ampache_RSS::get_display('nowplaying') : ''; UI::show_box_top(T_('Now Playing') . $link); foreach ($results as $item) { $media = $item['media']; $np_user = $item['client']; $np_user->format(); $agent = $item['agent']; /* If we've gotten a non-song object just skip this row */ if (!is_object($media)) { continue; } if (!$np_user->fullname) { $np_user->fullname = "Ampache User"; } ?> <div class="np_row"> <?php
* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ UI::show_box_top(T_('Preference Administration')); ?> <form method="post" action="<?php echo AmpConfig::get('web_path'); ?> /admin/preferences.php" enctype="multipart/form-data"> <table class="tabledata" cellpadding="0" cellspacing="0"> <colgroup> <col id="col_preference" /> <col id="col_level" /> </colgroup> <tr class="th-top"> <th class="cel_preference"><?php echo T_('Preference'); ?> </th>
* the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ?> <?php UI::show_box_top(T_('Send E-mail to Users'), 'box box_mail_users'); ?> <form name="mail" method="post" action="<?php echo AmpConfig::get('web_path'); ?> /admin/mail.php?action=send_mail" enctype="multipart/form-data"> <table class="tabledata" cellspacing="0" cellpadding="0"> <tr> <td><?php echo T_('Mail to'); ?> :</td> <td> <select name="to"> <option value="all" title="Mail Everyone"><?php echo T_('All');
* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ UI::show_box_top(T_('Add Label'), 'box box_add_label'); ?> <form name="label" method="post" action="<?php echo AmpConfig::get('web_path'); ?> /labels.php?action=add_label"> <table class="tabledata" cellspacing="0" cellpadding="0"> <tr> <td><?php echo T_('Name'); ?> </td> <td> <input type="text" name="name" value="<?php echo scrub_out($_REQUEST['name']); ?>
<?php /* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) * Copyright 2001 - 2014 Ampache.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ UI::show_box_top(T_('Information')); require_once AmpConfig::get('prefix') . '/templates/show_stats_newest.inc.php'; UI::show_box_bottom();
* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ UI::show_box_top(T_('Advanced Random Rules')); ?> <table class="tabledata" cellpadding="0" cellspacing="0"> <tr class="th-top"> <th class="col_field"><?php echo T_('Field'); ?> </th> <th class="col_operator"><?php echo T_('Operator'); ?> </th> <th class="col_value"><?php echo T_('Value'); ?> </th>
<?php /* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU Affero General Public License, version 3 (AGPLv3) * Copyright 2001 - 2015 Ampache.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ UI::show_box_top(T_('Clean Catalog'), 'box box_clean_catalog'); /* HINT: Catalog Name */ printf(T_('Cleaning the %s Catalog'), "<strong>[ {$this->name} ]</strong>"); echo "...<br />"; echo T_('Checking') . ': <span id="clean_count_' . $this->id . '"></span><br />'; echo T_('Reading') . ': <span id="clean_dir_' . $this->id . '"></span><br />'; UI::show_box_bottom();
* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ UI::show_box_top(T_('Find Duplicates'), 'box box_duplicate'); ?> <form name="duplicates" action="<?php echo AmpConfig::get('web_path'); ?> /admin/duplicates.php?action=find_duplicates" method="post" enctype="multipart/form-data" > <table cellspacing="0" cellpadding="3"> <tr> <td valign="top"><strong><?php echo T_('Search Type'); ?> :</strong></td> <td> <input type="radio" name="search_type" value="title" /><?php echo T_('Title'); ?>
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ // Gotta do some math here! $total_images = count($images); $rows = floor($total_images / 4); $i = 0; UI::show_box_top(T_('Select New Album Art'), 'box box_album_art'); ?> <table class="table-data"> <tr> <?php while ($i <= $rows) { $j = 0; while ($j < 4) { $key = $i * 4 + $j; $image_url = AmpConfig::get('web_path') . '/image.php?type=session&image_index=' . $key; $dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key], 'album')); if (!isset($images[$key])) { echo "<td> </td>\n"; } else { ?> <td align="center">
* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ UI::show_box_top(T_('Shoutbox')); ?> <div id="shoutbox"> <?php foreach ($shouts as $shout_id) { $shout = new Shoutbox($shout_id); $shout->format(); ?> <div id="shout<?php echo $shout->id; ?> " class="shout <?php echo UI::flip_class(); ?> "> <?php
/index.php"> <img src="<?php echo UI::get_logo_url(); ?> " title="<?php echo AmpConfig::get('site_title'); ?> " alt="<?php echo AmpConfig::get('site_title'); ?> " /> </a> </h1> <div id="headerbox"> <?php UI::show_box_top('', 'box box_headerbox'); ?> <?php require_once AmpConfig::get('prefix') . UI::find_template('show_search_bar.inc.php'); ?> <?php if (User::is_registered()) { ?> <?php require_once AmpConfig::get('prefix') . UI::find_template('show_playtype_switch.inc.php'); ?> <span id="loginInfo"> <a href="<?php echo $web_path; ?> /stats.php?action=show_user&user_id=<?php