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


PHP stdhead函数代码示例

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


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

示例1: bark

function bark($msg)
{
    stdhead();
    stdmsg("Thanks failed!", $msg);
    stdfoot();
    exit;
}
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:7,代码来源:takethankyou.php

示例2: reqmenu

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

示例3: bark

function bark($msg)
{
    stdhead();
    stdmsg("Ошибка", $msg);
    stdfoot();
    die;
}
开发者ID:klldll,项目名称:tbdev,代码行数:7,代码来源:takeinvite.php

示例4: bark

function bark($msg)
{
    stdhead();
    stdmsg($tracker_lang['error'], $msg);
    stdfoot();
    exit;
}
开发者ID:klldll,项目名称:tbdev,代码行数:7,代码来源:takedelbookmark.php

示例5: bark

function bark($msg)
{
    stdhead();
    stdmsg($lang_takeflush['std_failed'], $msg);
    stdfoot();
    exit;
}
开发者ID:chenrizhi,项目名称:mtpt,代码行数:7,代码来源:takeflush.php

示例6: bark

function bark($msg)
{
    stdhead("Error");
    stdmsg("Error", $msg);
    stdfoot();
    exit;
}
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:7,代码来源:inpagebadratio.php

示例7: bark

function bark($msg)
{
    stdhead();
    stdmsg($lang_takeinvite['head_invitation_failed'], $msg);
    stdfoot();
    exit;
}
开发者ID:chenrizhi,项目名称:mtpt,代码行数:7,代码来源:takeinvite.php

示例8: std_view

function std_view()
{
    global $READPOST_EXPIRY, $CURUSER, $forum_pic_url;
    $forums_res = mysql_query("SELECT * FROM forums ORDER BY sort, name") or sqlerr(__FILE__, __LINE__);
    stdhead("Forums");
    $htmlout = "<h1>Forums</h1>\n";
    $htmlout .= "<div style='width:80%'><p align=right><span class='btn'><a href='forums.php?action=search'>Search</a></span>&nbsp;<span class='btn'><a href='forums.php?action=viewunread'>View unread</a></span>&nbsp;<span class='btn'><a href='forums.php?action=catchup'>Catch up</a></span></p></div>";
    $htmlout .= "<table border=1 cellspacing=0 cellpadding=5 width='80%'>\n";
    $htmlout .= "<tr><td class=colhead align=left>Forum</td><td class=colhead align=right>Topics</td>" . "<td class=colhead align=right>Posts</td>" . "<td class=colhead align=left>Last post</td></tr>\n";
    while ($forums_arr = mysql_fetch_assoc($forums_res)) {
        if (get_user_class() < $forums_arr["minclassread"]) {
            continue;
        }
        $forumid = $forums_arr["id"];
        $forumname = htmlspecialchars($forums_arr["name"]);
        $forumdescription = htmlspecialchars($forums_arr["description"]);
        $topiccount = number_format($forums_arr["topiccount"]);
        $postcount = number_format($forums_arr["postcount"]);
        $lastpostid = get_forum_last_post($forumid);
        // Get last post info
        $post_res = mysql_query("SELECT p.added, p.topicid, p.userid, u.username, t.subject\r\n\t\t\t\t\t\t\tFROM posts p\r\n\t\t\t\t\t\t\tLEFT JOIN users u ON p.userid = u.id\r\n\t\t\t\t\t\t\tLEFT JOIN topics t ON p.topicid = t.id\r\n\t\t\t\t\t\t\tWHERE p.id = {$lastpostid}") or sqlerr(__FILE__, __LINE__);
        if (mysql_num_rows($post_res) == 1) {
            $post_arr = mysql_fetch_assoc($post_res) or die("Bad forum last_post");
            $lastposterid = $post_arr["userid"];
            $lastpostdate = get_date($post_arr["added"], '');
            $lasttopicid = $post_arr["topicid"];
            //$user_res = mysql_query("SELECT username FROM users WHERE id=$lastposterid") or sqlerr(__FILE__, __LINE__);
            //$user_arr = mysql_fetch_assoc($user_res);
            $lastposter = htmlspecialchars($post_arr['username']);
            //$topic_res = mysql_query("SELECT subject FROM topics WHERE id=$lasttopicid") or sqlerr(__FILE__, __LINE__);
            //$topic_arr = mysql_fetch_assoc($topic_res);
            $lasttopic = htmlspecialchars($post_arr['subject']);
            $lastpost = "<nobr>{$lastpostdate}<br>" . "by <a href=userdetails.php?id={$lastposterid}><b>{$lastposter}</b></a><br>" . "in <a href=?action=viewtopic&topicid={$lasttopicid}&amp;page=p{$lastpostid}#{$lastpostid}><b>{$lasttopic}</b></a></nobr>";
            $r = mysql_query("SELECT lastpostread FROM readposts WHERE userid={$CURUSER['id']} AND topicid={$lasttopicid}") or sqlerr(__FILE__, __LINE__);
            $a = mysql_fetch_row($r);
            //..rp..
            $npostcheck = $post_arr['added'] > time() - $READPOST_EXPIRY ? !$a or $lastpostid > $a[0] : 0;
            /* if ($a && $a[0] >= $lastpostid)
            	$img = "unlocked";
            	else
            	$img = "unlockednew";
            	*/
            if ($npostcheck) {
                $img = "unlockednew";
            } else {
                $img = "unlocked";
            }
            // ..rp..
        } else {
            $lastpost = "N/A";
            $img = "unlocked";
        }
        $htmlout .= "<tr><td align=left><table border=0 cellspacing=0 cellpadding=0><tr><td class=embedded style='padding-right: 5px'>" . "<img src=\"{$forum_pic_url}{$img}.gif\"></td>" . "<td class=embedded><a href=?action=viewforum&forumid={$forumid}><b>{$forumname}</b></a><br>\n" . "{$forumdescription}</td></tr></table></td><td align=right>{$topiccount}</td>" . "</td><td align=right>{$postcount}</td>" . "<td align=left>{$lastpost}</td></tr>\n";
    }
    $htmlout .= "</table>\n<br />\n";
    $htmlout .= "<div style='width:80%'><p align=right><span class='btn'><a href='forums.php?action=search'>Search</a></span>&nbsp;<span class='btn'><a href='forums.php?action=viewunread'>View unread</a></span>&nbsp;<span class='btn'><a href='forums.php?action=catchup'>Catch up</a></span></p></div>";
    echo $htmlout;
    stdfoot();
    exit;
}
开发者ID:CtrlSystem,项目名称:biotorrents,代码行数:60,代码来源:forums.php

