Esempio n. 1
0
 public static function checkRFData()
 {
     if (input::exists()) {
         if (isset($_POST['rfdata'])) {
             echo input::get('rfdata');
         }
     }
 }
Esempio n. 2
0
<?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());
        }
    }
}