Exemple #1
0
<?php

if (!checkLogin()) {
    redirect(my_url() . "login");
}
$data = array('title' => '%title%', 'content' => '%nama%/table_view', 'tab' => array(), 'nav' => array(), 'breadcrumb' => '%title% (%nama%)');
showView('index1_view', $data);
Exemple #2
0
dd{
	padding:10px 0;
}
dl{
	width:650px;
}
input.span2{
	min-width:300px;
}
</style>
<a href='<?php 
echo my_url();
?>
'>Index</a>|
<a href='<?php 
echo my_url();
?>
form/005bootstrap'>List Tutorial Bootstrap</a>
<hr/>
<div style='width:800px;margin:auto'>
<?php 
$id = auto_id('nasgor_tutorial', 1);
?>
<table cellpadding="0" cellspacing="0" border="0" class="display" id='dataTutorial'>
	<thead>
		<tr>
			<th>TUTOR</th>
			<th>Nama</th>
			<th>Posisi</th>
			<th>LINK</th>
		</tr>
<?php

session_start();
function my_url()
{
    $url = !empty($_SERVER['HTTPS']) ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    return $url;
}
require_once 'db.php';
require_once __DIR__ . '/facebook-sdk-v5/autoload.php';
$source = "FB";
$fb = new Facebook\Facebook(['app_id' => $fb_app_id, 'app_secret' => $fb_ap_secret, 'default_graph_version' => 'v2.2']);
$helper = $fb->getRedirectLoginHelper();
$permissions = [];
$url = my_url();
$url = str_replace("getFacebookGroups.php", "getFacebookGroupsCallback.php", $url);
$_SERVER['SERVER_NAME'] . dirname(__FILE__) . "/getFacebookGroupsCallback.php";
$loginUrl = $helper->getLoginUrl($url, $permissions);
echo '<a href="' . htmlspecialchars($loginUrl) . '">Log in with Facebook!</a>';
Exemple #4
0
<a href='<?=my_url();?>'>Index</a>
<a href='<?=my_url();?>form/002kurs'>Admin</a>
<div class='detailScript'>Script hanya untuk menunjukkan tampilan kurs saja</div>
<table align=center class='table1' border=1>
<tr>
<th>KODE</th><th>KURS</th><th>TANGGAL</th>
<th>BELI</th><th>JUAL</th>
</tr>
<?php
$sql="select * from kurs";

$q=query($sql);
	while ($row = $q->fetch_assoc()) 
	{
	$det=json_decode($row['k_detail'],true);
	?>
	<tr>
		<?=td($row['k_code']).td($row['k_name']);?>
		<?=td(date("d-m-Y",strtotime($row['k_date'])));?>
		<?=td($det['buy']).td($det['sale']);?>
		 
	</tr>
	<?
	}
?>
</table>

