• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP textbbcode函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: comment_form

function comment_form()
{
    global $comment, $id, $cid;
    block_begin(NEW_COMMENT);
    $comment = str_replace('\\r\\n', "\n", $comment);
    ?>
    <center>
    <form enctype='multipart/form-data' name='comment' method='post'>
    <input type='hidden' name='info_hash' value='<?php 
    echo $id;
    ?>
' />
    <table class='lista' border='0' cellpadding='10'>
    <tr>
    <tr><td align='left' class='header'><?php 
    echo USER_NAME;
    ?>
:</td><td class='lista' align='left'><input name='user' type='text'  value='<?php 
    echo security::html_safe($_GET["usern"]);
    ?>
' size='20' maxlength='100' disabled; readonly></td></tr>
    <tr><td align='left' class='header'><?php 
    echo COMMENT_1;
    ?>
:</td><td class='lista' align='left'><?php 
    textbbcode("comment", "comment", security::html_safe(unesc($comment)));
    ?>
</td></tr>
    <tr><td class='header' colspan='2' align='center'><input type='submit' name='confirm' value='<?php 
    echo FRM_CONFIRM;
    ?>
' />&nbsp;&nbsp;&nbsp;<input type='submit' name='confirm' value='<?php 
    echo FRM_PREVIEW;
    ?>
' /></td></tr>
    </table>
    </form>
    </center>
    
    <?php 
    block_end();
}
开发者ID:HDVinnie,项目名称:BtiTracker-1.5.0,代码行数:42,代码来源:comment.php


