Skip to content

Instantly share code, notes, and snippets.

View michaelorionmcmanus's full-sized avatar

Michael McManus michaelorionmcmanus

View GitHub Profile
<?php
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Screening',
array( // An array holding the controller-action-combinations that are accessible
'Screening' => 'show, index',
'Season' => 'index' // The first controller and its first action will be the default
),
array( // An array of non-cachable controller-action-combinations (they must already be enabled)
'Screening' => '',
file = GIFBUILDER
file {
XY = 180,160
format = png
quality = 100
10 = IMAGE
10 {
offset = 0,0
file.import.current = 1
file.maxW = 160
# gzip compression.
<IfModule mod_deflate.c>
# html, txt, css, js, json, xml, htc:
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
# webfonts and svg:
<FilesMatch "\.(ttf|otf|eot|svg)$" >
ajax = PAGE
ajax {
# You don't need to change this typeNum
typeNum = 1249058000
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
}
/********************************************************************************************
* PLUGIN IDENTITY AND DEFAULTS
*******************************************************************************************/
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Plazm');
$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_archives';
/********************************************************************************************
* FLEXFORMS
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>General</sheetTitle>
</TCEforms>
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>General</sheetTitle>
</TCEforms>
<?php
function isPalindrome($number) {
$numberLength = strlen($number);
$isEven = $numberLength %2 == 0;
$isPalindrome = false;
while(true) {
$first = substr($number, 0, 1);
$last = substr($number, -1, 1);