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 | |
$input=$_REQUEST[input]; | |
$data=explode("\n",$input); | |
for($i=0;$i<count($data);$i++){ | |
$username=str_replace(array("\r\n", "\r", "\n"),"",$data[$i]); | |
$url = file_get_contents("https://twitter.com/users/username_available?&username=$username"); | |
$convert = explode(',', $url); | |
$hapus = array('"msg":"','"}'); | |
$hasil =str_replace($hapus,'',htmlentities($convert[3])); | |
echo "<b>$username</b>: $hasil <br>"; |
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
#!/usr/bin/env python | |
import sys | |
import tweepy | |
customer_key= 'AQdBj5LwLiGtqpFnjOYrKA' | |
customer_secret='DJCieDljb2npbowla6E97vm9O0dURtQyLU2KB0pycQ' | |
opt=['Update Status','Follow','Unfollow'] | |
app = [ | |
{ | |
'namaakun':'DedikFansClub', | |
'ak':'', |
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 | |
error_reporting(0); | |
?> | |
<title>mass mail</title> | |
<form name="formmail" method="post"> | |
<table> | |
<tr> | |
<td>Dari</td> | |
<td><input name="dari" value="<?php echo $_POST[dari] ?>"></td> |
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 | |
$params = array_merge( | |
require(__DIR__ . '/../../common/config/params.php'), | |
require(__DIR__ . '/../../common/config/params-local.php'), | |
require(__DIR__ . '/params.php'), | |
require(__DIR__ . '/params-local.php') | |
); | |
return [ | |
'id' => 'app-backend', |
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 | |
public function actionContact() | |
{ | |
$model = new DynamicModel([ | |
'name', 'body' | |
]); | |
$model->addRule(['name', 'body'], 'required') | |
->addRule(['name'],'unique'); |
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 | |
//class Controller | |
public function actionContact() | |
{ | |
$model = new DynamicModel([ | |
'name', 'body' | |
]); | |
$model->addRule(['name', 'body'], 'required') |
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 | |
use yii\widgets\ActiveForm; | |
use yii\helpers\Html; | |
?> | |
<div class="row"> | |
<div class="col-lg-5"> | |
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> | |
<?= $form->field($model, 'name[]') ?> | |
<?= $form->field($model, 'body[]')->textArea(['rows' => 6]) ?> | |
<?= $form->field($model, 'name[]') ?> |
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 | |
class Alamat extends CFormModel { | |
public $alamat; | |
public $telp; | |
public $latitude; | |
public $longitude; | |
/** |
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 | |
/** | |
* This is the model class for table "reg". | |
* | |
* The followings are the available columns in table 'reg': | |
* @property integer $id_reg | |
* @property string $nama_reg | |
* @property string $value | |
*/ |
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 | |
class RegController extends Controller { | |
/** | |
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning | |
* using two-column layout. See 'protected/views/layouts/column2.php'. | |
*/ | |
public $layout = '//layouts/column2'; |
OlderNewer