Completed
Push — fix/3641-connect-site-network-... ( 8abb64...41619d )
by
unknown
478:50 queued 469:13
created

class.jetpack-debugger.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
class Jetpack_Debugger {
4
5
	private static function is_jetpack_support_open() {
6
		try {
7
			$response = wp_remote_request( "http://jetpack.com/is-support-open" );
8
			if ( is_wp_error( $response ) ) {
9
				return false;
10
			}
11
			$body = wp_remote_retrieve_body( $response );
12
			$json = json_decode( $body );
13
			return ( ( bool ) $json->is_support_open );
14
		}
15
		catch ( Exception $e ) {
16
			return true;
17
		}
18
	}
19
20
	public static function jetpack_increase_timeout() {
21
		return 30; // seconds
22
	}
23
24
	public static function jetpack_debug_display_handler() {
25
		if ( ! current_user_can( 'manage_options' ) )
26
			wp_die( esc_html__('You do not have sufficient permissions to access this page.', 'jetpack' ) );
27
28
		$current_user = wp_get_current_user();
29
30
		$user_id = get_current_user_id();
31
		$user_tokens = Jetpack_Options::get_option( 'user_tokens' );
32
		if ( is_array( $user_tokens ) && array_key_exists( $user_id, $user_tokens ) ) {
33
			$user_token = $user_tokens[$user_id];
34
		} else {
35
			$user_token = '[this user has no token]';
36
		}
37
		unset( $user_tokens );
38
39
		$debug_info = "\r\n";
40
		foreach ( array(
41
			'CLIENT_ID'   => 'id',
42
			'BLOG_TOKEN'  => 'blog_token',
43
			'MASTER_USER' => 'master_user',
44
			'CERT'        => 'fallback_no_verify_ssl_certs',
45
			'TIME_DIFF'   => 'time_diff',
46
			'VERSION'     => 'version',
47
			'OLD_VERSION' => 'old_version',
48
			'PUBLIC'      => 'public',
49
		) as $label => $option_name ) {
50
			$debug_info .= "\r\n" . esc_html( $label . ": " . Jetpack_Options::get_option( $option_name ) );
51
		}
52
53
		$debug_info .= "\r\n" . esc_html( "USER_ID: " . $user_id );
54
		$debug_info .= "\r\n" . esc_html( "USER_TOKEN: " . $user_token );
55
		$debug_info .= "\r\n" . esc_html( "PHP_VERSION: " . PHP_VERSION );
56
		$debug_info .= "\r\n" . esc_html( "WORDPRESS_VERSION: " . $GLOBALS['wp_version'] );
57
		$debug_info .= "\r\n" . esc_html( "JETPACK__VERSION: " . JETPACK__VERSION );
58
		$debug_info .= "\r\n" . esc_html( "JETPACK__PLUGIN_DIR: " . JETPACK__PLUGIN_DIR );
59
		$debug_info .= "\r\n" . esc_html( "SITE_URL: " . site_url() );
60
		$debug_info .= "\r\n" . esc_html( "HOME_URL: " . home_url() );
61
62
		foreach ( array (
63
					  'HTTP_HOST',
64
					  'SERVER_PORT',
65
					  'HTTPS',
66
					  'GD_PHP_HANDLER',
67
					  'HTTP_AKAMAI_ORIGIN_HOP',
68
					  'HTTP_CF_CONNECTING_IP',
69
					  'HTTP_CLIENT_IP',
70
					  'HTTP_FASTLY_CLIENT_IP',
71
					  'HTTP_FORWARDED',
72
					  'HTTP_FORWARDED_FOR',
73
					  'HTTP_INCAP_CLIENT_IP',
74
					  'HTTP_TRUE_CLIENT_IP',
75
					  'HTTP_X_CLIENTIP',
76
					  'HTTP_X_CLUSTER_CLIENT_IP',
77
					  'HTTP_X_FORWARDED',
78
					  'HTTP_X_FORWARDED_FOR',
79
					  'HTTP_X_IP_TRAIL',
80
					  'HTTP_X_REAL_IP',
81
					  'HTTP_X_VARNISH',
82
					  'REMOTE_ADDR'
83
				  ) as $header ) {
84
			if ( isset( $_SERVER[ $header ] ) ) {
85
				$debug_info .= "\r\n" . esc_html( $header . ": " . $_SERVER[ $header ] );
86
			}
87
		}
88
89
		$debug_info .= "\r\n" . esc_html( "PROTECT_TRUSTED_HEADER: " . json_encode( get_site_option( 'trusted_ip_header' ) ) );
90
91
		$debug_info .= "\r\n\r\nTEST RESULTS:\r\n\r\n";
92
		$debug_raw_info = '';
93
94
95
		$tests = array();
96
97
		$tests['HTTP']['result'] = wp_remote_get( preg_replace( '/^https:/', 'http:', JETPACK__API_BASE ) . 'test/1/' );
98
		$tests['HTTP']['fail_message'] = esc_html__( 'Your site isn’t reaching the Jetpack servers.', 'jetpack' );
99
100
		$tests['HTTPS']['result'] = wp_remote_get( preg_replace( '/^http:/', 'https:', JETPACK__API_BASE ) . 'test/1/' );
101
		$tests['HTTPS']['fail_message'] = esc_html__( 'Your site isn’t securely reaching the Jetpack servers.', 'jetpack' );
102
103
		$identity_crisis_message = '';
104
		if ( $identity_crisis = Jetpack::check_identity_crisis( true ) ) {
105
			foreach( $identity_crisis as $key => $value ) {
106
				$identity_crisis_message .= sprintf( __( 'Your `%1$s` option is set up as `%2$s`, but your WordPress.com connection lists it as `%3$s`!', 'jetpack' ), $key, (string) get_option( $key ), $value ) . "\r\n";
107
			}
108
			$identity_crisis = new WP_Error( 'identity-crisis', $identity_crisis_message, $identity_crisis );
109
		} else {
110
			$identity_crisis = 'PASS';
111
		}
112
		$tests['IDENTITY_CRISIS']['result'] = $identity_crisis;
113
		$tests['IDENTITY_CRISIS']['fail_message'] = esc_html__( 'Something has gotten mixed up in your Jetpack Connection!', 'jetpack' );
114
115
		$self_xml_rpc_url = home_url( 'xmlrpc.php' );
116
117
		$testsite_url = Jetpack::fix_url_for_bad_hosts( JETPACK__API_BASE . 'testsite/1/?url=' );
118
119
		add_filter( 'http_request_timeout', array( 'Jetpack_Debugger', 'jetpack_increase_timeout' ) );
120
121
		$tests['SELF']['result'] = wp_remote_get( $testsite_url . $self_xml_rpc_url );
122
		if ( is_wp_error( $tests['SELF']['result'] ) && 0 == strpos( $tests['SELF']['result']->get_error_message(), 'Operation timed out' ) ){
123
			$tests['SELF']['fail_message'] = esc_html__( 'Your site did not get a response from our debugging service in the expected timeframe. If you are not experiencing other issues, this could be due to a slow connection between your site and our server.', 'jetpack' );
124
		} else {
125
			$tests['SELF']['fail_message'] = esc_html__( 'It looks like your site can not communicate properly with Jetpack.', 'jetpack' );
126
		}
127
128
		remove_filter( 'http_request_timeout', array( 'Jetpack_Debugger', 'jetpack_increase_timeout' ) );
129
130
		?>
131
		<div class="wrap">
132
			<h2><?php esc_html_e( 'Jetpack Debugging Center', 'jetpack' ); ?></h2>
133
			<h3><?php _e( "Testing your site's compatibility with Jetpack...", 'jetpack' ); ?></h3>
134
			<div class="jetpack-debug-test-container">
135
			<?php
136
			ob_start();
137
			foreach ( $tests as $test_name => $test_info ) :
138
				if ( 'PASS' !== $test_info['result'] && ( is_wp_error( $test_info['result'] ) ||
139
					false == ( $response_code = wp_remote_retrieve_response_code( $test_info['result'] ) )  ||
140
					'200' != $response_code ) ) {
0 ignored issues
show
The variable $response_code does not seem to be defined for all execution paths leading up to this point.

If you define a variable conditionally, it can happen that it is not defined for all execution paths.

Let’s take a look at an example:

function myFunction($a) {
    switch ($a) {
        case 'foo':
            $x = 1;
            break;

        case 'bar':
            $x = 2;
            break;
    }

    // $x is potentially undefined here.
    echo $x;
}

In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.

Available Fixes

  1. Check for existence of the variable explicitly:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        if (isset($x)) { // Make sure it's always set.
            echo $x;
        }
    }
    
  2. Define a default value for the variable:

    function myFunction($a) {
        $x = ''; // Set a default which gets overridden for certain paths.
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        echo $x;
    }
    
  3. Add a value for the missing path:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
    
            // We add support for the missing case.
            default:
                $x = '';
                break;
        }
    
