Skip to content

Commit

Permalink
additonal info
Browse files Browse the repository at this point in the history
  • Loading branch information
agung susanto committed Nov 25, 2015
1 parent 20c7e81 commit 065b663
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 62 deletions.
6 changes: 3 additions & 3 deletions application/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'agung';
$db['default']['password'] = 'please';
$db['default']['database'] = 'project_bekalserver';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
Expand Down
108 changes: 54 additions & 54 deletions application/controllers/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,60 +70,60 @@ public function terbilang()
//$this->redis->set('realtime', $this->input->post('cmd'));
$this->load->view('welcome_message',$this->data);
}
public function zephirTest()
{
echo Utils\Greeting::say(), "\n";
}
public function zephirTest2()
{
$f = new Utils\Filter();
$f->alpha("agung susanto");

}

public function zephirTest3()
{
$f = new Utils\Filter();
echo $f->alpha2("agung susanto");

}


public function zephirTest4()
{
$f = new Utils\Filter();

echo $f->alpha3("agung susanto!he#02l3'121lo.");

}
public function zephirTest5()
{
$f = new Utils\Filter();

echo $f->hitung(5);

}

public function zephirTest6()
{
$f = new Utils\Filter();

$f->testvar();

$b = 100;
$a = "b";
echo $$a; // prints 100

}

public function zephirTest7()
{
$f = new Utils\Filter();


echo $f->testvar2();

}
// public function zephirTest()
// {
// echo Utils\Greeting::say(), "\n";
// }
// public function zephirTest2()
// {
// $f = new Utils\Filter();
// $f->alpha("agung susanto");
//
// }
//
// public function zephirTest3()
// {
// $f = new Utils\Filter();
// echo $f->alpha2("agung susanto");
//
// }
//
//
// public function zephirTest4()
// {
// $f = new Utils\Filter();
//
// echo $f->alpha3("agung susanto!he#02l3'121lo.");
//
// }
// public function zephirTest5()
// {
// $f = new Utils\Filter();
//
// echo $f->hitung(5);
//
// }
//
// public function zephirTest6()
// {
// $f = new Utils\Filter();
//
// $f->testvar();
//
// $b = 100;
// $a = "b";
// echo $$a; // prints 100
//
// }
//
// public function zephirTest7()
// {
// $f = new Utils\Filter();
//
//
// echo $f->testvar2();
//
// }



Expand Down
6 changes: 3 additions & 3 deletions application/views/welcome_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to Jasa Raharja</title>
<title>Welcome to Antrian BAnk</title>

<style type="text/css">

Expand Down Expand Up @@ -161,12 +161,12 @@ function buatSuara(daftarSuara){
return obj;
}
</script>
<script type="text/javascript" src="http://127.0.0.1:8085/socket.io/socket.io.js"></script>
<script type="text/javascript" src="http://localhost:8085/socket.io/socket.io.js"></script>
<script type="text/javascript">

var socket = null;

socket = io.connect('http://127.0.0.1:8085/');
socket = io.connect('http://localhost:8085/');

socket.on('connect', function(data){
setStatus('connected');
Expand Down
4 changes: 2 additions & 2 deletions node.js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if (!module.parent) {
const socket = io.listen(server);

socket.on('connection', function(client) {
const subscribe = redis.createClient()
const subscribe2 = redis.createClient()
const subscribe = redis.createClient();
const subscribe2 = redis.createClient();
subscribe.subscribe('realtime');

subscribe.on("message", function(channel, message) {
Expand Down

0 comments on commit 065b663

Please sign in to comment.