<?php

session_start();
if (isset($_POST['submit'])) {
    include "dbconnection.php";
    $game_id = mysql_real_escape_string($_POST['game_id']);
    $games = getGameById($game_id);
    $game = mysql_fetch_array($games);
    $game_seo = $game['seo_game'];
    if (isset($_SESSION['user_id'])) {
        $comments = mysql_real_escape_string($_POST['comments']);
        addGamecomment($game_id, $comments, $_SESSION['user_id']);
        $base_url = "http://thefunkids.com/admin";
        $subject = "Comments on Game for Moderation";
        $from = "*****@*****.**";
        $to = "*****@*****.**";
        $mail_body = "Dear All,<br/><br/> A comment has been posted on our website TheFunKids.com and is pending approval. Kindly review and <br /><br /> moderate whether the comment should be posted or not.<br /><br /><br/>Login Url:<a href=" . $base_url . ">" . $base_url . "</a><br/><br/><strong>User Name:</strong>admin@thefunkids.com<br><strong>Password:</strong>admin123<br/></br>Regards & Love<br/><br/>The Fun Kids Team";
        $body = wordwrap($mail_body, 2000);
        //$body_user = wordwrap($mail_body_user,70);
        $headers = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
        $headers .= "From: " . $from . "\r\n";
        $headers .= 'Bcc:raheelaslam@golive.com.pk,amohsin@golive.com.pk,saher@golive.com.pk' . "\r\n";
        //------------------------Thanks You Email-------------------------------------------------------------------
        mail($to, $subject, $mail_body, $headers);
        header("location:kids-games-{$game_seo}&comment#games");
    } else {
        if (isset($_SESSION['FBID'])) {
            $comments = mysql_real_escape_string($_POST['comments']);
            $user_facebook_id = getUserByFaceBookId($_SESSION['FBID']);
            if ($user_facebook_id) {
<?php

session_start();
header("Content-Type: application/json");
include "../dbconnection.php";
$game_id = $_SESSION['game_id'];
$game_results = getGameById($game_id);
$game_result = mysql_fetch_array($game_results);
if (isset($_SESSION['user_loged_id'])) {
    $user_id = mysql_real_escape_string($_SESSION['user_loged_id']);
    $utilize_coins = $game_result['game_price'];
    $result = getUserGameCoins($user_id);
    $user_coins = mysql_fetch_array($result);
    $total_coins = $user_coins['total_coins'] - $utilize_coins;
    $total_utilize = $user_coins['utilize_coins'] + $utilize_coins;
    updateUtilizeGameCoins($user_id, $total_utilize, $total_coins);
    $user_data = array('status' => '1', 'success' => 'coins minused');
    echo json_encode($user_data);
} else {
    $user_data = array('status' => '0', 'err' => 'Error occured.........');
    echo json_encode($user_data);
}
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
			</thead>
            
              <tbody>
             <?php 
$user_points_ac = getUserPointsByUserId($session_id);
if ($user_points_ac > 0) {
    while ($points_user = mysql_fetch_array($user_points_ac)) {
        ?>
                <tr>
                    <td><?php 
        echo date("d-m-y", strtotime($points_user['updatedAt']));
        ?>
</td>
                <td>Played game 
                <?php 
        $game_info = getGameById($points_user['game_id']);
        $game = mysql_fetch_array($game_info);
        echo $game['game_name'];
        ?>
                </td>
                 <td><?php 
        echo $points_user['total_points'];
        ?>
</td>
                <td>0</td>
              </tr>  
            <?php 
    }
}
?>
                  
<?php

session_start();
include "dbconnection.php";
$link = "{$_SERVER['REQUEST_URI']}";
$links = explode("/", $link);
if (count($links) == 2) {
    $seo = $links[1];
} else {
    $seo = $links[2];
}
$seo = substr($seo, 18);
$game_details = getGameById($seo);
$game_detail = mysql_fetch_array($game_details);
?>
<!DOCTYPE HTML>
<html>
  <head>
  
  <title>Leader Board - Check your Game Score | Maverick Game</title>
    <meta  content="leader board, maverick game, game score" name="keywords" />
  <meta content="Check you game score by entering our LeaderBoard at Maverick Game"  name="description" />
  
  <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css' />
  <link rel="shortcut icon" href="favicon.png" type="image/x-icon"/>
  <link href='http://fonts.googleapis.com/css?family=Didact+Gothic' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="assets/css/style.css"/>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  <script src="assets/js/jquery.min.js" type="text/javascript"></script>
  <script src="assets/js/bootstrap.min.js"></script>
  <script src="assets/js/script.js"></script>
Пример #5
0
       <?php 
include "momforumnotification.php";
?>
          
          
      <!-- Left side column. contains the logo and sidebar -->
      
      <?php 
include_once "includes/leftnavigation.php";
?>

      <?php 
if (isset($_REQUEST['id'])) {
    $game_id = mysql_real_escape_string($_REQUEST['id']);
    $maerickgames = getGameById($game_id);
    $maverickgame = mysql_fetch_array($maerickgames);
}
?>
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Update Game <?php 
echo $maverickgame['game_name'];
?>
            <small></small>
          </h1>
          <ol class="breadcrumb">
              <li><a href="dashboard.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<?php

session_start();
if (isset($_GET['id'])) {
    include "dbconnection.php";
    $game_id = $_GET['id'];
    $detail_games = getGameById($_GET['id']);
    $detail_game = mysql_fetch_array($detail_games);
} else {
    header("location:kid-games");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<meta content="<?php 
echo $detail_game['meta_tag_keyword'];
?>
" name="keywords"  />
        <meta content="<?php 
echo $detail_game['meta_tag_description'];
?>
" name="description"/>
        <meta property="og:image" content="http://www.thefunkids.com/games/game_images/<?php 
echo $detail_game['game_image'];
?>
" />
        <title><?php 
echo $detail_game['game_title'];
?>
Пример #7
0
<?php

include "dbconnection.php";
$game_id = mysql_real_escape_string($_REQUEST['game_id']);
$game_leaders = getGameById($game_id);
$game_leader = mysql_fetch_array($game_leaders);
?>
<div id="tabs-<?php 
echo $game_id;
?>
"> <img src="silverhat_games/game_leaderboards/<?php 
echo $game_leader['game_leaderboard_image'];
?>
" alt="" class="score-banner">
            <div class="titles">
            <div class="row">
                <div class="col-lg-2 bor-right text-center">
                <h2>Rank</h2>
              </div>
                <div class="col-lg-6 bor-right">
                <h2>Player</h2>
              </div>
                <div class="col-lg-4 text-center">
                <h2>Score</h2>
              </div>
              </div>
          </div>
    <?php 
$i = 0;
$sore_games = getGameScoreByScoreId($game_id);
if ($sore_games > 0) {
Пример #8
0
<?php

session_start();
include "dbconnection.php";
$user_id = $_REQUEST['user_id'];
$game_id = $_REQUEST['game_id'];
$game_details = getGameById($game_id);
$game_detail = mysql_fetch_array($game_details);
?>
<div>
        <div class="clearfix"></div>
        <div class="highscore">
        <div class="row">
        <div class="col-md-12">
        <h3><?php 
echo $game_detail['game_name'];
?>
</h3>
        </div>           
          <div class="bdr-bot-red" style="margin:0 0 5px;"></div>
        </div>
        </div>
         <div id="game_leader_board">
         <table class="highscore_table table-nonfluid table table-striped">
         <thead>
         <tr>
         <th>Date</th>
         <th>Score</th>
         </tr>
         </thead>
         <tbody>             
Пример #9
0
            <div class="col-md-8">
              <!-- MAP & BOX PANE -->
              <!-- /.box -->
              <!-- /.row -->

              <!-- TABLE: LATEST ORDERS -->
              <div class="box box-info">
                <!-- /.box-header -->
                <div class="box-body">
                  <div class="table-responsive">
                   
                <!-- /.box-header -->
                <!-- form start -->
                <?php 
$game_id = mysql_real_escape_string($_REQUEST['id']);
$result = getGameById($game_id);
$game = mysql_fetch_array($result);
?>
                <form role="form" method="post" action="doupdategame.php" enctype="multipart/form-data">
                    <input type="hidden" name="game_id" value="<?php 
echo $game['game_id'];
?>
">
                    <div class="form-group">
                      <label for="exampleInputEmail1">Game Name</label>
                      <input type="text" name="game_name" class="form-control" id="game_name" value="<?php 
if (isset($game['game_name'])) {
    echo $game['game_name'];
}
?>
">
Пример #10
0
 * Description : This page is the home page of the website.
 * Authors     : Chauche Benoit & Boccard Nicolas
 * Date        : 01.12.2015
 * Version     : 0.2
 */
//Insersion du fichier de fonction
include_once "../functions/dbFunctions.php";
//Définition du nom de la page
$titlePage = "Accueil";
//Insersion du header HTML
include_once "../view/HeadPage.php";
?>
<section id="SectionPage">
    <?php 
if (isset($_REQUEST['id'])) {
    getGameById($_REQUEST['id']);
} else {
    ?>
        <table cellspacing = "0">
            <?php 
    getImgGame();
    ?>
        </table>
    <?php 
}
?>
</section>
<aside id="AsidePage">
    <?php 
include_once "../view/AsidePage.php";
?>