        echo $x;
    }
    
Loading history...
141
					$debug_info .= $test_name . ": FAIL\r\n";
142
					?>
143
					<div class="jetpack-test-error">
144
						<p>
145
							<a class="jetpack-test-heading" href="#"><?php echo $test_info['fail_message']; ?>
146
							<span class="noticon noticon-collapse"></span>
147
							</a>
148
						</p>
149
						<pre class="jetpack-test-details"><?php echo esc_html( $test_name ); ?>:
150
	<?php echo esc_html( is_wp_error( $test_info['result'] ) ? $test_info['result']->get_error_message() : print_r( $test_info['result'], 1 ) ); ?></pre>
151
					</div><?php
152
				} else {
153
					$debug_info .= $test_name . ": PASS\r\n";
154
				}
155
				$debug_raw_info .= "\r\n\r\n" . $test_name . "\r\n" . esc_html( is_wp_error( $test_info['result'] ) ? $test_info['result']->get_error_message() : print_r( $test_info['result'], 1 ) );
156
				?>
157
			<?php endforeach;
158
			$html = ob_get_clean();
159
160
			if ( '' == trim( $html ) ) {
161
				echo '<div class="jetpack-tests-succed">' . esc_html__( 'Your Jetpack setup looks a-okay!', 'jetpack' ) . '</div>';
162
			}
