Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (16 sloc) 0.574 kb
<?php
if(!$_REQUEST['content-type'])
$_REQUEST['content-type'] = 'text/html';
header('Content-Type: '.$_REQUEST['content-type'].';charset=utf-8');
$query = XN_Query::create('Content')
->filter('owner','=')
->filter('type','eic','var')
->filter('title','eic',$_REQUEST['var']);
$items = $query->execute();
if($items && count($items))
$item = $items[0];
else
$item = XN_Content::create('var',$_REQUEST['var']);
$_REQUEST['txt'] = str_replace('@var@',$item->description,$_REQUEST['txt']);
echo $_REQUEST['txt'];
?>
Jump to Line
Something went wrong with that request. Please try again.