1<?php
2function makeClickableLinks($s) {
3    return preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.-]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $s);
4}
5
6// Your twitter username.
7$twitter_username = tpl_getConf('twitterUsername');
8
9// Required settings array for Twitter 1.1 API
10$twitterAPI_settings = array(
11    'oauth_access_token' => tpl_getConf('twitter_oauthAccessToken'),
12    'oauth_access_token_secret' => tpl_getConf('twitter_oauthAccessTokenSecret'),
13    'consumer_key' => tpl_getConf('twitter_consumerKey'),
14    'consumer_secret' => tpl_getConf('twitter_consumerSecret')
15);
16?>