163
			else {
164
				echo '<h3>' . esc_html__( 'There seems to be a problem with your site’s ability to communicate with Jetpack!', 'jetpack' ) . '</h3>';
165
				echo $html;
166
			}
167
			$debug_info .= "\r\n\r\nRAW TEST RESULTS:" . $debug_raw_info ."\r\n";
168
			?>
169
			</div>
170
			<div class="entry-content">
171
				<h3><?php esc_html_e( 'Trouble with Jetpack?', 'jetpack' ); ?></h3>
172
				<h4><?php esc_html_e( 'It may be caused by one of these issues, which you can diagnose yourself:', 'jetpack' ); ?></h4>
173
				<ol>
174
					<li><b><em><?php esc_html_e( 'A known issue.', 'jetpack' ); ?></em></b>  <?php echo sprintf( __( 'Some themes and plugins have <a href="%1$s" target="_blank">known conflicts</a> with Jetpack – check the <a href="%2$s" target="_blank">list</a>. (You can also browse the <a href="%3$s" target="_blank">Jetpack support pages</a> or <a href="%4$s" target="_blank">Jetpack support forum</a> to see if others have experienced and solved the problem.)', 'jetpack' ), 'http://jetpack.com/support/getting-started-with-jetpack/known-issues/', 'http://jetpack.com/support/getting-started-with-jetpack/known-issues/', 'http://jetpack.com/support/', 'http://wordpress.org/support/plugin/jetpack' ); ?></li>
175
					<li><b><em><?php esc_html_e( 'An incompatible plugin.', 'jetpack' ); ?></em></b>  <?php esc_html_e( "Find out by disabling all plugins except Jetpack. If the problem persists, it's not a plugin issue. If the problem is solved, turn your plugins on one by one until the problem pops up again – there's the culprit! Let us know, and we'll try to help.", 'jetpack' ); ?></li>
176
					<li>
177
						<b><em><?php esc_html_e( 'A theme conflict.', 'jetpack' ); ?></em></b>
178
						<?php
179
							$default_theme = wp_get_theme( WP_DEFAULT_THEME );
