예제 #1
0
파일: HookPack.php 프로젝트: clrh/mediawiki
<?php

/**
 * @author Jean-Lou Dupont
 * @package HookPack
 * @category Enhancements
 * @version @@package-version@@
 * @Id $Id$
 */
//<source lang=php>
require 'aop/aop.php';
// add Mediawiki's includes directory
aop::register_class_pointcut_definition('Linker', dirname(__FILE__) . '/hooks/Linker.pointcut.definition.php');
aop::register_class_path($IP . '/includes');
aop::register_class_bypass("SpecialPage");
aop::register_class_bypass("EditPage");
$logger =& Log::singleton('file', dirname(__FILE__) . '/log.txt', '');
aop::setDebug();
aop::setLogger($logger);
//</source>