$path = '';
if(!isset($_GET['cnt'])){
$_GET['cnt']=0;
}
$mathSubArr = array('','Numbers and Number Systems','Beginning Math','Basic Math','Multi-Digit Operations',
'Calculator Skills','Decimals','Fractions','Time','Graph Paper','Puzzles','Pre-Algebra','Percents',
'Polyhedra Models','Geometry','Money','Factoring','Exponents and Radicals', 'Measurement','Geometry','Quadratic equation','Graph Equation','Factorial','Sets and Venn Diagrams');
include 'config/config_ini.php';
include 'config/config_ln.php';
include 'config/config_db.php';
include 'config/chess_inc.php';
include 'src/func_inc.php';
include 'src/head.php';
if (getenv('HTTP_X_FORWARDED_FOR')) {
$_SESSION['memberIP']=getenv('HTTP_X_FORWARDED_FOR');
} else {
$_SESSION['memberIP']=getenv('REMOTE_ADDR');
}
switch( $_GET['cnt'] )
{
case 0:
if(isset($_GET['posid']))
include 'chess/one_problem.php';
else
include 'src/main.php'; break;
case 1: ShowPage($_GET['page']); break;
case 2: ShowOneProject(); break;
case 3: /*if(!isset($_GET['math'])) NumberSystems(3);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3;case 4; case 5; case 6; */
include 'math/sheet.php'; //break;
//}
break;
case 4: if(!isset($_REQUEST['posid']) || $_REQUEST['posid'] ==0)
include('src/show_problem.php');
else
include 'chess/one_problem.php';
break;
case 5: if(!isset($_GET['sub']) || $_GET['sub'] ==0){
//echo '
Mathematics
';
include 'src/worksheet.php';
// globMath();
}else
switch ($_GET['sub'])
{
case 1:
if(!isset($_GET['math'])) NumberSystems(1);
else
switch( $_GET['math'] )
{
case 0; include 'math/number_flashcards.php'; break; ///Number Flashcards
case 1; include 'math/counting_pages.php'; break; ///Counting Pages
case 2; include 'math/number_rec.php'; break; ///Number Recognition Sheets
}
break;
case 2:
if(!isset($_GET['math'])) NumberSystems(2);
else
switch( $_GET['math'] ) //Visual Addition Subtraction
{
case 0; case 1;
include 'math/visual_addsub.php'; break;
}
break;
case 3: ///Basic Math
if(!isset($_GET['math'])) NumberSystems(3);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3;case 4; case 5; case 6;
include 'math/addition.php'; break;
}
break;
case 4: ///Basic Math
if(!isset($_GET['math'])) NumberSystems(4);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3;
include 'math/multi.php'; break;
}
break;
case 5: ///Calculator Skills
if(!isset($_GET['math'])) NumberSystems(5);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3;
include 'math/calculator.php'; break;
}
break;
case 6: ///Decimals
if(!isset($_GET['math'])) NumberSystems(6);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3;
include 'math/decimals.php'; break;
}
break;
case 7: ///Decimals
if(!isset($_GET['math'])) NumberSystems(7);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4;
include 'math/fractions.php'; break;
}
break;
case 8: ///Decimals
if(!isset($_GET['math'])) NumberSystems(8);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3;
include 'math/time.php'; break;
}
break;
case 9: ///Decimals
if(!isset($_GET['math'])) NumberSystems(9);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/graph.php'; break;
}
break;
case 10: ///Decimals
if(!isset($_GET['math'])) NumberSystems(10);
else
switch( $_GET['math'] )
{
case 0; //case 1; case 2; case 3; case 4; case 5;
include 'math/puzzle.php'; break;
}
break;
case 11: ///Decimals
if(!isset($_GET['math'])) NumberSystems(11);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5; case 6; case 7; case 8; case 9; case 10; case 11; case 12;
include 'math/pre_algebra.php'; break;
}
break;
case 12: ///Decimals
if(!isset($_GET['math'])) NumberSystems(12);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/percent.php'; break;
}
break;
case 13: ///Decimals
if(!isset($_GET['math'])) NumberSystems(13);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2;
include 'math/polyhedra.php'; break;
}
break;
case 14: ///Decimals
if(!isset($_GET['math']) && !isset($_GET['section'])) NumberSystems(14);
else
switch( $_GET['section'] )
{
case 0:
if(!isset($_GET['math'])) NumberSystems(13);
else include 'math/polyhedra.php';
break;
case 1:
if(!isset($_GET['math'])) NumberSystems(9);
else include 'math/graph.php';
break;
case 2:
if(!isset($_GET['math'])) NumberSystems(19);
else include 'math/measuring.php';
break;
case 3: include 'math/pythagorean.php';
break;
}
break;
case 15: ///Decimals
if(!isset($_GET['math'])) NumberSystems(15);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/money.php'; break;
}
break;
case 16: ///Decimals
if(!isset($_GET['math'])) NumberSystems(16);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/factoring.php'; break;
}
break;
case 17: ///Decimals
if(!isset($_GET['math'])) NumberSystems(17);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/exponents.php'; break;
}
break;
case 18: ///Decimals
if(!isset($_GET['math'])) NumberSystems(18);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/measurement.php'; break;
}
break;
case 19: ///Decimals
if(!isset($_GET['math'])) NumberSystems(19);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/measuring.php'; break;
}
break;
case 20: ///Decimals
if(!isset($_GET['math'])) NumberSystems(20);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/quadratic_equation.php'; break;
}
break;
case 21: ///Decimals
if(!isset($_GET['math'])) NumberSystems(21);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/graph_equation.php'; break;
}
break;
case 22: ///Decimals
if(!isset($_GET['math'])) NumberSystems(22);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/factorial.php'; break;
}
break;
case 23: ///Decimals
if(!isset($_GET['math'])) NumberSystems(23);
else
switch( $_GET['math'] )
{
case 0; case 1; case 2; case 3; case 4; case 5;
include 'math/diagram.php'; break;
}
break;
//break;
}
break;
case 7: if(!isset($_GET['sub']) || $_GET['sub'] ==0)
globChess();
elseif($_GET['sub'] == 1)
include 'chess/chess_form.php';
elseif($_GET['sub'] == 2)
include 'chess/tag_problems.php';
elseif($_GET['sub'] == 3)
include 'src/problems.php';
/*elseif(isset($_GET['posid']))
include 'chess/one_problem.php';
else
include 'chess/chess_form.php';*/
break;
case 6: if(!isset($_GET['sub']) || $_GET['sub'] ==0)
globArm();
else
switch ($_GET['sub'])
{
case 1:
if(!isset($_GET['arm'])) ArmSystems(1);
else
switch( $_GET['arm'] )
{
case 0; include 'arm/arm_flashcards.php'; break;
case 1; include 'arm/arm_find_letter.php'; break;
case 2; include 'arm/arm_whatit.php'; break;
case 3; include 'arm/arm_miss_letter.php'; break;
case 4; include 'arm/arm_match.php'; break;
case 5; include 'arm/arm_whatcolor.php'; break;
case 6; include 'arm/arm_count.php'; break;
case 7; include 'arm/arm_count1.php'; break;
}
break;
case 2: include 'arm/spelling.php'; break;
case 3: include 'arm/letters.php'; break;
}
break;
case 8: if(!isset($_GET['sub']) || $_GET['sub'] ==0)
globScience();
elseif($_GET['sub'] == 1)
include 'src/show_list.php';
elseif($_GET['sub'] == 2)
include 'src/show_table.php';
/*elseif($_GET['sub'] == 3)
include 'src/problems.php';
elseif(isset($_GET['posid']))
include 'chess/one_problem.php';
else
include 'chess/chess_form.php';*/
break;
case 9: if(!isset($_GET['genre']) || $_GET['genre'] ==0)
globeMusic();
else{
if(!isset($_GET['song']) || $_GET['song'] ==0)
ShowOneGenre($_GET['genre']);
else ShowOneSong($_GET['genre'],$_GET['song']);
}
break;
}
include 'src/footer.php';
?>