First commit
This commit is contained in:
0
source/class/secqaa/index.htm
Normal file
0
source/class/secqaa/index.htm
Normal file
37
source/class/secqaa/secqaa_calc.php
Normal file
37
source/class/secqaa/secqaa_calc.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id: secqaa_calc.php 10395 2010-05-11 04:48:31Z monkey $
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
class secqaa_calc {
|
||||
|
||||
var $version = '1.0';
|
||||
var $name = 'calc_name';
|
||||
var $description = 'calc_desc';
|
||||
var $copyright = '<a href="https://www.discuz.vip/" target="_blank">Discuz!</a>';
|
||||
var $customname = '';
|
||||
|
||||
function make(&$question) {
|
||||
$a = rand(1, 90);
|
||||
$b = rand(1, 10);
|
||||
if(rand(0, 1)) {
|
||||
$question = $a.' + '.$b.' = ?';
|
||||
$answer = $a + $b;
|
||||
} else {
|
||||
$question = $a.' - '.$b.' = ?';
|
||||
$answer = $a - $b;
|
||||
}
|
||||
return $answer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
35
source/class/secqaa/secqaa_calcmad.php
Normal file
35
source/class/secqaa/secqaa_calcmad.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
class secqaa_calcmad {
|
||||
|
||||
var $version = '1.0';
|
||||
var $name = 'calcmad_name';
|
||||
var $description = 'calcmad_desc';
|
||||
var $copyright = 'Discuz! X Community Team';
|
||||
var $customname = '';
|
||||
|
||||
function make(&$question) {
|
||||
$a = rand(1, 9);
|
||||
$b = rand(1, 9);
|
||||
if(rand(0, 1)) {
|
||||
$question = $a.' * '.$b.' = ?';
|
||||
$answer = $a * $b;
|
||||
} else {
|
||||
$question = ($a * $b).' / '.$a.' = ?';
|
||||
$answer = $b;
|
||||
}
|
||||
return $answer;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user