jd5688 / online-sports-betting

Online Sports Betting
128 stars 93 forks source link

white screen issue #6

Open z1231z opened 7 years ago

z1231z commented 7 years ago

white screen issue :(

hgurung commented 7 years ago

Comment or remove this line on index.php. I dont know it worked for me.

$cat_label = ($cat == 'all') ? $lang[280] : ucfirst($cat); if (!$cat_label) { exit; } if ($sort == 'time') { $sort_label = $lang[281]; // End Time } elseif ($sort == 'coin') { $sort_label = $lang[282]; // Placed COIN } elseif ($sort == 'new') { $sort_label = $lang[283]; // New Game } elseif ($sort == 'like') { $sort_label = $lang[284]; // like } else { exit; }

easyguyme commented 7 years ago

Its still not working for me, please share your working file and sql

hgurung commented 7 years ago

So this is my index.php file.

`<?php require_once('include/config.php'); require_once($basedir . "/include/functions.php");

if ($user_id) { $my_likes = getLikes($user_id); $my_bookmarks = getBookmarks($user_id); } else { $my_likes = false; $my_bookmarks = false; } $user_coins = 0; $homemenu='active'; $public_key = $config['public_key']; $time = time(); $games = false; $hash = md5($public_key . $config['private_key'] . $time); $data = array(); $categories = getCategories(); $cat = (isset($_GET['cat']) AND $_GET['cat'] != '') ? $_GET['cat'] : 'all'; $sort = (isset($_GET['sort']) AND $_GET['sort'] != '') ? $_GET['sort'] : 'time'; // time; coin; new; likes $q = (isset($_GET['q']) AND $_GET['q'] != '') ? $_GET['q'] : 'live'; // live; results; upcoming $page = (isset($_GET['page']) AND $_GET['page'] != '') ? $_GET['page'] : '1'; // $cat_label = ($cat == 'all') ? $lang[280] : ucfirst($cat); // if (!$cat_label) { exit; } // if ($sort == 'time') { // $sort_label = $lang[281]; // End Time // } elseif ($sort == 'coin') { // $sort_label = $lang[282]; // Placed COIN // } elseif ($sort == 'new') { // $sort_label = $lang[283]; // New Game // } elseif ($sort == 'like') { // $sort_label = $lang[284]; // like // } else { // exit; // }

//$is_live_data = ($q == 'live') ? true : false; $is_yourgame = ($q == 'yourgame') ? true : false; $games_file = $basedir . '/temp/all_games.txt'; if (file_exists($games_file)) { $all_games = json_decode(file_get_contents($games_file), true); } else { $all_games = getAllGames(); } if ($all_games) { $all_games = filterPublicGames($all_games); if ($q == 'yourgame') { $temp = array(); $mybets = getUserBetsGroupByGameId($user_id); foreach ($all_games as $ag) { $temp[$ag['g_id']] = $ag; } foreach ($mybets as $mb) { $g_id = $mb['g_id']; if (isset($temp[$g_id])) { $games[] = $temp[$g_id]; } } $data = filterAllGames($games, $sort, $cat); } elseif ($q == 'upcoming') { $now = time(); foreach ($all_games as $ag) { $sched_from = $ag['g_schedFrom']; if ($sched_from > $now) { $games[] = $ag; } } $data = filterAllGames($games, $sort, $cat); } elseif ($q == 'results') { foreach ($all_games as $ag) { $now = time(); $to = $ag['g_schedTo']; $is_closed = $ag['g_isClosed']; if ($is_closed OR ($now > $to AND $ag['g_isClosed'] == 0)) { $games[] = $ag; } }

    $data = filterAllGames($games, $sort, $cat);
} else {
    // live
    foreach ($all_games as $ag) {
        $now = time();
        $from = $ag['g_schedFrom'];
        $to = $ag['g_schedTo'];
        $is_closed = $ag['g_isClosed'];
        if (!$is_closed AND $now > $from AND $now < $to) {
            $games[] = $ag;
        }
    }
    $data = filterAllGames($games, $sort, $cat);
}
// sort it
$data = sortGames($data, $sort);

} // if $all_games $total_data = count($data); if ($user_id) { $user_coins = getUserCoins2($user_id); // how much coins does the user have? $_SESSION['user_coins'] = $user_coins; } include $basedir . '/views/index_v.php'; ?>`

easyguyme commented 7 years ago

please add me on skype if you dont mind username: easyguyme

leandrogomesmachado commented 7 years ago

Here I can see the window, it's okay.

BUT i have a problem with Login stuff. I can't login or access the admin panel.

screenshot_14

When I found the problem I will upload to my Github, for nwo it's not working good.

cyclops4real commented 7 years ago

am having issue with login i keep getting authentic issue, any one with the same problem?

easyguyme commented 7 years ago

Check the sign up and login code

On 11 January 2017 at 12:54, cyclops4real notifications@github.com wrote:

am having issue with login i keep getting authentic issue, any one with the same problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jd5688/online-sports-betting/issues/6#issuecomment-271825745, or mute the thread https://github.com/notifications/unsubscribe-auth/AJOqwKJO2TuQw89YF8xwsIQNeHaAfqLQks5rRKbrgaJpZM4KSlPt .

cyclops4real commented 7 years ago

i have can't seem to find d issue the sign up part is working d login isnt, beside is the script about odds betting or user vs user betting, when a user bet against another user.

On Thu, 1/12/17, easyguyme notifications@github.com wrote:

Subject: Re: [jd5688/online-sports-betting] white screen issue (#6) To: "jd5688/online-sports-betting" online-sports-betting@noreply.github.com Cc: "cyclops4real" skyhighweb@yahoo.com, "Comment" comment@noreply.github.com Date: Thursday, January 12, 2017, 6:07 AM

Check the sign up and login code

On 11 January 2017 at 12:54, cyclops4real notifications@github.com wrote:

am having issue with login i keep getting authentic issue, any one with the same problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jd5688/online-sports-betting/issues/6#issuecomment-271825745, or mute the thread https://github.com/notifications/unsubscribe-auth/AJOqwKJO2TuQw89YF8xwsIQNeHaAfqLQks5rRKbrgaJpZM4KSlPt .

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/jd5688/online-sports-betting/issues/6#issuecomment-272084294

uchdollar commented 7 years ago

Still not working for me, has anyone gotten a solution? My Skype is uche.wehee email is uchdollar(at)gmail(dot)com