* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ $pages = array( 'demo_1' => 'Demo 1', 'demo_2' => 'Demo 2', 'demo_3' => 'Demo 3', 'demo_4' => 'Demo 4', 'demo_5' => 'Demo 5', 'demo_6' => 'Demo 6', 'demo_7' => 'Demo 7', ); if (isset($_GET['page']) && in_array($_GET['page'], array_keys($pages), true)) { $current = $_GET['page']; } if (!isset($current)) { foreach ($pages as $page => $title) { $current = $page; break; } } ?>