>
createCloud($token, $text, $size, $duration) && $cpt < 10) { $token = bin2hex(random_bytes($length)); $cpt++; // TODO what to do if no cloud created? } $viewUrl = 'result.php?id=' . $token; $viewName = 'https://' . $_SERVER['HTTP_HOST'] . '/' . $viewUrl; $voteUrl = 'index.php?id=' . $token; $voteName = 'https://' . $_SERVER['HTTP_HOST'] . '/' . $voteUrl; ?>