コード例 #1
0
ファイル: show_shoutbox.inc.php プロジェクト: cheese1/ampache
 * 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 
    echo $shout->get_display(true, true);
    ?>
</div>
<?php 
}
?>
</div>
<?php 
UI::show_box_bottom();
コード例 #2
0
ファイル: init-tiny.php プロジェクト: axelsimon/ampache
}
if (isset($_SERVER['HTTP_X_FORWARDED_PORT'])) {
    $http_port = $_SERVER['HTTP_X_FORWARDED_PORT'];
} else {
    if (isset($_SERVER['SERVER_PORT'])) {
        $http_port = $_SERVER['SERVER_PORT'];
    }
}
if (!isset($http_port) || !$http_port) {
    $http_port = 80;
}
// Define that we've loaded the INIT file
define('INIT_LOADED', 1);
// Core includes we can't do with the autoloader
require_once $prefix . '/lib/preferences.php';
require_once $prefix . '/lib/debug.lib.php';
require_once $prefix . '/lib/log.lib.php';
require_once $prefix . '/lib/ui.lib.php';
require_once $prefix . '/lib/i18n.php';
require_once $prefix . '/lib/batch.lib.php';
require_once $prefix . '/lib/themes.php';
require_once $prefix . '/lib/class/localplay_controller.abstract.php';
require_once $prefix . '/lib/class/database_object.abstract.php';
require_once $prefix . '/lib/class/playlist_object.abstract.php';
require_once $prefix . '/lib/class/media.interface.php';
require_once $prefix . '/modules/horde/Browser.php';
/* Set up the flip class */
UI::flip_class(array('odd', 'even'));
// Merge GET then POST into REQUEST effectively stripping COOKIE without
// depending on a PHP setting change for the effect
$_REQUEST = array_merge($_GET, $_POST);
コード例 #3
0
ファイル: show_user.inc.php プロジェクト: axelsimon/ampache
    <dt class="<?php 
echo $rowparity;
?>
"><?php 
echo T_('Activity');
?>
</dt>
    <dd class="<?php 
echo $rowparity;
?>
"><?php 
echo $client->f_useage;
?>
</dd>
    <?php 
$rowparity = UI::flip_class();
?>
    <dt class="<?php 
echo $rowparity;
?>
"><?php 
echo T_('Status');
?>
</dt>
    <dd class="<?php 
echo $rowparity;
?>
">
    <?php 
if ($client->is_logged_in() and $client->is_online()) {
    ?>
コード例 #4
0
</th>
            <th class="cel_filename"><?php 
echo T_('Filename');
?>
</th>
        </tr>
        <?php 
foreach ($duplicates as $item) {
    // Gather the duplicates
    $songs = Song::get_duplicate_info($item, $search_type);
    foreach ($songs as $key => $song_id) {
        $song = new Song($song_id);
        $song->format();
        $row_key = 'duplicate_' . $song_id;
        $button_flip_state_id = 'button_flip_state_' . $song_id;
        $current_class = $key == '0' ? 'row-highlight' : UI::flip_class();
        $button = $song->enabled ? 'disable' : 'enable';
        ?>
        <tr id="<?php 
        echo $row_key;
        ?>
" class="<?php 
        echo $current_class;
        ?>
">
            <td class="cel_disable" id="<?php 
        echo $button_flip_state_id;
        ?>
">
                <?php 
        echo Ajax::button('?page=song&action=flip_state&song_id=' . $song_id, $button, T_(ucfirst($button)), 'flip_state_' . $song_id);