示例2: sql_query

    }
    $deadchkbox .= " /> including dead torrents\n";
    $HTMLOUT .= " " . $catdropdown . " </select> " . $deadchkbox . " \r\n<input type='submit' value='Search!' class='btn' /></td></tr></table></form>\r\n<br />\n";
    $HTMLOUT .= "<form method='post' name='compose' action='viewoffers.php?new_offer'><a name='add' id='add'></a>\r\n<table border='1' cellspacing='0' width='750px' cellpadding='5'><tr><td class='colhead' align='left' colspan='2'>\r\nOffers are for Users with a good ratio who have uploaded at least " . $INSTALLER09['offer_gigs_upped'] . " gigs Only... Share and you shall recieve!</td></tr>\r\n<tr><td align='right'><b>Title</b></td><td align='left'><input type='text' size='40' name='offertitle' />\r\n<select name='category'><option value='0'>(Select a Category)</option>\n";
    $res2 = sql_query('SELECT id, name FROM categories order by name');
    $num = mysql_num_rows($res2);
    $catdropdown2 = '';
    for ($i = 0; $i < $num; ++$i) {
        $cats2 = mysql_fetch_assoc($res2);
        $catdropdown2 .= "<option value='" . $cats2['id'] . "'";
        $catdropdown2 .= ">" . htmlspecialchars($cats2['name']) . "</option>\n";
    }
    $HTMLOUT .= $catdropdown2 . " </select></td></tr>\r\n<tr><td align='right' valign='top'><b>Image</b></td>\r\n<td align='left'>\r\n<input type='text' name='picture' size='80' /><br />\r\n(Direct link to image, NO TAGS NEEDED! Will be shown in description)<br />\r\n<!--\r\n<a href='panel.php?tool=bitbucket' rel='external'><strong>Upload Image</strong></a>\r\n-->\r\n</td></tr>\r\n\r\n<tr><td align='right'><b>Description</b></td><td align='left'>\n";
    if ($INSTALLER09['textbbcode']) {
        require_once INCL_DIR . 'bbcode_functions.php';
        $HTMLOUT .= textbbcode('add_offer', 'body', '');
    } else {
        $HTMLOUT .= "<textarea name='body' rows='20' cols='80'></textarea>";
    }
    $HTMLOUT .= "</td></tr>\r\n<tr><td align='center' colspan='2'>\r\n<input type='submit' value='Okay' class='btn' /></td></tr></table>\r\n</form>\r\n<br /><br />\n";
}
$rescount = sql_query('SELECT id FROM offers LIMIT 1') or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($rescount) > 0) {
    $res = sql_query("SELECT users.username, offers.id, offers.userid, offers.cat, offers.offer, offers.added, categories.name, categories.image, uploaded, downloaded FROM users inner join offers ON offers.userid = users.id left join categories ON offers.cat = categories.id order by offers.id desc LIMIT 10") or sqlerr();
    $num = mysql_num_rows($res);
    $HTMLOUT .= "<table border='1' cellspacing='0' width='750px' cellpadding='5'>\r\n    <tr><td width='50px' class='colhead' align='left'>Category</td>\r\n    <td class='colhead' align='left'>Offer</td><td class='colhead' align='center'>Added</td>\r\n    <td class='colhead' align='center'>Offered By</td></tr>\n";
    foreach ($cats as $key => $value) {
        $change[$value['id']] = array('id' => $value['id'], 'name' => $value['name'], 'image' => $value['image']);
    }
    while ($arr = mysql_fetch_assoc($res)) {
        $addedby = "<td style='padding: 0px' align='center'><b><a href='userdetails.php?id={$arr['userid']}'>{$arr['username']}</a></b></td>";
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:31,代码来源:add_offer.php


示例3: stderr

            stderr('Error', 'Invalid expiry selection');
        }
        $expires = TIME_NOW + 86400 * $expiry;
        // 86400 seconds in one day.
        $created = TIME_NOW;
        $query = sprintf('INSERT INTO announcement_main ' . '(owner_id, created, expires, sql_query, subject, body) ' . 'VALUES (%s, %s, %s, %s, %s, %s)', sqlesc($CURUSER['id']), sqlesc($created), sqlesc($expires), sqlesc($ann_query), sqlesc($subject), sqlesc($body));
        sql_query($query);
        if (mysqli_affected_rows($GLOBALS["___mysqli_ston"])) {
            stderr('Success', 'Announcement was successfully created');
        }
        stderr('Error', 'Contact an administrator');
    }
    echo stdhead("Create Announcement", false);
    $HTMLOUT = "";
    $HTMLOUT .= "<table class='main' width='750' border='0' cellspacing='0' cellpadding='0'>\r\n \t<tr>\r\n \t<td class='embedded'><div align='center'>\r\n \t<h1>Create Announcement for " . $n_pms . " user" . ($n_pms > 1 ? 's' : '') . "&nbsp;!</h1>";
    $HTMLOUT .= "<form name='compose' method='post' action='{$INSTALLER09['baseurl']}/new_announcement.php'>\r\n \t<table border='1' cellspacing='0' cellpadding='5'>\r\n \t<tr>\r\n \t<td colspan='2'><b>Subject: </b>\r\n \t<input name='subject' type='text' size='76' value='" . htmlsafechars($subject) . "' /></td>\r\n \t</tr>\r\n \t<tr><td colspan='2'><div align='center'>\r\n  " . textbbcode("compose", "msg", $body) . "\r\n  </div></td></tr>";
    $HTMLOUT .= "<tr><td colspan='2' align='center'>";
    $HTMLOUT .= "<select name='expiry'>";
    reset($days);
    foreach ($days as $x) {
        $HTMLOUT .= '<option value="' . $x[0] . '"' . ($expiry == $x[0] ? '' : '') . '>' . $x[1] . '</option>';
    }
    $HTMLOUT .= "</select>\r\n\r\n \t<input type='submit' name='buttonval' value='Preview' class='btn' />\r\n \t<input type='submit' name='buttonval' value='Submit' class='btn' />\r\n \t</td></tr></table>\r\n \t<input type='hidden' name='n_pms' value='" . $n_pms . "' />\r\n \t<input type='hidden' name='ann_query' value='" . $ann_query . "' />\r\n \t<input type='hidden' name='ann_hash' value='" . $ann_hash . "' />\r\n \t</form><br /><br />\r\n \t</div></td></tr></table>";
    if ($body) {
        $newtime = TIME_NOW + 86400 * $expiry;
        $HTMLOUT .= "<table width='700' class='main' border='0' cellspacing='1' cellpadding='1'>\r\n \t<tr><td bgcolor='#663366' align='center' valign='baseline'><h2><font color='white'>Announcement: \r\n \t" . htmlsafechars($subject) . "</font></h2></td></tr>\r\n \t<tr><td class='text'>\r\n \t" . format_comment($body) . "<br /><hr />Expires: " . get_date($newtime, 'DATE') . "";
        $HTMLOUT .= "</td></tr></table>";
    }
} else {
    // Shouldn't be here
    header("HTTP/1.0 404 Not Found");
开发者ID:CharlieHD,项目名称:U-232-V3,代码行数:31,代码来源:new_announcement.php


示例4: mysqli_query

    $aa = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT id FROM {$TABLE_PREFIX}users WHERE username='{$teamownername}'");
    $ar = mysqli_fetch_assoc($aa);
    $team_owner = $ar["id"];
    $query = "INSERT INTO {$TABLE_PREFIX}teams SET\tname = '{$team_name}', owner = '{$team_owner}' ,info = '{$team_description}', image = '{$team_image}'";
    $sql = mysqli_query($GLOBALS["___mysqli_ston"], $query);
    $tid = is_null($___mysqli_res = mysqli_insert_id($GLOBALS["___mysqli_ston"])) ? false : $___mysqli_res;
    mysqli_query($GLOBALS["___mysqli_ston"], "UPDATE {$TABLE_PREFIX}users SET team = '{$tid}' WHERE id= '{$team_owner}'");
    if ($sql) {
        write_log("has created new team ({$team_name})", "edit");
        $success = TRUE;
    } else {
        $success = FALSE;
    }
}
$teamtpl = new bTemplate();
$desc = textbbcode("smolf3d", "team_description");
$addt = "<br>\n" . $language['TEAM_HEADER'] . "\n<form name='smolf3d' method='get' action='index.php'>\n<CENTER><table cellspacing=0 cellpadding=5 width=50%>\n<input type='hidden' name='page' value='admin'>\n<input type='hidden' name='user' value='{$CURUSER['uid']}'>\n<input type='hidden' name='code' value='{$CURUSER['random']}'>\n<input type='hidden' name='do' value='teams'>\n<tr><td class=header colspan=2 align=center>" . $language['TEAM_ADD'] . "</td></tr><tr>\n<tr><td class=header>" . $language['TEAM_NAME'] . "</td><td align='left' class=lista><input type='text' size=50 name='team_name'></td></tr>\n<tr><td class=header>" . $language['TEAM_OWNER'] . "</td><td align='left' class=lista><input type='text' size=50 name='team_owner'>" . $language['TEAM_ONE'] . "</td></tr>\n<tr><td class=header>" . $language['TEAM_DESC'] . "</td><td class=lista align=center valign=top><center>{$desc}</center></td></tr>\n\n<tr><td class=header>" . $language['TEAM_LOGO'] . "</td><td align='left' class=lista><input type='text' size=50 name='team_image'><input type='hidden' name='add' value='true'></td></tr>\n<tr><td class=header colspan=2><div align='center'><input class=btn value='Add Team' type='Submit'></div></td></tr>\n</table></CENTER>";
$admintpl->set("add_team", $addt);
if ($success == TRUE) {
    $successadd = "<br><h2>Team successfully added!</h2>";
}
$admintpl->set("success", $successadd);
$close = "<br>\n</form>";
$admintpl->set("close", $close);
//ELSE Display Teams
$current = "\n<table class=main cellspacing=0 cellpadding=3 width=50%><tr><td class=header align=center colspan=6>" . $language['TEAM_CURR'] . "</td></tr><tr>\n<td class=header style=\"text-align:center\">" . $language['TEAM_ID_H'] . "</td><td class=header style=\"text-align:center\">" . $language['TEAM_LOGO_H'] . "</td><td class=header style=\"text-align:center\">" . $language['TEAM_NAME_H'] . "</td><td class=header style=\"text-align:center\">" . $language['TEAM_OWNER_H'] . "</td><td class=header style=\"text-align:center\">" . $language['TEAM_DESC_H'] . "</td><td class=header style=\"text-align:center\">" . $language['TEAM_EDIT_H'] . "</td>";
$admintpl->set("current", $current);
$teamsres = do_sqlquery("SELECT COUNT(*) from {$TABLE_PREFIX}teams where id>0 ORDER BY id ASC {$limit}");
$teamnum = mysqli_fetch_row($teamsres);
$num2 = $teamnum[0];
$perpage = max(0, $CURUSER["torrentsperpage"]) > 0 ? $CURUSER["torrentsperpage"] : 10;
开发者ID:Karpec,项目名称:gizd,代码行数:31,代码来源:admin.team.php


