function teacherController() { if (!Access::check('teacher')) { abort404(); } view('teachers'); }
function studentController() { if (!Access::check('student')) { abort404(); } view('students'); }
/** * has_access * This function returns true or false if the current user * has access to this playlist */ public function has_access() { if (!Access::check('interface', '25')) { return false; } if ($this->user == $GLOBALS['user']->id) { return true; } else { return Access::check('interface', '100'); } }
function update_preferences($pref_id = 0) { /* Get current keys */ $sql = "SELECT `id`,`name`,`type` FROM `preference`"; /* If it isn't the System Account's preferences */ if ($pref_id != '-1') { $sql .= " WHERE `catagory` != 'system'"; } $db_results = Dba::read($sql); $results = array(); // Collect the current possible keys while ($r = Dba::fetch_assoc($db_results)) { $results[] = array('id' => $r['id'], 'name' => $r['name'], 'type' => $r['type']); } // end collecting keys /* Foreach through possible keys and assign them */ foreach ($results as $data) { /* Get the Value from POST/GET var called $data */ $name = $data['name']; $apply_to_all = 'check_' . $data['name']; $new_level = 'level_' . $data['name']; $id = $data['id']; $value = scrub_in($_REQUEST[$name]); /* Some preferences require some extra checks to be performed */ switch ($name) { case 'transcode_bitrate': $value = Stream::validate_bitrate($value); break; default: break; } if (preg_match('/_pass$/', $name)) { if ($value == '******') { unset($_REQUEST[$name]); } else { if (preg_match('/md5_pass$/', $name)) { $value = md5($value); } } } /* Run the update for this preference only if it's set */ if (isset($_REQUEST[$name])) { Preference::update($id, $pref_id, $value, $_REQUEST[$apply_to_all]); } if (Access::check('interface', '100') && $_REQUEST[$new_level]) { Preference::update_level($id, $_REQUEST[$new_level]); } } // end foreach preferences // Now that we've done that we need to invalidate the cached preverences Preference::clear_from_session(); }
/** * страница работы с клиентом */ public function action_client() { $clientId = $this->request->param('id'); Access::check('client', $clientId); $client = Model_Client::getClient($clientId); $contracts = Model_Contract::getContracts($clientId); if (empty($client)) { throw new HTTP_Exception_404(); } $popupContractAdd = Common::popupForm('Добавление нового договора', 'contract/add'); $popupCabinetCreate = Common::popupForm('Создание личного кабинета', 'client/cabinet_create'); $this->tpl->bind('client', $client)->bind('contracts', $contracts)->bind('popupContractAdd', $popupContractAdd)->bind('popupCabinetCreate', $popupCabinetCreate); }
* 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. * */ require_once 'lib/init.php'; if (!isset($_REQUEST['action']) || empty($_REQUEST['action'])) { debug_event("stream.php", "Asked without action. Exiting...", 5); exit; } if (!defined('NO_SESSION')) { /* If we are running a demo, quick while you still can! */ if (AmpConfig::get('demo_mode') || !Access::check('interface', '25')) { UI::access_denied(); exit; } } $media_ids = array(); $web_path = AmpConfig::get('web_path'); debug_event("stream.php", "Asked for {" . $_REQUEST['action'] . "}.", 5); /** * action switch */ switch ($_REQUEST['action']) { case 'basket': // Pull in our items (multiple types) $media_ids = $GLOBALS['user']->playlist->get_items(); // Check to see if 'clear' was passed if it was then we need to reset the basket
/* 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. * */ require_once '../../lib/class/plex_xml_data.class.php'; $ow_config = array('http_host' => $_SERVER["SERVER_NAME"] . ':' . $_SERVER["SERVER_PORT"], 'web_path' => '/web'); require_once '../../lib/init.php'; if (!AmpConfig::get('plex_backend')) { echo "Disabled."; exit; } if (!defined('NO_SESSION') && !Access::check('interface', '100')) { echo T_('Unauthorized.'); exit; }
if (Access::check_function('batch_download') && check_can_zip('playlist')) { ?> <a rel="nohtml" href="<?php echo AmpConfig::get('web_path'); ?> /batch.php?action=playlist&id=<?php echo $libitem->id; ?> "> <?php echo UI::get_icon('batch_download', T_('Batch Download')); ?> </a> <?php } if (Access::check('interface', '25')) { if (AmpConfig::get('share')) { Share::display_ui('playlist', $libitem->id, false); } } if ($libitem->has_access()) { ?> <a id="<?php echo 'edit_playlist_' . $libitem->id; ?> " onclick="showEditDialog('playlist_row', '<?php echo $libitem->id; ?> ', '<?php echo 'edit_playlist_' . $libitem->id; ?>
/** * downloadPodcastEpisode * Request the server to download a podcast episode * Takes the podcast episode id in parameter. */ public static function downloadpodcastepisode($input) { self::check_version($input, "1.9.0"); $id = self::check_parameter($input, 'id'); if (AmpConfig::get('podcast') && Access::check('interface', 75)) { $episode = new Podcast_Episode(Subsonic_XML_Data::getAmpacheId($id)); if ($episode->id) { $episode->gather(); $r = Subsonic_XML_Data::createSuccessResponse(); } else { $r = Subsonic_XML_Data::createError(Subsonic_XML_Data::SSERROR_DATA_NOTFOUND); } } else { $r = Subsonic_XML_Data::createError(Subsonic_XML_Data::SSERROR_UNAUTHORIZED); } self::apiOutput($input, $r); }
* 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. * */ require_once '../lib/init.php'; if (!Access::check('interface', 100) or AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } UI::show_header(); /* Switch on action boys */ switch ($_REQUEST['action']) { /* This re-generates the config file comparing * /config/ampache.cfg to .cfg.dist */ case 'generate_config': ob_end_clean(); $current = parse_ini_file(AmpConfig::get('prefix') . '/config/ampache.cfg.php'); $final = generate_config($current); $browser = new Horde_Browser(); $browser->downloadHeaders('ampache.cfg.php', 'text/plain', false, filesize(AmpConfig::get('prefix') . '/config/ampache.cfg.php.dist'));
/** * changePassword * Change the password of an existing user. * Takes the username with new password in parameters. */ public static function changepassword($input) { self::check_version($input, "1.1.0"); $username = self::check_parameter($input, 'username'); $password = self::check_parameter($input, 'password'); $password = self::decrypt_password($password); if ($GLOBALS['user']->username == $username || Access::check('interface', 100)) { $user = User::get_from_username($username); if ($user->id) { $user->update_password($password); $r = Subsonic_XML_Data::createSuccessResponse(); } else { $r = Subsonic_XML_Data::createError(Subsonic_XML_Data::SSERROR_DATA_NOTFOUND); } } else { $r = Subsonic_XML_Data::createError(Subsonic_XML_Data::SSERROR_UNAUTHORIZED); } self::apiOutput($input, $r); }
</th> <?php if (AmpConfig::get('track_user_ip')) { ?> <th class="cel_lastip"><?php echo T_('Last Ip'); ?> </th> <?php } ?> <?php } ?> <?php if (Access::check('interface', 25) && AmpConfig::get('sociable')) { ?> <th class="cel_follow"><?php echo T_('Following'); ?> </th> <?php } ?> <th class="cel_action"><?php echo T_('Action'); ?> </th> <th class="cel_online"><?php echo T_('On-line'); ?>
echo Ajax::observe('artist_select_1', 'change', 'check_inline_song_edit("artist", 1)'); ?> </div> </td> </tr> <?php } ?> <tr> <td class="edit_dialog_content_header"><?php echo T_('Album'); ?> </td> <td> <?php show_album_select('album', $album, true, 1, Access::check('interface', 50), Access::check('interface', 50) ? null : $GLOBALS['user']->id); ?> <div id="album_select_upload_1"> <?php echo Ajax::observe('album_select_1', 'change', 'check_inline_song_edit("album", 1)'); ?> </div> </td> </tr> <?php if (AmpConfig::get('licensing')) { ?> <tr> <td class="edit_dialog_content_header"><?php echo T_('Music License'); ?>
} else { $title = T_('Subscribed to Podcast'); $body = ''; show_confirmation($title, $body, AmpConfig::get('web_path') . '/browse.php?action=podcast'); } break; case 'delete': if (!Access::check('interface', 75) || AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } $podcast_id = scrub_in($_REQUEST['podcast_id']); show_confirmation(T_('Podcast Deletion'), T_('Are you sure you want to delete this podcast?'), AmpConfig::get('web_path') . "/podcast.php?action=confirm_delete&podcast_id=" . $podcast_id, 1, 'delete_podcast'); break; case 'confirm_delete': if (!Access::check('interface', 75) || AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } $podcast = new Podcast($_REQUEST['podcast_id']); if ($podcast->remove()) { show_confirmation(T_('Podcast Deletion'), T_('Podcast has been deleted.'), AmpConfig::get('web_path') . '/browse.php?action=podcast'); } else { show_confirmation(T_('Podcast Deletion'), T_('Cannot delete this podcast.'), AmpConfig::get('web_path') . '/browse.php?action=podcast'); } break; case 'show': $podcast_id = intval($_REQUEST['podcast']); if ($podcast_id > 0) { $podcast = new Podcast($podcast_id); $podcast->format();
</span><img src="<?php echo AmpConfig::get('web_path') . AmpConfig::get('theme_path'); ?> /images/icons/icon_all.png" class="header-img <?php echo isset($_COOKIE['sb_localplay']) ? $_COOKIE['sb_localplay'] : 'expanded'; ?> " id="localplay" alt="<?php echo T_('Expand/Collapse'); ?> " title="<?php echo T_('Expand/Collapse'); ?> " /></h4> <ul class="sb3" id="sb_localplay_info"> <?php if (Access::check('localplay', '75')) { ?> <li id="sb_localplay_info_add_instance"><a href="<?php echo $web_path; ?> /localplay.php?action=show_add_instance"><?php echo T_('Add Instance'); ?> </a></li> <li id="sb_localplay_info_show_instances"><a href="<?php echo $web_path; ?> /localplay.php?action=show_instances"><?php echo T_('Show instances'); ?> </a></li>
ob_start(); require AmpConfig::get('prefix') . UI::find_template('show_playlists_dialog.inc.php'); $results = ob_get_contents(); ob_end_clean(); break; case 'edit_object': // Scrub the data, walk recursive through array $entities = function (&$data) use(&$entities) { foreach ($data as $key => $value) { $data[$key] = is_array($value) ? $entities($value) : unhtmlentities(scrub_in($value)); } return $data; }; $entities($_POST); $libitem = new $object_type($_POST['id']); if ($libitem->get_user_owner() == $GLOBALS['user']->id && AmpConfig::get('upload_allow_edit') && !Access::check('interface', 50)) { // TODO: improve this uniqueless check if (isset($_POST['user'])) { unset($_POST['user']); } if (isset($_POST['artist'])) { unset($_POST['artist']); } if (isset($_POST['artist_name'])) { unset($_POST['artist_name']); } if (isset($_POST['album'])) { unset($_POST['album']); } if (isset($_POST['album_name'])) { unset($_POST['album_name']);
* 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. * */ require_once '../lib/init.php'; if (!Access::check('interface', '100')) { UI::access_denied(); exit; } UI::show_header(); switch ($_REQUEST['action']) { case 'edit': if (isset($_POST['license_id'])) { $license = new License($_POST['license_id']); if ($license->id) { $license->update($_POST); } $text = T_('License Updated'); } else { License::create($_POST); $text = T_('License Created');
* 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/>. * */ $thcount = 6; if (Access::check('interface', '50') || AmpConfig::get('upload_allow_edit')) { ?> <div id="information_actions"> <ul> <li><?php echo UI::get_icon('add', T_('Add')); ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /labels.php?action=show_add_label"><?php echo T_('Create a new label'); ?> </a></li> </ul> </div>
echo $web_path; ?> /register.php" rel="nohtml"><?php echo T_('Register'); ?> </a> <?php } ?> </span> <?php } ?> <span id="updateInfo"> <?php if (AmpConfig::get('autoupdate') && Access::check('interface', '100')) { if (AutoUpdate::is_update_available()) { AutoUpdate::show_new_version(); } } $count_temp_playlist = count($GLOBALS['user']->playlist->get_items()); ?> </span> <?php UI::show_box_bottom(); ?> </div> <!-- End headerbox --> </div><!-- End header --> <?php if (AmpConfig::get('topmenu')) {
/** * _update_item * This is the generic update function, it does the escaping and error checking */ private function _update_item($field, $value, $level) { if ($GLOBALS['user']->id != $this->user and !Access::check('interface', $level)) { return false; } $sql = "UPDATE `playlist` SET `{$field}` = ? WHERE `id` = ?"; $db_results = Dba::write($sql, array($value, $this->id)); return $db_results; }
if (AmpConfig::get('userflags')) { ?> <td class="cel_userflag" id="userflag_<?php echo $libitem->id; ?> _artist"><?php Userflag::show($libitem->id, 'artist'); ?> </td> <?php } } ?> <td class="cel_action"> <?php if (!AmpConfig::get('use_auth') || Access::check('interface', '25')) { if (AmpConfig::get('sociable') && (!$libitem->allow_group_disks || $libitem->allow_group_disks && !count($libitem->album_suite))) { ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /shout.php?action=show_add_shout&type=artist&id=<?php echo $libitem->id; ?> "> <?php echo UI::get_icon('comment', T_('Post Shout')); ?> </a> <?php }
/** * set_filter * This saves the filter data we pass it. */ public function set_filter($key, $value) { switch ($key) { case 'tag': if (is_array($value)) { $this->_state['filter'][$key] = $value; } elseif (is_numeric($value)) { $this->_state['filter'][$key] = array($value); } else { $this->_state['filter'][$key] = array(); } break; case 'artist': case 'catalog': case 'album': $this->_state['filter'][$key] = $value; break; case 'min_count': case 'unplayed': case 'rated': break; case 'add_lt': case 'add_gt': case 'update_lt': case 'update_gt': case 'catalog_enabled': $this->_state['filter'][$key] = intval($value); break; case 'exact_match': case 'alpha_match': case 'regex_match': case 'regex_not_match': case 'starts_with': if ($this->is_static_content()) { return false; } $this->_state['filter'][$key] = $value; if ($key == 'regex_match') { unset($this->_state['filter']['regex_not_match']); } if ($key == 'regex_not_match') { unset($this->_state['filter']['regex_match']); } break; case 'playlist_type': // Must be a content manager to turn this off if (Access::check('interface', '100')) { unset($this->_state['filter'][$key]); } else { $this->_state['filter'][$key] = '1'; } break; default: // Rien a faire return false; } // end switch // If we've set a filter we need to reset the totals $this->reset_total(); $this->set_start(0); return true; }
?> </th> <th class="cel_artist"><?php echo T_('Artist'); ?> </th> <th class="cel_username"><?php echo T_('Username'); ?> </th> <th class="cel_lastplayed"><?php echo T_('Last Played'); ?> </th> <?php if (Access::check('interface', 50)) { ?> <th class="cel_agent"><?php echo T_('Agent'); ?> </th> <?php } ?> </tr> </tfoot> </table> <div id="recent_more"> <?php $user_id_a = ''; if (isset($user_id) && !empty($user_id)) {
*/ require_once 'lib/init.php'; require_once AmpConfig::get('prefix') . '/templates/header.inc.php'; $object_type = $_GET['object_type']; $object_id = $_GET['object_id']; if (!Core::is_library_item($object_type)) { UI::access_denied(); exit; } $burl = ''; if (isset($_GET['burl'])) { $burl = base64_decode($_GET['burl']); } $item = new $object_type($object_id); // If not a content manager user then kick em out if (!Access::check('interface', 50) && (!Access::check('interface', 25) || $item->get_user_owner() != $GLOBALS['user']->id)) { UI::access_denied(); exit; } /* Switch on Action */ switch ($_REQUEST['action']) { case 'clear_art': $art = new Art($object_id, $object_type); $art->reset(); show_confirmation(T_('Art Cleared'), T_('Art information has been removed from the database'), $burl); break; // Upload art // Upload art case 'upload_art': // we didn't find anything if (empty($_FILES['file']['tmp_name'])) {
* 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/>. * */ require_once '../lib/init.php'; if (!Access::check('interface', '75')) { UI::access_denied(); exit; } UI::show_header(); // Action switch switch ($_REQUEST['action']) { case 'send_mail': if (AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } // Multi-byte Character Mail if (function_exists('mb_language')) { $ini_default_charset = version_compare(PHP_VERSION, '5.6', '<') ? 'mbstring.internal_encoding' : 'default_charset'; if (ini_get($ini_default_charset)) {
/** * get_now_playing * * This returns the now playing information */ public static function get_now_playing() { $sql = 'SELECT `session`.`agent`, `np`.* FROM `now_playing` AS `np` '; $sql .= 'LEFT JOIN `session` ON `session`.`id` = `np`.`id` '; if (AmpConfig::get('now_playing_per_user')) { $sql .= 'INNER JOIN ( ' . 'SELECT MAX(`insertion`) AS `max_insertion`, `user`, `id` ' . 'FROM `now_playing` ' . 'GROUP BY `user`' . ') `np2` ' . 'ON `np`.`user` = `np2`.`user` ' . 'AND `np`.`insertion` = `np2`.`max_insertion` '; } if (!Access::check('interface', '100')) { // We need to check only for users which have allowed view of personnal info $personal_info_id = Preference::id_from_name('allow_personal_info_now'); if ($personal_info_id) { $current_user = $GLOBALS['user']->id; $sql .= "WHERE (`np`.`user` IN (SELECT `user` FROM `user_preference` WHERE ((`preference`='{$personal_info_id}' AND `value`='1') OR `user`='{$current_user}'))) "; } } $sql .= 'ORDER BY `np`.`expire` DESC'; $db_results = Dba::read($sql); $results = array(); while ($row = Dba::fetch_assoc($db_results)) { $type = $row['object_type']; $media = new $type($row['object_id']); $media->format(); $client = new User($row['user']); $results[] = array('media' => $media, 'client' => $client, 'agent' => $row['agent'], 'expire' => $row['expire']); } // end while return $results; }
* * 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/>. * */ $thcount = 5; ?> <div id="information_actions"> <ul> <?php if (Access::check('interface', 75)) { ?> <li> <a href="<?php echo AmpConfig::get('web_path'); ?> /podcast.php?action=show_create"><?php echo UI::get_icon('add', T_('Add')); ?> <?php echo T_('Subscribe Podcast'); ?> </a> </li> <?php }
public function get_display($details = true, $jsbuttons = false) { $object = Shoutbox::get_object($this->object_type, $this->object_id); $object->format(); $img = $this->get_image(); $html = "<div class='shoutbox-item'>"; $html .= "<div class='shoutbox-data'>"; if ($details && $img) { $html .= "<div class='shoutbox-img'>" . $img . "</div>"; } $html .= "<div class='shoutbox-info'>"; if ($details) { $html .= "<div class='shoutbox-object'>" . $object->f_link . "</div>"; $html .= "<div class='shoutbox-date'>" . date("Y/m/d H:i:s", $this->date) . "</div>"; } $html .= "<div class='shoutbox-text'>" . $this->f_text . "</div>"; $html .= "</div>"; $html .= "</div>"; $html .= "<div class='shoutbox-footer'>"; if ($details) { $html .= "<div class='shoutbox-actions'>"; if ($jsbuttons) { $html .= Ajax::button('?page=stream&action=directplay&playtype=' . $this->object_type . '&' . $this->object_type . '_id=' . $this->object_id, 'play', T_('Play'), 'play_' . $this->object_type . '_' . $this->object_id); $html .= Ajax::button('?action=basket&type=' . $this->object_type . '&id=' . $this->object_id, 'add', T_('Add'), 'add_' . $this->object_type . '_' . $this->object_id); } if (Access::check('interface', '25')) { $html .= "<a href=\"" . AmpConfig::get('web_path') . "/shout.php?action=show_add_shout&type=" . $this->object_type . "&id=" . $this->object_id . "\">" . UI::get_icon('comment', T_('Post Shout')) . "</a>"; } $html .= "</div>"; } $html .= "<div class='shoutbox-user'>" . T_('by') . " "; if ($this->user > 0) { $user = new User($this->user); $user->format(); if ($details) { $html .= $user->f_link; } else { $html .= $user->username; } } else { $html .= T_('Guest'); } $html .= "</div>"; $html .= "</div>"; $html .= "</div>"; return $html; }
if (Access::check_function('batch_download')) { ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /batch.php?action=artist&id=<?php echo $artist->id; ?> "> <?php echo UI::get_icon('batch_download', '', T_('Batch Download')); ?> </a> <?php } if (Access::check('interface', '50')) { ?> <a id="<?php echo 'edit_artist_' . $artist->id; ?> " onclick="showEditDialog('artist_row', '<?php echo $artist->id; ?> ', '<?php echo 'edit_artist_' . $artist->id; ?> ', '<?php echo T_('Artist edit'); ?> ', 'artist_', 'refresh_artist')"> <?php
<?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/>. * */ require_once 'lib/init.php'; if (!Access::check('interface', 100)) { UI::access_denied(); exit; } phpinfo();