This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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('.'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cool. Lunch at 1 it is. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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 '; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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')); |