file_name = $file_name; $this->url = $url; $this->disp_name = $disp_name; // for title & breadcrumbs $this->lang_folder = $lang_folder; $this->parent = $parent; $this->children = $children; } } /* Relates parent Page & children Page array */ function link_relation($parent, $children) { $parent->children = $children; foreach ($children as $k => $v) $v->parent = $parent; } /* Gets Page object from Page_array by page_name */ function get_page_obj($page_name, $page_array) { foreach ($page_array as $k => $v) { if ($v->file_name == $page_name) return $v; else if ($v->children != NULL) { $obj = get_page_obj($page_name, $v->children); if ($obj != NULL) return $obj; } } return NULL; } /* Formats title string */ function format_title($curr_p) { if ($curr_p == NULL) return ""; else return format_title($curr_p->parent) . " :: " . $curr_p->disp_name; } /* Formats breadcrumb string for parent Pages */ function format_parent_breadcrumbs($parent_p) { if ($parent_p != NULL) return format_parent_breadcrumbs($parent_p->parent) . '' . $parent_p->disp_name . '>>'; else return ""; } /* Tests if curr_p is a descendant of p */ function is_descendant($curr_p, $p) { if ($curr_p == NULL) return false; else if ($curr_p->disp_name == $p->disp_name) return true; else return is_descendant($curr_p->parent, $p); } /* lang determination; var used throughout the site */ $lang = $_REQUEST["l"]; if ($lang != "ch") $lang = "en"; /* lang matrix allocation */ $lang_matrix = array("en" => array(), "ch" => array()); /* lang name */ $lang_matrix["en"]["lang"] = "English"; $lang_matrix["ch"]["lang"] = "中文"; /* site name */ $lang_matrix["en"]["site_name"] = "Global Quantum Academy"; $lang_matrix["ch"]["site_name"] = "環球量子醫學院"; /* webmaster */ $lang_matrix["en"]["webmaster"] = "Webmaster"; $lang_matrix["ch"]["webmaster"] = "網站管理員"; /* copyright */ $lang_matrix["en"]["copyright"] = "Copyright"; $lang_matrix["ch"]["copyright"] = "版權所有"; /* eng menu & pages */ $prefix = "?p="; $lang_matrix["en"]["menu"] = array(new Page("home", ".", "Home"), new Page("about", $prefix . "about", "About"), new Page("info", $prefix . "info", "Info"), new Page("link", $prefix . "link", "Link"), new Page("contact", $prefix . "contact", "Contact", false)); $lang_matrix["en"]["pages"] = $lang_matrix["en"]["menu"]; // $lang_matrix["en"]["pages"][] = new Page("discl", $prefix . "discl", "Disclaimer"); // $lang_matrix["en"]["pages"][] = new Page("sitemap", $prefix . "sitemap", "Sitemap", false); link_relation(get_page_obj("about", $lang_matrix["en"]["pages"]), array(new Page("GT", $prefix . "GT", "Dr. Gilbert KC Tay"), new Page("KT", $prefix . "KT", "Ken KW Tay"), new Page("RB", $prefix . "RB", "Rodney S Bhally"), new Page("PE", $prefix . "PE", "Paul Eastwood"))); // link_relation(get_page_obj("RB", $lang_matrix["en"]["pages"]), array(new Page("test", $prefix . "test", "Test", false))); /* chi menu & pages */ $prefix = "?l=ch&p="; $lang_matrix["ch"]["menu"] = array(new Page("home", "?l=ch", "首頁"), new Page("about", $prefix . "about", "關於我們"), new Page("info", $prefix . "info", "相關資訊"), new Page("link", $prefix . "link", "連結"), new Page("contact", $prefix . "contact", "聯絡我們", false)); $lang_matrix["ch"]["pages"] = $lang_matrix["ch"]["menu"]; // $lang_matrix["ch"]["pages"][] = new Page("discl", $prefix . "discl", "免責聲明"); // $lang_matrix["ch"]["pages"][] = new Page("sitemap", $prefix . "sitemap", "網站導覽", false); link_relation(get_page_obj("about", $lang_matrix["ch"]["pages"]), array(new Page("GT", $prefix . "GT", "鄭金春醫師"), new Page("KT", $prefix . "KT", "鄭慶瑋"))); // link_relation(get_page_obj("GT", $lang_matrix["ch"]["pages"]), array(new Page("test", $prefix . "test", "測試", false))); /* page determination; var used in index.php only */ $page = get_page_obj($_REQUEST["p"], $lang_matrix[$lang]["pages"]); if ($page == NULL) $page = get_page_obj("home", $lang_matrix[$lang]["pages"]); ?> file_name == "contact") { ?> _ <?php echo $lang_matrix[$lang]["site_name"] . format_title($page); ?>
parent != NULL) { ?> lang_folder ? $lang . "/" : "") . $page->file_name . ".php"; ?>
There is a lot of mazda6.Find the best nissan deals.More info 250r.Whether Coupe or Roadster, roof down or closed, the bmw z4.Discover new cars from hyundai.The home of the classic muscle cars.Dodge dealer viper.Use the Organic natural food store.The official Web site for toyota center in houston.In this chapter, we introduce the shopping.Explore the entire hyundai cars.Discover new cars from hundai.Welcome to kia motors.Research new 2008 & 2009 handa.Enter your postcode to find your nearest nissan dealers.Official auto manufacturer site car kia.Search accounting & finance jobs.Official 2009 Dodge ram 1500.Free business finance.What is your favorite shopping mall.The official Web site for toyota center houston texas.This review of the nissan xterra.We sell Jeep wrangler parts.An overview of the hyundai sonata.Ford Motor Company maker of cars, trucks.See the 2009 nissan altima.Beverly Center shopping malls.The 2010 forester.Discover Travel Channel TV shows, travel.Using the book, penny gadget.Britannica online encyclopedia article on toyota center.If you own, admire, or fix-up any model of the Honda crx.Discount Prices on atv parts.This Overview of the bmw x3

desifantasy stories

North America

undownloadable games

didnt know

scott neiheisel cincinnati

transmitted diseases

david kessler art

toward war

cons on food stamps

over again

bart ez rider card promotion code

little clit

1059 o rock

on the buffering issues

mathmatica

online casino

stayed wisteria guest house saltspring

snake oil

nordic track audio strider 990

well worth

famous foods from brazil

Middle School

loan smart title loans winchester va

secondary school

remington 100 g3

based business

hill s prescriptive cat food a d

century BCE

regal cinema chinatown washington dc

different ways

rev leroy elliott

good way

pf magic catz download mac

Cobain describes

sewing patterns and child s superhero cape

seven paragraph third shall

canadian tattoo suppliers

wide variety

b bags by barganza

The field may be

hotmail coim

high quality

peachy keen stamps

I took another

strawberry dna extraction lab

buy houses

russell stover candy outlet store

female dog

glock 22 vs kimber 45

finger tips

recipe for williams sonoma peppermint bark

certain amount

globetrotter hsdpa modem drivers

rear wheel

ncoer 1sg bullets

video files

vicky pthc with sound

take place

kennedy kraft boats

pass through

pocomania dance

tool total basic

cnn battlestations 21 video

online casinos

unformatted hardrive for xbox 360

hard cock

homemade donuts recipe

and never having

gapo by lualhati bautista

sexual desire

hrvatski radio banovina

claim to truth in the same manner

betty crocker white chili recipe

and the Mirror

pin stripes glenview

management of the state

organic acids in batch fermentation

extremely successful

savage arms mark ii lr 22

online dating

kelly ripa s hamptons home

easy way

zacky farms cooking instructions

sexual dysfunction

biography of judy brady

Labor Party

young girls swimsuit models

original jurisdiction

better siouxland jobs

online business

zshare karrine steffans superhead

walked around

shaun cassidy tracey turner

Australian law

irobot scuba reviews

aloe vera

spankon college

rock hard

humorous poems for 65th birthday

quantum computer

dr norman gonzalez chacon

Alice Springs

greenberg kansas tornado

external territories

history of nata de coco

continually repeated

mk3 ultimate cheats

pet carrier

challenger low ceiling lift

steam vehicles

vietnamese drink recipes

great deal

rei in raleigh nc

feel like

lucious lopez ass parade

get quotes

altar workers handbook

Lord Ganesha

tufesa

une infante defunte