本文整理汇总了PHP中game::solved_already方法的典型用法代码示例。如果您正苦于以下问题:PHP game::solved_already方法的具体用法?PHP game::solved_already怎么用?PHP game::solved_already使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类game
的用法示例。
在下文中一共展示了game::solved_already方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
echo $qObj->get_qname();
?>
</p>
<p style="font-size: 70%; color: red">Hint: <?php
echo $qObj->get_hint();
?>
</p>
<?php
$u = new user_session();
if (!$u->get_user_session()) {
header('Location: /index.php');
} else {
include_once "includes/game.php";
$g = new game();
if (!$g->solved_already($u->get_uid(), $qid)) {
?>
<form id="challenge" action="<?php
echo $_SERVER['PHP_SELF'];
?>
" method="post">
<div class="form_settings">
<p><font color="red"><?php
echo $err_msg;
?>
</font></p>
<p><span> Got the Answer!!! </span><input class="contact" type="text" name="answer" value="" />
<input type="hidden" name="q" value="<?php
echo $qid;
?>
" /></p>
示例2: game
<?php
include "/var/www/includes/game.php";
$g = new game();
if ($g->solved_already(2, 2)) {
echo "you have sovled this question before";
} else {
echo "points updated successfully";
}
$score = $g->get_user_score(5);
echo $score;
echo "<br/>";
$points = $g->get_points_of_flag(4, 3, 'malwarex');
echo $points;