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


PHP begin_main_frame函数代码示例

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


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

示例1: addForum

function addForum()
{
    global $CURUSER, $lang;
    $HTMLOUT = '';
    $HTMLOUT .= "<span class='btn'><a href='admin.php?action=forummanage'>{$lang['btn_cancel']}</a></span><br /><br />";
    $HTMLOUT .= begin_main_frame();
    $HTMLOUT .= "<form method='post' action='admin.php?action=forummanage&amp;mode=takeadd'>\r\n    <table width='600'  border='0' cellspacing='0' cellpadding='3' align='center'>\r\n      <tr align='center'>\r\n        <td colspan='2' class='colhead'>{$lang['header_makenew']}</td>\r\n      </tr>\r\n      <tr>\r\n        <td><b>{$lang['table_forumname']}</b></td>\r\n        <td><input name='name' type='text' size='20' maxlength='60' /></td>\r\n      </tr>\r\n      <tr>\r\n        <td><b>{$lang['table_forumdescr']}</b></td>\r\n        <td><input name='desc' type='text' size='30' maxlength='200' /></td>\r\n      </tr>\r\n      <tr>\r\n        <td><b>{$lang['table_minreadperm']}</b></td>\r\n        <td><select name='readclass'>";
    $maxclass = get_user_class();
    for ($i = 0; $i <= $maxclass; ++$i) {
        $HTMLOUT .= "<option value='{$i}'" . ($CURUSER["class"] == $i ? " selected='selected'" : "") . ">" . get_user_class_name($i) . "</option>\n";
    }
    $HTMLOUT .= "</select>\r\n        </td>\r\n      </tr>\r\n      <tr>\r\n        <td><b>{$lang['table_minwriteperm']}</b></td>\r\n        <td><select name='writeclass'>";
    $maxclass = get_user_class();
    for ($i = 0; $i <= $maxclass; ++$i) {
        $HTMLOUT .= "<option value='{$i}'" . ($CURUSER["class"] == $i ? " selected='selected'" : "") . ">" . get_user_class_name($i) . "</option>\n";
    }
    $HTMLOUT .= "</select></td>\r\n      </tr>\r\n      <tr>\r\n        <td><b>{$lang['table_mincreatetperm']}</b></td>\r\n        <td><select name='createclass'>";
    $maxclass = get_user_class();
    for ($i = 0; $i <= $maxclass; ++$i) {
        $HTMLOUT .= "<option value='{$i}'" . ($CURUSER["class"] == $i ? " selected='selected'" : "") . ">" . get_user_class_name($i) . "</option>\n";
    }
    $HTMLOUT .= "</select></td>\r\n      </tr>\r\n      <tr>\r\n        <td><b>{$lang['table_forumrank']}</b></td>\r\n        <td><select name='sort'>";
    $res = mysql_query("SELECT sort FROM forums");
    $nr = mysql_num_rows($res);
    $maxclass = $nr + 1;
    for ($i = 0; $i <= $maxclass; ++$i) {
        $HTMLOUT .= "<option value='{$i}'>{$i} </option>\n";
    }
    $HTMLOUT .= "</select>\r\n     \r\n        </td>\r\n      </tr>\r\n\r\n      <tr align='center'>\r\n        <td colspan='2'>\r\n        <!--<input type='hidden' name='action' value='takeadd' /> -->\r\n        <input type='submit' name='Submit' value='{$lang['btn_makeforum']}' class='btn' /></td>\r\n      </tr>\r\n      </table>\r\n            </form>";
    //	end_frame();
    $HTMLOUT .= end_main_frame();
    print stdhead("{$lang['stdhead_addforum']}") . $HTMLOUT . stdfoot();
}
开发者ID:CHEZDESIGN,项目名称:mytorrent,代码行数:33,代码来源:forummanage.php

示例2: Copyright

