This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# redirect all http to https | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
# Block Bot | |
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^.*(Baiduspider|HTTrack|Yandex|AhrefsBot|Baiduspider|DuckDuckBot|Ezooms|MJ12bot|YandexBot|Google|TikTok|Bytedance|Semrush|Bing|BabbarTech|Commoncrawl|Neilpatel|Ais|Aioseo|Seoptimer).*$ [NC] RewriteRule .* - [F,L] | |
# Block URL Buruk | |
SetEnvIfNoCase Referer "google.com" bad_referer Order Allow,Deny Allow from ALL Deny from env=bad_referer | |
SetEnvIfNoCase Referer "duckduckgo.com" bad_referer Order Allow,Deny Allow from ALL Deny from env=bad_referer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DB_HOST', 'localhost'); | |
define('DB_PORT', '3306'); | |
define('DB_NAME', 'plp_slms8'); | |
define('DB_USERNAME', 'plp_slms8'); | |
define('DB_PASSWORD', 'cS9pu1-b@4a'); | |
$conn = mysqli_connect(DB_HOST,DB_NAME,DB_PASSWORD,DB_USERNAME); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function floatvalue($val){ | |
$val = str_replace(",",".",$val); | |
$val = preg_replace('/\.(?=.*\.)/', '', $val); | |
return floatval($val); | |
} | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `member` SET `mpasswd` = MD5('bejo'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is needed for cookie based authentication to encrypt password in | |
* cookie. Needs to be 32 chars long. | |
*/ | |
$cfg['blowfish_secret'] = 'qtdRoGmbc9{8IZr323xYcSN]0s)r$9b_JUnb{~Xz'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$main_menus = [ | |
'home' => [ | |
'text' => __('Home'), | |
'url' => 'index.php' | |
], | |
'login' => [ | |
'text' => __('Login Admin'), | |
'url' => 'index.php?p=login' | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'visitor' => [ | |
'text' => __('Visitor Counter'), | |
'url' => 'index.php?p=visitor' | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<6>Server version name: Apache Tomcat/9.0.24 (Ubuntu) | |
<6>Server built: Aug 22 2019 11:55:14 UTC | |
<6>Server version number: 9.0.24.0 | |
<6>OS Name: Linux | |
<6>OS Version: 5.0.0-13-generic | |
<6>Architecture: amd64 | |
<6>Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre | |
<6>JVM Version: 1.8.0_252-8u252-b09-1~19.10-b09 | |
<6>JVM Vendor: Private Build | |
<6>CATALINA_BASE: /home/dhis/tomcat-dhis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Visitor Counter | |
* Copyright (C) 2010 Arie Nugraha ([email protected]) | |
* Modified By Eddy Subratha ([email protected]) | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mysql -u root | |
CREATE USER 'server'@'localhost' IDENTIFIED BY 'server'; | |
GRANT ALL PRIVILEGES ON *.* TO 'server'@'localhost' WITH GRANT OPTION; | |
EXIT; |
NewerOlder