当前位置: 首页>>代码示例>>PHP>>正文


PHP feed::getTrackList方法代码示例

本文整理汇总了PHP中feed::getTrackList方法的典型用法代码示例。如果您正苦于以下问题:PHP feed::getTrackList方法的具体用法?PHP feed::getTrackList怎么用?PHP feed::getTrackList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在feed的用法示例。


在下文中一共展示了feed::getTrackList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PageMain

function PageMain()
{
    global $TMPL, $LNG, $CONF, $db, $loggedIn, $settings;
    if (isset($_SESSION['username']) && isset($_SESSION['password']) || isset($_COOKIE['username']) && isset($_COOKIE['password'])) {
        $verify = $loggedIn->verify();
        if (empty($verify['username'])) {
            // If fake cookies are set, or they are set wrong, delete everything and redirect to home-page
            $loggedIn->logOut();
            header("Location: " . $CONF['url'] . "/index.php?a=welcome");
        } else {
            // Start displaying the Feed
            $feed = new feed();
            $feed->db = $db;
            $feed->url = $CONF['url'];
            $feed->user = $verify;
            $feed->id = $verify['idu'];
            $feed->username = $verify['username'];
            $feed->time = $settings['time'];
            $feed->paypalapp = $settings['paypalapp'];
            $feed->trackList = implode(',', $feed->getTrackList(!empty($feed->profile_id) ? $feed->profile_id : $feed->id));
            $feed->updateStatus($verify['offline']);
            $TMPL_old = $TMPL;
            $TMPL = array();
            $skin = new skin('stats/rows');
            $rows = '';
            $TMPL['title'] = $LNG['stats_' . (empty($_GET['filter']) ? 'today' : $_GET['filter'])];
            if (empty($_GET['filter'])) {
                $_GET['filter'] = '';
            }
            $stats = $feed->getUserStats($_GET['filter'], 0);
            $most = $feed->getUserStats($_GET['filter'], 1, 10);
            $TMPL['plays'] = $stats['plays'];
            $TMPL['likes'] = $stats['likes'];
            $TMPL['comments'] = $stats['comments'];
            $TMPL['downloads'] = $stats['downloads'];
            $TMPL['most_played'] = $most['plays'];
            $TMPL['most_liked'] = $most['likes'];
            $TMPL['most_commented'] = $most['comments'];
            $TMPL['played_most'] = $most['played'];
            $TMPL['downloaded_most'] = $most['downloaded'];
            $TMPL['top_countries'] = $most['countries'];
            $TMPL['top_cities'] = $most['cities'];
            $TMPL['go_pro'] = $most['gopro'];
            $rows = $skin->make();
            $skin = new skin('stats/sidebar');
            $sidebar = '';
            $TMPL['filter'] = $feed->sidebarStatsFilters($_GET['filter']);
            $sidebar = $skin->make();
            $TMPL = $TMPL_old;
            unset($TMPL_old);
            $TMPL['rows'] = $rows;
            $TMPL['sidebar'] = $sidebar;
        }
    } else {
        // If the session or cookies are not set, redirect to home-page
        header("Location: " . $CONF['url'] . "/index.php?a=welcome");
    }
    if (isset($_GET['logout']) == 1) {
        $loggedIn->logOut();
        header("Location: " . $CONF['url'] . "/index.php?a=welcome");
    }
    $TMPL['url'] = $CONF['url'];
    $TMPL['title'] = $LNG['statistics'] . ' - ' . $settings['title'];
    $skin = new skin('stats/content');
    return $skin->make();
}
开发者ID:Jeg72,项目名称:php_sound,代码行数:66,代码来源:stats.php

示例2: PageMain


