/
contact.php
executable file
·84 lines (62 loc) · 2.43 KB
/
contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
if (session_id () == "") session_start ();
$docroot = $_SERVER ['DOCUMENT_ROOT'];
require_once $docroot . "/config.php";
require_once $docroot . "/models/twextra_model.php";
require_once $docroot . "/controllers/twextra_controller.php";
require_once $docroot . "/banner.php";
require_once $docroot . "/header_html.php";
$screen_name = $_SESSION['user'];
require_once $docroot . "/tw.lib.php";
//validate access;
validate_access_twetest();
display_content($screen_name);
//.........................................................................................
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;
}
?>