180
181
							if ( $default_theme->exists() ) {
182
								echo esc_html( sprintf( __( "If your problem isn't known or caused by a plugin, try activating %s (the default WordPress theme).", 'jetpack' ), $default_theme->get( 'Name' ) ) );
183
							} else {
184
								esc_html_e( "If your problem isn't known or caused by a plugin, try activating the default WordPress theme.", 'jetpack' );
185
							}
186
						?>
187
						<?php esc_html_e( "If this solves the problem, something in your theme is probably broken – let the theme's author know.", 'jetpack' ); ?>
188
					</li>
189
					<li><b><em><?php esc_html_e( 'A problem with your XMLRPC file.', 'jetpack' ); ?></em></b>  <?php echo sprintf( __( 'Load your <a href="%s">XMLRPC file</a>. It should say “XML-RPC server accepts POST requests only.” on a line by itself.', 'jetpack' ), site_url( 'xmlrpc.php' ) ); ?>
190
						<ul>
191
							<li>- <?php esc_html_e( "If it's not by itself, a theme or plugin is displaying extra characters. Try steps 2 and 3.", 'jetpack' ); ?></li>
192
							<li>- <?php esc_html_e( "If you get a 404 message, contact your web host. Their security may block XMLRPC.", 'jetpack' ); ?></li>
193
						</ul>
194
					</li>
195
				</ol>
196
				<?php if ( self::is_jetpack_support_open() ): ?>
197
				<p class="jetpack-show-contact-form"><?php echo sprintf( __( 'If none of these help you find a solution, <a href="%s">click here to contact Jetpack support</a>. Tell us as much as you can about the issue and what steps you\'ve tried to resolve it, and one of our Happiness Engineers will be in touch to help.', 'jetpack' ), Jetpack::admin_url( array( 'page' => 'jetpack-debugger', 'contact' => true ) ) ); ?>
198
				</p>
199
				<?php endif; ?>
200
				<?php if ( Jetpack::is_active() ) : ?>
201
					<hr />
202
					<div id="connected-user-details">
203
						<p><?php printf( __( 'The primary connection is owned by <strong>%s</strong>\'s WordPress.com account.', 'jetpack' ), esc_html( Jetpack::get_master_user_email() ) ); ?></p>
204
					</div>
205
					<hr />
206
					<div id="sync-related-posts">
207
						<p><?php echo esc_html__( 'Some features of Jetpack use the WordPress.com infrastructure and require that your public content be mirrored there. If you see intermittent issues only affecting certain posts, please try requesting a reindex of your posts.', 'jetpack' ); ?></p>
208
						<?php echo Jetpack::init()->sync->reindex_ui() ?>
209
					</div>
210
				<?php endif; ?>
211
			</div>
212
			<div id="contact-message" <?php if( ! isset( $_GET['contact'] ) ) {?>  style="display:none" <?php } ?>>
213
			<?php if ( self::is_jetpack_support_open() ): ?>
214
				<form id="contactme" method="post" action="https://jetpack.com/contact-support/">
215
					<input type="hidden" name="action" value="submit">
216
					<input type="hidden" name="jetpack" value="needs-service">
217
218
					<input type="hidden" name="contact_form" id="contact_form" value="1">
219
					<input type="hidden" name="blog_url" id="blog_url" value="<?php echo esc_attr( site_url() ); ?>">
220
					<?php
221
						$subject_line = sprintf(
222
							/* translators: %s is the URL of the site */
223
							_x( 'from: %s Jetpack contact form', 'Support request email subject line', 'jetpack' ),
224
							esc_attr( site_url() )
225
						);
226
227
						if ( Jetpack::is_development_version() ) {
228
							$subject_line = 'BETA ' . $subject_line;
229
						}
230
231
						$subject_line_input = printf(
0 ignored issues
show
$subject_line_input is not used, you could remove the assignment.

This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.

$myVar = 'Value';
$higher = false;

if (rand(1, 6) > 3) {
    $higher = true;
} else {
    $higher = false;
}

Both the $myVar assignment in line 1 and the $higher assignment in line 2 are dead. The first because $myVar is never used and the second because $higher is always overwritten for every possible time line.

Loading history...
232
							'<input type="hidden" name="subject" id="subject" value="%s"">',
233
							$subject_line
234
						);