//.........这里部分代码省略.........
                    }
                    $userSettings = $updateUserSettings->getSettings();
                    $TMPL['countries'] = countries(1, $userSettings['country']);
                    $TMPL['username'] = $userSettings['username'];
                    $TMPL['idu'] = $userSettings['idu'];
                    $TMPL['currentFirstName'] = $userSettings['first_name'];
                    $TMPL['currentLastName'] = $userSettings['last_name'];
                    $TMPL['currentEmail'] = $userSettings['email'];
                    $TMPL['currentCity'] = $userSettings['city'];
                    $TMPL['currentWebsite'] = $userSettings['website'];
                    $TMPL['currentDescription'] = $userSettings['description'];
                    $TMPL['currentFacebook'] = $userSettings['facebook'];
                    $TMPL['currentTwitter'] = $userSettings['twitter'];
                    $TMPL['currentGplus'] = $userSettings['gplus'];
                    $TMPL['currentYouTube'] = $userSettings['youtube'];
                    $TMPL['currentSoundCloud'] = $userSettings['soundcloud'];
                    $TMPL['currentLastfm'] = $userSettings['lastfm'];
                    $TMPL['currentMySpace'] = $userSettings['myspace'];
                    $TMPL['currentVimeo'] = $userSettings['vimeo'];
                    $TMPL['currentTumblr'] = $userSettings['tumblr'];
                    $feed = new feed();
                    $feed->db = $db;
                    $feed->id = $updateUserSettings->id;
                    $manageReports = new manageReports();
                    $manageReports->db = $db;
                    $manageReports->url = $CONF['url'];
                    $manageReports->per_page = $settings['rperpage'];
                    if (isset($_GET['suspend'])) {
                        $manageUsers->suspendUser($feed->id, $_GET['suspend']);
                    }
                    $user = $manageUsers->getUser($getUser['idu']);
                    $TMPL['username'] = '<div class="manage-users-image"><a href="' . $CONF['url'] . '/index.php?a=profile&u=' . $user['username'] . '" target="_blank"><img src="' . $CONF['url'] . '/thumb.php?src=' . $user['image'] . '&t=a&w=112&h=112"></a></div>
											<div class="manage-users-content"><a href="' . $CONF['url'] . '/index.php?a=profile&u=' . $user['username'] . '" target="_blank">' . $user['username'] . '</a><br>' . $user['email'] . '</div>';
                    $TMPL['reports'] = $manageReports->getReports(0, $feed->getTrackList($feed->id) ? $feed->getTrackList($feed->id) : 1);
                    if (empty($TMPL['reports'])) {
                        $TMPL['hide_r'] = ' style="display: none;"';
                    }
                    // If the user has payments history
                    $managePayments = new managePayments();
                    $managePayments->db = $db;
                    $managePayments->url = $CONF['url'];
                    $managePayments->per_page = $settings['rperpage'];
                    $TMPL['history'] = $managePayments->getPayments(0, $updateUserSettings->id);
                    if (empty($TMPL['history'])) {
                        $TMPL['hide_p'] = ' style="display: none;"';
                    }
                    // Suspend variable for the suspend url
                    $TMPL['suspend'] = $user['suspended'] ? '0' : '1';
                    $TMPL['status_desc'] = $user['suspended'] ? $LNG['restore_account'] : $LNG['suspend_account'];
                    $TMPL['status'] = $user['suspended'] ? notificationBox('error', $LNG['account_suspended']) : '';
                    if ($user['suspended']) {
                        $TMPL['suspended'] = $LNG['restore'];
                    } else {
                        $TMPL['suspended'] = $LNG['suspend'];
                    }
                }
                // If GET delete is set, delete the user
                if ($_GET['delete']) {
                    $manageUsers->deleteUser($_GET['delete']);
                    header("Location: " . $CONF['url'] . "/index.php?a=admin&b=users&m=" . $_GET['delete']);
                }
                if ($_GET['m'] == 'un') {
                    $TMPL['message'] = notificationBox('error', $LNG['user_not_exist']);
                } elseif (!empty($_GET['m'])) {
                    $TMPL['message'] = notificationBox('success', sprintf($LNG['user_has_been_deleted'], $_GET['m']));
                }
