當前位置: 首頁>>代碼示例>>PHP>>正文


PHP access::need_nostat方法代碼示例

本文整理匯總了PHP中access::need_nostat方法的典型用法代碼示例。如果您正苦於以下問題:PHP access::need_nostat方法的具體用法?PHP access::need_nostat怎麽用?PHP access::need_nostat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在access的用法示例。


在下文中一共展示了access::need_nostat方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: error_reporting

<?php

require "../../base.php";
error_reporting(E_ALL & ~E_NOTICE);
global $_game;
// anti-bot
#$antibot_name = "poker";
#$antibot_span = 30;
#$antibot_return = PHP_SELF;
#antibot::require_antibot($antibot_name, $antibot_span, $antibot_return);
ess::$b->page->add_title("Moderator poker");
access::need_nostat();
access::need("forum_mod");
// legg til css
ess::$b->page->add_css("#poker_info { margin: 10px auto 0 auto }\n.kort_wrapper { width: 257px; margin: 0 auto 0 auto; padding: 4px 0 }\n#kort_wrapper { width: 260px; margin: 0 auto 0 auto; padding-bottom: 10px }\n.kort_wrapper .kort, .kort_i {\n\tfont-family: Arial, Verdana, Tahoma;\n\twidth: 45px;\n\ttext-align: center;\n\tborder: 1px solid #000;\n\tbackground: #FFFFFF;\n\theight: 85px;\n\tfont-size: 30px;\n\tpadding: 0 0 5px 0;\n\tmargin: 0 2px 0 2px;\n\tline-height: 50px;\n\tfloat: left;\n}\n.kort_wrapper .kort {\n\tbackground: #488C9F;\n\tcursor: pointer;\n}\n.kg_0, .kg_1 { color: #000000 }\n.kg_2, .kg_3 { color: #FF0000 }\n.kort_submit { clear: left; text-align: center; margin-top: 0 }");
echo '
<h1>Poker</h1>
<p align="center">
	15. april 2007: Da kan moderatorene og nostat ha det morsomt med den gamle pokerversjonen!
</p>
<!--<p>
	<b style="color: #FF0000">Oppdatering 4. mars:</b> Nå er det gjort litt endringer på gevinstene og man vinner kun på 1 par dersom man har 9, 10, J, Q, K eller A. Maksimumsgrensen er også fjernet.
</p>-->';
// 5-korts draw
// innstillinger
$farger = array(array("Kløver", '<img src="' . STATIC_LINK . '/other/poker_clubs.gif" alt="Kløver" />'), array("Spar", '<img src="' . STATIC_LINK . '/other/poker_spades.gif" alt="Spar" />'), array("Hjerter", '<img src="' . STATIC_LINK . '/other/poker_hearts.gif" alt="Hjerter" />'), array("Ruter", '<img src="' . STATIC_LINK . '/other/poker_diams.gif" alt="Ruter" />'));
$tegn = array(1 => 2, 3, 4, 5, 6, 7, 8, 9, 10, "J", "Q", "K", "A");
$gevinster = array(array(9, "royal straight flush", 100), array(8, "straight flush", 12), array(7, "fire like", 4), array(6, "hus", 3), array(5, "flush", 2.4), array(4, "straight", 2.2), array(3, "tre like", 1.9), array(2, "to par", 1.6), array(1, "ett par", 1.2), array(0, "ingenting", 0.2));
$kortstokk = array(1 => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52);
// oppføring fra databasen?
$result = \Kofradia\DB::get()->query("SELECT id, upoker_up_id, cards, time, cash, finished FROM users_poker WHERE upoker_up_id = " . login::$user->player->id);
開發者ID:Kuzat,項目名稱:kofradia,代碼行數:31,代碼來源:poker.php


注:本文中的access::need_nostat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。