www-apps/gc-fallout - dev
[anomen-overlay.git] / www-apps / gc-fallout / dev / toolbox.php
blob35a654a89aaf067bd8da8f6a6d398e41d51e00b0
1 <?php
3 define("PERK_WIDTH", 140);
4 define("PERK_HEIGHT", 140);
6 require_once('rules.php');
7 require_once('token.php');
9 require_once('phpseclib/AES.php');
11 function ohodnot_hrace($klice_str)
13 $keys = array();
14 $keys_nums = preg_match_all('/\b\d+\b/', $klice_str, $keys);
15 $klice = array();
17 foreach ($keys[0] as $k) {
18 // echo "<br />klic" . intval($k); // DEBUG
19 $klice[intval($k)] = true;
21 $vystup = vyhodnot_klice($klice);
23 return $vystup;
26 function array_keys_true($keys)
28 $res = array();
29 foreach ($keys as $k => $v) {
30 if ($v) {
31 $res[] = $k;
34 return $res;