Skip to content

Instantly share code, notes, and snippets.

/* Reset
------------------------------------------------------------ */
body#ttrssMain,
body#ttrssPrefs,
body#ttrssLogin,
body {
color: #000;
font-family: "Arial", sans-serif;
font-size: 100%;
}
<f:layout name="Default" />
<f:section name="Content">
<div class="content">
<section class="body">
<f:form action="authenticate" method="post">
<fieldset>
<legend></legend>
<div class="row username">
<label id="usernameLabel" for="username" class="placeholder"><span><f:translate package="TYPO3.Flow">Username</f:translate></span></label>
<?php
namespace ClausWitt\ViewHelpers;
/**
* A view helper for getting a specific date as "how along ago"
*
*
*/
class AgoViewHelper extends \TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper {
/**
<f:layout name="Default" />
<f:section name="Content">
<div class="content">
<section class="body">
<f:form action="authenticate" method="post">
<fieldset>
<legend></legend>
<div class="row username">
<label id="usernameLabel" for="username" class="placeholder"><span><f:translate package="TYPO3.Flow">Username</f:translate></span></label>
# #
# Security policy for the TYPO3 package #
# #
resources:
methods:
ADU: 'method(Famelo\ADU\(?!.*Login).*->.*())'
roles:
Administrator: [ Editor ]
import json
import requests
from requests_oauthlib import OAuth1
consumer_key='key'
consumer_secret='secret'
access_token_key='t_key'
access_token_secret='t_secret'
# Use an own publishing configuration
TYPO3\Flow\Resource\Publishing\ResourcePublishingTargetInterface:
className: Venodor\Package\Resource\Publishing\SecureFileSystemPublishingTarget
<?php
namespace Ag\Utility\Log\Backend;
use TYPO3\Flow\Annotations as Flow;
class EmailBackend extends \TYPO3\Flow\Log\Backend\AbstractBackend {
/**
* @var string|array
*/
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
//create logger
$this->logger = \TYPO3\Flow\Log\LoggerFactory::create('myLoggerName', 'TYPO3\Flow\Log\Logger', '\TYPO3\Flow\Log\Backend\FileBackend', array(
'logFileURL' => FLOW_PATH_DATA . 'Logs/myLoggerName.log',
'createParentDirectories' => TRUE,
'severityThreshold' => LOG_INFO,
'maximumLogFileSize' => 10485760,
'logFilesToKeep' => 1,
'logIpAddress' => TRUE
));