开发者ID:aminesig,项目名称:QSWebApp,代码行数:67,代码来源:admin.php

示例3: PageMain

function PageMain()
{
    global $TMPL, $LNG, $CONF, $db, $loggedIn, $settings;
    if (isset($_SESSION['username']) && isset($_SESSION['password']) || isset($_COOKIE['username']) && isset($_COOKIE['password'])) {
        $verify = $loggedIn->verify();
        if (empty($verify['username'])) {
            // If fake cookies are set, or they are set wrong, delete everything and redirect to home-page
            $loggedIn->logOut();
            header("Location: " . $CONF['url'] . "/index.php?a=welcome");
        } else {
            // Start displaying the Feed
            $feed = new feed();
            $feed->db = $db;
            $feed->url = $CONF['url'];
            $feed->user = $verify;
            $feed->id = $verify['idu'];
            $feed->username = $verify['username'];
            $feed->per_page = $settings['perpage'];
            $feed->categories = $feed->getCategories();
            $feed->time = $settings['time'];
            $feed->c_per_page = $settings['cperpage'];
            $feed->c_start = 0;
            $feed->l_per_post = $settings['lperpost'];
            $feed->paypalapp = $settings['paypalapp'];
            $feed->online_time = $settings['conline'];
            $feed->friends_online = $settings['ronline'];
            $feed->subscriptionsList = $feed->getSubs($verify['idu'], 0);
            $feed->trackList = implode(',', $feed->getTrackList(!empty($feed->profile_id) ? $feed->profile_id : $feed->id));
            $feed->updateStatus($verify['offline']);
            // Useed in timeline javascript which checks for new messages
            $TMPL['subs'] = 1;
            $TMPL_old = $TMPL;
            $TMPL = array();
            $skin = new skin('shared/rows');
            $rows = '';
            if (empty($_GET['filter'])) {
                $_GET['filter'] = '';
            }
            // Allowed types
            list($timeline, $message) = $feed->stream(0, $_GET['filter']);
            $TMPL['messages'] = $timeline;
            $rows = $skin->make();
            $skin = new skin('stream/sidebar');
            $sidebar = '';
            $TMPL['upload'] = $feed->sidebarButton();
            $TMPL['go_pro'] = $feed->goProMessage(null, 1, 1);
            $TMPL['statistics'] = $feed->sidebarStatistics(null, 0);
            $TMPL['users'] = $feed->onlineUsers();
            $TMPL['friendsactivity'] = $feed->sidebarFriendsActivity(5, 1);
            if (count($feed->subscriptionsList[0]) < 3) {
                $TMPL['suggestions'] = $feed->sidebarSuggestions();
            }
            $TMPL['ad'] = generateAd($settings['ad3']);
            $sidebar = $skin->make();
            $TMPL = $TMPL_old;
            unset($TMPL_old);
            $TMPL['rows'] = $rows;
            $TMPL['sidebar'] = $sidebar;
        }
    } else {
        // If the session or cookies are not set, redirect to home-page
        header("Location: " . $CONF['url'] . "/index.php?a=welcome");
    }
    if (isset($_GET['logout']) == 1) {
        $loggedIn->logOut();
        header("Location: " . $CONF['url'] . "/index.php?a=welcome");
    }
    $TMPL['url'] = $CONF['url'];
    $date = explode('-', wordwrap($_GET['filter'], 4, '-', true));
    $month = intval($date[1]);
    $TMPL['title'] = $LNG['stream'] . (!empty($_GET['filter']) ? ' - ' . $LNG["month_{$month}"] . ' ' . $date[0] . ' - ' : ' - ') . $settings['title'];
    // $TMPL['header'] = pageHeader($LNG['stream']);
    $skin = new skin('shared/content');
    return $skin->make();
}
开发者ID:Jeg72,项目名称:php_sound,代码行数:75,代码来源:stream.php


注:本文中的feed::getTrackList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。