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

PHP stdmsg函数代码示例

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

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



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

示例1: bark

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


示例2: bark

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


示例3: bark

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


示例4: bark

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


示例5: iUsers

function iUsers($iname, $ipass, $imail)
{
    global $admin_file, $CURUSER;
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        list($iclass) = mysql_fetch_row(sql_query('SELECT class FROM users WHERE username = ' . sqlesc($iname)));
        if (get_user_class() <= $iclass) {
            stdmsg("Ошибка", "Смена пароля завершилась неудачей! Вы пробовали изменить учетные данные пользователя выше. Действие записано в логахъ.", "error");
            write_log('Администратор ' . $CURUSER['username'] . ' пробовал изменить учетные данные пользователя ' . $iname . ' классом выше!', 'red', 'error');
        } else {
            $updateset = array();
            if (!empty($ipass)) {
                $secret = mksecret();
                $hash = md5($secret . $ipass . $secret);
                $updateset[] = "secret = " . sqlesc($secret);
                $updateset[] = "passhash = " . sqlesc($hash);
            }
            if (!empty($imail) && validemail($imail)) {
                $updateset[] = "email = " . sqlesc($imail);
            }
            if (count($updateset)) {
                $res = sql_query("UPDATE users SET " . implode(", ", $updateset) . " WHERE username = " . sqlesc($iname)) or sqlerr(__FILE__, __LINE__);
            }
            if (mysql_modified_rows() < 1) {
                stdmsg("Ошибка", "Смена пароля завершилась неудачей! Возможно указано несуществующее имя пользователя.", "error");
            } else {
                stdmsg("Изменения пользователя прошло успешно", "Имя пользователя: " . $iname . (!empty($hash) ? "<br />Новый пароль: " . $ipass : "") . (!empty($imail) ? "<br />Новая почта: " . $imail : ""));
            }
        }
    } else {
        echo "<form method=\"post\" action=\"" . $admin_file . ".php?op=iUsers\">" . "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">" . "<tr><td class=\"colhead\" colspan=\"2\">Смена пароля</td></tr>" . "<tr>" . "<td><b>Пользователь</b></td>" . "<td><input name=\"iname\" type=\"text\"></td>" . "</tr>" . "<tr>" . "<td><b>Новый пароль</b></td>" . "<td><input name=\"ipass\" type=\"password\"></td>" . "</tr>" . "<tr>" . "<td><b>Новая почта</b></td>" . "<td><input name=\"imail\" type=\"text\"></td>" . "</tr>" . "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"isub\" value=\"Сделать\"></td></tr>" . "</table>" . "<input type=\"hidden\" name=\"op\" value=\"iUsers\" />" . "</form>";
    }
}
开发者ID:klldll,项目名称:tbdev,代码行数:32,代码来源:iusers.php


示例6: bark

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


示例7: bark

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


示例8: bark

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


示例9: 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


示例10: bark

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


示例11: bark

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


示例12: bark

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


示例13: bark

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

function stderr($heading, $text)
{
    $htmlout = stdhead();
    $htmlout .= stdmsg($heading, $text);
    $htmlout .= stdfoot();
    print $htmlout;
    exit;
}
开发者ID:pranay22,项目名称:tu-darmstadt-TK3,代码行数:8,代码来源:header_footer.php


示例16: bark

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


示例17: bark

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


示例18: bark

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


示例19: bark

function bark($title, $msg)
{
    global $lang_userdetails;
    stdhead();
    stdmsg($title, $msg);
    stdfoot();
    exit;
}
开发者ID:chenrizhi,项目名称:mtpt,代码行数:8,代码来源:getcardnum.php


