can choose to expediate your request (if its urgent) or unapprove it.<?php } else { ?> can raise any concerns they have with your request.<?php } ?> </div> <div><a target="_blank" href="/storage/print/<?php echo $project->getId(); ?> " class="btn btn-success">Print DO NOT HACK label</a> after it's been <strong>approved</strong> and attach it to your project. This is to let other members know your project is accounted for. You can print it at the kiosk on the ground floor outside the classroom.</div> <?php if ($project->getState() == 'Pending Approval') { ?> <p>Your request will be automatically approved after <?php echo $project->automaticApprovalDuration(); ?> days if you don't make any changes and no one replies on the mailing list.</p><?php } ?> </div> <?php } else { ?> <a target="_blank" href="<?php echo $project->getMailingListURL(); ?> " class="btn btn-default">Read the mailing list topic</a> <a target="_blank" href="/storage/print/<?php echo $project->getId(); ?>
$project->setState('Pending Approval'); $initial = true; } else { $auto = false; $logDetails = "Request updated"; $initial = false; } $project->setUpdatedDate(date('Y-m-d')); $project->setUserId($user->getId()); $project->store(); $project->submitLog($logDetails, $user->getId()); // post to Google Groups $projectUser = new User($project->getUserId()); $message = '<strong>' . $project->getName() . "</strong><br>\n" . "https://london.hackspace.org.uk/storage/" . $project->getId() . "<br>\n" . "by <a href=\"https://london.hackspace.org.uk/members/member.php?id=" . $project->getUserId() . "\">" . htmlspecialchars($projectUser->getFullName()) . "</a><br>\n" . $project->outputDates() . "<br>\n" . $project->outputDuration() . ' ' . $project->outputLocation() . "<br>\n<br>\n" . nl2br(stripslashes($project->getDescription())) . "<br>\n<br>\n"; if ($auto && !$project->isShortTerm()) { $message .= "<strong>***If no one replies to this topic the request will be automatically approved within " . $project->automaticApprovalDuration() . " days.***</strong>"; } $project->submitMailingList($message, $initial); // is this a short term request? If so automatically approve it if ($project->isShortTerm()) { $project->setState('Approved'); $project->store(); // log the update $logmsg = 'Short term storage detected, status automatically changed to ' . $project->getState(); $project->submitLog($logmsg, false); $project->submitMailingList($logmsg); } fURL::redirect("/storage/{$project->getId()}"); } catch (fValidationException $e) { echo $e->printMessage(); } catch (fSQLException $e) {