public static function checkRFData() { if (input::exists()) { if (isset($_POST['rfdata'])) { echo input::get('rfdata'); } } }
<?php require_once '../core/init.php'; req::once('functions/rand_pass.php'); $user = new user(); if ($user->notHasPermission('logged in')) { redirect::to('index.php'); } if (input::exists()) { $validate = new validate(); $validate->check($_POST, array()); if ($validate->passed()) { try { //database actions } catch (Exception $e) { die($e->getMessage()); } } }