EncapsGallery | "Images list","href"=>"gallery.php",'page'=>'gallery.php'), //array("title"=>"Show custom","href"=>"gallery_custom.php?action=show_custom",'page'=>'gallery_custom.php'), array("title"=>"Categories","href"=>"gallery_cats.php",'page'=>'cats.php'), array("title"=>"Scan for new images","href"=>"gallery_scan_rwx.php",'page'=>'gallery_scan_rwx'), array("title"=>"Config","href"=>'gallery_cfg.php','page'=>'gallery_cfg.php'), array("title"=>"Reinstall","href"=>'gallery_install.php','page'=>'install.php'), // array("title"=>"Log off","href"=>'../user.php?uaction=user_logoff_exec','page'=>'user.php'), ); $active_link=""; //var_dump($_SERVER["REQUEST_URI"]); foreach ($html["links"] as $item) { if(!strstr($_SERVER["REQUEST_URI"], $item['page']) ){ $style=" text-decoration: underline; border: none; font-weight: bold; "; $class = "wb"; } else { $style=" padding: 2px; text-decoration: none; font-weight: bold; "; $class = "bw"; $active_link=$item["title"]; } ?>" class="" style=""> |