<?php if (session_id() == "") { session_start(); } $docroot = $_SERVER['DOCUMENT_ROOT']; require_once $docroot . "/config.php"; require_once $docroot . "/models/twextra_model.php"; require_once $docroot . "/controllers/twextra_controller.php"; require_once $docroot . "/banner.php"; require_once $docroot . "/header_html.php"; $screen_name = $_SESSION['user']; require_once $docroot . "/tw.lib.php"; //validate access; validate_access_twetest(); display_howto($screen_name); //......................................................................................... function display_howto($screen_name = '') { //configuration parameters: $config_params = Config::getConfigParams(); $css = $config_params['css']; $tweet_size_max = $config_params['tweet_size_max']; $tweet_size_max_google = $config_params['tweet_size_max_google']; $hostname = $config_params['hostname']; $doctype = $config_params['doctype']; $html_attribute = $config_params['html_attribute']; $banner = banner('', 'banner'); //(user, banner_class) $footer = $config_params['footer']; //
// Display all errors and warnings, including strict level define('ERROR_REPORTING_LEVEL', E_ALL | E_STRICT); error_reporting(ERROR_REPORTING_LEVEL); chdir(ROOT . '/'); require_once ROOT . '/lib/setup/third_party.php'; require_once TOOLS . '/svntools.php'; if (version_compare(PHP_VERSION, '5.0.0', '<')) { error("You need PHP version 5 or more to run this script\n"); } $phpCommand = isset($_SERVER['_']) ? $_SERVER['_'] : 'php'; $phpCommandArguments = implode(' ', $_SERVER['argv']); if (!($options = get_options()) || $options['help']) { display_usage(); } if ($options['howto']) { display_howto(); } if (!check_svn_version()) { error("You need the subversion 'svn' program at least at version " . SVN_MIN_VERSION . "\n"); } if (!$options['no-check-svn'] && has_uncommited_changes('.')) { error("Uncommited changes exist in the working folder.\n"); } $script = $_SERVER['argv'][0]; $version = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : ''; $subrelease = isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : ''; if (!preg_match("/^\\d+\\.\\d+\$/", $version)) { error("Version number should be in X.X format.\n"); } $isPre = strpos($subrelease, 'pre') === 0; if ($isPre) {