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


PHP CutName函数代码示例

本文整理汇总了PHP中CutName函数的典型用法代码示例。如果您正苦于以下问题:PHP CutName函数的具体用法?PHP CutName怎么用?PHP CutName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: T_

    $type = $row["external"] == "yes" ? T_("EXTERNAL") : T_("LOCAL");
    if ($row["anon"] == "yes" && ($CURUSER["edit_torrents"] == "no" || $CURUSER["id"] != $row["owner"])) {
        $owner = T_("ANONYMOUS");
    } elseif ($row["username"]) {
        $owner = "<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a>";
    } else {
        $owner = T_("UNKNOWN_USER");
    }
    ?>
        
        <tr>
           <td class="table_col1" align="center"><a href="torrents-details.php?id=<?php 
    echo $row["id"];
    ?>
"><?php 
    echo CutName(htmlspecialchars($row["name"]), 40);
    ?>
</a></td>
           <td class="table_col2" align="center"><?php 
    echo $owner;
    ?>
</td>
           <td class="table_col1" align="center"><?php 
    echo $type;
    ?>
</td>
           <td class="table_col2" align="center"><?php 
    echo mksize($row["size"]);
    ?>
</td>
           <td class="table_col1" align="center"><?php 
开发者ID:lavanoid,项目名称:TorrentTrader3,代码行数:31,代码来源:torrents-needseed.php