/**
|--------------------------------------------------------------------------|
|   https://github.com/Bigjoos/                                |
|--------------------------------------------------------------------------|
|   Licence Info: GPL                                              |
|--------------------------------------------------------------------------|
|   Copyright (C) 2010 U-232 V4                        |
|--------------------------------------------------------------------------|
|   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.   |
|--------------------------------------------------------------------------|
|   Project Leaders: Mindless,putyn.                       |
|--------------------------------------------------------------------------|
_   _   _   _   _     _   _   _   _   _   _     _   _   _   _
/ \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
function rsstfreakinfo()
{
    require_once INCL_DIR . 'html_functions.php';
    global $INSTALLER09;
    $html = '';
    $use_limit = true;
    $limit = 5;
    $xml = file_get_contents('http://feed.torrentfreak.com/Torrentfreak/');
    $html = begin_main_frame() . begin_frame('Torrent Freak news');
    $icount = 1;
    $doc = new DOMDocument();
    @$doc->loadXML($xml);
    $items = $doc->getElementsByTagName('item');
    foreach ($items as $item) {
        $html .= '<h3><u>' . $item->getElementsByTagName('title')->item(0)->nodeValue . '</u></h3><font class="small">by ' . str_replace(array('<![CDATA[', ']]>'), '', $item->getElementsByTagName('creator')->item(0)->nodeValue) . ' on ' . $item->getElementsByTagName('pubDate')->item(0)->nodeValue . '</font><br />' . str_replace(array('<![CDATA[', ']]>'), '', $item->getElementsByTagName('description')->item(0)->nodeValue) . '<br /><a href="' . $item->getElementsByTagName('link')->item(0)->nodeValue . '" target="_blank"><font class="small">Read more</font></a>';
        if ($use_limit && $icount == $limit) {
            break;
        }
        $icount++;
    }
    $html = str_replace(array('“', '”'), '"', $html);
    $html = str_replace(array("’", "‘", "‘"), "'", $html);
    $html = str_replace("–", "-", $html);
    $html .= end_frame() . end_main_frame();
    return $html;
}
开发者ID:UniversalAdministrator,项目名称:U-232-V4,代码行数:43,代码来源:tfreak.php

示例3: reqmenu

 function reqmenu($selected = "viewrequest")
 {
     global $title;
     stdhead($title);
     begin_main_frame();
     end_main_frame();
 }
开发者ID:NullYing,项目名称:mtpt,代码行数:7,代码来源:viewrequest.php

示例4: commenttable_new

function commenttable_new($rows)
{
    global $CURUSER, $HTTP_SERVER_VARS;
    begin_main_frame();
    begin_frame();
    $count = 0;
    foreach ($rows as $row) {
        $subres = mysql_query("SELECT name from torrents where id=" . unsafeChar($row["torrent"])) or sqlerr(__FILE__, __LINE__);
        $subrow = mysql_fetch_array($subres);
        print "<br /><a href=\"details.php?id=" . safeChar($row["torrent"]) . "\">" . safeChar($subrow["name"]) . "</a><br />\n";
        print "<p class=sub>#" . $row["id"] . " by ";
        if (isset($row["username"])) {
            print "<a name=comm" . $row["id"] . " href=userdetails.php?id=" . safeChar($row["user"]) . "><b>" . safechar($row["username"]) . "</b></a>" . ($row["warned"] == "yes" ? "<img src=" . "pic/warned.gif alt=\"Warned\">" : "");
        } else {
            print "<a name=\"comm" . safeChar($row["id"]) . "\"><i>(orphaned)</i></a>\n";
        }
        print " at " . safeChar($row["added"]) . " GMT" . "- [<a href=comment.php?action=edit&cid={$row['id']}>Edit</a>]" . "- [<a href=deletecomment.php?id={$row['id']}>Delete</a>]</p>\n";
        $avatar = $CURUSER["avatars"] == "yes" ? safechar($row["avatar"]) : "";
        if (!$avatar) {
            $avatar = "pic/default_avatar.gif";
        }
        begin_table(true);
        print "<tr valign=top>\n";
        print "<td align=center width=150 style='padding: 0px'><img width=150 src={$avatar}></td>\n";
        print "<td class=text>" . format_comment($row["text"]) . "</td>\n";
        print "</tr>\n";
        end_table();
    }
    end_frame();
    end_main_frame();
}
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:torrentcomments.php

示例5: usercommenttable

function usercommenttable($rows)
{
    global $CURUSER, $pic_base_url, $userid;
    begin_main_frame();
    begin_frame();
    $count = 0;
    foreach ($rows as $row) {
        echo "<p class=sub>#" . $row["id"] . " by ";
        if (isset($row["username"])) {
            $title = $row["title"];
            if ($title == "") {
                $title = get_user_class_name($row["class"]);
            } else {
                $title = safeChar($title);
            }
            echo "<a name=comm" . $row["id"] . " href=userdetails.php?id=" . $row["user"] . "><b>" . safeChar($row["username"]) . "</b></a>" . ($row["donor"] == "yes" ? "<img src=\"{$pic_base_url}star.gif\" alt='Donor'>" : "") . ($row["warned"] == "yes" ? "<img src=" . "\"{$pic_base_url}warned.gif\" alt=\"Warned\">" : "") . " ({$title})\n";
        } else {
            echo "<a name=\"comm" . $row["id"] . "\"><i>(orphaned)</i></a>\n";
        }
        echo " at " . $row["added"] . " GMT" . ($userid == $CURUSER["id"] || $row["user"] == $CURUSER["id"] || get_user_class() >= UC_MODERATOR ? "- [<a href=usercomment.php?action=edit&amp;cid={$row['id']}>Edit</a>]" : "") . ($userid == $CURUSER["id"] || get_user_class() >= UC_MODERATOR ? "- [<a href=usercomment.php?action=delete&amp;cid={$row['id']}>Delete</a>]" : "") . ($row["editedby"] && get_user_class() >= UC_MODERATOR ? "- [<a href=usercomment.php?action=vieworiginal&amp;cid={$row['id']}>View original</a>]" : "") . "</p>\n";
        $avatar = $CURUSER["avatars"] == "yes" ? safeChar($row["avatar"]) : "";
        $text = format_comment($row["text"]);
        if ($row["editedby"]) {
            $text .= "<p><font size=1 class=small>Last edited by <a href=userdetails.php?id={$row['editedby']}><b>{$row['username']}</b></a> at {$row['editedat']} GMT</font></p>\n";
        }
        begin_table(true);
        echo "<tr valign=top>\n";
        echo "<td align=center width=150 style='padding: 0px'><img width=150 src=\"{$avatar}\"></td>\n";
        echo "<td class=text>{$text}</td>\n";
        echo "</tr>\n";
        end_table();
    }
    end_frame();
    end_main_frame();
}
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:35,代码来源:userdetails.php

示例6: logmenu

function logmenu($selected = "candidate")
{
    global $lang_log;
    global $showfunbox_main;
    begin_main_frame();
    print "<div id=\"lognav\"><ul id=\"logmenu\" class=\"menu\">";
    print "<li" . ($selected == "recycle" ? " class=selected" : "") . "><a href=\"?status=recycle\">回收站</a></li>";
    print "<li" . ($selected == "candidate" ? " class=selected" : "") . "><a href=\"?status=candidate\">候选区</a></li>";
    print "</ul></div>";
    end_main_frame();
}
开发者ID:NullYing,项目名称:mtpt,代码行数:11,代码来源:recycle.php

示例7: usercpmenu

function usercpmenu($selected = "home")
{
    global $lang_usercp;
    begin_main_frame();
    print "<div id=\"usercpnav\"><ul id=\"usercpmenu\" class=\"menu\">";
    print "<li" . ($selected == "home" ? " class=selected" : "") . "><a href=\"usercp.php\">" . $lang_usercp['text_user_cp_home'] . "</a></li>";
    print "<li" . ($selected == "personal" ? " class=selected" : "") . "><a href=\"?action=personal\">" . $lang_usercp['text_personal_settings'] . "</a></li>";
    print "<li" . ($selected == "tracker" ? " class=selected" : "") . "><a href=\"?action=tracker\">" . $lang_usercp['text_tracker_settings'] . "</a></li>";
    print "<li" . ($selected == "forum" ? " class=selected" : "") . "><a href=\"?action=forum\">" . $lang_usercp['text_forum_settings'] . "</a></li>";
    print "<li" . ($selected == "security" ? " class=selected" : "") . "><a href=\"?action=security\">" . $lang_usercp['text_security_settings'] . "</a></li>";
    print "</ul></div>";
    end_main_frame();
}
开发者ID:CptTZ,项目名称:NexusPHP-1,代码行数:13,代码来源:usercp.php

示例8: logmenu

function logmenu($selected = "dailylog")
{
    global $lang_log;
    global $showfunbox_main;
    begin_main_frame();
    print "<div id=\"lognav\"><ul id=\"logmenu\" class=\"menu\">";
    print "<li" . ($selected == "dailylog" ? " class=selected" : "") . "><a href=\"?action=dailylog\">" . $lang_log['text_daily_log'] . "</a></li>";
    print "<li" . ($selected == "chronicle" ? " class=selected" : "") . "><a href=\"?action=chronicle\">" . $lang_log['text_chronicle'] . "</a></li>";
    if ($showfunbox_main == 'yes') {
        print "<li" . ($selected == "funbox" ? " class=selected" : "") . "><a href=\"?action=funbox\">" . $lang_log['text_funbox'] . "</a></li>";
    }
    print "<li" . ($selected == "news" ? " class=selected" : "") . "><a href=\"?action=news\">" . $lang_log['text_news'] . "</a></li>";
    print "<li" . ($selected == "poll" ? " class=selected" : "") . "><a href=\"?action=poll\">" . $lang_log['text_poll'] . "</a></li>";
    print "</ul></div>";
    end_main_frame();
}
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:16,代码来源:log.php

示例9: reqcommenttable

function reqcommenttable($rows)
{
	global $CURUSER, $HTTP_SERVER_VARS;
	begin_main_frame();
	begin_frame();
	$count = 0;

	foreach ($rows as $row) {
		print("<p class=sub>#" . $row["id"] . " bY: ");
		if (isset($row["username"])) {
			$username = $row["username"];
			$ratres = mysql_query("SELECT uploaded, downloaded FROM users WHERE username='$username'");
			$rat = mysql_fetch_array($ratres);
			if ($rat["downloaded"] > 0) {
				$ratio = $rat['uploaded'] / $rat['downloaded'];
				$ratio = number_format($ratio, 3);
				$color = get_ratio_color($ratio);
				if ($color)
					$ratio = "<font color=$color>$ratio</font>";
			} else
				if ($rat["uploaded"] > 0)
					$ratio = "Inf.";
				else
					$ratio = "---";

			$title = $row["title"];
			if ($title == "")
				$title = get_user_class_name($row["class"]);
			else
				$title = htmlspecialchars($title);
			print("<a name=comm".$row["id"]." href=userdetails.php?id=".$row["user"]."><b>".htmlspecialchars($row["username"])."</b></a>".($row["donor"] == "yes" ? "<img src=pic/star.gif alt='Donor'>" : "").($row["warned"] == "yes" ? "<img src="."/pic/warned.gif alt=\"Warned\">" : "")." ($title) (Ratio: $ratio)\n");
		} else
			print("<a name=\"comm" . $row["id"] . "\"><i>(orphaned)</i></a>\n");
		print(" at " . $row["added"] . " GMT" .($row["user"] == $CURUSER["id"] || get_user_class() >= UC_MODERATOR ? "- [<a href=reqcomment.php?action=edit&amp;cid=$row[id]>Edit</a>]" : "") .(get_user_class() >= UC_MODERATOR ? "- [<a href=reqcomment.php?action=delete&amp;cid=$row[id]>Delete</a>]" : "") . "</p>\n");$avatar = ($CURUSER["avatars"] == "yes" ? htmlspecialchars($row["avatar"]) : "");
		if (!$avatar)
			$avatar = "/pic/default_avatar.gif";
		$text = format_comment($row["text"]);
		begin_table(true);
		print("<tr valign=top>\n");
		print("<td align=center width=150 style='padding: 0px'><img width=150 src=$avatar></td>\n");
		print("<td class=text>$text</td>\n");
		print("</tr>\n");
		end_table();
	}
	end_frame();
	end_main_frame();
}
开发者ID:herrag33k,项目名称:TomTorrent,代码行数:47,代码来源:reqdetails.php

示例10: rsstfreakinfo

/**
 *   https://09source.kicks-ass.net:8443/svn/installer09/
 *   Licence Info: GPL
 *   Copyright (C) 2010 Installer09 v.2
 *   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *   Project Leaders: Mindless,putyn,kidvision.
 **/
