Return to Snippet

Revision: 49594
at July 26, 2011 02:19 by Darksider3


Initial Code
<?php
function title(){
    if(isset($_GET['classid'])){
        echo " | Kategorie -> $_GET[classid]";
    }
    if(isset($_GET['id']))
        echo " | Scripts -> $_GET[id]";
    if(isset($_GET['login'])){
        echo " | Login";
    }
    if(strpos($_SERVER['PHP_SELF'], "index.php") !== false)
            echo " | Startseite";
    if(strpos($_SERVER['PHP_SELF'], "login.php") !== false)
            echo " | Login";
    if(strpos($_SERVER['PHP_SELF'], "reg.php") !== false)
            echo " | Registration";
    if(strpos($_SERVER['PHP_SELF'], "scripts.php") !== false && !isset($_GET['classid']) && !isset($_GET['id']))
            echo " | Scripts -> Kategorien";
    if(strpos($_SERVER['PHP_SELF'], "impressum.php") !== false)
            echo " | Impressum";
    if(strpos($_SERVER['PHP_SELF'], "kontakt.php") !== false)
            echo " | Kontakt";
    if(strpos($_SERVER['PHP_SELF'], "services.php") !== false)
            echo " | Services";
    if(strpos($_SERVER['PHP_SELF'], "nutzungsbestimmungen.php") !== false)
            echo " | Nutzungsbestimmungen";
    
    
    
    
}
?>

Initial URL
http://darksider3.pf-control.de/all/scripts.php?id=Seiten%20Titel%20Dynamisch

Initial Description
A function to make your site title dynamic

Initial Title
A Dynamic site Title

Initial Tags
php

Initial Language
PHP