member->name2id($current_user->user_id);//Proprofs login user $_userid = $ipbwi->member->name2id($current_user->user_id); $_username=$ppUser; } else{ $loginUserId = "0"; $_userid = "0"; $_username=''; } $_titleurl = strtolower(mysql_real_escape_string(strip_tags(html_entity_decode(trim($_GET['title']))))); $Query = "SELECT gameid, language, authorid, title, description, titleurl, maxscore, gameimage, gametype, num_tiles, puzzle_difficulty, isfeatured, language, attempts FROM sliding_games WHERE ispublished=1 AND titleurl = '$_titleurl'"; $result = @mysql_query($Query); if(mysql_num_rows($result)==0) { session_write_close(); // header('Location:'."HTTP/1.0 404 Not Found"); header('Location: ' ."HTTP/1.0 404 Not Found"); die(); } $record = mysql_fetch_array($result); $language = $record['language']; $authorid = $record['authorid']; $currentgameID = $record['gameid']; $title = stripslashes($record['title']); $title = remove_maxcharacter_string($title,'15'); if($language == 'English'){ $title = ucwords(strtolower($title)); } $related_title = $record['title']; $related_title = ucwords(strtolower($related_title)); $gameid = $currentgameID; if($_COOKIE['ppUser'] != ""){ $gameAuthorName = $ipbwi->member->id2name($record['authorid']); } else{ $gameAuthorName = ""; } $description = trim(stripslashes($record['description'])); $description = remove_maxcharacter_string($description,'20'); $description = str_replace(' 0){ $iframeHeight = 460; } if($imgWidth > 0){ $puzzleImgPath = 'https://'.$_SERVER['HTTP_HOST'].'/games/puzzle/sliding/resize_image.php?image='.$pImagePath.'&new_width=540&new_height=450';} $imgWidth = 540; $puzzleNumTiles = $record['num_tiles']; switch ($puzzleNumTiles) { case '0': $numshow = 'false'; break; case '1': $numshow = 'true'; break; default: $numshow = 'true'; } $puzzle_difficulty = $record['puzzle_difficulty']; switch ($puzzle_difficulty) { case '0': $rows = 3; $cols = 3; $hole = 9; $puzzle_difficulty_text = 'Easy'; break; case '1': $rows = 4; $cols = 4; $hole = 16; $puzzle_difficulty_text = 'Medium'; break; case '2': $rows = 5; $cols = 5; $hole = 25; $puzzle_difficulty_text = 'Hard'; break; default: $rows = 3; $cols = 3; $hole = 9; $puzzle_difficulty_text = 'Easy'; } if($_COOKIE['ppUser'] != ""){ $_userid = $current_user->user_id; } else{ $_userid = ""; } $querytopic= "SELECT * FROM sliding_tag WHERE gameid=".$gameid; $tagRowSet = @mysql_query($querytopic); while($_tag_result = @mysql_fetch_assoc($tagRowSet)){ $wstag_records[] = $_tag_result; // Results storing in array } if(is_array($wstag_records) && count($wstag_records)>0) { foreach($wstag_records as $tag_details) { $topics_tags = $tag_details['tags']; $topics_keywords = $tag_details['keywords']; $topics_entity = $tag_details['entity']; $topics_langauge = $tag_details['language']; $topics_entity_type = $tag_details['entity_type']; $topics_category = $tag_details['category']; $topic_subcategory = $tag_details['sub_category']; $topic_innercategory = $tag_details['inner_category']; $topics_concept_tags = $tag_details['concept_tags']; $entity_sub_type = $tag_details['entity_sub_type']; } } $topics_tags = str_replace('}{',',',$topics_tags); $topics_tags = str_replace('{','',$topics_tags); $topics_tags = str_replace('}','',$topics_tags); $topics_tags_admin = $topics_tags; if($topics_langauge == '') {$topics_langauge = 'English'; } foreach($abbrevation_array as $key_abb=>$val_abb) { $chekkey = strtolower($title); if (strpos($chekkey,$val_abb) !== false) { $chekdst = '~\b'.$val_abb.'\b~'; if ( preg_match($chekdst,$chekkey) ) { $title = str_replace($val_abb,strtoupper($val_abb),$chekkey); $title = ucwords($title); } } } $topicword_breadcrumb_check = $output->array_search_partial($arr, $title); $title = ucwords(strtolower($title)); if($topicword_breadcrumb_check!='No match found') { $title = $topicword_breadcrumb_check; } $is_embed = 'embed_sess_'.$gameid; // This variable is used to assign the width of the embed size $embed_W = ''; if(isset($_REQUEST['ew'])) { $_SESSION[$is_embed] = $_REQUEST['ew']; //337,437,537,637 } $embed_W = $_SESSION[$is_embed]; if($attempts<=5){ echo ''; } $is_embed = 'embed_sess_'.$gameid; // This variable is used to assign the width of the embed size $embed_W = ''; $_SESSION[$is_embed]=''; if(isset($_REQUEST['ew'])) { $_SESSION[$is_embed] = $_REQUEST['ew']; //337,437,537,637 } $embed_W = $_SESSION[$is_embed]; $filter_word = array("puzzles", "puzzle", "Jigsaw","game","games","Sliding"); $title = trim(str_ireplace($filter_word,"",$title)); $_pageTitle = $title." - Play Sliding Puzzles Online at ProProfs."; $_pageKeywords = ''; $_pageDescr = $title." - Play Sliding Puzzles Online at ProProfs."; include($_SERVER['DOCUMENT_ROOT'].'/games/SSI/header_v1.php'); $title = $title." Sliding Puzzle"; ?>
Admin Panel +