當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。