*

Recent

Author Topic: few questions...  (Read 14811 times)

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: few questions...
« Reply #15 on: July 21, 2009, 12:44:21 PM »
You have to go to http://zoovix.com/index.php?action=allgames
I think its action... right, kurt? lol (I forget  :D)

Trasion

  • Guest
Re: few questions...
« Reply #16 on: July 21, 2009, 12:46:26 PM »
Read what I posted above. Same problem still when I visit that URL.

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: few questions...
« Reply #17 on: July 21, 2009, 12:47:56 PM »
What does you're index.php look like?

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: few questions...
« Reply #18 on: July 21, 2009, 12:50:14 PM »
Not sure why it's being dropped, but there should be an include call to /includes/functions.php somewhere in the mix up near the top of the file index.php in the root directory. That file should have the function clean at the very top.

Trasion

  • Guest
Re: few questions...
« Reply #19 on: July 21, 2009, 12:50:51 PM »
The codes themself? Or the actual page?

The page is located here:
http://zoovix.com/

The codes in it:
Code: [Select]
<?php
session_start
();
include (
'includes/functions.php');
include (
'includes/core.php');
include(
'includes/rating_functions.php');
switch(
$_GET['action']){

case 'play':
include ('includes/arcadesubmenu.php');
break;

case 'allgames':
include ('pages/allgames.php');
break;

case 'mostplayed':
include ('includes/arcadesubmenu.php');
break;

case 'newest':
include ('includes/arcadesubmenu.php');
break;


case 'browse':
include ('includes/arcadesubmenu.php');
break;


case 'myaccount':
include ('includes/defaultsubmenu.php');
break;


break;
case 'search':
include ('includes/arcadesubmenu.php');
break;

case 'addtofavorites':
include ('includes/arcadesubmenu.php');
break;

case 'blog':
include ('includes/blogsubmenu.php');
break;

case 'blogcat':
include ('includes/blogsubmenu.php');
break;


case 'blogentry':
include ('includes/blogsubmenu.php');
break;


default: 
include ('includes/defaultsubmenu.php');
break;


}

include (
'templates/'.$template.'/header.php');
switch(
$_GET['action']){

case 'play':
include ('pages/play.php');
break;

case 'mostplayed':
include ('pages/mostplayed.php');
break;

case 'newest':
include ('pages/newest.php');
break;

      case 
'messages':
      include (
'pages/messages.php');
      break;


case 'browse':
include ('pages/browse.php');
break;

case 'login':
include ('pages/login.php');
break;

case 'signup':
include ('pages/signup.php');
break;

case 'myaccount':
include ('pages/myaccount.php');
break;

case 'admin':
include ('pages/admin/index.php');
break;
case 'blogadmin':
include ('pages/blogadmin/index.php');
break;

case 'logout':
session_destroy();
echo '<div class=\'msg\'>You\'ve successfully logged out.</div>';
break;
case 'search':
include ('pages/search.php');
break;

case 'addtofavorites':
include ('pages/addtofavorites.php');
break;

      case 
'memberslist':
      include (
'pages/memberslist.php');
      break;



case 'links':
include ('pages/links.php');
break;

case 'showprofile':
include ('pages/showprofile.php');
break;

case 'fineprint':
include ('pages/fineprint.php');
break;



case 'userlist':
include ('pages/userlist.php');
break;


case 'contact':
include ('pages/contact.php');
break;

case 'taf':
include ('pages/taf.php');
break;


case 'blog':
include ('pages/blog.php');
break;

case 'blogcat':
include ('pages/blogcat.php');
break;


case 'blogentry':
include ('pages/blogentry.php');
break;

case 'showcomments':
include ('pages/showcomments.php');
break;





default: 
include ('pages/base_home.php');
break;

}
echo 
'<title>'.$sitename.' '.$pgname.' - Zoovix Online Arcade - Entertain Yourself with our Free Games</title>';
include (
'templates/'.$template.'/footer.php');

?>

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: few questions...
« Reply #20 on: July 21, 2009, 12:55:09 PM »
I think you had
   case 'allgames':
   include ('pages/allgames.php');
   break;
in the wrong place maybe... or it might be the break; in the wrong place...:
   break;
   case 'search':
   include ('includes/arcadesubmenu.php');
   break;
So
Try:
Code: [Select]
<?php
session_start
();
include (
'includes/functions.php');
include (
'includes/core.php');
include(
'includes/rating_functions.php');
switch(
$_GET['action']){

case 'play':
include ('includes/arcadesubmenu.php');
break;

case 'mostplayed':
include ('includes/arcadesubmenu.php');
break;

case 'newest':
include ('includes/arcadesubmenu.php');
break;


case 'browse':
include ('includes/arcadesubmenu.php');
break;


case 'myaccount':
include ('includes/defaultsubmenu.php');
break;


break;
case 'search':
include ('includes/arcadesubmenu.php');
break;

case 'addtofavorites':
include ('includes/arcadesubmenu.php');
break;

case 'blog':
include ('includes/blogsubmenu.php');
break;

case 'blogcat':
include ('includes/blogsubmenu.php');
break;


case 'blogentry':
include ('includes/blogsubmenu.php');
break;


default: 
include ('includes/defaultsubmenu.php');
break;


}

include (
'templates/'.$template.'/header.php');
switch(
$_GET['action']){

case 'play':
include ('pages/play.php');
break;

case 'allgames':
include ('pages/allgames.php');
break;

case 'mostplayed':
include ('pages/mostplayed.php');
break;

case 'newest':
include ('pages/newest.php');
break;

      case 
'messages':
      include (
'pages/messages.php');
      break;


case 'browse':
include ('pages/browse.php');
break;

case 'login':
include ('pages/login.php');
break;

case 'signup':
include ('pages/signup.php');
break;

case 'myaccount':
include ('pages/myaccount.php');
break;

case 'admin':
include ('pages/admin/index.php');
break;
case 'blogadmin':
include ('pages/blogadmin/index.php');
break;

case 'logout':
session_destroy();
echo '<div class=\'msg\'>You\'ve successfully logged out.</div>';
break;
case 'search':
include ('pages/search.php');
break;

case 'addtofavorites':
include ('pages/addtofavorites.php');
break;

      case 
'memberslist':
      include (
'pages/memberslist.php');
      break;



case 'links':
include ('pages/links.php');
break;

case 'showprofile':
include ('pages/showprofile.php');
break;

case 'fineprint':
include ('pages/fineprint.php');
break;



case 'userlist':
include ('pages/userlist.php');
break;


case 'contact':
include ('pages/contact.php');
break;

case 'taf':
include ('pages/taf.php');
break;


case 'blog':
include ('pages/blog.php');
break;

case 'blogcat':
include ('pages/blogcat.php');
break;


case 'blogentry':
include ('pages/blogentry.php');
break;

case 'showcomments':
include ('pages/showcomments.php');
break;





default: 
include ('pages/base_home.php');
break;

}
echo 
'<title>'.$sitename.' '.$pgname.' - Zoovix Online Arcade - Entertain Yourself with our Free Games</title>';
include (
'templates/'.$template.'/footer.php');

?>

Trasion

  • Guest
Re: few questions...
« Reply #21 on: July 21, 2009, 01:00:11 PM »
Works like a charm! Aye, thanks mate!