This repository has been archived on 2025-08-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hohoho/api/api.php

20 lines
257 B
PHP
Raw Normal View History

2020-12-07 15:57:57 +01:00
<?php
include "brainfuck.php";
include "util.php";
$func = $_POST['func'];
$instr = $_POST['instr'];
if ($func == 'tobf')
{
echo fuck_text($instr);
}
elseif ($func == 'interpret')
{
echo brainfuck($instr);
}
else
{
echo "function error.";
}
?>