示例5: stderr

            stderr("{$lang['comment_error']}", "{$lang['comment_body']}");
        }
        $text = htmlsafechars($body);
        $editedat = TIME_NOW;
        if (isset($_POST['lasteditedby']) || $CURUSER['class'] < UC_STAFF) {
            sql_query("UPDATE comments SET text=" . sqlesc($text) . ", editedat={$editedat}, edit_name=" . sqlesc($CURUSER['username']) . ", editedby=" . sqlesc($CURUSER['id']) . " WHERE id=" . sqlesc($commentid)) or sqlerr(__FILE__, __LINE__);
        } else {
            sql_query("UPDATE comments SET text=" . sqlesc($text) . ", editedat={$editedat}, editedby=0 WHERE id=" . sqlesc($commentid)) or sqlerr(__FILE__, __LINE__);
        }
        header("Refresh: 0; url={$locale_link}.php?id=" . (int) $arr['tid'] . "{$extra_link}&viewcomm={$commentid}#comm{$commentid}");
        die;
    }
    $HTMLOUT = '';
    $HTMLOUT .= "<h1>{$lang['comment_edit']}'" . htmlsafechars($arr[$name]) . "'</h1>\n      <form method='post' action='comment.php?action=edit&amp;cid={$commentid}'>\n      <input type='hidden' name='locale' value='{$name}' />\n       <input type='hidden' name='tid' value='" . (int) $arr['tid'] . "' />\n      <input type='hidden' name='cid' value='{$commentid}' />";
    if ($INSTALLER09['BBcode'] && function_exists('textbbcode')) {
        $HTMLOUT .= textbbcode('comments', 'body', $arr["text"]);
    } else {
        $HTMLOUT .= "<textarea name='text' rows='10' cols='60'>" . htmlsafechars($arr["text"]) . "</textarea>";
    }
    $HTMLOUT .= '
      <br />' . ($CURUSER['class'] >= UC_STAFF ? '<input type="checkbox" value="lasteditedby" checked="checked" name="lasteditedby" id="lasteditedby" /> Show Last Edited By<br /><br />' : '') . ' <input type="submit" class="btn" value="' . $lang['comment_doit'] . '" /></form>';
    echo stdhead("{$lang['comment_edit']}'" . $arr[$name] . "'", true, $stdhead) . $HTMLOUT . stdfoot($stdfoot);
    die;
} elseif ($action == "delete") {
    if ($CURUSER['class'] < UC_STAFF) {
        stderr("{$lang['comment_error']}", "{$lang['comment_denied']}");
    }
    $commentid = isset($_GET['cid']) ? (int) $_GET['cid'] : 0;
    $tid = isset($_GET['tid']) ? (int) $_GET['tid'] : 0;
    if (!is_valid_id($commentid)) {
        stderr("{$lang['comment_error']}", "{$lang['comment_invalid_id']}");
开发者ID:Bigjoos,项目名称:U-232-V5,代码行数:31,代码来源:comment.php


示例6: exit

if (!defined('IN_OFFERS')) {
    exit('No direct script access allowed');
}
$rs = sql_query("SELECT o.*, c.id AS catid, c.name AS catname FROM offers AS o LEFT JOIN categories AS c ON (c.id=o.cat) WHERE o.id = {$id}") or sqlerr(__FILE__, __LINE__);
$numz = mysql_fetch_assoc($rs);
if ($CURUSER['id'] != $numz['userid'] && $CURUSER['class'] < UC_MODERATOR) {
    stderr('Error!', 'This is not your offer to edit.');
}
$s = htmlspecialchars($numz['offer']);
$catid = $numz['catid'];
$body = htmlspecialchars($numz['descr']);
$catname = $numz['catname'];
$s2 = "<select name='category'><option value='{$catid}'> {$catname} </option>\n";
foreach ($cats as $row) {
    $s2 .= "<option value='" . $row['id'] . "'>" . htmlspecialchars($row['name']) . "</option>\n";
}
$s2 .= "</select>\n";
$HTMLOUT .= "<br />\r\n<form method='post' name='compose' action='viewoffers.php?id={$id}&amp;take_offer_edit'><a name='add' id='add'></a>\r\n<table border='1' cellspacing='0' cellpadding='5'><tr><td align='left' colspan='2'>\r\n<h1 align='center'>Edit Offer : {$s}</h1>\r\n</td></tr>\r\n<tr><td align='right'><b>Title</b></td>\r\n<td align='left'><input type='text' size='40' name='offertitle' value='{$s}' /><b> Type</b> {$s2}</td></tr>\r\n<tr><td align='right' valign='top'><b>Image</b></td><td align='left'>\r\n<input type='text' name='picture' size='80' value='' />\r\n<br />(Direct link to image. NO TAG NEEDED! Will be shown in description)</td></tr>\r\n<tr><td align='right'><b>Description</b></td>\r\n\r\n<td align='left'>";
if ($INSTALLER09['textbbcode']) {
    require_once INCL_DIR . 'bbcode_functions.php';
    $HTMLOUT .= textbbcode('edit_offer', 'body', $body);
} else {
    $HTMLOUT .= "<textarea name='body' rows='10' cols='60'>{$body}</textarea>";
}
$HTMLOUT .= '</td></tr>';
if ($CURUSER['class'] >= UC_MODERATOR) {
    $HTMLOUT .= "<tr><td align='center' colspan='2'>Staff Only</td></tr>\r\n    <tr><td align='right'><b>Filled</b></td>\r\n    <td><input type='checkbox' name='filled'" . ($numz['torrentid'] != 0 ? " checked='checked'" : '') . " /></td></tr>\r\n    <tr><td align='right'><b>Accepted by ID</b></td><td>\r\n    <input type='text' size='10' value='{$numz['acceptedby']}' name='acceptedby' /></td></tr>\r\n    <tr><td align='right'>\r\n    <b>Torrent ID</b></td><td><input type='text' size='10' name='torrentid' value='{$numz['torrentid']}' /></td></tr>";
}
$HTMLOUT .= "<tr><td align='center' colspan='2'><input type='submit' value='Edit Offer' class='btn' /></td></tr></table></form><br />\n";
/////////////////////// HTML OUTPUT //////////////////////////////
print stdhead('Edit Offer') . $HTMLOUT . stdfoot();
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:31,代码来源:edit_offer.php


示例7: sql_query

( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
$rs = sql_query("SELECT r.*, c.id AS catid, c.name AS catname FROM requests AS r LEFT JOIN categories AS c ON (c.id=r.cat) WHERE r.id = {$id}") or sqlerr(__FILE__, __LINE__);
$numz = mysqli_fetch_assoc($rs);
if ($CURUSER['id'] != $numz['userid'] && $CURUSER['class'] < UC_MODERATOR) {
    stderr("{$lang['error_error']}", "{$lang['error_not_yours1']}");
}
$s = htmlspecialchars($numz['request']);
$catid = $numz['catid'];
$body = htmlspecialchars($numz['descr']);
$catname = $numz['catname'];
$s2 = "<select name='category'><option value='{$catid}'> {$catname} </option>\n";
foreach ($cats as $row) {
    $s2 .= "<option value='" . $row['id'] . "'>" . htmlspecialchars($row['name']) . "</option>\n";
}
$s2 .= "</select>\n";
$HTMLOUT .= "<br />\n<form method='post' name='compose' action='viewrequests.php?id={$id}&amp;take_req_edit'><a name='add' id='add'></a>\n<table border='1' cellspacing='0' cellpadding='5'><tr><td align='left' colspan='2'>\n<h1 align='center'>{$lang['details_edit']} {$s}</h1>\n</td></tr>\n<tr><td align='right'><b>{$lang['add_title']}</b></td>\n<td align='left'><input type='text' size='40' name='requesttitle' value='{$s}' /><b> {$lang['req_type']}</b> {$s2}</td></tr>\n<tr><td align='right' valign='top'><b>{$lang['add_image']}</b></td><td align='left'>\n<input type='text' name='picture' size='80' value='' />\n<br />{$lang['add_direct_link']}</td></tr>\n<tr><td align='right'><b>{$lang['add_description']}</b></td>\n\n<td align='left'>";
if ($INSTALLER09['textbbcode']) {
    require_once INCL_DIR . 'bbcode_functions.php';
    $HTMLOUT .= textbbcode('edit_request', 'body', $body);
} else {
    $HTMLOUT .= "<textarea name='body' rows='10' cols='60'>{$body}</textarea>";
}
$HTMLOUT .= '</td></tr>';
if ($CURUSER['class'] >= UC_MODERATOR) {
    $HTMLOUT .= "<tr><td align='center' colspan='2'>{$lang['edit_staff']}</td></tr>\n    <tr><td align='right'><b>{$lang['details_filled']}</b></td>\n    <td><input type='checkbox' name='filled'" . ($numz['torrentid'] != 0 ? " checked='checked'" : '') . " /></td></tr>\n    <tr><td align='right'><b>{$lang['edit_filled_by']}</b></td><td>\n    <input type='text' size='10' value='{$numz['filledby']}' name='filledby' /></td></tr>\n    <tr><td align='right'>\n    <b>{$lang['edit_torrent_id']}</b></td><td><input type='text' size='10' name='torrentid' value='{$numz['torrentid']}' /></td></tr>";
}
$HTMLOUT .= "<tr><td align='center' colspan='2'><input type='submit' value='{$lang['details_edit']}' class='btn' /></td></tr></table></form><br />\n";
/////////////////////// HTML OUTPUT //////////////////////////////
echo stdhead('Edit Request') . $HTMLOUT . stdfoot();
开发者ID:UniversalAdministrator,项目名称:U-232-V4,代码行数:31,代码来源:edit_request.php


示例8: send_pm

            send_pm($gonderen, $degeri, $baslik, $mesajmetni);
            $dis .= "PM send to User <b>" . $degeri . "</b><br />";
        }
        $dis .= "</div>";
    }
    $admintpl->set("show_tasks", $dis);
    $admintpl->set("language", $language);
    $admintpl->set("final_result", true, true);
    $admintpl->set("display_result", false, true);
}
if ($readyto == "Go") {
    $mdiff = $_POST["diff"] * $s[$_POST["type"]];
    $admintpl->set("search_diff_title", "Search for difference >" . makesize($mdiff) . " and User Group = " . ($kullan == 0 ? "ALL" : $kullan));
    $admintpl->set("final_result", false, true);
    $admintpl->set("display_result", true, true);
    $admintpl->set("pm_bbcode", textbbcode("act", "mesajmetni", ""));
    if ($XBTT_USE) {
        $udownloaded = "u.downloaded+IFNULL(x.downloaded,0)";
        $uuploaded = "u.uploaded+IFNULL(x.uploaded,0)";
        $utables = "{$TABLE_PREFIX}users u LEFT JOIN xbt_users x ON x.uid=u.id";
    } else {
        $udownloaded = "u.downloaded";
        $uuploaded = "u.uploaded";
        $utables = "{$TABLE_PREFIX}users u";
    }
    if ($kullan == 0) {
        $q = do_sqlquery("SELECT u.id as fid, username, {$udownloaded} as downloaded, {$uuploaded} as uploaded, level, UNIX_TIMESTAMP(joined) as joined, UNIX_TIMESTAMP(lastconnect) as lastconnect FROM {$utables} LEFT JOIN {$TABLE_PREFIX}users_level ul ON u.id_level=ul.id where (ABS({$udownloaded} - {$uuploaded}) > '" . $mdiff . "') ORDER BY ({$uuploaded} / {$udownloaded}) ASC", true);
    } else {
        $q = do_sqlquery("SELECT u.id as fid, username, {$udownloaded} as downloaded, {$uuploaded} as uploaded, level, UNIX_TIMESTAMP(joined) as joined, UNIX_TIMESTAMP(lastconnect) as lastconnect FROM {$utables} LEFT JOIN {$TABLE_PREFIX}users_level ul ON u.id_level=ul.id where (u.id_level='" . $kullan . "' and ABS({$udownloaded} - {$uuploaded}) > '" . $mdiff . "') ORDER BY ({$uuploaded} / {$udownloaded}) ASC", true);
    }
    $lusers = array();
开发者ID:r4kib,项目名称:cyberfun-xbtit,代码行数:31,代码来源:admin.search_diff.php


示例9: safe

 user<?php 
    print $n_pms > 1 ? 's' : '';
    ?>
!</h1>
<form name=compose method=post action=new_announcement.php>
<table border=1 cellspacing=0 cellpadding=5>
<tr>
<td colspan="2"><b>Subject: </b>
<input name="subject" type="text" size="76" value='<?php 
    print safe($subject);
    ?>
' ></td>
</tr>
<tr><td colspan="2"><div align="center">
<?php 
    textbbcode("compose", "body", $body);
    ?>
<!-- The following line is for backward compatability with scripts that don't
have the textbbcode() function installed in the global.php script -->
<!--<textarea name=msg cols=80 rows=15><?php 
    print safe($body);
    ?>
</textarea>-->

</div></td></tr>
<tr><td colspan="2" align=center>

<select name="expiry">

<?php 
    reset($days);
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:new_announcement.php


示例10: htmlspecialchars_uni

    print "<input type=\"hidden\" name=\"returnto\" value=\"details.php?id={$arr["tid"]}&amp;viewcomm={$commentid}#comm{$commentid}\" />\n";
    print "<input type=\"hidden\" name=\"cid\" value=\"{$commentid}\" />\n";
    ?>

	<table class=main border=0 cellspacing=0 cellpadding=3>
	<tr>
	<td class="colhead">
<?php 
    print "Редактирование комментария к \"" . htmlspecialchars_uni($arr["name"]) . "\"";
    ?>
	</td>
	</tr>
	<tr>
	<td>
<?php 
    textbbcode("comment", "text", htmlspecialchars_uni($arr["text"]));
    ?>
	</td></tr></table>

<?php 
    print "<p><input type=\"submit\" value=\"Отредактировать\" /></p></form>\n";
    stdfoot();
    die;
} elseif ($action == "check" || $action == "checkoff") {
    $tid = intval($_GET["tid"]);
    if (!is_valid_id($tid)) {
        stderr($tracker_lang['error'], "Неверный идентификатор {$tid}.");
    }
    $docheck = mysql_fetch_array(sql_query("SELECT COUNT(*) FROM checkcomm WHERE checkid = " . $tid . " AND userid = " . $CURUSER["id"] . " AND torrent = 1"));
    if ($docheck[0] > 0 && $action == "check") {
        stderr($tracker_lang['error'], "<p>Вы уже подписаны на этот торрент.</p><a href=details.php?id={$tid}#startcomments>Назад</a>");
开发者ID:klldll,项目名称:tbdev,代码行数:31,代码来源:comment.php


示例11: mysql_query

    }
    $deadchkbox .= " />{$lang['add_incl_dead']}\n";
    $HTMLOUT .= " " . $catdropdown . " </select> " . $deadchkbox . " \r\n<input type='submit' value='{$lang['req_search']}' class='btn' /></td></tr></table></form>\r\n<br />\n";
    $HTMLOUT .= "<form method='post' name='compose' action='viewrequests.php?new_request'><a name='add' id='add'></a>\r\n<table border='1' cellspacing='0' width='750px' cellpadding='5'><tr><td class='colhead' align='left' colspan='2'>\r\n{$lang['add_good_ratio']}" . $TBDEV['req_gigs_upped'] . "{$lang['add_share']}</td></tr>\r\n<tr><td align='right'><b>{$lang['add_title']}</b></td><td align='left'><input type='text' size='40' name='requesttitle' />\r\n<select name='category'><option value='0'>{$lang['add_select_cat']}</option>\n";
    $res2 = mysql_query('SELECT id, name FROM categories order by name');
    $num = mysql_num_rows($res2);
    $catdropdown2 = '';
    for ($i = 0; $i < $num; ++$i) {
        $cats2 = mysql_fetch_assoc($res2);
        $catdropdown2 .= "<option value='" . $cats2['id'] . "'";
        $catdropdown2 .= ">" . htmlspecialchars($cats2['name']) . "</option>\n";
    }
    $HTMLOUT .= $catdropdown2 . " </select></td></tr>\r\n<tr><td align='right' valign='top'><b>{$lang['add_image']}</b></td>\r\n<td align='left'>\r\n<input type='text' name='picture' size='80' /><br />\r\n{$lang['add_direct_link']}<br />\r\n<!--\r\n<a href='panel.php?tool=bitbucket' rel='external'><strong>{$lang['add_upload_image']}</strong></a>\r\n-->\r\n</td></tr>\r\n\r\n<tr><td align='right'><b>{$lang['add_description']}</b></td><td align='left'>\n";
    if ($TBDEV['textbbcode']) {
        require_once 'include/bbcode_functions.php';
        $HTMLOUT .= textbbcode('add_request', 'body', '');
    } else {
        $HTMLOUT .= "<textarea name='body' rows='20' cols='80'></textarea>";
    }
    $HTMLOUT .= "</td></tr>\r\n<tr><td align='center' colspan='2'>\r\n<input type='submit' value='{$lang['add_ok']}' class='btn' /></td></tr></table>\r\n</form>\r\n<br /><br />\n";
}
$rescount = mysql_query('SELECT id FROM requests LIMIT 1') or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($rescount) > 0) {
    $res = mysql_query("SELECT users.username, requests.id, requests.userid, requests.cat, requests.request, requests.added, categories.name, categories.image, uploaded, downloaded FROM users inner join requests ON requests.userid = users.id left join categories ON requests.cat = categories.id order by requests.id desc LIMIT 10") or sqlerr();
    $num = mysql_num_rows($res);
    $HTMLOUT .= "<table border='1' cellspacing='0' width='750px' cellpadding='5'>\r\n    <tr><td width='50px' class='colhead' align='left'>{$lang['add_cat']}</td>\r\n    <td class='colhead' align='left'>{$lang['add_request']}</td><td class='colhead' align='center'>{$lang['req_added']}</td>\r\n    <td class='colhead' align='center'>{$lang['req_req_by']}</td></tr>\n";
    foreach ($cats as $key => $value) {
        $change[$value['id']] = array('id' => $value['id'], 'name' => $value['name'], 'image' => $value['image']);
    }
    while ($arr = mysql_fetch_assoc($res)) {
        $addedby = "<td style='padding: 0px' align='center'><b><a href='userdetails.php?id={$arr['userid']}'>{$arr['username']}</a></b></td>";
开发者ID:thefkboss,项目名称:U-232,代码行数:31,代码来源:add_request.php


示例12: tr

<tr><td class="colhead" colspan="2">Выбранный шаблон: <?php 
echo $types[$type]["name"];
?>
</td></tr>
<?php 
tr("Название релиза", "<input type=\"text\" name=\"name\" size=\"80\" /><br />Пример: Смерть Президента (2006) DVDRip\n", 1);
tr("Постер", "<input type=\"text\" name=\"poster\" size=\"80\" /><br />Залить картинку на <a href=\"http://www.imageshack.us\">ImageShack</a>", 1);
?>
<tr><td width="" class="heading" valign="top" align="right">Верхний шаблон</td><td valign="top" align="left"><?php 
echo textbbcode("index", "top", $templates[$type]["toptemplate"]);
?>
</td></tr>
<tr><td width="" class="heading" valign="top" align="right">Средний шаблон</td><td valign="top" align="left"><?php 
echo textbbcode("index", "center", $templates[$type]["centertemplate"]);
?>
</td></tr>
<tr><td width="" class="heading" valign="top" align="right">Нижний шаблон</td><td valign="top" align="left"><?php 
echo textbbcode("index", "bottom", $templates[$type]["bottomtemplate"]);
?>
</td></tr>
<?php 
tr("Номер торрента", "<input type=\"text\" name=\"torrentid\" size=\"60\" /><br />Пример: {$DEFAULTBASEURL}/details.php?id=<b>6764</b><br />Выделенное жирным - и есть номер торрента\n", 1);
tr("URL IMDB", "<input type=\"text\" name=\"imdb\" size=\"60\" /><br />Пример: http://www.imdb.com/title/tt0408306/\n", 1);
tr("Категория", $categories, 1);
?>
<tr><td align="center" colspan="2"><input type="submit" value="Добавить" /></td></tr>
</table>
</form>

<?php 
stdfoot();
开发者ID:klldll,项目名称:tbdev,代码行数:31,代码来源:indexadd.php


示例13: textbbcode

    $tplnews["hidden_action"] = $action;
    $tplnews["hidden_id"] = $_GET["id"];
    $tplnews["news_title"] = $title;
    $tplnews["bbcode"] = textbbcode("news", "news", $news);
    $newstpl->set("news", $tplnews);
} elseif ($action == "add") {
    global $news, $title, $CURUSER, $language, $newstpl;
    $newstpl = new bTemplate();
    $newstpl->set("language", $language);
    $newstpl->set("ADD_EDIT", true, true);
    $tplnews = array();
    $tplnews["action"] = "index.php?page=news&amp;act=confirm";
    $tplnews["hidden_action"] = $action;
    $tplnews["hidden_id"] = $_GET["id"];
    $tplnews["news_title"] = $title;
    $tplnews["bbcode"] = textbbcode("news", "news", $news);
    $newstpl->set("news", $tplnews);
} elseif ($action == "confirm") {
    if (!isset($_POST["conferma"])) {
    } elseif ($_POST["conferma"] == $language["FRM_CONFIRM"]) {
        if (isset($_POST["news"]) && isset($_POST["title"])) {
            $news = $_POST["news"];
            $uid = $CURUSER["uid"];
            $title = $_POST["title"];
            if ($news == "" || $title == "") {
                err_msg($language["ERROR"], $language["ERR_INS_TITLE_NEWS"]);
            } else {
                $news = sqlesc($news);
                $title = sqlesc($title);
                $nid = intval($_POST["id"]);
                $action = $_POST['action'];
开发者ID:fchypzero,项目名称:cybyd,代码行数:31,代码来源:news.php


示例14: htmlspecialchars

    }
    $body = htmlspecialchars(unesc($num["descr"]));
    $s2 = "<select name=\"category\">\n";
    $cats = genrelist($browsecatmode);
    foreach ($cats as $row) {
        $s2 .= "<option value=\"" . $row["id"] . "\" " . ($row['id'] == $id2 ? " selected=\"selected\"" : "") . ">" . htmlspecialchars($row["name"]) . "</option>\n";
    }
    $s2 .= "</select>\n";
    stdhead($lang_offers['head_edit_offer'] . ": {$s}");
    $title = htmlspecialchars(trim($s));
    print "<form id=\"compose\" method=\"post\" name=\"compose\" action=\"?id=" . $id . "&amp;take_off_edit=1\">" . "<table width=\"940\" cellspacing=\"0\" cellpadding=\"3\"><tr><td class=\"colhead\" align=\"center\" colspan=\"2\">" . $lang_offers['text_edit_offer'] . "</td></tr>";
    tr($lang_offers['row_type'] . "<font color=\"red\">*</font>", $s2, 1);
    tr($lang_offers['row_title'] . "<font color=\"red\">*</font>", "<input type=\"text\" style=\"width: 650px\" name=\"name\" value=\"" . $title . "\" />", 1);
    tr($lang_offers['row_post_or_photo'], "<input type=\"text\" name=\"picture\" style=\"width: 650px\" value='' /><br />" . $lang_offers['text_link_to_picture'], 1);
    print "<tr><td class=\"rowhead\" align=\"right\" valign=\"top\"><b>" . $lang_offers['row_description'] . "<font color=\"red\">*</font></b></td><td class=\"rowfollow\" align=\"left\">";
    textbbcode("compose", "body", $body, false);
    print "</td></tr>";
    print "<tr><td class=\"toolbox\" style=\"vertical-align: middle; padding-top: 10px; padding-bottom: 10px;\" align=\"center\" colspan=\"2\"><input id=\"qr\" type=\"submit\" value=\"" . $lang_offers['submit_edit_offer'] . "\" class=\"btn\" /></td></tr></table></form><br />\n";
    stdfoot();
    die;
}
//=== end edit offer
//==== take offer edit
if ($_GET["take_off_edit"]) {
    $take_off_edit = 0 + $_GET["take_off_edit"];
    if ($take_off_edit != '1') {
        stderr($lang_offers['std_error'], $lang_offers['std_smell_rat']);
    }
    $id = 0 + $_GET["id"];
    $res = sql_query("SELECT userid FROM offers WHERE id = {$id}") or sqlerr(__FILE__, __LINE__);
    $num = mysql_fetch_array($res);
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:31,代码来源:offers.php


示例15: tr

 print "<tr><td class=\"colhead\" colspan=\"2\">Редактировать торрент</td></tr>";
 if ($row['multitracker'] == 'no') {
     tr($tracker_lang['torrent_file'], "<input type=file name=tfile size=80>\n", 1);
 }
 // disable torrent update for multitracked ones
 tr($tracker_lang['torrent_name'], "<input type=\"text\" name=\"name\" value=\"" . $row["name"] . "\" size=\"80\" />", 1);
 tr($tracker_lang['img_poster'], "<input type=radio name=img1action value='keep' checked>Оставить постер&nbsp&nbsp" . "<input type=radio name=img1action value='delete'>Удалить постер&nbsp&nbsp" . "<input type=radio name=img1action value='update'>Обновить постер<br /><b>Постер:</b>&nbsp&nbsp<input type=file name=image0 size=80>", 1);
 tr($tracker_lang['images'], "<input type=radio name=img2action value='keep' checked>Оставить скриншот №1&nbsp&nbsp" . "<input type=radio name=img2action value='delete'>Удалить скриншот №1&nbsp&nbsp" . "<input type=radio name=img2action value='update'>Обновить скриншот №1<br /><b>Картинка №2:</b>&nbsp&nbsp<input type=file name=image1 size=80><br /><br />" . "<input type=radio name=img3action value='keep' checked>Оставить скриншот №2&nbsp&nbsp" . "<input type=radio name=img3action value='delete'>Удалить скриншот №2&nbsp&nbsp" . "<input type=radio name=img3action value='update'>Обновить скриншот №2<br /><b>Картинка №3:</b>&nbsp&nbsp<input type=file name=image2 size=80><br /><br />" . "<input type=radio name=img4action value='keep' checked>Оставить скриншот №3&nbsp&nbsp" . "<input type=radio name=img4action value='delete'>Удалить скриншот №3&nbsp&nbsp" . "<input type=radio name=img4action value='update'>Обновить скриншот №3<br /><b>Картинка №4:</b>&nbsp&nbsp<input type=file name=image3 size=80><br /><br />" . "<input type=radio name=img5action value='keep' checked>Оставить скриншот №4&nbsp&nbsp" . "<input type=radio name=img5action value='delete'>Удалить скриншот №4&nbsp&nbsp" . "<input type=radio name=img5action value='update'>Обновить скриншот №4<br /><b>Картинка №5:</b>&nbsp&nbsp<input type=file name=image4 size=80>", 1);
 if (strpos($row["ori_descr"], "<") === false || strpos($row["ori_descr"], "&lt;") !== false) {
     $c = "";
 } else {
     $c = " checked";
 }
 //tr("Описание", "<textarea name=\"descr\" rows=\"10\" cols=\"80\">" . htmlspecialchars_uni($row["ori_descr"]) . "</textarea><br />(HTML <b>не</b> разрешен. Нажмите <a href=tags.php>сюда</a> для получения информации о тегах.)", 1);
 print "<tr><td class=rowhead style='padding: 3px'>" . $tracker_lang['description'] . "</td><td>";
 textbbcode("edit", "descr", htmlspecialchars_uni($row["ori_descr"]));
 print "</td></tr>\n";
 $s = "<select name=\"type\">\n";
 $cats = genrelist();
 foreach ($cats as $subrow) {
     $s .= "<option value=\"" . $subrow["id"] . "\"";
     if ($subrow["id"] == $row["category"]) {
         $s .= " selected=\"selected\"";
     }
     $s .= ">" . htmlspecialchars_uni($subrow["name"]) . "</option>\n";
 }
 $s .= "</select>\n";
 tr("Тип", $s, 1);
 tr("Видимый", "<input type=\"checkbox\" name=\"visible\"" . ($row["visible"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" />\r\n\t\t\t\t\tВидимый в торрентах<br /><table border=0 cellspacing=0 cellpadding=0 width=420><tr><td class=embedded>Обратите внимание, что торрент автоматически станет видимым когда появиться раздающий и авто 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP textdomain函数代码示例发布时间:2022-05-23
下一篇:
PHP textarea_tag函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap