Jump to content

need OOP script for example


AviNahum

Recommended Posts

Hello!{sorry for very poor English, i from israel}

i need some example of OOP script...

 

<?php

 

define( 'ROOT_PATH', "./" );

 

 

$decide = array(

                "index"      => "Music",

                "gal"      => "Gallery",

                "down"      => "Download",

                "reg"      => "Register",

              );

 

               

/***************************************************/

//

 

$act = $_GET['act'];

 

// Check to make sure the array key exits..

 

if (! isset($decide[ $act  ]) )

{

$act  = 'idx';

}

else

{

require ROOT_PATH."sources/".$decide[ $act  ].".php";

}

 

?>

 

 

someone give me that scrip but i can't understod what his tried to do...

if someone can show me some script that show some content in the center of the page and the top comes from included file.

and some links to other pages.

like "Invision Power Board" system...

 

thank!

Link to comment
https://forums.phpfreaks.com/topic/133398-need-oop-script-for-example/
Share on other sites

Hello!{sorry for very poor English, i from israel}

i need some example of OOP script...

 

<?php

 

define( 'ROOT_PATH', "./" );

 

 

$decide = array(

                 "index"      => "Music",

                 "gal"       => "Gallery",

                 "down"       => "Download",

                 "reg"       => "Register",

               );

 

               

/***************************************************/

//

 

$act = $_GET['act'];

 

// Check to make sure the array key exits..

 

if (! isset($decide[ $act  ]) )

{

$act  = 'idx';

}

else

{

require ROOT_PATH."sources/".$decide[ $act  ].".php";

}

 

?>

 

 

someone give me that scrip but i can't understod what his tried to do...

if someone can show me some script that show some content in the center of the page and the top comes from included file.

and some links to other pages.

like "Invision Power Board" system...

 

thank!

 

 

Nothing in your example is OOP.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.