235
					?>
236
					<div class="formbox">
237
						<label for="message" class="h"><?php esc_html_e( 'Please describe the problem you are having.', 'jetpack' ); ?></label>
238
						<textarea name="message" cols="40" rows="7" id="did"></textarea>
239
					</div>
240
241
					<div id="name_div" class="formbox">
242
						<label class="h" for="your_name"><?php esc_html_e( 'Name', 'jetpack' ); ?></label>
243
			  			<span class="errormsg"><?php esc_html_e( 'Let us know your name.', 'jetpack' ); ?></span>
244
						<input name="your_name" type="text" id="your_name" value="<?php esc_html_e( $current_user->display_name, 'jetpack'); ?>" size="40">
245
					</div>
246
247
					<div id="email_div" class="formbox">
248
						<label class="h" for="your_email"><?php esc_html_e( 'E-mail', 'jetpack' ); ?></label>
249
			  			<span class="errormsg"><?php esc_html_e( 'Use a valid email address.', 'jetpack' ); ?></span>
250
						<input name="your_email" type="text" id="your_email" value="<?php esc_html_e( $current_user->user_email, 'jetpack'); ?>" size="40">
251
					</div>
252
253
					<div id="toggle_debug_form_info" class="formbox">
254
						<p><?php _e( 'The test results and some other useful debug information will be sent to the support team. Please feel free to <a href="#">review/modify</a> this information.', 'jetpack' ); ?></p>
255
					</div>
256
257
					<div id="debug_info_form_div" class="formbox" style="display:none">
258
						<label class="h" for="debug_info"><?php esc_html_e( 'Debug Info', 'jetpack' ); ?></label>
259
			  			<textarea name="debug_info" cols="40" rows="7" id="debug_form_info"><?php echo esc_attr( $debug_info ); ?></textarea>
260
					</div>
261
262
					<div style="clear: both;"></div>
263
264
					<div id="blog_div" class="formbox">
265
						<div id="submit_div" class="contact-support">
266
						<input type="submit" name="submit" value="<?php esc_html_e( 'Submit &#187;', 'jetpack' ); ?>">
267
						</div>
268
					</div>
269
					<div style="clear: both;"></div>
270
				</form>
271
			<?php endif; ?>
272
		</div> <!-- contact-message, hidden by default. -->
273
		<div id="toggle_debug_info"><a href="#"><?php _e( 'View Advanced Debug Results', 'jetpack' ); ?></a></div>
274
			<div id="debug_info_div" style="display:none">
275
			<h4><?php esc_html_e( 'Debug Info', 'jetpack' ); ?></h4>
276
			<div id="debug_info"><?php echo wpautop( esc_html( $debug_info ) ); ?></div>
277
		</div>
278
		</div>
279
	<?php
280
	}
281
282
	public static function jetpack_debug_admin_head() {
283
		?>
284
		<style type="text/css">
285
286
			.jetpack-debug-test-container {
287
				margin-top: 20px;
288
				margin-bottom: 30px;
289
			}
290
291
			.jetpack-tests-succed {
292
				font-size: large;
293
				color: #8BAB3E;
294
			}
295
296
			.jetpack-test-details {
297
				margin: 4px 6px;
298
				padding: 10px;
299
				overflow: auto;
300
				display: none;
301
			}
302
303
			.jetpack-test-error {
304
				margin-bottom: 10px;
305
				background: #FFEBE8;
306
				border: solid 1px #C00;
307
				border-radius: 3px;
308
			}
309
310
			.jetpack-test-error p {
311
				margin: 0;
312
				padding: 0;
313
			}
314
315
			.jetpack-test-error a.jetpack-test-heading {
316
				padding: 4px 6px;
317
				display: block;
318
				text-decoration: none;
319
				color: inherit;
320
			}
321
322
			.jetpack-test-error .noticon {
323
				float: right;
324
			}
325
326
			form#contactme {
327
				border: 1px solid #dfdfdf;
328
				background: #eaf3fa;
329
				padding: 20px;
330
				margin: 10px;
331
				background-color: #eaf3fa;
332
				border-radius: 5px;
333
				font-size: 15px;
334
				font-family: "Open Sans", "Helvetica Neue", sans-serif;
335
			}
