function write_acl_command($aclname, $newmode) { write_command("'set_acl_mode','{$aclname}','{$newmode}'"); }
/** * If something is submitted */ if (isset($_POST['search'])) { // make folder $timestamp = time(); $jobID = 'job_' . date('Y-m-d\\TH-i-s', $timestamp) . '_U' . uniqid(); $jobPath = $QUEUE_PATH . $jobID . '/'; mkdir($jobPath); // store date $currentJOB = new Job($jobID); $currentJOB->set_start_date(date('Y-m-d H:i:s', $timestamp)); // set state to new $currentJOB->set_to_new(); // write command to file write_command($jobPath . 'command', $jobID); // upload files copy_uploaded_files($jobPath); // testing purposes //errmsg('testing'); if (!$PROBLEMS) { sccmsg(); $currentJOB->store_post_data($_POST); $currentJOB->set_sequence_number(); header("refresh:" . $SLEEP . ";url=results.php"); } else { rrmdir($jobPath); } } include_once "../lib/header.html"; echo $NOTIFICATION;