示例9: bark

function bark($msg)
{
    global $lang_takesignup;
    stdhead();
    stdmsg($lang_takesignup['std_signup_failed'], $msg);
    stdfoot();
    exit;
}
开发者ID:skygunner,项目名称:ekucms,代码行数:8,代码来源:takesignup.php

示例10: bark

function bark($msg)
{
    global $lang_offers;
    stdhead($lang_offers['head_offer_error']);
    stdmsg($lang_offers['std_error'], $msg);
    stdfoot();
    exit;
}
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:8,代码来源:offers.php

示例11: bark

function bark($msg)
{
    global $lang_fastdelete;
    stdhead();
    stdmsg($lang_fastdelete['std_delete_failed'], $msg);
    stdfoot();
    exit;
}
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:8,代码来源:fastdelete.php

示例12: bark

function bark($msg)
{
    global $lang_userdetails;
    stdhead();
    stdmsg($lang_userdetails['std_error'], $msg);
    stdfoot();
    exit;
}
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:8,代码来源:userdetails.php

示例13: bark

function bark($msg)
{
    global $lang_recover;
    stdhead();
    stdmsg($lang_recover['std_recover_failed'], $msg);
    stdfoot();
    exit;
}
开发者ID:chenrizhi,项目名称:mtpt,代码行数:8,代码来源:cardrecover.php

示例14: bark

function bark($msg)
{
    global $tracker_lang;
    stdhead();
    stdmsg($tracker_lang['error'], $msg, 'error');
    stdfoot();
    exit;
}
开发者ID:klldll,项目名称:tbdev,代码行数:8,代码来源:takesignup.php

示例15: bark

function bark($msg)
{
    global $lang_checkuser;
    stdhead();
    stdmsg($lang_checkuser['std_error'], $msg);
    stdfoot();
    exit;
}
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:8,代码来源:checkuser.php


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