Skip to content

Instantly share code, notes, and snippets.

public function saveServiceDescriptionSortingAction(Request $request)
{
if ($request->isMethod('POST')) {
$items = $request->request->all()['item'];
$manager = $this->getDoctrine()->getManager();
$serviceDescriptionRepository = $manager->getRepository('SelfServiceBundle:PharmacyServiceDescription');
for ($i = 0; $i < count($items); $i++) {
/** @var \Dav\SelfServiceBundle\Entity\Normal\PharmacyServiceDescription $description */
$description = $serviceDescriptionRepository->findOneBy([
<?xml version="1.0"?>
<ListOrdersResponse xmlns="https://mws.amazonservices.com/
Orders/2013-09-01">
<ListOrdersResult>
<NextToken>2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=</NextToken>
<LastUpdatedBefore>2017-02-25T18%3A10%3A21.687Z</LastUpdatedBefore>
<Orders>
<Order>
<AmazonOrderId>902-3159896-1390916</AmazonOrderId>
<PurchaseDate>2017-02-20T19:49:35Z</PurchaseDate>
{% extends 'base.html.twig' %}
{% block body %}
<section class="section bg-gray">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h3>Allgemeine Geschäftsbedingungen</h3><br />
<b>§ 1 Allgemeines</b><br />
if (count($params['values']) > 0) {
foreach($params['values'] as $key => $value) {
$params['values'][$key] = mysqli_real_escape_string($Ossn->dbLINK, $value);
}
}
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y apache2
# create the html dir if its not present
if ! [ -L /var/www/html ]; then
rm -rf /var/www/html
ln -fs /vagrant /var/www/html
fi
position: fixed;
top: 0;
z-index: 1000;
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y apache2
# create desired folders
if ! [ -L /var/www/html/foxpal ]; then
rm -rf /var/www/html/foxpal
ln -sf /vagrant /var/www/html/foxpal
fi
$timestamp = time();
$token = ossn_generate_action_token($timestamp);
<form action="<?= ossn_site_url('action/post/add') ?>" enctype="multipart/form-data" method="post">
<div id="post-writer">
<div class="header">
Schreibe einen Beitrag
</div>
<div class="body">
// File Upload in OSSN:
$file->owner_guid = $user->guid;
$file->type = 'object';
$file->subtype = 'verify';
$file->setFile('passport-front');
$file->setPath('verify/');
$file->setExtension(array(
'jpg',
'png',
$this->validate($request, [
'frontFile' => 'required|mimes:jpg,jpeg,jpe,png,gif'
]);
$user = $request->user();
$path = $request->file('frontFile')->store(sprintf('verfication/%s', $user->id));
$verification = Verification::where('user_id', $user->id)->first();
$verificationFile = new VerificationFile();