function rsstfreakinfo()
{
    require_once INCL_DIR . 'html_functions.php';
    global $TBDEV;
    $html = '';
    $use_limit = true;
    $limit = 5;
    $xml = file_get_contents('http://feed.torrentfreak.com/Torrentfreak/');
    preg_match_all('/\\<(title|pubDate|dc:creator|link|description)\\>(.+?)\\<\\/\\1\\>/i', $xml, $out, PREG_PATTERN_ORDER);
    $feeds = $out[2];
    $c = count($feeds);
    $html = begin_main_frame() . begin_frame('Torrent Freak news');
    for ($i = 5; $i < $c; $i += 5) {
        $html .= '<h3><u>' . $feeds[$i] . '</u></h3><font class="small">by ' . $feeds[$i + 3] . ' on ' . $feeds[$i + 2] . '</font><br /><p>' . str_replace(array('<![CDATA[', ']]>'), '', $feeds[$i + 4]) . '</p><br /><a href="' . $feeds[$i + 1] . '" target="_blank"><font class="small">Read more</font></a>';
        if ($use_limit && $i >= $limit * 5) {
            break;
        }
    }
    $html .= end_frame() . end_main_frame();
    return $html;
}
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:28,代码来源:tfreak.php

示例11: usercommenttable

function usercommenttable($rows)
{
    $htmlout = '';
    global $CURUSER, $INSTALLER09, $userid;
    $htmlout .= begin_main_frame();
    $htmlout .= begin_frame();
    $count = 0;
    foreach ($rows as $row) {
        $htmlout .= "<p class='sub'>#{$row['id']} by ";
        if (isset($row["username"])) {
            $title = $row["title"];
            if ($title == "") {
                $title = get_user_class_name($row["class"]);
            } else {
                $title = htmlsafechars($title);
            }
            $htmlout .= "<a name='comm" . (int) $row['id'] . "' href='userdetails.php?id=" . (int) $row['user'] . "'><b>" . htmlsafechars($row["username"]) . "</b></a>" . ($row["donor"] == "yes" ? "<img src=\"{$INSTALLER09['pic_base_url']}star.gif\" alt='Donor' />" : "") . ($row["warned"] >= 1 ? "<img src=" . "\"{$INSTALLER09['pic_base_url']}warned.gif\" alt=\"Warned\" />" : "") . " ({$title})\n";
        } else {
            $htmlout .= "<a name=\"comm" . (int) $row["id"] . "\"><i>(orphaned)</i></a>\n";
        }
        $htmlout .= " " . get_date($row["added"], 'DATE', 0, 1) . "" . ($userid == $CURUSER["id"] || $row["user"] == $CURUSER["id"] || $CURUSER['class'] >= UC_STAFF ? " - [<a href='usercomment.php?action=edit&amp;cid={$row['id']}'>Edit</a>]" : "") . ($userid == $CURUSER["id"] || $CURUSER['class'] >= UC_STAFF ? " - [<a href='usercomment.php?action=delete&amp;cid=" . (int) $row['id'] . "'>Delete</a>]" : "") . ($row["editedby"] && $CURUSER['class'] >= UC_STAFF ? " - [<a href='usercomment.php?action=vieworiginal&amp;cid=" . (int) $row['id'] . "'>View original</a>]" : "") . "</p>\n";
        $avatar = $CURUSER["avatars"] == "yes" ? htmlsafechars($row["avatar"]) : "";
        if (!$avatar) {
            $avatar = "{$INSTALLER09['pic_base_url']}default_avatar.gif";
        }
        $text = format_comment($row["text"]);
        if ($row["editedby"]) {
            $text .= "<font size='1' class='small'><br /><br />Last edited by <a href='userdetails.php?id=" . (int) $row['editedby'] . "'><b>" . htmlsafechars($row['username']) . "</b></a> " . get_date($row['editedat'], 'DATE', 0, 1) . "</font>\n";
        }
        $htmlout .= begin_table(true);
        $htmlout .= "<tr valign='top'>\n";
        $htmlout .= "<td align='center' width='150' style='padding:0px'><img width='150' src=\"{$avatar}\" alt=\"Avatar\" /></td>\n";
        $htmlout .= "<td class='text'>{$text}</td>\n";
        $htmlout .= "</tr>\n";
        $htmlout .= end_table();
    }
    $htmlout .= end_frame();
    $htmlout .= end_main_frame();
    return $htmlout;
}
开发者ID:CharlieHD,项目名称:U-232-V3,代码行数:40,代码来源:usercomment.php

