This file contains 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
<div class="container"> | |
<br /> | |
<div class="small text-muted">Home » Results</div> | |
<hr /> | |
<div class="col-md-12"> | |
<h5>Hasil Input Laporan Harian</h5> | |
<div class="panel panel-body"> | |
Hi, data Anda berhasil diinput!<br /><br /><form id="telegramForm" method="POST"> | |
<input id="telegram_id" class="form-control" name="chat_id" type="hidden" value="-1001059123456" /> | |
<input class="form-control" name="text" type="hidden" value='Waktu : <?php echo date("Y-m-d H:i:s");?> <?php echo "\n";?>Nama : * <?php echo $this->input->post('nama');?> <?php echo "\n";?>Jumlah Penjualan : *<?php echo $this->input->post('sales');?> <?php echo "\n\n\n*>>>* _Laporan via bot Telegram_ *<<<*";?> '/> |
This file contains 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
<div class="container"> | |
<div class="small text-muted">Home » Report</div> | |
<hr /> | |
<div class="col-md-6"> | |
<h4>Input Laporan Harian</h4> | |
<form action="./submit_report" method="POST"> | |
<div class="form-group"> | |
<label for="nama">Nama:</label> | |
<input id="nama" class="form-control" name="nama" required="" type="nama" placeholder="Masukkan nama anda . . ." /> | |
</div> |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Report extends CI_Controller { | |
function __construct(){ | |
parent::__construct(); | |
} | |
This file contains 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
-- Host: localhost | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8mb4 */; |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Bot extends CI_Controller { | |
function __construct(){ | |
parent::__construct(); | |
} | |
function index(){ | |
$TOKEN = "TOKEN BOT ANDA"; |
This file contains 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
#-*- coding: utf-8 -*- | |
#--------------------------------------- | |
#!/usr/bin/python | |
#--------------------------------------- | |
# Scrape wikipedia Table | |
# Rizky | https://www.wadagizig.com | |
#--------------------------------------- | |
import urllib2 | |
from bs4 import BeautifulSoup |
This file contains 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
#-*- coding: utf-8 -*- | |
#------------------------------------------------ | |
#!/usr/bin/python | |
#------------------------------------------------ | |
def backupBlogger(): | |
from selenium import webdriver | |
import time | |
browser = webdriver.Chrome() |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>wadagizigBot ~ send message</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="https://cdn.rawgit.com/almasaeed2010/AdminLTE/51e96d8e/dist/css/AdminLTE.css"> | |
</head> | |
<body> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>wadagizigBot ~ send message</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="https://cdn.rawgit.com/almasaeed2010/AdminLTE/51e96d8e/dist/css/AdminLTE.css"> | |
</head> | |
<body> |
This file contains 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 | |
if($_SERVER['REQUEST_METHOD'] == "POST"){ | |
$secret_token = "TOKEN_BOT_TELEGRAM_ANDA"; | |
$telegram_id = $_POST ['telegram_id']; | |
$pesan_teks = $_POST ['pesan_teks']; | |
function sendMessage($telegram_id, $pesan_teks, $secret_token) { | |
$url = "https://api.telegram.org/bot" . $secret_token . "/sendMessage?chat_id=" . $telegram_id; | |
$url = $url . "&text=" . urlencode($pesan_teks); |
NewerOlder