<script>
$(function() {
		$( "input[type=submit], a, button" )
			.button()
              <table width="100%">
                <tr>
                  <td align="center" height="23" valign=top>
										<? if(!$guserid): ?>
											<? require("login_form.php"); ?>
										<? endif; ?>
									</td>
									<td valign=top>
											<font face="Verdana" color="#74468f" size="3"><b>Dont Have a  login???<b></font><br><br>
											<font face="Verdana" color="#000000" size="2">
											<a href="<? echo my_url("register"); ?>">Start playing now in less than 10 seconds!</a><br>
											You just have to choose your nickname & password for our poker rooms!<br>
											No email needed, No Download Needed - Instant play from anywhere & anytime!<br>
											</font>
											<p>
											<a href="<? echo my_url("register"); ?>">
											<b><font face="Verdana" color="#74468f" size="4">
											Click here to start Playing,
											</font></b></span><b><span><font color="#ff0000">
												<font face="Verdana" color="#ff0000" size="4">
												It’s FREE and FAST !!!!!</font></font></b>
											</a>
											</p>
									</td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    $rfile = "register.php";
    if ($sact == "save") {
        require "register_save.php";
        if ($lastError == "") {
            $redir = my_url("mac");
        }
    }
} elseif ($act == 'logout') {
    logout_user();
} else {
    if ($guserid == "") {
        $rfile = "home.php";
    } elseif ($act == 'video') {
        $rfile = "poker_video_deal.php";
        if ($sact == "bet") {
            require "poker_video_bet.php";
            if ($lastError == "") {
                $redir = my_url("video");
            }
        }
    } elseif ($act == 'holdem') {
        $rfile = "poker_holdem_html.php";
    } elseif ($act == 'mac') {
        $rfile = "welcome.php";
    } else {
        $rfile = "welcome.php";
    }
}
if ($rfile == "" && $redir == "") {
    $redir = "main.php?{$qstr}&act=home";
}
				<font color="#74468f" size="3">Welcome to the Fastest growing POKER community Online,You are signed in now.</font><br><br>
				To reward your time for playing with us, your account has been loaded with 1000 points, which you can use to bet on any of our games.<br><br>
        <font color="#ff0000">Making Gaming Simpler, Safer and Faster. It’s real fun to play our games.</font><br><br>
				Click on any game below to start gaming.<br><br>
				<br><br>

				<table border=0 cellspacing=8 align=center>
					<tr>
						<td>
							<table border=0 class="form_lbl">
							<tr><td><a href="javascript:new_w('<? echo my_url("holdem","","&table_id=1"); ?>');"><img src="images/holdem-icon.png" border=0></a></td></tr>
							<tr><td align=center>TEXAS HOLDEM</td></tr>
							<tr><td align=center><a href="javascript:new_w('<? echo my_url("holdem","","&table_id=1"); ?>');">Play Now</a></td></tr>
							</table>
						</td>
						<td width=100>&nbsp;</td>
						<td>
							<table border=0 class="form_lbl">
							<tr><td><a href="javascript:new_w('<? echo my_url("video"); ?>');"><img src="images/poker-sam.PNG" border=0></a></td></tr>
							<tr><td align=center>VIDEO POKER</td></tr>
							<tr><td align=center><a href="javascript:new_w('<? echo my_url("video"); ?>');">Play Now</a></td></tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td width=20%>
			</td>
    </tr>
	</table>
Exemple #8
0
?>
</table>
<div class='message'>
</div>
<script>
function changeValue(stat,t)
{
	$this=$(t);
	//msglog($this.val());
	id0=$('.id');
	date0=$('.date');
	code=$this.parent().parent().find(id0);
	date=$this.parent().parent().find(date0);
 
	var request = $.ajax({
          url: "<?=my_url();?>kursUpdate",
          type: "POST",
          data: {id : code.val(), 
		  field:stat,
		  value: $this.val(),
		  date:date.val()
		  },
          dataType: "json"
    });
   
    request.success(function(res) {
	  msglog(res.txt);
	});
}
function msglog(s)
{
<TABLE cellSpacing=0 cellPadding=0 width=961 border=0>
  <TR>
    <TD width=11></TD>
    <TD width=950 bgcolor=#008000 height=25 ></TD></TR>
  <TR>
    <TD></TD>
    <TD class=bodytext align=middle height=25>
			<STRONG>
				<FONT face=Verdana color=#ffffff size=1>
				<A style="COLOR: #ffffff" href="http://poker.takniki.com/">Home</A>&nbsp;&nbsp;|&nbsp;&nbsp;
				<? if(!$guserid): ?>
				<A style="COLOR: #ffffff" href="<? echo my_url("register"); ?>">Register</A>&nbsp;&nbsp;|&nbsp;&nbsp;
				<? else: ?>
				<A style="COLOR: #ffffff" href="<? echo my_url("logout"); ?>">Logout</A>&nbsp;&nbsp;|&nbsp;&nbsp;
				<? endif; ?>
				<A style="COLOR: #ffffff" href="<? echo my_url("mac"); ?>">My Account</A>
				</FONT>
			</STRONG>

      <P align=center><STRONG>
			<FONT face=Verdana size=1>
				Legal Disclaimer&nbsp;&nbsp;
				<FONT class=textvolite>|</FONT>&nbsp;&nbsp;FAQ&nbsp;&nbsp;
				<FONT class=textvolite>|</FONT>&nbsp;&nbsp;Privacy Policy&nbsp;&nbsp;
				<FONT class=textvolite>|</FONT>&nbsp;&nbsp;Terms Of Use&nbsp;&nbsp;
				<FONT class=textvolite>|</FONT>&nbsp;&nbsp;Contact us
			</FONT></STRONG></P>
			</TD></TR>
  <TR>
    <TD></TD>
    <TD class=bodytext align=middle height=35>
<? if(0): ?>
<table border=0 class="form_lbl">
	<tr>
		<td height=40 valign=middle><a style="color:#0000ff" href="<? echo my_url("mac"); ?>">Click here for game overview and instructions</a></td>
		<td valign=middle>|</td>
		<td valign=middle><a style="color:#0000ff" href="<? echo my_url("mac"); ?>">Back to Game Selection Center</a></td>
	</tr>
</table>
<? endif; ?>
Exemple #11
0
        $uriname = createUri($tutorname, "nasgor_tutoriallist", "tlist_uri");
        $data = array("tlist_id" => $tutorid, "tlist_name" => $tutorname, "tlist_tutor" => $tutorhead, "tlist_pos" => $tutorposisi, "tlist_prev" => $tutorpreview, "tlist_uri" => $uriname);
        dbInsert("nasgor_tutoriallist", $data);
        $data = array('ttext_list' => $tutorid, 'ttext_detail' => $tutordetail, 'ttext_code' => $tutorcode);
        dbInsert("nasgor_tutorialtext", $data);
    } else {
        //update
        $uriname = createUri($tutorname, "nasgor_tutoriallist", "tlist_uri");
        $data = array("tlist_name" => $tutorname, "tlist_tutor" => $tutorhead, "tlist_pos" => $tutorposisi, "tlist_prev" => $tutorpreview, "tlist_uri" => $uriname);
        $where = "tlist_id='{$tutorid}'";
        dbUpdate("nasgor_tutoriallist", $data, $where);
        $data = array('ttext_detail' => $tutordetail, 'ttext_code' => $tutorcode);
        $where = "ttext_list='{$tutorid}'";
        dbUpdate("nasgor_tutorialtext", $data, $where);
    }
    $url = my_url() . "form/005bootstrap";
}
if ($act == 'dataTutorial') {
    $sql = "select  tlist_id tutorid, tlist_name tutorname, ttext_detail tutordetail, ttext_code tutorcode,tlist_pos tutorposisi,tlist_prev tutorpreview\n\tfrom  nasgor_tutorial t1, nasgor_tutoriallist t2, nasgor_tutorialtext t3\n\twhere tutor_id=tlist_tutor \n\tand tlist_id=ttext_list\n\tand tlist_id='{$id}'";
    $row = queryFetch($sql);
    print_r($row);
    echo $sql;
    $afieldName = $afieldData = array();
    foreach ($row as $nm => $val) {
        if ($nm == 'tutorpreview') {
            continue;
        }
        $afieldName[] = $nm;
        $afieldData[] = $val;
    }
    //preview