Example #1
0
$r1DataClassObject->CheckDbConnection();
$raceDataClassObject->CheckDbConnection();
//TEMP SOLUTION////////////////////////////////////////////////////////
//get session information (temoprary hard coded)
//if user not logged in do not check user rights
$rid = $_POST['ukryty'];
if ($rid != 'prototyp') {
    //get user data (temoprary hard coded)
    $valid = 'OK';
    $user_id = $_POST['user_id'];
    $query = $r1DataClassObject->GetTempFileData($user_id);
    if ($query["file"] != '') {
        $file = $query["file"];
        $path = '../../filesystem/temp/' . $file;
        unlink($path);
        $delete = $r1DataClassObject->GetTempFileDelete($user_id);
    }
    $nazwa_baza = $_FILES['file']['name'];
    $typ = $_FILES['file']['type'];
    $c = explode(".", $nazwa_baza);
    $new_name = $c[0];
    $d = explode('.', strrev($nazwa_baza));
    $new_type = strrev($d[0]);
    // outputs "four"
    //   $d = explode("/", $typ);
    //   $new_type = $c[1];
    // Provides: Hll Wrld f PHP
    $vowels = array("ą", "ę", "ć", "ó", "ż", "ź", "ś", "ł", "ń", " ", "!", "Ą", "Ę", "Ć", "Ó", "Ż", "Ź", "Ś", "Ł", "Ń", "@", "#", "\$", "%", "^", "&", "*", "(", ")", "-", "+", "=", "{", "[", "]", "}", ":", ";", "'", "''", "\\", "|", "<", ">", ",", "?", "/");
    $vowels1 = array("a", "e", "c", "o", "z", "z", "s", "l", "n", "_", "_", "A", "E", "C", "O", "Z", "Z", "S", "L", "N", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_", "_");
    // Provides: Hll Wrld f PHP
    //plik ma to mieć