Commit 8a9e0cb2 authored by lechuckdapirate's avatar lechuckdapirate

First run... phpOpenTracker tiki lib... still void. Just a placeholder

parent a36b98eb
......@@ -1893,6 +1893,7 @@ tiki/lib/phpOpenTracker/conf/phpOpenTracker.ini -text
tiki/lib/phpOpenTracker/conf/user_agents.ini -text
tiki/lib/phplot.php -text
tiki/lib/polls/polllib.php -text
tiki/lib/potlib.php -text
tiki/lib/quizzes/quizlib.php -text
tiki/lib/refererstats/refererlib.php -text
tiki/lib/registration/registrationlib.php -text
......
<?php
// potlib.php - phpOpenTracker implementation for Tiki
//
// by LeChuckDaPirate
require_once("phpOpenTracker.php");
function encode_exit_urls($buffer) {
return preg_replace("#<a href=(\"|')http://([^\"']+)(\"|')#ime",
'"<a href=\"exit.php?url=".base64_encode(\'\\2\')."\""'
,$buffer);
}
class potlib extends TikiLib {
var $id = 1; // OpenTracker Id for future multi-portal feature
var $log_outgoing = true; // Wether or not log outgoing links...
function potlib($a_id = 1, $outgoing = true;) {
$this->id = $a_id;
$this->log_outgoing = $outgoing;
if ($this->log_outgoing) { ob_start('encode_exit_urls'); }
}
}
?>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment