Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > jetpack > > > modules
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
carousel | Directory | - | - | |
comment-likes | Directory | - | - | |
comments | Directory | - | - | |
custom-post-types | Directory | - | - | |
external-media | Directory | - | - | |
google-fonts | Directory | - | - | |
gravatar | Directory | - | - | |
infinite-scroll | Directory | - | - | |
likes | Directory | - | - | |
markdown | Directory | - | - | |
memberships | Directory | - | - | |
photon-cdn | Directory | - | - | |
plugin-search | Directory | - | - | |
post-by-email | Directory | - | - | |
related-posts | Directory | - | - | |
scan | Directory | - | - | |
seo-tools | Directory | - | - | |
sharedaddy | Directory | - | - | |
shortcodes | Directory | - | - | |
simple-payments | Directory | - | - | |
site-icon | Directory | - | - | |
sitemaps | Directory | - | - | |
stats | Directory | - | - | |
subscriptions | Directory | - | - | |
theme-tools | Directory | - | - | |
tiled-gallery | Directory | - | - | |
verification-tools | Directory | - | - | |
videopress | Directory | - | - | |
widget-visibility | Directory | - | - | |
widgets | Directory | - | - | |
woocommerce-analytics | Directory | - | - | |
wordads | Directory | - | - | |
wpcom-tos | Directory | - | - | |
account-protection.php | File | 369 bytes | June 30 2025 22:28:24. | |
blaze.php | File | 1006 bytes | June 30 2025 22:28:24. | |
blocks.php | File | 1817 bytes | June 30 2025 22:28:24. | |
carousel.php | File | 565 bytes | June 30 2025 22:28:24. | |
comment-likes.php | File | 8076 bytes | June 30 2025 22:28:24. | |
comments.php | File | 1095 bytes | June 30 2025 22:28:24. | |
contact-form.php | File | 798 bytes | June 30 2025 22:28:24. | |
copy-post.php | File | 13401 bytes | June 30 2025 22:28:24. | |
custom-content-types.php | File | 4050 bytes | September 16 2024 19:58:12. | |
google-fonts.php | File | 507 bytes | June 30 2025 22:28:24. | |
gravatar-hovercards.php | File | 12140 bytes | June 30 2025 22:28:24. | |
infinite-scroll.php | File | 8396 bytes | June 30 2025 22:28:24. | |
json-api.php | File | 503 bytes | June 30 2025 22:28:24. | |
latex.php | File | 4723 bytes | June 30 2025 22:28:24. | |
likes.php | File | 20381 bytes | June 30 2025 22:28:24. | |
markdown.php | File | 1018 bytes | June 30 2025 22:28:24. | |
module-extras.php | File | 2724 bytes | April 28 2025 19:38:34. | |
module-headings.php | File | 43871 bytes | July 01 2025 19:41:26. | |
module-info.php | File | 27353 bytes | March 31 2025 22:37:54. | |
monitor.php | File | 3557 bytes | July 01 2025 19:41:26. | |
notes.php | File | 7870 bytes | June 30 2025 22:28:24. | |
photon-cdn.php | File | 12479 bytes | June 30 2025 22:28:24. | |
photon.php | File | 651 bytes | June 30 2025 22:28:24. | |
plugin-search.php | File | 22129 bytes | March 31 2025 22:37:54. | |
post-by-email.php | File | 629 bytes | June 30 2025 22:28:24. | |
post-list.php | File | 523 bytes | June 30 2025 22:28:24. | |
protect.php | File | 609 bytes | June 30 2025 22:28:24. | |
publicize.php | File | 3762 bytes | June 30 2025 22:28:24. | |
related-posts.php | File | 2151 bytes | June 30 2025 22:28:24. | |
search.php | File | 1161 bytes | June 30 2025 22:28:24. | |
seo-tools.php | File | 1590 bytes | June 30 2025 22:28:24. | |
sharedaddy.php | File | 1601 bytes | June 30 2025 22:28:24. | |
shortcodes.php | File | 6413 bytes | June 30 2025 22:28:24. | |
shortlinks.php | File | 4510 bytes | June 30 2025 22:28:24. | |
sitemaps.php | File | 1336 bytes | June 30 2025 22:28:24. | |
sso.php | File | 696 bytes | June 30 2025 22:28:24. | |
stats.php | File | 44124 bytes | June 30 2025 22:28:24. | |
subscriptions.php | File | 33757 bytes | June 30 2025 22:28:24. | |
theme-tools.php | File | 2482 bytes | February 17 2025 20:27:48. | |
tiled-gallery.php | File | 1095 bytes | June 30 2025 22:28:24. | |
vaultpress.php | File | 1796 bytes | June 30 2025 22:28:24. | |
verification-tools.php | File | 852 bytes | June 30 2025 22:28:24. | |
videopress.php | File | 942 bytes | June 30 2025 22:28:24. | |
waf.php | File | 309 bytes | June 30 2025 22:28:24. | |
widget-visibility.php | File | 511 bytes | June 30 2025 22:28:24. | |
widgets.php | File | 2820 bytes | June 30 2025 22:28:24. | |
woocommerce-analytics.php | File | 881 bytes | June 30 2025 22:28:24. | |
wordads.php | File | 585 bytes | June 30 2025 22:28:24. | |
wpgroho.js | File | 1977 bytes | October 29 2024 16:55:40. |
<?php /** * Module Name: WP.me Shortlinks * Module Description: Share short, easy-to-remember links to your posts and pages. * Sort Order: 8 * First Introduced: 1.1 * Requires Connection: Yes * Auto Activate: No * Module Tags: Social * Feature: Writing * Additional Search Queries: shortlinks, wp.me * * @package automattic/jetpack */ add_filter( 'pre_get_shortlink', 'wpme_get_shortlink_handler', 1, 4 ); if ( ! function_exists( 'wpme_dec2sixtwo' ) ) { /** * Converts number to base 62. * * @param int $num Number. * * @return string Value in base 62. */ function wpme_dec2sixtwo( $num ) { $index = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $out = ''; if ( $num < 0 ) { $out = '-'; $num = abs( $num ); } for ( $t = floor( log10( $num ) / log10( 62 ) ); $t >= 0; $t-- ) { $a = floor( $num / pow( 62, $t ) ); $out = $out . substr( $index, $a, 1 ); $num = $num - ( $a * pow( 62, $t ) ); } return $out; } } /** * Returns the WP.me shortlink. * * @param int $id Post ID, or 0 for the current post. * @param string $context The context for the link. One of 'post' or 'query'. * @param bool $allow_slugs Whether to allow post slugs in the shortlink. * * @return string */ function wpme_get_shortlink( $id = 0, $context = 'post', $allow_slugs = true ) { global $wp_query; $blog_id = Jetpack_Options::get_option( 'id' ); if ( 'query' === $context ) { if ( is_singular() ) { $id = $wp_query->get_queried_object_id(); $context = 'post'; } elseif ( is_front_page() ) { $context = 'blog'; } else { return ''; } } if ( 'blog' === $context ) { if ( empty( $id ) ) { $id = $blog_id; } return 'https://wp.me/' . wpme_dec2sixtwo( $id ); } $post = get_post( $id ); if ( empty( $post ) ) { return ''; } $post_id = $post->ID; $type = ''; if ( $allow_slugs && 'publish' === $post->post_status && 'post' === $post->post_type && strlen( $post->post_name ) <= 8 && ! str_contains( $post->post_name, '%' ) && ! str_contains( $post->post_name, '-' ) ) { $id = $post->post_name; $type = 's'; } else { $id = wpme_dec2sixtwo( $post_id ); if ( 'page' === $post->post_type ) { $type = 'P'; } elseif ( 'post' === $post->post_type || post_type_supports( $post->post_type, 'shortlinks' ) ) { $type = 'p'; } elseif ( 'attachment' === $post->post_type ) { $type = 'a'; } } if ( empty( $type ) ) { return ''; } return 'https://wp.me/' . $type . wpme_dec2sixtwo( $blog_id ) . '-' . $id; } /** * Get the shortlink handler. * * Used with the Core pre_get_shortlink hook. * * @param string $shortlink Shortlink value from the action. Ignored. * @param int $id Post ID (0 for the current post). * @param string $context The context for the link. One of 'post' or 'query'. * @param bool $allow_slugs Whether to allow post slugs in the shortlink. * * @return string */ function wpme_get_shortlink_handler( $shortlink, $id, $context, $allow_slugs ) { return wpme_get_shortlink( $id, $context, $allow_slugs ); } /** * Add Shortlinks to the REST API responses. * * @since 6.9.0 * * @action rest_api_init * @uses register_rest_field, wpme_rest_get_shortlink */ function wpme_rest_register_shortlinks() { // Post types that support shortlinks by default. $supported_post_types = array( 'attachment', 'page', 'post', ); // Add any CPT that may have declared support for shortlinks. foreach ( get_post_types() as $post_type ) { if ( post_type_supports( $post_type, 'shortlinks' ) && post_type_supports( $post_type, 'editor' ) ) { $supported_post_types[] = $post_type; } } register_rest_field( $supported_post_types, 'jetpack_shortlink', array( 'get_callback' => 'wpme_rest_get_shortlink', 'update_callback' => null, 'schema' => null, ) ); } /** * Get the shortlink of a post. * * @since 6.9.0 * * @param array $object Details of current post. * * @uses wpme_get_shortlink * * @return string */ function wpme_rest_get_shortlink( $object ) { $object_id = $object['id'] ?? 0; return wpme_get_shortlink( $object_id, array() ); } // Add shortlinks to the REST API Post response. add_action( 'rest_api_init', 'wpme_rest_register_shortlinks' ); /** * Set the Shortlink Gutenberg extension as available. */ function wpme_set_extension_available() { Jetpack_Gutenberg::set_extension_available( 'shortlinks' ); } add_action( 'init', 'wpme_set_extension_available' );
SILENT KILLER Tool