Title = cubeedit.php v.2.12
F = datas/testprog.php
このページの表示
";
print $ua;
print '';
print '';
function jiku($x) {
$ans = 'xyz';
$j = substr($x, 0, 1);
if (($j == 'R') || ($j == 'L') || ($j == 'M')) {
$ans = 'x';
}
if (($j == 'U') || ($j == 'D') || ($j == 'E')) {
$ans = 'y';
}
if (($j == 'F') || ($j == 'B') || ($j == 'S')) {
$ans = 'z';
}
return $ans;
}
function tesu($str) {
$te = 0;
$st = explode(' ', $str);
foreach ($st as $one) {
$one = trim($one);
$o = substr($one, 0, 1);
if ($o == 'U') $te++;
if ($o == 'R') $te++;
if ($o == 'F') $te++;
if ($o == 'L') $te++;
if ($o == 'B') $te++;
if ($o == 'D') $te++;
if ($o == 'M') $te += 2;
if ($o == 'S') $te += 2;
if ($o == 'E') $te += 2;
}
return $te;
}
function saiteki($str) {
$str = preg_replace("/U U'/", "", $str);
$str = preg_replace("/U' U/", "", $str);
$str = preg_replace("/U U/", "U2", $str);
$str = preg_replace("/R R'/", "", $str);
$str = preg_replace("/R' R/", "", $str);
$str = preg_replace("/R R/", "R2", $str);
$str = preg_replace("/R2 R'/", "R", $str);
$str = preg_replace("/R2 R/", "R'", $str);
$str = preg_replace("/F F'/", "", $str);
$str = preg_replace("/F' F/", "", $str);
$str = preg_replace("/F F/", "F2", $str);
$str = preg_replace("/F2 F'/", "F", $str);
$str = preg_replace("/F2 F/", "F'", $str);
return $str;
}
?>
このページの表示
Cubewiki情報館top
Copyright ©2013-2024 Libra0977. All Rights Reserved. last updated 2014.8/25.
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)