示例12: switch

switch ($do) {
    case 'check':
        #ipban check
        break;
    default:
        $res = sql_query("SELECT username FROM users WHERE id =" . sqlesc($uid) . "") or sqlerr(__FILE__, __LINE__);
        if (mysql_num_rows($res) == 0) {
            stderr("Error", "User not found");
            exit;
        }
        $perpage = 5;
        $username = mysql_result($res, 0);
        $count = get_row_count("iplog", 'WHERE userid =' . $uid);
        $pager = pager($perpage, $count, 'admin.php?action=iphistory&amp;id=' . $uid . '&amp;' . (($order == 'access' ? 'order=access' : 'order=ip') . '&amp;'));
        $q1 = sql_query('SELECT u.id,INET_ATON(u.ip) as cip, l.ip, l.access AS last_access, (SELECT count(u2.id) FROM users as u2 WHERE u2.id != u.id AND INET_ATON(u2.ip) = l.ip ) as log_count, (SELECT count(b.id) FROM bans as b WHERE l.ip >= first AND l.ip <= last ) as ban_count FROM users as u LEFT JOIN iplog as l ON u.id = l.userid WHERE u.id = ' . $uid . ' ORDER BY ' . ($order == 'access' ? 'l.access' : 'l.ip') . ' DESC ' . $pager['limit']) or sqlerr(__FILE__, __LINE__);
        $HTMLOUT = begin_main_frame() . begin_frame("Historical IP addresses used by <a href='{$TBDEV['baseurl']}/userdetails.php?id={$uid}'><b>" . $username . "</b></a>", true);
        if ($count > $perpage) {
            $HTMLOUT .= $pager['pagertop'];
        }
        $HTMLOUT .= begin_table() . "<tr>\r\n\t<td class='colhead'><a class='colhead' href='{$TBDEV['baseurl']}/admin.php?action=iphistory&amp;id=" . $uid . "&amp;order=access'>Last access</a></td>\n\r\n\t<td class='colhead'><a class='colhead' href='{$TBDEV['baseurl']}/admin.php?action=iphistory&amp;id=" . $uid . "&amp;order=ip'>IP</a></td>\n\r\n\t<td class='colhead'>Hostname</td>\n\r\n\t</tr>\n";
        while ($a = mysql_fetch_assoc($q1)) {
            $HTMLOUT .= "<tr><td>" . get_date($a["last_access"], 'DATE', 1, 0) . "</td>\n";
            $ip = long2ip($a['ip']);
            if ($a['log_count'] >= 1) {
                $HTMLOUT .= "<td><b><a href='{$TBDEV['baseurl']}/admin.php?action=ipsearch&amp;ip=" . $ip . "' title='ip used by other persons'>" . $ip . "</a></b></td>\n";
            } elseif ($a['ban_count'] > 0) {
                $HTMLOUT .= "<td><a href='{$TBDEV['baseurl']}/admin.php?action=testip&amp;ip=" . $ip . "' title='ip banned'><font color='#FF0000' ><b>" . $ip . "</b></font></a></td>\n";
            } else {
                $HTMLOUT .= "<td><b>" . $ip . "</b></td>\n";
            }
            //$d = gethost($ip);
开发者ID:thefkboss,项目名称:U-232,代码行数:31,代码来源:iphistory.php

示例13: sql_query

        sql_query("UPDATE users SET status = 'confirmed' WHERE ID IN(" . join(', ', $ids) . ") AND status = 'pending'");
    } elseif ($do == 'delete') {
        sql_query("DELETE FROM users WHERE ID IN(" . join(', ', $ids) . ")");
    } else {
        header('Location: ' . $_SERVER['PHP_SELF']);
        exit;
    }
}
$disabled = number_format(get_row_count("users", "WHERE enabled='no'"));
$pending = number_format(get_row_count("users", "WHERE status='pending'"));
$count = number_format(get_row_count("users", "WHERE enabled='no' OR status='pending' ORDER BY username DESC"));
$perpage = '25';
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER['PHP_SELF'] . "?");
$res = mysql_query("SELECT id, username, added, downloaded, uploaded, last_access, class, donor, warned, enabled, status FROM users WHERE enabled='no' OR status='pending' ORDER BY username DESC");
stdhead("ACP Manager");
begin_main_frame("Disabled Users: [{$disabled}] | Pending Users: [{$pending}]");
?>
<script language="Javascript" type="text/javascript">eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 2="3";6 d=b 9;f e(a){c(2=="3"){4(1=0;1<a.5;1++){a[1].7=8}2="8"}g{4(1=0;1<a.5;1++){a[1].7=3}2="3"}};',17,17,'|i|checkflag|false|for|length|var|checked|true|Array||new|if|marked_row|check|function|else'.split('|'),0,{}))</script><?php 
if (mysql_num_rows($res) != 0) {
    echo $pagertop;
    begin_table('', true);
    ?>
<form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
" method="post" name="viewusers">
	<tr align="center">
	<td class="colhead"><input style="margin:0" type="checkbox" title='Mark All' value='Mark All' onClick="this.value=check(form);"></td>
	<td class="colhead">Username</td>
	<td class="colhead">Registered</td>
	<td class="colhead"><nobr>Last access</td>
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:acpmanage.php

示例14: sql_query

field[i].checked = false; }
checkflag = "false";
}
}
/*]]>*/
</script>';
$res2 = sql_query("SELECT COUNT(*) FROM messages");
$row = mysql_fetch_array($res2);
$count = $row[0];
$perpage = 15;
$pager = pager($perpage, $count, "staffpanel.php?tool=pmview&amp;action=pmview&amp;");
if ($count > $perpage) {
    $HTMLOUT .= $pager['pagertop'];
}
$res = sql_query("SELECT msg.receiver, msg.subject, msg.sender, msg.unread, msg.msg, msg.added, msg.id, u1.username AS u1_username, u2.username AS u2_username FROM messages AS msg LEFT JOIN users AS u1 ON u1.id=msg.receiver LEFT JOIN users AS u2 ON u2.id=msg.sender ORDER BY msg.id DESC {$pager['limit']}") or sqlerr(__FILE__, __LINE__);
$HTMLOUT .= begin_main_frame("Administrative message overview");
$HTMLOUT .= "\r\n<form method='post' action='staffpanel.php?tool=pmview&amp;action=pmview'>\r\n<table border='1' cellspacing='0' cellpadding='5'>\n\r\n<tr>\r\n<td class='colhead' align='left' width='1%'>Info</td>\r\n<td class='colhead' align='left' width='1%'>Subject</td>\r\n<td class='colhead' align='left'>Text</td>\r\n<td class='colhead' align='left' width='1%'>Date</td>\r\n<td class='colhead' width='1%'>Del</td></tr>\n";
while ($arr = mysql_fetch_assoc($res)) {
    $receiver = "<a href='userdetails.php?id=" . $arr["receiver"] . "'><b>" . $arr["u1_username"] . "</b></a>";
    if ($arr["sender"] != 0) {
        $sender = "<a href='userdetails.php?id=" . $arr["sender"] . "'><b>" . $arr["u2_username"] . "</b></a>";
    } else {
        $sender = "<font color='red'><b>System</b></font>";
    }
    $msg = format_comment($arr["msg"]);
    $added = get_date($arr["added"], 'DATE', 0, 1);
    $HTMLOUT .= "<tr>\r\n<td align='left'><b>Sender:</b>&nbsp;&nbsp;&nbsp;&nbsp;{$sender}<br /><b>Reciever:</b>&nbsp;{$receiver}<br /><b>Read</b>&nbsp;&nbsp;&nbsp;&nbsp;" . ($arr["unread"] != "yes" ? "<b><font color='lightgreen'>Yes</font></b>" : "<b><font color='red'>No</font></b>") . "</td>\r\n<td align='left'>" . format_comment($arr['subject']) . "</td>\r\n<td align='left'>{$msg}</td><td align='left'>{$added}</td><td align='center'><input type='checkbox' name='delmp[]' title='Mark' value='" . $arr['id'] . "' /></td></tr>\n";
}
$HTMLOUT .= "<tr>\r\n<td colspan='4' align='right' class='colhead'>Mark&nbsp;all&nbsp;Messages </td>\r\n<td width='2%' class='colhead'>\r\n<input type='checkbox' title='Mark All' value='Mark All' onclick=\"this.value=check(form.elements);\" />\r\n</td></tr>\r\n<tr><td colspan='5' align='center'><input type='submit' value='Delete selected messages!' /></td></tr>";
$HTMLOUT .= "</table></form>";
$HTMLOUT .= end_main_frame();
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:31,代码来源:pmview.php

