Skip to content

Instantly share code, notes, and snippets.

SELECT
SQL_CALC_FOUND_ROWS
e.id as `entry_id`,
data,
e.section_id as `section_id`,
UNIX_TIMESTAMP(e.creation_date) AS `creation_date`,
(
MATCH(index.data) AGAINST ('data \"source chaining\"') *
CASE
WHEN e.section_id = 61 THEN 4
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="../symphony/master.xsl"/>
<xsl:include href="../symphony/field.xsl"/>
<!--
<field id="1" type="input" required="yes" handle="title" position="sidebar">
<label>Title</label>
@nickdunn
nickdunn / Members.md
Created January 11, 2011 14:51 — forked from brendo/Members.md

Member: Password (Required)

  • Extends FieldInput (Text Input)
  • SHA1
  • Has a salt
  • Can have minimum strength/length

Member: Username

  • Extends FieldInput (Text Input)
<?php
// ensure output is sent as XML
header('Content-Type: text/xml');
echo('<?xml version="1.0" encoding="utf-8" ?>');
include_once('markdown.php');
$handle = opendir('.');
Cool. Lunch at 1 it is.
<?php
//Function to seperate multiple tags one line
function fix_newlines_for_clean_html($fixthistext)
{
$fixthistext_array = explode("\n", $fixthistext);
foreach ($fixthistext_array as $unfixedtextkey => $unfixedtextvalue)
{
//Makes sure empty lines are ignores
if (!preg_match("/^(\s)*$/", $unfixedtextvalue))
<?
$like = '';
$keywords = urldecode($keywords);
$keywords = preg_replace("/[^a-zA-Z0-9\s]/", '', $keywords);
$words = explode(' ', $keywords);
foreach($words as $word) {
$word = trim($word);
$like .= 'index.data REGEXP "[[:<:]]'.Symphony::Database()->cleanValue($word).'[[:>:]]" AND ';
}
<?xml version="1.0"?>
<extensions>
<section id="15" handle="extensions">Extensions</section>
<entry id="57">
<repo name="mediathek" owner="nilshoerrmann" watchers="22" forks="10">
<description>A Mediathek Field for Symphony 2</description>
<url>https://github.com/nilshoerrmann/mediathek</url>
<pushed-at time="14:15" weekday="5">2011-03-25</pushed-at>
<fork-of name="">https://github.com/</fork-of>
<contributors>
<?php
require_once('pclzip.lib.php');
$name = 'publishfiltering';
$tmp_zip_path = $name . '-' . sha1(microtime());
$tmp_zip_name = $tmp_zip_path . '.zip';
file_put_contents($tmp_zip_name, file_get_contents('https://github.com/nickdunn/publishfiltering/zipball/1.6.0'));