示例20: switch

    exit;
}
switch ($do) {
    case "disabled":
        $query = "SELECT id,username, class, downloaded, uploaded, IF(downloaded>0, round((uploaded/downloaded),2), '---') as ratio, disable_reason, added, last_access FROM users WHERE enabled='no' ORDER BY last_access DESC ";
        $title = "Disabled users";
        $link = "<a href=\"staffpanel.php?tool=warn&amp;action=warn&amp;?do=warned\">warned users</a>";
        break;
    case "warned":
        $query = "SELECT id, username, class, downloaded, uploaded, IF(downloaded>0, round((uploaded/downloaded),2), '---') as ratio, warn_reason, warned, added, last_access FROM users WHERE warned>='1' ORDER BY last_access DESC, warned DESC ";
        $title = "Warned users";
        $link = "<a href=\"staffpanel.php?tool=warn&amp;action=warn&amp;do=disabled\">disabled users</a>";
        break;
}
$g = sql_query($query) or print mysql_error();
$count = mysql_num_rows($g);
$HTMLOUT .= begin_main_frame();
$HTMLOUT .= begin_frame($title . "&nbsp;[<font class=\"small\">total - " . $count . " user" . ($count > 1 ? "s" : "") . "</font>] - " . $link);
if ($count == 0) {
    $HTMLOUT .= stdmsg("hey", "There is no " . strtolower($title));
} else {
    $HTMLOUT .= "<form action='staffpanel.php?tool=warn&amp;action=warn' method='post'>\r\n\t\t<table width='600' cellpadding='3' cellspacing='2' style='border-collapse:separate;' align='center'>\r\n\t\t<tr>    \t\r\n\t\t\t<td class='colhead' align='left' width='100%' >User</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Ratio</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Class</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Last access</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'>Joined</td>\r\n\t\t\t<td class='colhead' align='center' nowrap='nowrap'><input type='checkbox' name='checkall' /></td>\r\n\t\t</tr>";
    while ($a = mysql_fetch_assoc($g)) {
        $tip = $do == "warned" ? "Warned for : " . $a["warn_reason"] . "<br />" . " Warned till " . get_date($a["warned"], 'DATE', 1) . " - " . mkprettytime($a['warned'] - time()) : "Disabled for " . $a["disable_reason"];
        $HTMLOUT .= "<tr>\r\n\t\t\t\t  <td align='left' width='100%'><a href='userdetails.php?id={$a["id"]}' onmouseover=\"Tip('({$tip})')\" onmouseout=\"UnTip()\">{$a["username"]}</a></td>\r\n\t\t\t\t  <td align='left' nowrap='nowrap'>{$a["ratio"]}<br /><font class='small'><b>D: </b>" . mksize($a["downloaded"]) . "&nbsp;<b>U:</b> " . mksize($a["uploaded"]) . "</font></td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'>" . get_user_class_name($a["class"]) . "</td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'>" . get_date($a["last_access"], 'LONG', 0, 1) . "</td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'>" . get_date($a["added"], 'DATE', 1) . "</td>\r\n\t\t\t\t  <td align='center' nowrap='nowrap'><input type='checkbox' name='users[]' value='{$a["id"]}' /></td>\r\n\t\t\t\t</tr>";
    }
    $HTMLOUT .= "<tr>\r\n\t\t\t<td colspan='6' class='colhead' align='center'>\r\n\t\t\t\t<select name='action'>\r\n\t\t\t\t\t<option value='unwarn'>Unwarn</option>\r\n\t\t\t\t\t<option value='disable'>Disable</option>\r\n\t\t\t\t\t<option value='delete'>Delete</option>\r\n\t\t\t\t</select>\r\n\t\t\t\t&raquo;\r\n\t\t\t\t<input type='submit' value='Apply' />\r\n\t\t\t\t<input type='hidden' value='" . htmlspecialchars($_SERVER["REQUEST_URI"]) . "' name='ref' />\r\n\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t\t</table>\r\n\t\t\t</form>";
}
$HTMLOUT .= end_frame();
$HTMLOUT .= end_main_frame();
echo stdhead($title) . $HTMLOUT . stdfoot($stdfoot);
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:31,代码来源:warn.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP steamlogin函数代码示例发布时间:2022-05-23
下一篇:
PHP stdlog函数代码示例发布时间: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