Skip to content

Instantly share code, notes, and snippets.

View desawarna's full-sized avatar

Zae makhrus desawarna

View GitHub Profile
@desawarna
desawarna / membercard.php
Created October 13, 2021 02:52
Kartu Anggota SLiMS 9+ Dengan Tanggal Lahir
<?php
function floatvalue($val){
$val = str_replace(",",".",$val);
$val = preg_replace('/\.(?=.*\.)/', '', $val);
return floatval($val);
}
?>
<!DOCTYPE html>
<html>
<head>
@desawarna
desawarna / Copas-Code-Set-Pasword-Anggota-Secara-Berjamaah.sql
Created September 21, 2020 23:27
Copas Code Set Pasword Anggota Secara Berjamaah
UPDATE `member` SET `mpasswd` = MD5('bejo');
@desawarna
desawarna / gist:eceb0e86302bc1c6223d5d8ff4f44cd4
Created September 16, 2020 11:27
Copasan blowfish_secret config phpmyadmin
/**
* 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! */
@desawarna
desawarna / gist:bdd2c0ea742ff3b568d3b2a7e281d0c3
Last active September 18, 2020 04:01
Copasan Menu Login Template Default SLiMDS 9
$main_menus = [
'home' => [
'text' => __('Home'),
'url' => 'index.php'
],
'login' => [
'text' => __('Login Admin'),
'url' => 'index.php?p=login'
],
@desawarna
desawarna / gist:90232eda0eea95074218e78fbd53dc1d
Created September 13, 2020 07:23
Copasan Menu Visitor Counter
'visitor' => [
'text' => __('Visitor Counter'),
'url' => 'index.php?p=visitor'
],
<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
@desawarna
desawarna / visitor.inc.php
Created March 27, 2020 14:13
Loss IP Visitor Counter Slims 8 dengan Suara juga
<?php
/**
*
* Visitor Counter
* Copyright (C) 2010 Arie Nugraha (dicarve@yahoo.com)
* Modified By Eddy Subratha (eddy.subratha@gmail.com)
*
* 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
sudo mysql -u root
CREATE USER 'server'@'localhost' IDENTIFIED BY 'server';
GRANT ALL PRIVILEGES ON *.* TO 'server'@'localhost' WITH GRANT OPTION;
EXIT;
@desawarna
desawarna / artikel.php
Created August 8, 2019 23:30
Code PHP Pada CMSKu /cmsku/admin/content/
<script type="text/javascript" src="../plugin/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="js/tinymce_config.js"></script>
<?php
if(!defined("INDEX")) header('location: ../index.php');
$show = isset($_GET['show']) ? $_GET['show'] : "";
$link = "?content=artikel";
switch($show){
@desawarna
desawarna / main.php
Created May 20, 2019 02:37
Copas Code ini di /arteri-1.2.1/application/views/
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<nav class="navbar navbar-inverse navbar-submenu">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#module-submenu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>