Skip to content

Instantly share code, notes, and snippets.

View mrogalsky's full-sized avatar

Max Rogalsky mrogalsky

View GitHub Profile
@mrogalsky
mrogalsky / sape.context.plugin.php
Created December 12, 2011 13:41
[MODx EVO] Sape.RU Context Plugin
/*
Sape.RU Context Plugin for MODx Evolution
*/
if (!defined('_SAPE_USER')){
define('_SAPE_USER', ' _USER_FOLDER_ ');
}
require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php');
$sape_context = new SAPE_context();