示例2: mysql_fetch_assoc

                                                    LEFT JOIN posts AS p ON p.topic_id = t.id 
                                                    RIGHT JOIN users AS u ON u.id = p.user_id 
                                                    WHERE ' . ($CURUSER['class'] < UC_STAFF ? 'p.status = \'ok\' AND t.status = \'ok\' AND' : ($CURUSER['class'] < $min_delete_view_class ? ' t.status != \'deleted\'  AND p.status != \'deleted\'  AND' : '')) . ' t.forum_id = ' . $forum_id . ' 	
                                                    ORDER BY p.id DESC LIMIT 1');
                $last_post_arr = mysql_fetch_assoc($last_post_res);
                //=== only do more if there is a post there...
                if ($last_post_arr['last_post'] > 0) {
                    $last_post_id = $last_post_arr['last_post'];
                    //=== get the last post read by CURUSER (with Retro's $readpost_expiry thingie)
                    $last_read_post_res = sql_query('SELECT last_post_read FROM read_posts WHERE user_id=' . $CURUSER['id'] . ' AND topic_id=' . $last_post_arr['topic_id']);
                    $last_read_post_arr = mysql_fetch_row($last_read_post_res);
                    $image_to_use = $last_post_arr['added'] > time() - $readpost_expiry ? !$last_read_post_arr or $last_post_id > $last_read_post_arr[0] : 0;
                    $img = $image_to_use ? 'unlockednew' : 'unlocked';
                    $last_post = '<span style="white-space:nowrap;">Last Post by: ' . print_user_stuff($last_post_arr) . ' <span style="font-size: x-small;"> [ ' . get_user_class_name($last_post_arr['class']) . ' ] </span><br />
	  in &#9658; <a class="altlink" href="forums.php?action=view_topic&amp;topic_id=' . $last_post_arr['topic_id'] . '&amp;page=p' . $last_post_id . '#' . $last_post_id . '" title="' . htmlentities($last_post_arr['topic_name'], ENT_QUOTES) . '">
	  <span style="font-weight: bold;">' . CutName(htmlentities($last_post_arr['topic_name'], ENT_QUOTES), 30) . '</span></a><br />
	  ' . get_date($last_post_arr['added'], '') . '<br /></span>';
                    //=== get child boards if any
                    $child_boards_res = sql_query('SELECT name, id FROM forums WHERE parent_forum = ' . $arr_forums['real_forum_id'] . ' AND min_class_read <= ' . $CURUSER['class'] . ' ORDER BY sort ASC');
                    $child_boards = '';
                    while ($child_boards_arr = mysql_fetch_assoc($child_boards_res)) {
                        if ($child_boards !== '') {
                            $child_boards .= ', ';
                        }
                        $child_boards .= '<a href="forums.php?action=view_forum&amp;forum_id=' . $child_boards_arr['id'] . '" title="click to view!" class="altlink">' . htmlentities($child_boards_arr['name'], ENT_QUOTES) . '</a>';
                    }
                    if ($child_boards !== '') {
                        $child_boards = '<hr /><span style="font-size: xx-small;">child boards:</span> ' . $child_boards;
                    }
                    /* find the fukin bug lol
                    		//=== now_viewing
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:31,代码来源:forums.php

示例3: torrenttable


//.........这里部分代码省略.........
        $free_tag = $row['free'] != 0 ? ' <a class="info" href="#"><b>[FREE]</b> <span>' . ($row['free'] > 1 ? 'Expires: ' . get_date($row['free'], 'DATE') . '<br />(' . mkprettytime($row['free'] - TIME_NOW) . ' to go)<br />' : 'Unlimited<br />') . '</span></a>' : $all_free_tag;
        /** Silver Torrent **/
        $silver_tag = $row['silver'] != 0 ? ' <a class="info" href="#"><b>[SILVER]</b> <span>' . ($row['silver'] > 1 ? 'Expires: ' . get_date($row['silver'], 'DATE') . '<br />(' . mkprettytime($row['silver'] - TIME_NOW) . ' to go)<br />' : 'Unlimited<br />') . '</span></a>' : '';
        if (!empty($slot)) {
            foreach ($slot as $sl) {
                if ($sl['torrentid'] == $id && $sl['free'] == 'yes') {
                    $free_slot = 1;
                }
                if ($sl['torrentid'] == $id && $sl['doubleup'] == 'yes') {
                    $double_slot = 1;
                }
                if ($free_slot && $double_slot) {
                    break;
                }
            }
        }
        $free_slot = $free_slot == 1 ? '&nbsp;<img src="' . $INSTALLER09['pic_base_url'] . 'freedownload.gif" width="12px" alt="Free Slot" title="Free Slot in Use" />&nbsp;<small>Free Slot</small>' : '';
        $double_slot = $double_slot == 1 ? '&nbsp;<img src="' . $INSTALLER09['pic_base_url'] . 'doubleseed.gif" width="12px" alt="Double Upload Slot" title="Double Upload Slot in Use" />&nbsp;<small>Double Slot</small>' : '';
        //==
        $Subs = '';
        if (in_array($row["category"], $INSTALLER09['movie_cats']) && !empty($row["subs"])) {
            $subs_array = explode(",", $row["subs"]);
            require_once CACHE_DIR . 'subs.php';
            foreach ($subs_array as $k => $sid) {
                foreach ($subs as $sub) {
                    if ($sub["id"] == $sid) {
                        $Subs = "<img border=\\'0\\' width=\\'16px\\' style=\\'padding:3px;\\' src=\\'{$sub["pic"]}\\' alt=\\'{$sub["name"]}\\' title=\\'{$sub["name"]}\\' />";
                    }
                }
            }
        } else {
            $Subs = "---";
        }
        $htmlout .= "' onmouseover=\"Tip('<b>" . CutName($dispname, 80) . "</b><br /><b>Added:&nbsp;" . get_date($row['added'], 'DATE', 0, 1) . "</b><br /><b>Size:&nbsp;" . mksize(htmlsafechars($row["size"])) . "</b><br /><b>Subtitle:&nbsp;{$Subs}</b><br /><b>Seeders:&nbsp;" . htmlsafechars($row["seeders"]) . "</b><br /><b>Leechers:&nbsp;" . htmlsafechars($row["leechers"]) . "</b><br />{$poster}');\" onmouseout=\"UnTip();\"><b>" . CutName($dispname, 45) . "</b></a>&nbsp;&nbsp;<a href=\"javascript:klappe_descr('descr" . (int) $row["id"] . "');\" ><img src=\"{$INSTALLER09['pic_base_url']}plus.png\" border=\"0\" alt=\"Show torrent info in this page\" title=\"Show torrent info in this page\" /></a>&nbsp;&nbsp;{$youtube}&nbsp;{$viponly}&nbsp;{$release_group}&nbsp;{$sticky}&nbsp;" . ($row['added'] >= $CURUSER['last_browse'] ? " <img src='{$INSTALLER09['pic_base_url']}newb.png' border='0' alt='New !' title='New !' />" : "") . "&nbsp;{$checked}&nbsp;{$free_tag}&nbsp;{$silver_tag}&nbsp;{$nuked}<br />{$free_slot}&nbsp;{$double_slot}&nbsp;{$newgenre}&nbsp;{$bump}&nbsp;{$smalldescr}</td>\n";
        if ($variant == "mytorrents") {
            $htmlout .= "<td align='center'><a href=\"download.php?torrent={$id}" . ($CURUSER['ssluse'] == 3 ? "&amp;ssl=1" : "") . "\"><img src='{$INSTALLER09['pic_base_url']}zip.gif' border='0' alt='Download This Torrent!' title='Download This Torrent!' /></a></td>\n";
        }
        if ($variant == "mytorrents") {
            $htmlout .= "<td align='center'><a href='edit.php?id=" . (int) $row['id'] . "amp;returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'>{$lang["torrenttable_edit"]}</a></td>\n";
        }
        $htmlout .= $variant == "index" ? "<td align='center'><a href=\"download.php?torrent={$id}" . ($CURUSER['ssluse'] == 3 ? "&amp;ssl=1" : "") . "\"><img src='{$INSTALLER09['pic_base_url']}zip.gif' border='0' alt='Download This Torrent!' title='Download This Torrent!' /></a></td>" : "";
        if ($variant == "mytorrents") {
            $htmlout .= "<td align='right'>";
            if ($row["visible"] == "no") {
                $htmlout .= "<b>{$lang["torrenttable_not_visible"]}</b>";
            } else {
                $htmlout .= "{$lang["torrenttable_visible"]}";
            }
            $htmlout .= "</td>\n";
        }
        /** pdq bookmarks **/
        $booked = '';
        if (!empty($book)) {
            foreach ($book as $bk) {
                if ($bk['torrentid'] == $id) {
                    $booked = 1;
                }
            }
        }
        $rm_status = !$booked ? ' style="display:none;"' : ' style="display:inline;"';
        $bm_status = $booked ? ' style="display:none;"' : ' style="display:inline;"';
        $bookmark = '<span id="bookmark' . $id . '"' . $bm_status . '>
                    <a href="bookmark.php?torrent=' . $id . '&amp;action=add" class="bookmark" name="' . $id . '">
                    <span title="Bookmark it!" class="add_bookmark_b">
                    <img src="' . $INSTALLER09['pic_base_url'] . 'aff_tick.gif" align="top" width="14px" alt="Bookmark it!" title="Bookmark it!" />
                    </span>
开发者ID:CharlieHD,项目名称:U-232-V3,代码行数:67,代码来源:torrenttable_functions.php

示例4: mysqli_fetch_row

 //=== get the last post read by CURUSER (with Retro's $readpost_expiry thingie) - cached \0/
 if (($last_read_post_arr = $mc1->get_value('last_read_post_' . $last_post_arr['topic_id'] . '_' . $CURUSER['id'])) === false) {
     $last_read_post_arr = mysqli_fetch_row(sql_query('SELECT last_post_read FROM read_posts WHERE user_id=' . sqlesc($CURUSER['id']) . ' AND topic_id=' . sqlesc($last_post_arr['topic_id'])));
     $mc1->cache_value('last_read_post_' . $last_post_arr['topic_id'] . '_' . $CURUSER['id'], $last_read_post_arr, $INSTALLER09['expires']['last_read_post']);
 }
 $image_to_use = $last_post_arr['added'] > TIME_NOW - $readpost_expiry ? !$last_read_post_arr or $last_post_id > $last_read_post_arr[0] : 0;
 $img = $image_to_use ? 'unlockednew' : 'unlocked';
 //== Anonymous  ->
 if ($last_post_arr["tan"] == "yes") {
     if ($CURUSER['class'] < UC_STAFF && $last_post_arr["user_id"] != $CURUSER["id"]) {
         $last_post = '<span style="white-space:nowrap;">' . $lang['fe_last_post_by'] . ': <i>' . $lang['fe_anonymous'] . '</i> in &#9658; <a class="altlink" href="' . $INSTALLER09['baseurl'] . '/forums.php?action=view_topic&amp;topic_id=' . (int) $last_post_arr['topic_id'] . '&amp;page=' . $last_post_id . '#' . $last_post_id . '" title="' . htmlsafechars($last_post_arr['topic_name'], ENT_QUOTES) . '"><span style="font-weight: bold;">' . CutName(htmlsafechars($last_post_arr['topic_name'], ENT_QUOTES), 30) . '</span></a><br />' . get_date($last_post_arr['added'], '') . '<br /></span>';
     } else {
         $last_post = '<span style="white-space:nowrap;">' . $lang['fe_last_post_by'] . ': <i>' . $lang['fe_anonymous'] . '</i> [' . ($last_post_arr['username'] !== '' ? print_user_stuff($last_post_arr) : '' . $lang['fe_lost'] . '') . '] <span style="font-size: x-small;"> [ ' . get_user_class_name($last_post_arr['class']) . ' ] </span><br />in &#9658; <a class="altlink" href="' . $INSTALLER09['baseurl'] . '/forums.php?action=view_topic&amp;topic_id=' . (int) $last_post_arr['topic_id'] . '&amp;page=' . $last_post_id . '#' . $last_post_id . '" title="' . htmlsafechars($last_post_arr['topic_name'], ENT_QUOTES) . '"><span style="font-weight: bold;">' . CutName(htmlsafechars($last_post_arr['topic_name'], ENT_QUOTES), 30) . '</span></a><br />' . get_date($last_post_arr['added'], '') . '<br /></span>';
     }
 } else {
     $last_post = '<span style="white-space:nowrap;">' . $lang['fe_last_post_by'] . ': ' . ($last_post_arr['username'] !== '' ? print_user_stuff($last_post_arr) : '' . $lang['fe_lost'] . '') . ' <span style="font-size: x-small;"> [ ' . get_user_class_name($last_post_arr['class']) . ' ] </span><br />in &#9658; <a class="altlink" href="' . $INSTALLER09['baseurl'] . '/forums.php?action=view_topic&amp;topic_id=' . (int) $last_post_arr['topic_id'] . '&amp;page=' . $last_post_id . '#' . $last_post_id . '" title="' . htmlsafechars($last_post_arr['topic_name'], ENT_QUOTES) . '"><span style="font-weight: bold;">' . CutName(htmlsafechars($last_post_arr['topic_name'], ENT_QUOTES), 30) . '</span></a><br />' . get_date($last_post_arr['added'], '') . '<br /></span>';
 }
 //==
 //=== get child boards if any - cached \0/
 $keys['child_boards'] = 'child_boards_' . $last_post_id . '_' . $CURUSER['class'];
 if (($child_boards_cache = $mc1->get_value($keys['child_boards'])) === false) {
     $child_boards = '';
     $child_boards_cache = array();
     $res = sql_query('SELECT name, id FROM forums WHERE parent_forum = ' . sqlesc($arr_forums['real_forum_id']) . ' AND min_class_read <= ' . sqlesc($CURUSER['class']) . ' ORDER BY sort ASC') or sqlerr(__FILE__, __LINE__);
     while ($arr = mysqli_fetch_assoc($res)) {
         if ($child_boards) {
             $child_boards .= ', ';
         }
         $child_boards .= '<a href="' . $INSTALLER09['baseurl'] . '/forums.php?action=view_forum&amp;forum_id=' . (int) $arr['id'] . '" title="' . $lang['fm_click_to_view'] . '!" class="altlink">' . htmlsafechars($arr['name'], ENT_QUOTES) . '</a>';
     }
     $child_boards_cache['child_boards'] = $child_boards;
开发者ID:UniversalAdministrator,项目名称:U-232-V4,代码行数:31,代码来源:forums.php

示例5: display

 public static function display($params)
 {
     $cururl = Url::curRequestURL();
     # Actor de caché y el cine
     Film_Model::CacheActorSeatch();
     # Restablecer Vistas
     Film_Model::ResetViewed();
     # Get info url
     $geturl = explode('/', $cururl);
     $mode = $geturl[1];
     // Film and cinema
     if (in_array($mode, array('phim', 'xem-phim'))) {
         $id = $geturl[2];
         $id = explode('-', $id);
         $id = $id[0];
         if ($mode == 'phim') {
             $arr = MySql::dbselect('tb_film.id,tb_film.title,tb_film.thumb,tb_film.year,tb_film.big_image,tb_film_other.content,tb_film.title_en,tb_film_other.keywords', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "id = '{$id}'");
             //TITULO PRINCIPAL DE TODA LA WEB
             $site_title = 'Pelicula ' . $arr[0][1] . ' | ' . $arr[0][6] . ' full HD';
             $site_description = str_replace('"', '', CutName(RemoveHtml(UnHtmlChars($arr[0][5])), 200));
             $site_keywords = FixTags($arr[0][7]);
             $filmid = intval($arr[0][0]);
             $epwatch = MySql::dbselect('id', 'episode', "filmid = '{$filmid}' order by id asc limit 1");
             $epwatch = $epwatch[0][0];
         } else {
             if ($mode == 'xem-phim') {
                 $epid = MySql::dbselect('id,name,filmid,url,subtitle', 'episode', "id = '{$id}'");
                 $filmid = intval($epid[0][2]);
                 MySql::dbupdate('film', "viewed = viewed+100, viewed_day = viewed_day+1, viewed_week = viewed_week+1, viewed_month = viewed_month+1", "id = '{$filmid}'");
                 $arr = MySql::dbselect('tb_film.id,tb_film.title,tb_film.thumb,tb_film.year,tb_film.big_image,tb_film_other.content,tb_film.title_en,tb_film_other.keywords', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "id = '{$filmid}'");
                 $site_title = 'Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ' - Pelicula ' . $arr[0][6];
                 $site_description = 'Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ' | ' . $arr[0][6] . '  Ep ' . $epid[0][1] . '. Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ' Calidad HD.';
                 $site_keywords = FixTags('Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ', ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ', ' . $arr[0][6] . ' Ep ' . $epid[0][1] . ', ' . $arr[0][7]);
             }
         }
         if (!$arr) {
             header('Location: ' . s404_URL);
         }
         $other_meta = '<meta property="og:image" content="' . $arr[0][2] . '">';
         $other_meta2 = '<link href="' . SITE_URL . $cururl . '" rel="canonical">';
         include View::TemplateView('film');
     } else {
         if (in_array($mode, array('danh-sach', 'the-loai', 'quoc-gia', 'search', 'tag'))) {
             if ($mode == 'the-loai') {
                 $id = $geturl[2];
                 $arr = MySql::dbselect('id,name', 'category', "name_seo = '{$id}'");
                 $id = $arr[0][0];
                 $catid = $id;
                 $name = $arr[0][1];
                 $url_page = Url::get(0, $name, 'Thể loại');
                 $site_title = head_site($name, 'category_title');
                 $site_description = head_site($name, 'category_description');
                 $site_keywords = head_site($name, 'category_keywords');
                 $sql = "tb_film.category like '%,{$id},%'";
             } else {
                 if ($mode == 'quoc-gia') {
                     $id = $geturl[2];
                     $arr = MySql::dbselect('id,name', 'country', "name_seo = '{$id}'");
                     $id = $arr[0][0];
                     $couid = $id;
                     $name = $arr[0][1];
                     $url_page = Url::get(0, $name, 'Pais');
                     $site_title = head_site($name, 'country_title');
                     $site_description = head_site($name, 'country_description');
                     $site_keywords = head_site($name, 'country_keywords');
                     $sql = "tb_film.country = '{$id}'";
                 } else {
                     if (in_array($mode, array('search', 'tag'))) {
                         $id = str_replace('-', ' ', urldecode($geturl[2]));
                         $name = $id;
                         $url_page = Url::get(0, $name, 'Search');
                         $site_title = head_site($name, 'search_title');
                         $site_description = head_site($name, 'search_description');
                         $site_keywords = head_site($name, 'search_keywords');
                         $sql = "tb_film.title like '%{$id}%' OR tb_film.title_en like '%{$id}%' OR tb_film_other.searchs like '%{$id}%' OR tb_film_other.keywords like '%{$id}%' OR tb_film.actor like '%{$id}%' OR tb_film.director like '%{$id}%'";
                     } else {
                         if ($mode == 'danh-sach') {
                             $id = $geturl[2];
                             if ($id == 'phim-moi') {
                                 $name = 'Nuevas Películas';
                                 $url_page = Url::get(0, $name, 'Danh sách');
                                 $sql = "id != '0'";
                                 $site_title = "Nuevas Películas y 2014, lista nueva géneros cinematográficos";
                                 $site_description = "Lista de Cine Última actualización continua, consulte delicia y un número ilimitado de películas.";
                                 $site_keywords = "Nuevas películas , una nueva película o, seleccionada nuevas películas";
                             } else {
                                 if ($id == 'phim-de-cu') {
                                     $name = 'Peliculas Nominadas';
                                     $url_page = Url::get(0, $name, 'Danh sách');
                                     $sql = "decu = '1'";
                                     $site_title = "Película con alta calidad";
                                     $site_description = "Las películas nominadas para el más caliente o 2014, se seleccionaron y evaluaron la más alta calidad.";
                                     $site_keywords = "películas calientes, mejores películas, películas o 2014";
                                 } else {
                                     if ($id == 'phim-le') {
                                         $filmlb = $id;
                                         $name = 'Movie';
                                         $url_page = Url::get(0, $name, 'Danh sách');
                                         $sql = "filmlb = '0'";
                                         $site_title = "Película con alta calidad";
//.........这里部分代码省略.........
开发者ID:jassonlazo,项目名称:GamersInvasion-Peliculas,代码行数:101,代码来源:site_controller.php

示例6: T_

            $rows[] = $row;
        }
        $TTCache->Set("seedwanted_block", $rows, $expires);
    }
    if (!$rows) {
        ?>
		<p class="text-center"><?php 
        echo T_("NOTHING_FOUND");
        ?>
</p>
	<?php 
    } else {
        foreach ($rows as $row) {
            $char1 = 20;
            //cut length
            $smallname = htmlspecialchars(CutName($row["name"], $char1));
            ?>

			<div class="pull-left"><a href="torrents-details.php?id=<?php 
            echo $row["id"];
            ?>
" title="<?php 
            echo htmlspecialchars($row["name"]);
            ?>
"><?php 
            echo $smallname;
            ?>
</a></div>
			<div class="pull-right"><span class="label label-waring"><?php 
            echo T_("LEECHERS");
            ?>
开发者ID:nonconforme,项目名称:TorrentTrader-Bootstrap,代码行数:31,代码来源:seedwanted_block.php

示例7: get_date

                $browser = "<img src='pic/referrers/opera.png' alt='Opera' title='Opera' width='25' height='25' border='0' />&nbsp;&nbsp;Opera";
            } else {
                if (strstr($http_agent, "Konqueror")) {
                    $browser = "<img src='pic/referrers/konqueror.png' alt='konqueror' title='konqueror' width='25' height='25' border='0' />&nbsp;&nbsp;konqueror";
                } else {
                    if (strstr($http_agent, "MSIE")) {
                        $browser = "<img src='pic/referrers/ie.png' alt='IE' title='IE' width='25' height='25' border='0' />&nbsp;&nbsp;IE";
                    } else {
                        if (strstr($http_agent, "Chrome")) {
                            $browser = "<img src='pic/referrers/chrome.png' alt='Chrome' title='Chrome' width='25' height='25' border='0' />&nbsp;&nbsp;Chrome";
                        } else {
                            if (strstr($http_agent, "Nav") || strstr($http_agent, "Gold") || strstr($http_agent, "X11") || strstr($http_agent, "Mozilla") || strstr($http_agent, "Netscape")) {
                                $browser = "<img src='pic/referrers/firefox.png' alt='FireFox' title='FireFox' width='25' height='25' border='0' />&nbsp;&nbsp;Mozilla";
                            } else {
                                $browser = $lang['ref_unknow'];
                            }
                        }
                    }
                }
            }
            $HTMLOUT .= "\n\t\t<tr>\n\t\t\t<td>" . $i . "</td>\n\t\t\t<td>" . get_date($data['date'], '') . "</td>\n\t\t\t<td>" . $browser . "</td>\n\t\t\t<td>" . htmlsafechars($data['ip']) . "</td>\n\t\t\t<td>" . htmlsafechars($data['ip']) . " " . ((int) $data['uid'] ? "<a href='{$INSTALLER09['baseurl']}/userdetails.php?id=" . (int) $data['uid'] . "'>" : "") . "" . (htmlsafechars($data['username']) ? "&nbsp;[" . htmlsafechars($data['username']) . "]</a>" : "{$lang['ref_guest']}") . "\n</td><td><a href='" . htmlsafechars($data['referer']) . "'>" . CutName($data['referer'], '50') . "</a></td><!--<td><a href='" . htmlsafechars($data['page']) . "'>{$lang['ref_view']}</a></td>--></tr>";
            $browser = '';
        }
    }
    $HTMLOUT .= "</table>";
    $HTMLOUT .= $pager['pagerbottom'];
} else {
    $HTMLOUT .= $lang['ref_nothing'];
}
////////////////////////// HTML OUTPUT //////////////////////////
echo stdhead($lang['ref_stdhead']) . $HTMLOUT . stdfoot();
开发者ID:veso266,项目名称:U-232-V4,代码行数:31,代码来源:referrers.php

示例8: get_video

function get_video($sql, $limit, $type = '')
{
    $arr = MySql::dbselect('id,name,url,duration,thumb,viewed', 'media', "{$sql} order by id desc limit {$limit}");
    if ($type == 'rand') {
        for ($i = 0; $i < count($arr); $i++) {
            $name = $arr[$i][1];
            $thumb = $arr[$i][4];
            $mediaid = $arr[$i][0];
            $duration = $arr[$i][3];
            $viewed = $arr[$i][5];
            $url = get_url($mediaid, $name, 'Xem Video');
            $html .= "\n\t\t\t<li class=\"play-hover\">\n\t\t\t\t<a class=\"img\" href=\"{$url}\" title=\"{$name}\">\n\t\t\t\t\t<span class=\"over_play\"></span>\n\t\t\t\t\t<img src=\"{$thumb}\" alt=\"{$name}\">\n\t\t\t\t</a><span class=\"des-video\">{$duration}</span>\n\t\t\t\t<p class=\"title\">\n\t\t\t\t\t<a href=\"{$url}\" title=\"{$name}\">" . CutName($name, 20) . "</a>\n\t\t\t\t</p>\n\t\t\t\t</li>";
        }
    } else {
        for ($i = 0; $i < count($arr); $i++) {
            $name = $arr[$i][1];
            $thumb = $arr[$i][4];
            $mediaid = $arr[$i][0];
            $duration = $arr[$i][3];
            $viewed = $arr[$i][5];
            $url = get_url($mediaid, $name, 'Xem Video');
            $html .= "\n\t\t\t<li style=\"float:left;height:400px\">\n\t\t\t<div class=\"hvideo clearfix\">\n\t\t\t\t<div class=\"video\">\n\t\t\t\t\t<img src=\"{$thumb}\" title=\"{$name}\" alt=\"{$name}\"/><a href=\"{$url}\"><span class=\"vdicon\"></span></a>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"info\">\n\t\t\t\t\t<h1>{$name}</h1>\n\t\t\t\t\t<span class=\"content\"><strong>Thời lượng</strong>: {$duration}</span>\n\t\t\t\t\t<span class=\"content\"><strong>Lượt xem</strong>: {$viewed}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t</li>\n\t\t\t";
        }
    }
    return $html;
}
开发者ID:jassonlazo,项目名称:GamersInvasion-Peliculas,代码行数:26,代码来源:functions.php

示例9: CutName

							<span class="vtime"><?php 
    echo $duration;
    ?>
</span>
							<span class="over_play"></span>
						</a>
						<a href="<?php 
    echo $url;
    ?>
" title="<?php 
    echo $name;
    ?>
">
							<span class="name">
								<span class="vname"><?php 
    echo CutName($name, 30);
    ?>
</span>
							</span>
						</a>
					</li>
					<?php 
}
?>
				</ul>
				<div class="clear"></div>
				<?php 
echo $allpage_site;
?>
			</div>
		</div>
开发者ID:jassonlazo,项目名称:GamersInvasion-Peliculas,代码行数:31,代码来源:listvideo.php

示例10: stdfoot

        stdfoot();
        die;
    } else {
        mysql_query("UPDATE snatched SET sl_warned='no' WHERE torrentid='" . $tid . "' AND userid='" . $uid . "'") or sqlerr(__FILE__, __LINE__);
        echo "<b><font color=red size=3>Successfully removed from the List</b></font>";
    }
}
//$scp = 172800;
$scp = 86400;
$cpdt = sqlesc(get_date_time(gmtime() - $scp));
if ($_GET["done"] == "yes") {
    $add = "AND snatched.sl_warned='yes'";
} elseif ($_GET["done"] == "no") {
    $add = "AND snatched.sl_warned='no'";
} else {
    $add = "";
}
$res = mysql_query("SELECT snatched.userid, snatched.torrentid, snatched.uploaded, snatched.downloaded, snatched.last_action, snatched.seedtime, snatched.sl_warned, users.username, users.immun, torrents.size, torrents.name FROM snatched JOIN users ON snatched.userid = users.id JOIN torrents ON torrents.id = snatched.torrentid WHERE snatched.finished='yes' AND snatched.seedtime < 43200 AND snatched.uploaded < (torrents.size / 2) AND snatched.seeder='no' AND users.enabled='yes' AND snatched.complete_date < {$cpdt} AND users.immun='no' {$add} AND users.class < " . UC_CODER . " ORDER BY users.id") or sqlerr(__FILE__, __LINE__);
echo "<table><tr><h1>Users are not seeding and have not reached Fileratio/Minimum site seedtime :</h1></tr>";
echo "" . ($_GET["done"] == "no" ? "<table><tr style=\"border:none;\"><td style=\"border:none;\"><a href=\"" . $_SERVER['PHP_SELF'] . "?done=yes\">already h&r warned members</a></td></tr></table><br />" : "<table><tr style=\"border:none;\"><td style=\"border:none;\"><a href=\"" . $_SERVER['PHP_SELF'] . "?done=no\">not warned h&r users</a></td></tr></table><br />") . "";
if (mysql_num_rows($res) == 0) {
    echo "<table><tr><td class=colhead><font size=3>Cant believe,the list is empty!</font></td></tr></table>";
} else {
    echo "<table><tr><td class=colhead>Member</td><td class=colhead>Torrent</td><td class=colhead>Fileratio</td><td class=colhead>Seedtime</td><td class=colhead>last active</td><td class=colhead>Status</td></tr>";
    while ($row = mysql_fetch_assoc($res)) {
        echo "<tr><td><a href=\"javascript:ajaxpage('inpageuser.php?id=" . $row["userid"] . "&tid=" . $row["torrentid"] . "', 'contentarea');\">" . $row["username"] . "</a><td><a href=details.php?id=" . $row["torrentid"] . ">" . CutName($row["name"], 45) . "</td><td>" . number_format($row["uploaded"] / $row["size"], 3) . "</td><td>" . mkprettytime($row["seedtime"]) . "</td><td>" . date("d.m.Y H:i:s", strtotime($row["last_action"])) . "</td><td>" . ($row["sl_warned"] == "no" ? "<a href=\"" . $_SERVER['PHP_SELF'] . "?addsl=1&tid=" . $row["torrentid"] . "&userid=" . $row["userid"] . "&done=no\">Warn</a>" : "Warn <a href=\"" . $_SERVER['PHP_SELF'] . "?remsl=1&tid=" . $row["torrentid"] . "&userid=" . $row["userid"] . "\">[R]</a>") . "</td></tr>";
    }
    echo "</table>";
    echo "<div id=\"contentarea\"></div>";
}
stdfoot();
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:snatchleave.php

示例11: torrenttable


//.........这里部分代码省略.........
            case 'rating':
                echo "<th>" . T_("RATINGS") . "</th>";
                break;
        }
    }
    if ($wait && !in_array("wait", $cols)) {
        echo "<th>" . T_("WAIT") . "</th>";
    }
    echo "</tr></thead>";
    while ($row = mysql_fetch_assoc($res)) {
        $id = $row["id"];
        print "<tr class='t-row'>\n";
        $x = 1;
        foreach ($cols as $col) {
            switch ($col) {
                case 'category':
                    print "<td class='ttable_col{$x}' align='center' valign='middle'>";
                    if (!empty($row["cat_name"])) {
                        print "<a href=\"torrents.php?cat=" . $row["category"] . "\">";
                        if (!empty($row["cat_pic"]) && $row["cat_pic"] != "") {
                            print "<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" />";
                        } else {
                            print $row["cat_parent"] . ": " . $row["cat_name"];
                        }
                        print "</a>";
                    } else {
                        print "-";
                    }
                    print "</td>\n";
                    break;
                case 'name':
                    $char1 = 35;
                    //cut name length
                    $smallname = htmlspecialchars(CutName($row["name"], $char1));
                    $dispname = "<b>" . $smallname . "</b>";
                    $last_access = $CURUSER["last_browse"];
                    $time_now = gmtime();
                    if ($last_access > $time_now || !is_numeric($last_access)) {
                        $last_access = $time_now;
                    }
                    if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access) {
                        $dispname .= "<b><font color='#ff0000'> - (" . T_("NEW") . "!)</font></b>";
                    }
                    if ($row["freeleech"] == 1) {
                        $dispname .= " <img src='images/free.gif' border='0' alt='' />";
                    }
                    print "<td class='ttable_col{$x}' nowrap='nowrap'>" . (count($expandrows) ? "<a href=\"javascript: klappe_torrent('t" . $row['id'] . "')\"><img border=\"0\" src=\"" . $site_config["SITEURL"] . "/images/plus.gif\" id=\"pict" . $row['id'] . "\" alt=\"Show/Hide\" class=\"showthecross\" /></a>" : "") . "&nbsp;<a title=\"" . $row["name"] . "\" href=\"torrents-details.php?id={$id}&amp;hit=1\">{$dispname}</a></td>";
                    break;
                case 'dl':
                    print "<td class='ttable_col{$x}' align='center'><a href=\"download.php?id={$id}&amp;name=" . rawurlencode($row["filename"]) . "\"><img src='" . $site_config['SITEURL'] . "/images/icon_download.gif' border='0' alt=\"Download .torrent\" /></a></td>";
                    break;
                case 'uploader':
                    echo "<td class='ttable_col{$x}' align='center'>";
                    if (($row["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $row["owner"] && $CURUSER["edit_torrents"] != "yes") {
                        echo "Anonymous";
                    } elseif ($row["username"]) {
                        echo "<a href='account-details.php?id={$row['owner']}'>{$row['username']}</a>";
                    } else {
                        echo "Unknown";
                    }
                    echo "</td>";
                    break;
                case 'comments':
                    print "<td class='ttable_col{$x}' align='center'><font size='1' face='verdana'><a href='comments.php?type=torrent&amp;id={$id}'>" . number_format($row["comments"]) . "</a></font></td>\n";
                    break;
                case 'nfo':
开发者ID:Arkhana,项目名称:TorrentTrader2.08,代码行数:67,代码来源:functions.php

示例12: torrenttable


//.........这里部分代码省略.........
        $nuked = $row["nuked"] == "yes" ? "&nbsp;<img src='pic/nuked.gif' border=0 title='nuked' alt='Nuked'/>" : "";
        $newtag = sql_timestamp_to_unix_timestamp($row['added']) >= $_SESSION['browsetime'] ? '&nbsp;<img src=' . $pic_base_url . 'new.gif alt=NEW!>' : '';
        $viponly = $row["vip"] == "yes" ? "<img src='pic/star.gif' border=0 title='Vip Torrent' />" : "";
        // ///////freeslot in use on browse//////////
        $freeimg = '<img src="/pic/freedownload.gif" border=0"/>';
        $doubleimg = '<img src="/pic/doubleseed.gif" border=0"/>';
        $isdlfree = $row['doubleslot'] == 'yes' ? ' ' . $doubleimg . ' slot in use' : '';
        $isdouble = $row['freeslot'] == 'yes' ? ' ' . $freeimg . ' slot in use' : '';
        $uclass = '';
        // torrent name
        $dispname = $CURUSER["view_uclass"] == 'no' ? safeChar($row["name"]) : "<font color=\"#" . get_user_class_color($row["uclass"]) . "\">" . safeChar($row["name"]) . "</font>";
        // checked mod by pdq
        $checked = !empty($row['checked_by']) && $CURUSER['class'] >= UC_MODERATOR ? "&nbsp;<img src='" . $pic_base_url . "mod.gif' width='15' border='0' title='Checked - by " . safeChar($row['checked_by']) . "' />" : "";
        $sticky = $row["sticky"] == "yes" ? "<img src='pic/sticky.gif' border='0' alt='sticky' title='Sticky'>" : "";
        $countstats = $row["countstats"] == "no" ? "<img src='pic/freedownload.gif' border='0' alt='Free' title='Free Torrent'>" : "";
        $half = $row["half"] == "yes" ? "<img src='pic/halfdownload.png' border='0' alt='Half Leech' title='Half Leech'>" : "";
        // ///
        ///////////small description
        if (!empty($row['description'])) {
            $description = "(" . safeChar($row["description"]) . ")";
        } else {
            $description = "";
        }
        // ////////////////////////////////////////////////////////////////////////
        // ////////////////////////////////////////////////////////////////////////
        if ($row["poster"]) {
            $poster = "<img src=" . $row["poster"] . " width=150 border=0 />";
        }
        if ($row["descr"]) {
            $descr = ereg_replace("\"", "&quot;", readMore($row["descr"], 350, "details.php?id=" . $row["id"] . "&amp;hit=1"));
        }
        // userclass color mod ==end
        $dispname = ereg_replace('\\.', ' ', $dispname);
        echo "<td align=left><a href=details.php?id={$id} onmouseover=\"Tip('{$poster}');\" onmouseout=\"UnTip();\"><b>" . CutName($dispname, $char) . "</b></a>&nbsp;<a href=\"javascript:klappe_descr('descr" . $row["id"] . "');\" ><img src=\"/pic/plus.gif\" border=\"0\" title=\"Show torrent info in this page\"/></a>&nbsp;{$sticky}&nbsp;{$request}&nbsp;{$scene}&nbsp;{$nuked}<br />{$nukereason}&nbsp;{$newtag}&nbsp;{$viponly}&nbsp;{$countstats}&nbsp;{$half}&nbsp;{$description}\n";
        // //////////multiplicator///
        if ($row["multiplicator"] == "2") {
            $multiplicator = "&nbsp;<img src=\"pic/multi2.gif\" title=\"X2 Upload\">&nbsp;";
        } elseif ($row["multiplicator"] == "3") {
            $multiplicator = "&nbsp;<img src=\"pic/multi3.gif\" title=\"X3 Upload\">&nbsp;";
        } elseif ($row["multiplicator"] == "4") {
            $multiplicator = "&nbsp;<img src=\"pic/multi4.gif\" title=\"X4 Upload\">&nbsp;";
        } elseif ($row["multiplicator"] == "5") {
            $multiplicator = "&nbsp;<img src=\"pic/multi5.gif\" title=\"X5 Upload\">&nbsp;";
        }
        if ($row["multiplicator"] != "0") {
            echo "" . $multiplicator . "";
        }
        if ($row["pweb"] > 0) {
            echo "<img border=0 src=pic/seeder.gif onmouseover=\"Tip('web seeded by " . $row["pweb"] . " users');\" onmouseout=\"UnTip();\"/>";
        }
        // ////torrent added/genre/checked////
        //echo ($added);
        echo $genre;
        echo $checked;
        echo $isdlfree . '' . $isdouble;
        /////////////////subtitles
        $movie_cat = array("3", "5", "10", "11");
        //add here your movie category
        print "<td align=\"center\" nowrap=\"nowrap\" >\n";
        if (in_array($row["category"], $movie_cat) && !empty($row["subs"])) {
            $subs_array = explode(",", $row["subs"]);
            include 'cache/subs.php';
            foreach ($subs_array as $k => $sid) {
                foreach ($subs as $sub) {
                    if ($sub["id"] == $sid) {
                        print "<img border=\"0\" width=\"16px\" style=\"padding:3px;\"src=\"" . $sub["pic"] . "\" alt=\"" . $sub["name"] . "\" title=\"" . $sub["name"] . "\" />";
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:67,代码来源:function_torrenttable.php

示例13: while

				<th class="table_head" align="left">Torrent Name</th>
				<th class="table_head" align="left">Size</th>
				<th class="table_head">Added</th>
				<th class="table_head"><img src="images/down.png" border="0" title="Download"></th>
				<th class="table_head"><img src="images/comment.png" border="0" title="Comments"></th>
				<th class="table_head"><img src="images/seed.gif" border="0" title="Seeders"></th>
				<th class="table_head"><img src="images/leech.gif" border="0" title="Leechers"></th>
				<th class="table_head"><img src="images/check.png" border="0" title="Completed"></th>
				<th class="table_head">L/E</th>
				<th class="table_head"><img src="images/trash.png" title="Delete Bookmarks" border="0"></th>
			</tr>
		<?php 
    while ($row = mysql_fetch_assoc($query)) {
        $length = 40;
        //===| Cut name length
        $smallname = htmlspecialchars(CutName($row["name"], $length));
        $dispname = "<b>" . $smallname . "</b>";
        if ($row["freeleech"] == 1) {
            $freeleech = "<img src='images/free.gif' border='0' title='Free Leech'>";
        } else {
            $freeleech = "";
        }
        echo "<tr>";
        print "<td class='table_col1' width='1%' align='center' valign='middle'>";
        if (!empty($row["cat_name"])) {
            print "<a href=\"torrents.php?cat=" . $row["category"] . "\">";
            if (!empty($row["cat_pic"]) && $row["cat_pic"] != "") {
                print "<img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" title=\"" . $row["cat_parent"] . ": " . $row["cat_name"] . "\" />";
            } else {
                print $row["cat_parent"] . ": " . $row["cat_name"];
            }
开发者ID:l3oncoder,项目名称:TorrentTrader,代码行数:31,代码来源:bookmark.php

示例14: sql_query

     // / Mod by dokty - tbdev.net
     $blasd = sql_query("SELECT points FROM coins WHERE torrentid={$id} AND userid=" . unsafeChar($CURUSER["id"]));
     $sdsa = mysql_fetch_assoc($blasd) or $sdsa["points"] = 0;
     tr("Points", "<b>In total " . safeChar($row["points"]) . " Points given to this torrent of which " . safeChar($sdsa["points"]) . " from you.<br /><br />By clicking on the coins you can give points to the uploader of this torrent.</b><br /><br /><a href=coins.php?id={$id}&points=10><img src=pic/10coin.jpg border=0></a>&nbsp;&nbsp;<a href=coins.php?id={$id}&points=20><img src=pic/20coin.jpg border=0></a>&nbsp;&nbsp;<a href=coins.php?id={$id}&points=50><img src=pic/50coin.jpg border=0></a>&nbsp;&nbsp;<a href=coins.php?id={$id}&points=100><img src=pic/100coin.jpg border=0></a>&nbsp;&nbsp;<a href=coins.php?id={$id}&points=200><img src=pic/200coin.gif border=0></a>&nbsp;&nbsp;<a href=coins.php?id={$id}&points=500><img src=pic/500coin.gif border=0></a>&nbsp;&nbsp;<a href=coins.php?id={$id}&points=1000><img src=pic/1000coin.gif border=0></a>", 1);
     // //////////end modified bonus points for uploader///////
     function hex_esc($matches)
     {
         return sprintf("%02x", ord($matches[0]));
     }
     tr("Info hash", preg_replace_callback('/./s', "hex_esc", hash_pad($row["info_hash"])));
 } else {
     tr("Download", "You are not allowed to download");
 }
 //////////////////poster mod
 if (!empty($row["poster"])) {
     tr("" . $language['pos'] . "", "<a href=\"javascript: klappe_news('a3')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica3" . $array['id'] . "\" alt=\"[Hide/Show]\"></a><div id=\"ka3\" style=\"display: none;\"><br><a href='" . safeChar($row["poster"]) . "' rel='lightbox' title='" . CutName(safeChar($row["name"]), 35) . "'><img src='" . safeChar($row["poster"]) . "' border=0 width=150></a></div>", 1);
 } else {
     tr("" . $language['pos'] . "", "<a href=\"javascript: klappe_news('a3')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica3" . $array['id'] . "\" alt=\"[Hide/Show]\"></a><div id=\"ka3\" style=\"display: none;\"><br>Poster Not Available</div>", 1);
 }
 ///////////////youtube sample//////////////
 if (!empty($row["tube"])) {
     tr("" . $language['sam'] . "", "<a href=\"javascript: klappe_news('a2')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica2" . $array['id'] . "\" alt=\"[Hide/Show]\"></a><div id=\"ka2\" style=\"display: none;\"><br><embed src='" . str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) . "' type=\"application/x-shockwave-flash\" width=\"500\" height=\"410\"></embed></div>", 1);
 } else {
     tr("" . $language['sam'] . "", "<a href=\"javascript: klappe_news('a2')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica2" . $array['id'] . "\" alt=\"[Hide/Show]\"></a><div id=\"ka2\" style=\"display: none;\"><br>Sample Not Available</div>", 1);
 }
 //////////////////description////////////////
 if ($dtype) {
     tr("" . $language['desc'] . "", "<a href=\"javascript: klappe_news('a1')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica1" . $array['id'] . "\" alt=\"[Hide/Show]\"></a><div id=\"ka1\" style=\"display: none;\"><br>" . format_comment($row["descr"]) . "</div>", 1);
 } else {
     tr("" . $language['desc'] . "", "<a href=\"javascript: klappe_news('a1')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pica1" . $array['id'] . "\" alt=\"[Hide/Show]\"></a><div id=\"ka1\" style=\"display: none;\"><br>" . format_urls($row["descr"]) . "</div>", 1);
 }
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:details.php

示例15: CutName

            }
        }
        ?>
      <tr>
          <td class="table_col1" align="center" width="10%"><a href="account-details.php?id=<?php 
        echo $row['addedby'];
        ?>
"><?php 
        echo $row['username'];
        ?>
</a></td>
          <td class="table_col2" align="center" width="15%"><a href="<?php 
        echo $link;
        ?>
"><?php 
        echo CutName($r[0], 40);
        ?>
</a></td>
          <td class="table_col1" align="center" width="10%"><?php 
        echo $row['type'];
        ?>
</td>
          <td class="table_col2" align="center" width="50%"><?php 
        echo htmlspecialchars($row['reason']);
        ?>
</td>
          <td class="table_col1" align="center" width="10%"><?php 
        echo $dealtwith;
        ?>
</td>
          <td class="table_col2" align="center" width="5%"><input type="checkbox" name="reports[]" value="<?php 
开发者ID:lavanoid,项目名称:TorrentTrader3,代码行数:31,代码来源:admincp.php


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