示例15: class_check

}
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'html_functions.php';
require_once CLASS_DIR . 'class_check.php';
class_check(UC_ADMINISTRATOR);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $limits = isset($_POST['limit']) && is_array($_POST['limit']) ? $_POST['limit'] : 0;
    foreach ($limits as $class => $limit) {
        if ($limit == 0) {
            unset($limits[$class]);
        }
    }
    if (file_put_contents($INSTALLER09['flood_file'], serialize($limits))) {
        header('Refresh: 2; url=/staffpanel.php?tool=floodlimit');
        stderr('Success', 'Limits saved! returning to main page');
    } else {
        stderr('Err', 'Something went wrong make sure ' . $_file . ' exists and it is chmoded 0777');
    }
} else {
    if (!file_exists($INSTALLER09['flood_file']) || !is_array($limit = unserialize(file_get_contents($INSTALLER09['flood_file'])))) {
        $limit = array();
    }
    $out = begin_main_frame() . begin_frame('Edit flood limit');
    $out .= '<form method=\'post\' action=\'\' ><table width=\'60%\' align=\'center\'><tr><td class=\'colhead\'>User class</td><td class=\'colhead\'>Limit</td></tr>';
    for ($i = UC_MIN; $i <= UC_MAX; $i++) {
        $out .= '<tr><td align=\'left\'>' . get_user_class_name($i) . '</td><td><input name=\'limit[' . $i . ']\' type=\'text\' size=\'10\' value=\'' . (isset($limit[$i]) ? $limit[$i] : 0) . '\'/></td></tr>';
    }
    $out .= '<tr><td colspan=\'2\'>Note if you want no limit for the user class set the limit to 0</td></tr><tr><td colspan=\'2\' class=\'colhead\'><input type=\'submit\' value=\'Save\' /></td></tr>';
    $out .= '</table></form>' . end_frame() . end_main_frame();
    echo stdhead('Flood limit') . $out . stdfoot();
}
开发者ID:CharlieHD,项目名称:U-232-V3,代码行数:31,代码来源:floodlimit.php


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