Using text editor open config.php after you unzip theapplication, then fill the value as the comments tell you;
Here dowload itap;
Unzip the itap to the dabr folder; modify the user.php under the common folder of dabr. Find the the command:
$authorise_url = 'http://api.twitter.com/oauth/authorize?oauth_token='.$token['oauth_token'];
$authorise_url = 'http://your-itap's-path/authorize?oauth_token='.$token['oauth_token'];
function config_log_request() {// This function is called from menu.php if it exists// Ignore people that aren't logged inif (!user_is_authenticated()) return;// Create a *lowercase* list of allowed users$allowed_users = array('twitter','losrfuu',);// Or a file-based alternative if you prefer not to keep tampering with config.php:// $allowed_users = file('../allowed_users.php');// Check if the current user is in our allowed user listif (!in_array(strtolower(user_current_username()), $allowed_users)) {// They're not, kick them out!user_logout();die("Sorry, you're not on the list of allowed users for this site.");}}and if you want to save network traffic when you visit dabr on mobile phone you may change common/settings.php like this:
function setting_fetch($setting, $default = NULL) {$settings = (array) unserialize(base64_decode($_COOKIE['settings']));if (array_key_exists($setting, $settings)) { return $settings[$setting];} else { if ($setting == ’browser’) {return ’text’;} return $default;}}I do this change but it seems it doesn’t work.
that’s all.
No comments:
Post a Comment