336
337
			form#contactme label.h {
338
				color: #444;
339
				display: block;
340
				font-weight: bold;
341
				margin: 0 0 7px 10px;
342
				text-shadow: 1px 1px 0 #fff;
343
			}
344
345
			.formbox {
346
				margin: 0 0 25px 0;
347
			}
348
349
			.formbox input[type="text"], .formbox input[type="email"], .formbox input[type="url"], .formbox textarea, #debug_info_div {
350
				border: 1px solid #e5e5e5;
351
				border-radius: 11px;
352
				box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
353
				color: #666;
354
				font-size: 14px;
355
				padding: 10px;
356
				width: 97%;
357
			}
358
			.formbox .contact-support input[type="submit"] {
359
				float: right;
360
				margin: 0 !important;
361
				border-radius: 20px !important;
362
				cursor: pointer;
363
				font-size: 13pt !important;
364
				height: auto !important;
365
				margin: 0 0 2em 10px !important;
366
				padding: 8px 16px !important;
367
				background-color: #ddd;
368
				border: 1px solid rgba(0,0,0,0.05);
369
				border-top-color: rgba(255,255,255,0.1);
370
				border-bottom-color: rgba(0,0,0,0.15);
371
				color: #333;
372
				font-weight: 400;
373
				display: inline-block;
374
				text-align: center;
375
				text-decoration: none;
376
			}
377
378
			.formbox span.errormsg {
379
				margin: 0 0 10px 10px;
380
				color: #d00;
381
				display: none;
382
			}
383
384
			.formbox.error span.errormsg {
385
				display: block;
386
			}
387
388
			#contact-message ul {
389
				margin: 0 0 20px 10px;
390
			}
391
392
			#contact-message li {
393
				margin: 0 0 10px 10px;
394
				list-style: disc;
395
				display: list-item;
396
			}
397
398
			#debug_info_div, #toggle_debug_info, #debug_info_div p {
399
				font-size: smaller;
400
			}
401
402
		</style>
403
		<script type="text/javascript">
404
		jQuery( document ).ready( function($) {
405
406
			$( '#debug_info' ).prepend( 'jQuery version: ' + jQuery.fn.jquery + "\r\n" );
407
			$( '#debug_form_info' ).prepend( 'jQuery version: ' + jQuery.fn.jquery + "\r\n" );
408
409
			$( '.jetpack-test-error .jetpack-test-heading' ).on( 'click', function() {
410
				$( this ).parents( '.jetpack-test-error' ).find( '.jetpack-test-details' ).slideToggle();
411
				return false;
412
			} );
413
414
			$( '.jetpack-show-contact-form a' ).on( 'click', function() {
415
				$( '#contact-message' ).slideToggle();
416
				return false;
417
			} );
418
419
			$( '#toggle_debug_info a' ).on( 'click', function() {
420
				$( '#debug_info_div' ).slideToggle();
421
				return false;
422
			} );
423
424
			$( '#toggle_debug_form_info a' ).on( 'click', function() {
425
				$( '#debug_info_form_div' ).slideToggle();
426
				return false;
427
			} );
428
429
			$( 'form#contactme' ).on( "submit", function(e){
430
				var form = $( this );
431
				var message = form.find( '#did' );
432
				var name = form.find( '#your_name' );
433
				var email = form.find( '#your_email' )
434
				var validation_error = false;
435
				if( !name.val() ) {
436
					name.parents( '.formbox' ).addClass( 'error' );
437
					validation_error = true;
438
				}
439
				if( !email.val() ) {
440
					email.parents( '.formbox' ).addClass( 'error' );
441
					validation_error = true;
442
				}
443
				if ( validation_error ) {
444
					return false;
445
				}
446
				message.val( message.val() + "\r\n\r\n----------------------------------------------\r\n\r\nDEBUG INFO:\r\n" + $('#debug_info').val()  );
447
				return true;
448
	    	});
449
450
		} );
451
		</script>
452
		<?php
453
	}
454
}
455