Skip to content

Instantly share code, notes, and snippets.

systemctl start lscpd
systemctl status lscpd
https:<IP Address>:8090
Username: admin
Password: 1234567 (mặc định)
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<?php
$protocol = $_SERVER["SERVER_PROTOCOL"];
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
$protocol = 'HTTP/1.0';
header( "$protocol 503 Service Unavailable", true, 503 );
header( 'Content-Type: text/html; charset=utf-8' );
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<h1>We are updating the site, please check back in 30 minutes.</h1>
DELETE FROM `wp_options`
WHERE `option_name` LIKE '_wp_session_%'
SELECT *
FROM `wp_options`
WHERE `option_name` LIKE '_wp_session_%'
// Limit media library access
add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' );
function wpb_show_current_user_attachments( $query ) {
$user_id = get_current_user_id();
if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts
') ) {
$query['author'] = $user_id;
}
return $query;
}
/* ----------------------------------------------------------------------------
Type the name of the ad unit here
*/
add_shortcode( ' your_shortcode_name ', 'your_shortcode_function_name' );
function your_shortcode_function_name () {
if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors
$adCode = '<div class="aicp">
Dán mã quảng cáo Adsense vô đây !
</div><!-- end of the aicp div -->';
return $adCode;